新增SMTP邮件通知、仪表盘图表、授权编辑功能、API文档

This commit is contained in:
Fei-Qing committed 2026-06-23 19:05:43 +08:00
1 parent d6d7a1a27e
commit 044e526c80
87 files changed
+1851 -237

No files matched your search

+504 -21
View File
@@ -1,7 +1,5 @@
# CardAuth - 卡密授权管理系统
> 半成品,持续开发中。
一个轻量级的卡密(激活码)+ 机器授权管理系统,支持多项目管理、代理分销、在线支付购买,适用于软件授权、会员激活等场景。
## 技术栈
@@ -10,7 +8,7 @@
|---|---|
| 后端 | PHP 7.4+ 自研框架(Router + Middleware + Controller) |
| 数据库 | MySQL 8.0+ |
| 前端 | Vue 3 + Element Plus + Pinia |
| 前端 | Vue 3 + Element Plus + Pinia + ECharts |
| 构建 | Vite |
## 功能概览
@@ -29,6 +27,8 @@
- 订单管理(代客手动完成 / 手动确认)
- 在线购买商城(公开页面,支持 epay/codepay 支付回调)
- 黑名单系统(机器码/IP 封禁,可配置封禁策略)
- SMTP 邮件通知(授权快到期自动发送提醒到联系人 QQ 邮箱)
- 仪表盘统计图表(收入趋势、授权趋势、套餐销售占比)
- 操作日志
### 内置页面
@@ -57,13 +57,7 @@ cp .env.example .env
# 编辑 .env 填入数据库信息
```
### 3. 安装 PHP 依赖
```bash
cd backend
php composer.phar install
```
### 4. 启动
### 3. 启动
```bash
# 一键启动(前端 + 后端)
.\start.ps1
@@ -73,13 +67,509 @@ cd backend && php -S 0.0.0.0:8080 -t backend
cd frontend && npm install && npm run dev
```
### 5. 访问
### 4. 访问
- 管理后台:`http://localhost:3000`
- 代理登录:`http://localhost:3000/#/agent/login`
- 购买商城:`http://localhost:3000/#/shop`
### 6. 默认管理员
数据库默认会插入 `admin / admin123` 的超级管理员账号(需在 `schema.sql` 末尾自行添加 INSERT 语句,或在用户管理页面注册后手动修改角色)。
### 5. 默认管理员
| 用户名 | 密码 |
|--------|------|
| admin | admin123456 |
## SMTP 邮件通知配置
在系统配置 -> SMTP邮件配置中填写 SMTP 信息,系统将自动在授权到期前 N 天发送提醒邮件到联系人的 QQ 邮箱(`contact_qq@qq.com`)。
### 定时任务 (Cron)
建议设置每 6 小时执行一次过期检查:
```bash
# Linux crontab
0 */6 * * * curl -s http://your-domain/api/cron/notify-expiring > /dev/null
# Windows 任务计划程序
curl -s http://your-domain/api/cron/notify-expiring
```
---
# API 文档
## 鉴权说明
| 类型 | 说明 |
|------|------|
| **JWT Token** | 登录后获取,请求头 `Authorization: Bearer <token>`,有效期 24 小时 |
| **API Key** | 项目密钥,仅用于授权验证接口,请求头 `X-Api-Key: <key>` |
| **公开接口** | 无需认证,有频率限制(60秒内 30 次) |
---
## 一、公开接口(无需认证)
### 1.1 查询授权状态(按机器人QQ)
```
GET /api/public/authorizations/query?bot_qq=123456789
```
**响应示例:**
```json
{
"code": 200,
"data": {
"bot_qq": "123456789",
"total": 2,
"active_count": 1,
"expired_count": 1,
"revoked_count": 0,
"has_valid_auth": true,
"list": [
{
"id": 1,
"card_key": "CA-XXXX-XXXX",
"project_name": "演示项目",
"bot_qq": "123456789",
"contact_qq": "987654321",
"contact_name": "张三",
"duration_days": 30,
"status": "active",
"authorized_at": "2026-01-01 12:00:00",
"expire_time": "2026-01-31 12:00:00",
"is_expired": false
}
]
}
}
```
### 1.2 验证授权有效性(客户端调用)
```
POST /api/public/authorizations/verify
Content-Type: application/json
{
"bot_qq": "123456789",
"card_key": "CA-XXXX-XXXX", // 可选
"contact_qq": "987654321" // 可选
}
```
**响应示例(有效):**
```json
{
"code": 200,
"data": {
"valid": true,
"bot_qq": "123456789",
"contact_qq": "987654321",
"card_key": "CA-XXXX-XXXX",
"project_name": "演示项目",
"expire_time": "2026-01-31 12:00:00",
"days_left": 20,
"has_valid_auth": true,
"message": "授权有效"
}
}
```
**响应示例(无效):**
```json
{
"code": 200,
"data": {
"valid": false,
"bot_qq": "123456789",
"has_valid_auth": false,
"message": "未找到有效授权"
}
}
```
### 1.3 API Key 授权验证
```
POST /api/public/verify
X-Api-Key: <项目的 API Key>
Content-Type: application/json
{
"bot_qq": "123456789",
"contact_qq": "987654321" // 可选
}
```
**响应格式同 1.2。**
### 1.4 获取项目列表(商城用)
```
GET /api/public/projects
```
### 1.5 获取项目套餐列表
```
GET /api/public/projects/{project_id}/card-types
```
### 1.6 创建订单
```
POST /api/public/orders
Content-Type: application/json
{
"project_id": 1,
"card_type_id": 1,
"amount": 29.90,
"pay_type": "wxpay",
"contact_qq": "987654321",
"bot_qq": "123456789",
"coupon_code": "" // 可选,优惠码
}
```
**响应示例:**
```json
{
"code": 200,
"data": {
"order_no": "2026062317530410859",
"pay_url": "https://pay.example.com/xxx",
"is_renew": false,
"contact_qq_warn": null,
"contact_qq": "987654321"
}
}
```
### 1.7 查询订单
```
GET /api/public/orders/query?order_no=2026062317530410859
```
---
## 二、认证接口
### 2.1 管理员登录
```
POST /api/auth/admin-login
Content-Type: application/json
{
"username": "admin",
"password": "admin123456"
}
```
**响应示例:**
```json
{
"code": 200,
"data": {
"token": "eyJ...",
"user": { "id": 1, "username": "admin", "role": "admin" }
}
}
```
### 2.2 代理登录
```
POST /api/auth/agent-login
Content-Type: application/json
{
"username": "agent001",
"password": "123456"
}
```
### 2.3 代理注册
```
POST /api/auth/agent-register
Content-Type: application/json
{
"username": "new_agent",
"password": "123456",
"nickname": "新代理"
}
```
### 2.4 刷新 Token
```
POST /api/auth/refresh
Authorization: Bearer <token>
```
### 2.5 获取当前用户信息
```
GET /api/auth/me
Authorization: Bearer <token>
```
---
## 三、仪表盘
### 3.1 仪表盘数据
```
GET /api/dashboard
Authorization: Bearer <token>
```
**响应包含:**
- 统计数字(项目数、卡密数、订单数、收入等)
- `order_trend`: 近 7 天订单趋势
- `revenue_trend_30`: 近 30 天收入趋势
- `auth_trend_30`: 近 30 天新增授权趋势
- `package_distribution`: 套餐销售占比
- `expiring_soon`: 即将过期授权数
---
## 四、项目与套餐管理
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/projects` | 项目列表 |
| GET | `/api/projects/all` | 全部项目(下拉用) |
| GET | `/api/projects/{id}` | 项目详情 |
| POST | `/api/projects` | 创建项目 |
| PUT | `/api/projects/{id}` | 更新项目 |
| DELETE | `/api/projects/{id}` | 删除项目 |
| POST | `/api/projects/{id}/regenerate-key` | 重新生成 API Key |
| GET | `/api/projects/{id}/card-types` | 某项目的套餐列表 |
| POST | `/api/projects/{id}/card-types` | 创建套餐 |
| PUT | `/api/projects/{id}/card-types/{typeId}` | 更新套餐 |
| DELETE | `/api/projects/{id}/card-types/{typeId}` | 删除套餐 |
| GET | `/api/products` | 全量商品列表 |
| GET | `/api/products/export` | 导出商品 |
### 创建项目
```
POST /api/projects
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "我的项目",
"description": "项目描述"
}
```
### 创建套餐
```
POST /api/projects/1/card-types
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "月卡",
"duration_days": 30,
"price": 29.90,
"agent_cost": 20.00,
"sort": 1,
"status": 1
}
```
---
## 五、卡密管理
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/cards` | 卡密列表(支持分页、筛选、排序) |
| GET | `/api/cards/stats` | 卡密统计 |
| GET | `/api/cards/{id}` | 卡密详情 |
| POST | `/api/cards/generate` | 批量生成卡密 |
| POST | `/api/cards/import` | 导入卡密 |
| POST | `/api/cards/batch-status` | 批量修改状态 |
| POST | `/api/cards/batch-delete` | 批量删除 |
| PATCH | `/api/cards/{id}/status` | 单个卡密启用/禁用 |
| GET | `/api/cards/export` | 导出卡密(CSV/Excel) |
### 生成卡密
```
POST /api/cards/generate
Authorization: Bearer <token>
Content-Type: application/json
{
"project_id": 1,
"card_type_id": 1,
"count": 100,
"prefix": "CA"
}
```
---
## 六、授权管理
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/authorizations` | 授权列表 |
| GET | `/api/authorizations/stats` | 授权统计 |
| GET | `/api/authorizations/{id}` | 授权详情 |
| POST | `/api/authorizations` | 新增授权 |
| PUT | `/api/authorizations/{id}/revoke` | 撤销授权 |
| DELETE | `/api/authorizations/{id}` | 删除授权 |
| POST | `/api/authorizations/batch-delete` | 批量删除 |
| GET | `/api/authorizations/export` | 导出授权 |
### 新增授权
```
POST /api/authorizations
Authorization: Bearer <token>
Content-Type: application/json
{
"project_id": 1,
"card_type_id": 1,
"bot_qq": "123456789",
"contact_qq": "987654321",
"contact_name": "张三"
}
```
**续费逻辑**:若 `bot_qq + contact_qq` 已存在活跃授权,自动续费延长过期时间。
### 撤销授权
```
PUT /api/authorizations/{id}/revoke
Authorization: Bearer <token>
Content-Type: application/json
{
"reason": "用户违规"
}
```
---
## 七、订单管理
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/orders` | 订单列表 |
| GET | `/api/orders/{id}` | 订单详情 |
| POST | `/api/orders/{id}/complete` | 手动完成订单 |
| GET | `/api/orders/export` | 导出订单 |
---
## 八、用户管理
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/users` | 用户列表 |
| GET | `/api/users/stats` | 用户统计 |
| POST | `/api/users` | 创建用户 |
| PUT | `/api/users/{id}` | 更新用户 |
| DELETE | `/api/users/{id}` | 删除用户 |
| POST | `/api/users/batch-delete` | 批量删除 |
| GET | `/api/users/export` | 导出用户 |
---
## 九、代理管理
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/agents` | 代理列表 |
| GET | `/api/agents/my-quota` | 当前代理额度 |
| POST | `/api/agents/recharge` | 充值额度 |
| POST | `/api/agents/adjust-quota` | 调整额度 |
| GET | `/api/agents/quota-logs` | 额度变动日志 |
| POST | `/api/agents/{id}/reset-password` | 重置代理密码 |
---
## 十、优惠券
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/coupons` | 优惠券列表 |
| POST | `/api/coupons` | 创建优惠券 |
| PUT | `/api/coupons/{id}` | 更新优惠券 |
| DELETE | `/api/coupons/{id}` | 删除优惠券 |
---
## 十一、黑名单
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/blacklists` | 黑名单列表 |
| POST | `/api/blacklists` | 添加黑名单 |
| POST | `/api/blacklists/batch` | 批量添加 |
| POST | `/api/blacklists/import` | 导入黑名单 |
| PUT | `/api/blacklists/{id}` | 更新黑名单 |
| DELETE | `/api/blacklists/{id}` | 删除黑名单 |
| POST | `/api/blacklists/batch-delete` | 批量删除 |
---
## 十二、系统配置
| 方法 | 路径 | 说明 |
|------|------|------|
| GET | `/api/system/configs?keys=key1,key2` | 获取配置 |
| POST | `/api/system/configs` | 保存配置 |
| GET | `/api/system/smtp-config` | 获取 SMTP 配置 |
| POST | `/api/system/smtp-config` | 保存 SMTP 配置 |
| POST | `/api/system/test-smtp` | 发送测试邮件 |
| POST | `/api/system/notify-expiring` | 手动触发过期提醒 |
---
## 十三、定时任务
```
POST /api/cron/notify-expiring
GET /api/cron/notify-expiring
```
无需认证,检查即将过期的授权并向联系人 QQ 邮箱发送提醒。
---
## 错误码说明
| code | 说明 |
|------|------|
| 200 | 成功 |
| 400 | 参数错误 |
| 401 | 未登录 / Token 无效 |
| 403 | 无权限 |
| 404 | 资源不存在 |
| 429 | 请求过于频繁 |
| 500 | 服务器错误 |
通用错误响应:
```json
{
"code": 400,
"message": "参数错误描述"
}
```
## 项目结构
@@ -87,7 +577,7 @@ cd frontend && npm install && npm run dev
card/
├── backend/ # PHP 后端
│ ├── app/
│ │ ├── Controllers/ # 控制器 (11 个模块)
│ │ ├── Controllers/ # 控制器 (12 个模块)
│ │ ├── Core/ # 框架核心 (Router/Controller/Database/Middleware/Validator)
│ │ ├── Middleware/ # 中间件 (Auth/JWT/RateLimit/ApiKey/Blacklist/Role)
│ │ └── Services/ # 服务层 (Jwt/Blacklist/Permission/Snowflake)
@@ -104,13 +594,6 @@ card/
└── deploy/ # 部署配置 (Nginx + 宝塔)
```
## 待完善
- [ ] 支付回调验签完善
- [ ] 代理层级佣金结算
- [ ] 数据统计与报表导出
- [ ] 单元测试与 E2E 测试覆盖
- [ ] Docker 化部署
## License
MIT
@@ -526,6 +526,87 @@ class AuthorizationController extends Controller
], '授权成功');
}
/**
* 更新授权信息
* PUT /api/authorizations/{id}
* Body: { bot_qq?, contact_qq?, contact_name?, duration_days?, expire_time?, remark? }
*/
public function update(int $id): void
{
$db = Database::getInstance();
$auth = $db->fetch("SELECT * FROM {$db->table('authorizations')} WHERE id = ?", [$id]);
if (!$auth) {
$this->error('授权记录不存在', 404);
}
$input = $this->getJsonInput();
$updates = [];
$params = [];
// 可编辑字段
if (isset($input['bot_qq']) && $input['bot_qq'] !== '') {
$botQq = trim($input['bot_qq']);
if (!preg_match('/^\d{5,15}$/', $botQq)) {
$this->error('机器人QQ格式不正确');
}
$updates[] = 'bot_qq = ?';
$params[] = $botQq;
}
if (isset($input['contact_qq']) && $input['contact_qq'] !== '') {
$contactQq = trim($input['contact_qq']);
if (!preg_match('/^\d{5,15}$/', $contactQq)) {
$this->error('联系人QQ格式不正确');
}
$updates[] = 'contact_qq = ?';
$params[] = $contactQq;
}
if (isset($input['contact_name'])) {
$updates[] = 'contact_name = ?';
$params[] = trim($input['contact_name']);
}
if (isset($input['remark'])) {
$updates[] = 'remark = ?';
$params[] = trim($input['remark']);
}
if (isset($input['duration_days'])) {
$durationDays = (int) $input['duration_days'];
$updates[] = 'duration_days = ?';
$params[] = $durationDays;
// 更新过期时间
if ($durationDays === 0) {
$updates[] = 'expire_time = NULL';
} else {
// 从 authorized_at 重新计算过期时间
$baseTime = $auth['authorized_at'] ?? date('Y-m-d H:i:s');
$updates[] = 'expire_time = ?';
$params[] = date('Y-m-d H:i:s', strtotime("+{$durationDays} days", strtotime($auth['expire_time'] ?? $baseTime)));
}
}
if (isset($input['expire_time']) && $input['expire_time'] !== '') {
$updates[] = 'expire_time = ?';
$params[] = $input['expire_time'];
}
if (empty($updates)) {
$this->error('没有需要更新的字段');
}
$updates[] = 'updated_at = NOW()';
$params[] = $id;
$db->execute(
"UPDATE {$db->table('authorizations')} SET " . implode(', ', $updates) . " WHERE id = ?",
$params
);
$this->logAction('authorization_update', 'authorization', $id, [
'fields' => array_keys($input),
]);
$this->success(null, '授权更新成功');
}
/**
* 撤销授权
* PUT /api/authorizations/{id}/revoke
@@ -65,6 +65,37 @@ class DashboardController extends Controller
GROUP BY DATE(created_at)
ORDER BY date ASC"
);
// 近30天收入趋势
$data['revenue_trend_30'] = $db->fetchAll(
"SELECT DATE(paid_at) AS date, COALESCE(SUM(amount), 0) AS amount
FROM {$db->table('orders')}
WHERE status = 'paid' AND paid_at >= DATE_SUB(CURDATE(), INTERVAL 30 DAY)
GROUP BY DATE(paid_at)
ORDER BY date ASC"
);
// 近30天新增授权趋势
$data['auth_trend_30'] = $db->fetchAll(
"SELECT DATE(authorized_at) AS date, COUNT(*) AS count
FROM {$db->table('authorizations')}
WHERE authorized_at >= DATE_SUB(CURDATE(), INTERVAL 30 DAY) AND status = 'active'
GROUP BY DATE(authorized_at)
ORDER BY date ASC"
);
// 套餐销售占比(按已支付订单金额)
$data['package_distribution'] = $db->fetchAll(
"SELECT ct.name, COALESCE(SUM(o.amount), 0) AS amount, COUNT(*) AS count
FROM {$db->table('orders')} o
LEFT JOIN {$db->table('card_types')} ct ON o.card_type_id = ct.id
WHERE o.status = 'paid'
GROUP BY o.card_type_id, ct.name
ORDER BY amount DESC"
);
// 即将过期授权数(7天内)
$data['expiring_soon'] = (int) $db->fetchColumn(
"SELECT COUNT(*) FROM {$db->table('authorizations')}
WHERE status = 'active' AND expire_time IS NOT NULL
AND expire_time BETWEEN NOW() AND DATE_ADD(NOW(), INTERVAL 7 DAY)"
);
} elseif ($userRole === 'agent') {
// 代理数据
$agent = $db->fetch(
@@ -0,0 +1,274 @@
<?php
namespace App\Controllers;
use App\Core\Controller;
use App\Core\Database;
/**
* 通知控制器 - SMTP 邮件发送 + 过期提醒
*/
class NotificationController extends Controller
{
/**
* 获取 SMTP 配置
* GET /api/system/smtp-config
*/
public function getSmtpConfig(): void
{
$db = Database::getInstance();
$rows = $db->fetchAll(
"SELECT `key`, `value` FROM {$db->table('configs')} WHERE `key` LIKE 'smtp_%'"
);
$config = [];
foreach ($rows as $row) {
$config[$row['key']] = $row['value'];
}
$this->success($config);
}
/**
* 保存 SMTP 配置
* POST /api/system/smtp-config
*/
public function saveSmtpConfig(): void
{
$input = $this->getJsonInput();
$db = Database::getInstance();
$keys = ['smtp_host', 'smtp_port', 'smtp_user', 'smtp_pass', 'smtp_encryption', 'smtp_from_email', 'smtp_from_name', 'smtp_enabled', 'smtp_expire_days'];
foreach ($keys as $key) {
if (isset($input[$key])) {
$value = is_array($input[$key]) ? json_encode($input[$key]) : (string) $input[$key];
$exists = $db->fetchColumn("SELECT COUNT(*) FROM {$db->table('configs')} WHERE `key` = ?", [$key]);
if ($exists) {
$db->execute("UPDATE {$db->table('configs')} SET `value` = ? WHERE `key` = ?", [$value, $key]);
} else {
$db->execute("INSERT INTO {$db->table('configs')} (`key`, `value`, `description`) VALUES (?, ?, 'SMTP邮件配置')", [$key, $value]);
}
}
}
$this->success(null, 'SMTP配置保存成功');
}
/**
* 发送测试邮件
* POST /api/system/test-smtp
* Body: { test_email }
*/
public function testSmtp(): void
{
$input = $this->getJsonInput();
$testEmail = trim($input['test_email'] ?? '');
if (empty($testEmail) || !filter_var($testEmail, FILTER_VALIDATE_EMAIL)) {
$this->error('请输入有效的测试邮箱地址');
}
$config = $this->getSmtpSettings();
if (!$config['smtp_enabled']) {
$this->error('SMTP 未启用');
}
$result = $this->sendMail(
$testEmail,
'CardAuth 测试邮件',
'<h3>CardAuth 邮件配置测试</h3><p>如果您收到此邮件,说明 SMTP 配置正确。</p><p>发送时间:' . date('Y-m-d H:i:s') . '</p>'
);
if ($result === true) {
$this->success(null, '测试邮件发送成功,请检查收件箱');
} else {
$this->error('发送失败:' . $result);
}
}
/**
* 检查即将过期的授权并发送邮件通知
* POST /api/system/notify-expiring
* 也可通过 GET 由 cron 调用
*/
public function notifyExpiring(): void
{
$config = $this->getSmtpSettings();
if (!$config['smtp_enabled']) {
$this->error('SMTP 未启用,无法发送通知');
}
$db = Database::getInstance();
$days = (int) ($config['smtp_expire_days'] ?? 7);
if ($days < 1) $days = 7;
// 查找即将过期的活跃授权
$expiring = $db->fetchAll(
"SELECT a.id, a.bot_qq, a.contact_qq, a.contact_name, a.project_name,
a.duration_days, a.expire_time, a.authorized_at,
DATEDIFF(a.expire_time, NOW()) AS days_left
FROM {$db->table('authorizations')} a
WHERE a.status = 'active'
AND a.expire_time IS NOT NULL
AND a.expire_time BETWEEN NOW() AND DATE_ADD(NOW(), INTERVAL ? DAY)
AND a.contact_qq IS NOT NULL AND a.contact_qq != ''
ORDER BY a.expire_time ASC",
[$days]
);
if (empty($expiring)) {
$this->success(['sent' => 0, 'message' => '没有即将过期的授权']);
return;
}
$sent = 0;
$failed = 0;
$sentUsers = []; // 去重:同一 contact_qq 只发一封汇总邮件
foreach ($expiring as $auth) {
$email = $auth['contact_qq'] . '@qq.com';
if (in_array($email, $sentUsers)) continue;
$sentUsers[] = $email;
// 汇总该用户的即将过期授权
$userAuths = array_filter($expiring, fn($a) => $a['contact_qq'] === $auth['contact_qq']);
$rows = '';
foreach ($userAuths as $a) {
$rows .= "<tr>
<td style='padding:8px 12px;border:1px solid #e2e8f0'>#{$a['id']}</td>
<td style='padding:8px 12px;border:1px solid #e2e8f0'>{$a['project_name']}</td>
<td style='padding:8px 12px;border:1px solid #e2e8f0'>{$a['bot_qq']}</td>
<td style='padding:8px 12px;border:1px solid #e2e8f0;color:#e74c3c;font-weight:600'>还剩 {$a['days_left']} 天</td>
<td style='padding:8px 12px;border:1px solid #e2e8f0'>{$a['expire_time']}</td>
</tr>";
}
$html = "<div style='max-width:600px;margin:0 auto;font-family:-apple-system,sans-serif'>
<div style='background:#3b82f6;color:#fff;padding:20px;border-radius:12px 12px 0 0'>
<h2 style='margin:0;font-size:18px'>授权即将过期提醒</h2>
</div>
<div style='background:#fff;padding:20px;border:1px solid #e2e8f0;border-top:none;border-radius:0 0 12px 12px'>
<p>您好,以下授权即将在 <b style='color:#e74c3c'>{$days}</b> 天内过期,请及时续费:</p>
<table style='width:100%;border-collapse:collapse;margin:16px 0'>
<tr style='background:#f8f9fb'>
<th style='padding:8px 12px;border:1px solid #e2e8f0;text-align:left'>授权ID</th>
<th style='padding:8px 12px;border:1px solid #e2e8f0;text-align:left'>项目</th>
<th style='padding:8px 12px;border:1px solid #e2e8f0;text-align:left'>机器人QQ</th>
<th style='padding:8px 12px;border:1px solid #e2e8f0;text-align:left'>剩余时间</th>
<th style='padding:8px 12px;border:1px solid #e2e8f0;text-align:left'>过期时间</th>
</tr>
{$rows}
</table>
<p style='color:#94a3b8;font-size:12px'>此邮件由 CardAuth 授权系统自动发送,无需回复。</p>
</div>
</div>";
$result = $this->sendMail($email, '【CardAuth】授权即将过期提醒', $html);
if ($result === true) {
$sent++;
} else {
$failed++;
}
}
$this->logAction('notify_expiring', 'authorization', 0, [
'sent' => $sent,
'failed' => $failed,
'total' => count($expiring),
]);
$this->success([
'sent' => $sent,
'failed' => $failed,
'total' => count($expiring),
], "发送完成:成功 {$sent} 封,失败 {$failed} 封");
}
/**
* 获取 SMTP 配置数组
*/
private function getSmtpSettings(): array
{
$db = Database::getInstance();
$rows = $db->fetchAll("SELECT `key`, `value` FROM {$db->table('configs')} WHERE `key` LIKE 'smtp_%'");
$config = [
'smtp_host' => '',
'smtp_port' => '465',
'smtp_user' => '',
'smtp_pass' => '',
'smtp_encryption' => 'ssl',
'smtp_from_email' => '',
'smtp_from_name' => 'CardAuth',
'smtp_enabled' => '0',
'smtp_expire_days' => '7',
];
foreach ($rows as $row) {
$config[$row['key']] = $row['value'];
}
return $config;
}
/**
* PHP mail 方式发送邮件(兼容大多数 SMTP 配置)
*/
private function sendMail(string $to, string $subject, string $html): bool|string
{
$config = $this->getSmtpSettings();
$host = $config['smtp_host'];
$port = (int) $config['smtp_port'];
$user = $config['smtp_user'];
$pass = $config['smtp_pass'];
$encryption = $config['smtp_encryption']; // ssl | tls
$fromEmail = $config['smtp_from_email'] ?: $user;
$fromName = $config['smtp_from_name'] ?: 'CardAuth';
if (empty($host) || empty($user) || empty($pass)) {
return 'SMTP 配置不完整';
}
$boundary = md5(uniqid(time()));
$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: =?UTF-8?B?" . base64_encode($fromName) . "?= <{$fromEmail}>\r\n";
$headers .= "Reply-To: {$fromEmail}\r\n";
$headers .= "Content-Type: text/html; charset=utf-8\r\n";
$headers .= "X-Mailer: CardAuth\r\n";
$message = $html;
// 使用 socket 直连 SMTP 发送(不依赖 PHPMailer)
$errno = 0;
$errstr = '';
$url = ($encryption === 'ssl') ? "ssl://{$host}" : $host;
$socket = @fsockopen($url, $port, $errno, $errstr, 30);
if (!$socket) {
return "连接 SMTP 服务器失败: {$errstr} ({$errno})";
}
$this->smtpRead($socket);
$this->smtpCommand($socket, "EHLO CardAuth");
$this->smtpCommand($socket, "AUTH LOGIN");
$this->smtpCommand($socket, base64_encode($user));
$this->smtpCommand($socket, base64_encode($pass));
$this->smtpCommand($socket, "MAIL FROM:<{$fromEmail}>");
$this->smtpCommand($socket, "RCPT TO:<{$to}>");
$this->smtpCommand($socket, "DATA");
$this->smtpCommand($socket, "{$message}\r\n.");
$this->smtpCommand($socket, "QUIT");
fclose($socket);
return true;
}
private function smtpCommand($socket, string $command): string
{
fwrite($socket, $command . "\r\n");
return $this->smtpRead($socket);
}
private function smtpRead($socket): string
{
$response = '';
while ($line = fgets($socket, 512)) {
$response .= $line;
if (isset($line[3]) && $line[3] === ' ') break;
}
return $response;
}
}
+10 -1
View File
@@ -319,4 +319,13 @@ INSERT INTO `ca_configs` (`key`, `value`, `description`) VALUES
('site_name', 'CardAuth授权管理系统', '站点名称'),
('site_logo', '', '站点Logo'),
('card_key_prefix', 'CA', '卡密前缀'),
('order_expire_minutes', '15', '订单过期时间(分钟)');
('order_expire_minutes', '15', '订单过期时间(分钟)'),
('smtp_host', '', 'SMTP服务器地址'),
('smtp_port', '465', 'SMTP端口'),
('smtp_user', '', 'SMTP用户名'),
('smtp_pass', '', 'SMTP密码'),
('smtp_encryption', 'ssl', 'SMTP加密方式(ssl/tls)'),
('smtp_from_email', '', '发件人邮箱'),
('smtp_from_name', 'CardAuth', '发件人名称'),
('smtp_enabled', '0', '是否启用邮件通知(1=启用,0=禁用)'),
('smtp_expire_days', '7', '到期前N天发送提醒邮件');
@@ -0,0 +1 @@
import{_ as I,m as C,o as F,c as S,a as s,b as t,w as a,j as B,E as L,d as U,r as q,u as z,n as m,p as A,e as N,f as R,q as K,g as M,s as j,t as P,i as n,v as T,h as D,k as f,l as g}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css */import{u as G}from"./user-dKBxTmfR.js";import"./index-C3lsw5-G.js";const H={class:"auth-container"},J={class:"auth-card"},O={class:"auth-header"},Q={class:"auth-icon"},W={class:"form-options"},X={class:"auth-footer"},Y={__name:"AgentLogin",setup(Z){const v=z(),b=G(),u=g(!1),d=g(null),o=B({account:"",password:"",remember:!1}),w={account:[{required:!0,message:"请输入用户名或邮箱",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};C(()=>{const l=localStorage.getItem("agent_remember_account");l&&(o.account=l,o.remember=!0)});async function p(){d.value&&await d.value.validate(async l=>{if(l){u.value=!0;try{await b.login(o.account,o.password,"agent"),o.remember?localStorage.setItem("agent_remember_account",o.account):localStorage.removeItem("agent_remember_account"),f.success("登录成功"),v.push("/dashboard")}catch{}finally{u.value=!1}}})}function h(){f.info("请联系管理员重置密码")}return(l,e)=>{const i=L,_=R,c=N,k=P,y=T,V=D,x=U,E=q("router-link");return F(),S("div",H,[e[10]||(e[10]=s("div",{class:"auth-bg"},[s("div",{class:"bg-circle c1"}),s("div",{class:"bg-circle c2"}),s("div",{class:"bg-circle c3"})],-1)),s("div",J,[s("div",O,[s("div",Q,[t(i,{size:40,color:"#409EFF"},{default:a(()=>[t(m(A))]),_:1})]),e[3]||(e[3]=s("h2",{class:"auth-title"},"代理登录",-1)),e[4]||(e[4]=s("p",{class:"auth-subtitle"},"CardAuth 代理合作伙伴中心",-1))]),t(x,{ref_key:"formRef",ref:d,model:o,rules:w,size:"large",class:"auth-form"},{default:a(()=>[t(c,{prop:"account"},{default:a(()=>[t(_,{modelValue:o.account,"onUpdate:modelValue":e[0]||(e[0]=r=>o.account=r),placeholder:"用户名 / 邮箱",maxlength:"100",clearable:""},{prefix:a(()=>[t(i,null,{default:a(()=>[t(m(K))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(c,{prop:"password"},{default:a(()=>[t(_,{modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=r=>o.password=r),type:"password",placeholder:"密码",maxlength:"50","show-password":"",onKeyup:M(p,["enter"])},{prefix:a(()=>[t(i,null,{default:a(()=>[t(m(j))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s("div",W,[t(k,{modelValue:o.remember,"onUpdate:modelValue":e[2]||(e[2]=r=>o.remember=r)},{default:a(()=>[...e[5]||(e[5]=[n("记住我",-1)])]),_:1},8,["modelValue"]),t(y,{type:"primary",underline:!1,onClick:h},{default:a(()=>[...e[6]||(e[6]=[n("忘记密码?",-1)])]),_:1})]),t(c,null,{default:a(()=>[t(V,{type:"primary",loading:u.value,style:{width:"100%"},size:"large",onClick:p},{default:a(()=>[...e[7]||(e[7]=[n(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),s("div",X,[e[9]||(e[9]=s("span",null,"还没有账号?",-1)),t(E,{to:"/agent/register",class:"auth-link"},{default:a(()=>[...e[8]||(e[8]=[n("立即注册",-1)])]),_:1})])])])}}},re=I(Y,[["__scopeId","data-v-5ac7e3d3"]]);export{re as default};
@@ -0,0 +1 @@
import{_ as I,m as C,o as F,c as S,a as s,b as t,w as a,j as B,E as L,d as U,r as q,u as z,n as m,p as A,e as N,f as R,q as K,g as M,s as j,t as P,i as n,v as T,h as D,k as f,l as g}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css */import{u as G}from"./user-iqLWbJfU.js";import"./index-CxGbf_5w.js";const H={class:"auth-container"},J={class:"auth-card"},O={class:"auth-header"},Q={class:"auth-icon"},W={class:"form-options"},X={class:"auth-footer"},Y={__name:"AgentLogin",setup(Z){const v=z(),b=G(),u=g(!1),d=g(null),o=B({account:"",password:"",remember:!1}),w={account:[{required:!0,message:"请输入用户名或邮箱",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};C(()=>{const l=localStorage.getItem("agent_remember_account");l&&(o.account=l,o.remember=!0)});async function p(){d.value&&await d.value.validate(async l=>{if(l){u.value=!0;try{await b.login(o.account,o.password,"agent"),o.remember?localStorage.setItem("agent_remember_account",o.account):localStorage.removeItem("agent_remember_account"),f.success("登录成功"),v.push("/dashboard")}catch{}finally{u.value=!1}}})}function h(){f.info("请联系管理员重置密码")}return(l,e)=>{const i=L,_=R,c=N,k=P,y=T,V=D,x=U,E=q("router-link");return F(),S("div",H,[e[10]||(e[10]=s("div",{class:"auth-bg"},[s("div",{class:"bg-circle c1"}),s("div",{class:"bg-circle c2"}),s("div",{class:"bg-circle c3"})],-1)),s("div",J,[s("div",O,[s("div",Q,[t(i,{size:40,color:"#409EFF"},{default:a(()=>[t(m(A))]),_:1})]),e[3]||(e[3]=s("h2",{class:"auth-title"},"代理登录",-1)),e[4]||(e[4]=s("p",{class:"auth-subtitle"},"CardAuth 代理合作伙伴中心",-1))]),t(x,{ref_key:"formRef",ref:d,model:o,rules:w,size:"large",class:"auth-form"},{default:a(()=>[t(c,{prop:"account"},{default:a(()=>[t(_,{modelValue:o.account,"onUpdate:modelValue":e[0]||(e[0]=r=>o.account=r),placeholder:"用户名 / 邮箱",maxlength:"100",clearable:""},{prefix:a(()=>[t(i,null,{default:a(()=>[t(m(K))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(c,{prop:"password"},{default:a(()=>[t(_,{modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=r=>o.password=r),type:"password",placeholder:"密码",maxlength:"50","show-password":"",onKeyup:M(p,["enter"])},{prefix:a(()=>[t(i,null,{default:a(()=>[t(m(j))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s("div",W,[t(k,{modelValue:o.remember,"onUpdate:modelValue":e[2]||(e[2]=r=>o.remember=r)},{default:a(()=>[...e[5]||(e[5]=[n("记住我",-1)])]),_:1},8,["modelValue"]),t(y,{type:"primary",underline:!1,onClick:h},{default:a(()=>[...e[6]||(e[6]=[n("忘记密码?",-1)])]),_:1})]),t(c,null,{default:a(()=>[t(V,{type:"primary",loading:u.value,style:{width:"100%"},size:"large",onClick:p},{default:a(()=>[...e[7]||(e[7]=[n(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),s("div",X,[e[9]||(e[9]=s("span",null,"还没有账号?",-1)),t(E,{to:"/agent/register",class:"auth-link"},{default:a(()=>[...e[8]||(e[8]=[n("立即注册",-1)])]),_:1})])])])}}},re=I(Y,[["__scopeId","data-v-5ac7e3d3"]]);export{re as default};
@@ -0,0 +1 @@
import{_ as I,m as C,o as F,c as S,a as s,b as t,w as a,j as B,E as L,d as U,r as q,u as z,n as m,p as A,e as N,f as R,q as K,g as M,s as j,t as P,i as n,v as T,h as D,k as f,l as g}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css */import{u as G}from"./user-CjwLSb7B.js";import"./index-C7doSj3W.js";const H={class:"auth-container"},J={class:"auth-card"},O={class:"auth-header"},Q={class:"auth-icon"},W={class:"form-options"},X={class:"auth-footer"},Y={__name:"AgentLogin",setup(Z){const v=z(),b=G(),u=g(!1),d=g(null),o=B({account:"",password:"",remember:!1}),w={account:[{required:!0,message:"请输入用户名或邮箱",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};C(()=>{const l=localStorage.getItem("agent_remember_account");l&&(o.account=l,o.remember=!0)});async function p(){d.value&&await d.value.validate(async l=>{if(l){u.value=!0;try{await b.login(o.account,o.password,"agent"),o.remember?localStorage.setItem("agent_remember_account",o.account):localStorage.removeItem("agent_remember_account"),f.success("登录成功"),v.push("/dashboard")}catch{}finally{u.value=!1}}})}function h(){f.info("请联系管理员重置密码")}return(l,e)=>{const i=L,_=R,c=N,k=P,y=T,V=D,x=U,E=q("router-link");return F(),S("div",H,[e[10]||(e[10]=s("div",{class:"auth-bg"},[s("div",{class:"bg-circle c1"}),s("div",{class:"bg-circle c2"}),s("div",{class:"bg-circle c3"})],-1)),s("div",J,[s("div",O,[s("div",Q,[t(i,{size:40,color:"#409EFF"},{default:a(()=>[t(m(A))]),_:1})]),e[3]||(e[3]=s("h2",{class:"auth-title"},"代理登录",-1)),e[4]||(e[4]=s("p",{class:"auth-subtitle"},"CardAuth 代理合作伙伴中心",-1))]),t(x,{ref_key:"formRef",ref:d,model:o,rules:w,size:"large",class:"auth-form"},{default:a(()=>[t(c,{prop:"account"},{default:a(()=>[t(_,{modelValue:o.account,"onUpdate:modelValue":e[0]||(e[0]=r=>o.account=r),placeholder:"用户名 / 邮箱",maxlength:"100",clearable:""},{prefix:a(()=>[t(i,null,{default:a(()=>[t(m(K))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(c,{prop:"password"},{default:a(()=>[t(_,{modelValue:o.password,"onUpdate:modelValue":e[1]||(e[1]=r=>o.password=r),type:"password",placeholder:"密码",maxlength:"50","show-password":"",onKeyup:M(p,["enter"])},{prefix:a(()=>[t(i,null,{default:a(()=>[t(m(j))]),_:1})]),_:1},8,["modelValue"])]),_:1}),s("div",W,[t(k,{modelValue:o.remember,"onUpdate:modelValue":e[2]||(e[2]=r=>o.remember=r)},{default:a(()=>[...e[5]||(e[5]=[n("记住我",-1)])]),_:1},8,["modelValue"]),t(y,{type:"primary",underline:!1,onClick:h},{default:a(()=>[...e[6]||(e[6]=[n("忘记密码?",-1)])]),_:1})]),t(c,null,{default:a(()=>[t(V,{type:"primary",loading:u.value,style:{width:"100%"},size:"large",onClick:p},{default:a(()=>[...e[7]||(e[7]=[n(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),s("div",X,[e[9]||(e[9]=s("span",null,"还没有账号?",-1)),t(E,{to:"/agent/register",class:"auth-link"},{default:a(()=>[...e[8]||(e[8]=[n("立即注册",-1)])]),_:1})])])])}}},re=I(Y,[["__scopeId","data-v-5ac7e3d3"]]);export{re as default};
@@ -0,0 +1 @@
import{_ as q,o as U,c as R,a as o,b as t,w as s,E as B,d as F,r as I,u as N,n as i,q as c,e as S,f as D,x as T,y as Z,z as j,s as v,A as L,B as M,C as W,t as $,i as m,v as G,h as H,j as J,D as p,k as K,l as w}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css */import{r as O}from"./index-C3lsw5-G.js";const Q={class:"auth-container"},X={class:"auth-card"},Y={class:"auth-header"},ee={class:"auth-icon"},te={class:"password-strength"},se={class:"strength-text"},ae={class:"auth-footer"},re={__name:"AgentRegister",setup(le){const h=N(),f=w(!1),g=w(null),a=J({username:"",email:"",phone:"",inviteCode:"",password:"",confirmPassword:"",agreement:!1}),x={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:50,message:"用户名长度3-50位",trigger:"blur"}],email:[{required:!0,message:"请输入电子邮箱",trigger:"blur"},{type:"email",message:"邮箱格式不正确",trigger:"blur"}],phone:[{required:!0,validator:(l,e,r)=>{e?/^1[3-9]\d{9}$/.test(e)?r():r(new Error("手机号格式不正确")):r(new Error("请输入手机号码"))},trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:50,message:"密码长度6-50位",trigger:"blur"}],confirmPassword:[{required:!0,validator:(l,e,r)=>{e?e!==a.password?r(new Error("两次输入的密码不一致")):r():r(new Error("请再次输入密码"))},trigger:"blur"}],agreement:[{validator:(l,e,r)=>{e?r():r(new Error("请同意代理服务协议"))},trigger:"change"}]},_=p(()=>{const l=a.password;if(!l)return 0;let e=0;return l.length>=8&&e++,/[a-z]/.test(l)&&/[A-Z]/.test(l)&&e++,/\d/.test(l)&&e++,/[^a-zA-Z0-9]/.test(l)&&e++,e}),V=p(()=>({0:"",1:"weak",2:"medium",3:"medium",4:"strong"})[_.value]),b=p(()=>({0:"0%",1:"33%",2:"50%",3:"75%",4:"100%"})[_.value]),y=p(()=>({0:"未输入",1:"弱",2:"中",3:"良",4:"强"})[_.value]);async function E(){g.value&&await g.value.validate(async l=>{if(l){f.value=!0;try{await O.post("/auth/agent-register",{username:a.username,password:a.password,confirm_password:a.confirmPassword,email:a.email,phone:a.phone,invite_code:a.inviteCode}),K.success("注册成功,请登录"),h.push("/agent/login")}catch{}finally{f.value=!1}}})}return(l,e)=>{const r=B,u=D,d=S,C=G,k=$,P=H,z=F,A=I("router-link");return U(),R("div",Q,[e[14]||(e[14]=o("div",{class:"auth-bg"},[o("div",{class:"bg-circle c1"}),o("div",{class:"bg-circle c2"}),o("div",{class:"bg-circle c3"})],-1)),o("div",X,[o("div",Y,[o("div",ee,[t(r,{size:40,color:"#409EFF"},{default:s(()=>[t(i(c))]),_:1})]),e[7]||(e[7]=o("h2",{class:"auth-title"},"代理注册",-1)),e[8]||(e[8]=o("p",{class:"auth-subtitle"},"成为 CardAuth 合作伙伴",-1))]),t(z,{ref_key:"formRef",ref:g,model:a,rules:x,size:"large",class:"auth-form"},{default:s(()=>[t(d,{prop:"username"},{default:s(()=>[t(u,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=n=>a.username=n),placeholder:"用户名",maxlength:"50",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(c))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"email"},{default:s(()=>[t(u,{modelValue:a.email,"onUpdate:modelValue":e[1]||(e[1]=n=>a.email=n),placeholder:"电子邮箱",maxlength:"100",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(T))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"phone"},{default:s(()=>[t(u,{modelValue:a.phone,"onUpdate:modelValue":e[2]||(e[2]=n=>a.phone=n),placeholder:"手机号码",maxlength:"11",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(Z))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"inviteCode"},{default:s(()=>[t(u,{modelValue:a.inviteCode,"onUpdate:modelValue":e[3]||(e[3]=n=>a.inviteCode=n),placeholder:"邀请码(上级代理用户名,选填)",maxlength:"50",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(j))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"password"},{default:s(()=>[t(u,{modelValue:a.password,"onUpdate:modelValue":e[4]||(e[4]=n=>a.password=n),type:"password",placeholder:"密码",maxlength:"50","show-password":""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(v))]),_:1})]),_:1},8,["modelValue"]),o("div",te,[o("div",{class:M(["strength-bar",V.value]),style:L({width:b.value})},null,6)]),o("div",se,"密码强度:"+W(y.value),1)]),_:1}),t(d,{prop:"confirmPassword"},{default:s(()=>[t(u,{modelValue:a.confirmPassword,"onUpdate:modelValue":e[5]||(e[5]=n=>a.confirmPassword=n),type:"password",placeholder:"确认密码",maxlength:"50","show-password":""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(v))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"agreement"},{default:s(()=>[t(k,{modelValue:a.agreement,"onUpdate:modelValue":e[6]||(e[6]=n=>a.agreement=n)},{default:s(()=>[e[10]||(e[10]=m(" 我已阅读并同意 ",-1)),t(C,{type:"primary"},{default:s(()=>[...e[9]||(e[9]=[m("《代理服务协议》",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,null,{default:s(()=>[t(P,{type:"primary",loading:f.value,stLine truncated
@@ -0,0 +1 @@
import{_ as q,o as U,c as R,a as o,b as t,w as s,E as B,d as F,r as I,u as N,n as i,q as c,e as S,f as D,x as T,y as Z,z as j,s as v,A as L,B as M,C as W,t as $,i as m,v as G,h as H,j as J,D as p,k as K,l as w}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css */import{r as O}from"./index-CxGbf_5w.js";const Q={class:"auth-container"},X={class:"auth-card"},Y={class:"auth-header"},ee={class:"auth-icon"},te={class:"password-strength"},se={class:"strength-text"},ae={class:"auth-footer"},re={__name:"AgentRegister",setup(le){const h=N(),f=w(!1),g=w(null),a=J({username:"",email:"",phone:"",inviteCode:"",password:"",confirmPassword:"",agreement:!1}),x={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:50,message:"用户名长度3-50位",trigger:"blur"}],email:[{required:!0,message:"请输入电子邮箱",trigger:"blur"},{type:"email",message:"邮箱格式不正确",trigger:"blur"}],phone:[{required:!0,validator:(l,e,r)=>{e?/^1[3-9]\d{9}$/.test(e)?r():r(new Error("手机号格式不正确")):r(new Error("请输入手机号码"))},trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:50,message:"密码长度6-50位",trigger:"blur"}],confirmPassword:[{required:!0,validator:(l,e,r)=>{e?e!==a.password?r(new Error("两次输入的密码不一致")):r():r(new Error("请再次输入密码"))},trigger:"blur"}],agreement:[{validator:(l,e,r)=>{e?r():r(new Error("请同意代理服务协议"))},trigger:"change"}]},_=p(()=>{const l=a.password;if(!l)return 0;let e=0;return l.length>=8&&e++,/[a-z]/.test(l)&&/[A-Z]/.test(l)&&e++,/\d/.test(l)&&e++,/[^a-zA-Z0-9]/.test(l)&&e++,e}),V=p(()=>({0:"",1:"weak",2:"medium",3:"medium",4:"strong"})[_.value]),b=p(()=>({0:"0%",1:"33%",2:"50%",3:"75%",4:"100%"})[_.value]),y=p(()=>({0:"未输入",1:"弱",2:"中",3:"良",4:"强"})[_.value]);async function E(){g.value&&await g.value.validate(async l=>{if(l){f.value=!0;try{await O.post("/auth/agent-register",{username:a.username,password:a.password,confirm_password:a.confirmPassword,email:a.email,phone:a.phone,invite_code:a.inviteCode}),K.success("注册成功,请登录"),h.push("/agent/login")}catch{}finally{f.value=!1}}})}return(l,e)=>{const r=B,u=D,d=S,C=G,k=$,P=H,z=F,A=I("router-link");return U(),R("div",Q,[e[14]||(e[14]=o("div",{class:"auth-bg"},[o("div",{class:"bg-circle c1"}),o("div",{class:"bg-circle c2"}),o("div",{class:"bg-circle c3"})],-1)),o("div",X,[o("div",Y,[o("div",ee,[t(r,{size:40,color:"#409EFF"},{default:s(()=>[t(i(c))]),_:1})]),e[7]||(e[7]=o("h2",{class:"auth-title"},"代理注册",-1)),e[8]||(e[8]=o("p",{class:"auth-subtitle"},"成为 CardAuth 合作伙伴",-1))]),t(z,{ref_key:"formRef",ref:g,model:a,rules:x,size:"large",class:"auth-form"},{default:s(()=>[t(d,{prop:"username"},{default:s(()=>[t(u,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=n=>a.username=n),placeholder:"用户名",maxlength:"50",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(c))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"email"},{default:s(()=>[t(u,{modelValue:a.email,"onUpdate:modelValue":e[1]||(e[1]=n=>a.email=n),placeholder:"电子邮箱",maxlength:"100",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(T))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"phone"},{default:s(()=>[t(u,{modelValue:a.phone,"onUpdate:modelValue":e[2]||(e[2]=n=>a.phone=n),placeholder:"手机号码",maxlength:"11",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(Z))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"inviteCode"},{default:s(()=>[t(u,{modelValue:a.inviteCode,"onUpdate:modelValue":e[3]||(e[3]=n=>a.inviteCode=n),placeholder:"邀请码(上级代理用户名,选填)",maxlength:"50",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(j))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"password"},{default:s(()=>[t(u,{modelValue:a.password,"onUpdate:modelValue":e[4]||(e[4]=n=>a.password=n),type:"password",placeholder:"密码",maxlength:"50","show-password":""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(v))]),_:1})]),_:1},8,["modelValue"]),o("div",te,[o("div",{class:M(["strength-bar",V.value]),style:L({width:b.value})},null,6)]),o("div",se,"密码强度:"+W(y.value),1)]),_:1}),t(d,{prop:"confirmPassword"},{default:s(()=>[t(u,{modelValue:a.confirmPassword,"onUpdate:modelValue":e[5]||(e[5]=n=>a.confirmPassword=n),type:"password",placeholder:"确认密码",maxlength:"50","show-password":""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(v))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"agreement"},{default:s(()=>[t(k,{modelValue:a.agreement,"onUpdate:modelValue":e[6]||(e[6]=n=>a.agreement=n)},{default:s(()=>[e[10]||(e[10]=m(" 我已阅读并同意 ",-1)),t(C,{type:"primary"},{default:s(()=>[...e[9]||(e[9]=[m("《代理服务协议》",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,null,{default:s(()=>[t(P,{type:"primary",loading:f.value,stLine truncated
@@ -0,0 +1 @@
import{_ as q,o as U,c as R,a as o,b as t,w as s,E as B,d as F,r as I,u as N,n as i,q as c,e as S,f as D,x as T,y as Z,z as j,s as v,A as L,B as M,C as W,t as $,i as m,v as G,h as H,j as J,D as p,k as K,l as w}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css */import{r as O}from"./index-C7doSj3W.js";const Q={class:"auth-container"},X={class:"auth-card"},Y={class:"auth-header"},ee={class:"auth-icon"},te={class:"password-strength"},se={class:"strength-text"},ae={class:"auth-footer"},re={__name:"AgentRegister",setup(le){const h=N(),f=w(!1),g=w(null),a=J({username:"",email:"",phone:"",inviteCode:"",password:"",confirmPassword:"",agreement:!1}),x={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:50,message:"用户名长度3-50位",trigger:"blur"}],email:[{required:!0,message:"请输入电子邮箱",trigger:"blur"},{type:"email",message:"邮箱格式不正确",trigger:"blur"}],phone:[{required:!0,validator:(l,e,r)=>{e?/^1[3-9]\d{9}$/.test(e)?r():r(new Error("手机号格式不正确")):r(new Error("请输入手机号码"))},trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:50,message:"密码长度6-50位",trigger:"blur"}],confirmPassword:[{required:!0,validator:(l,e,r)=>{e?e!==a.password?r(new Error("两次输入的密码不一致")):r():r(new Error("请再次输入密码"))},trigger:"blur"}],agreement:[{validator:(l,e,r)=>{e?r():r(new Error("请同意代理服务协议"))},trigger:"change"}]},_=p(()=>{const l=a.password;if(!l)return 0;let e=0;return l.length>=8&&e++,/[a-z]/.test(l)&&/[A-Z]/.test(l)&&e++,/\d/.test(l)&&e++,/[^a-zA-Z0-9]/.test(l)&&e++,e}),V=p(()=>({0:"",1:"weak",2:"medium",3:"medium",4:"strong"})[_.value]),b=p(()=>({0:"0%",1:"33%",2:"50%",3:"75%",4:"100%"})[_.value]),y=p(()=>({0:"未输入",1:"弱",2:"中",3:"良",4:"强"})[_.value]);async function E(){g.value&&await g.value.validate(async l=>{if(l){f.value=!0;try{await O.post("/auth/agent-register",{username:a.username,password:a.password,confirm_password:a.confirmPassword,email:a.email,phone:a.phone,invite_code:a.inviteCode}),K.success("注册成功,请登录"),h.push("/agent/login")}catch{}finally{f.value=!1}}})}return(l,e)=>{const r=B,u=D,d=S,C=G,k=$,P=H,z=F,A=I("router-link");return U(),R("div",Q,[e[14]||(e[14]=o("div",{class:"auth-bg"},[o("div",{class:"bg-circle c1"}),o("div",{class:"bg-circle c2"}),o("div",{class:"bg-circle c3"})],-1)),o("div",X,[o("div",Y,[o("div",ee,[t(r,{size:40,color:"#409EFF"},{default:s(()=>[t(i(c))]),_:1})]),e[7]||(e[7]=o("h2",{class:"auth-title"},"代理注册",-1)),e[8]||(e[8]=o("p",{class:"auth-subtitle"},"成为 CardAuth 合作伙伴",-1))]),t(z,{ref_key:"formRef",ref:g,model:a,rules:x,size:"large",class:"auth-form"},{default:s(()=>[t(d,{prop:"username"},{default:s(()=>[t(u,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=n=>a.username=n),placeholder:"用户名",maxlength:"50",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(c))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"email"},{default:s(()=>[t(u,{modelValue:a.email,"onUpdate:modelValue":e[1]||(e[1]=n=>a.email=n),placeholder:"电子邮箱",maxlength:"100",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(T))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"phone"},{default:s(()=>[t(u,{modelValue:a.phone,"onUpdate:modelValue":e[2]||(e[2]=n=>a.phone=n),placeholder:"手机号码",maxlength:"11",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(Z))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"inviteCode"},{default:s(()=>[t(u,{modelValue:a.inviteCode,"onUpdate:modelValue":e[3]||(e[3]=n=>a.inviteCode=n),placeholder:"邀请码(上级代理用户名,选填)",maxlength:"50",clearable:""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(j))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"password"},{default:s(()=>[t(u,{modelValue:a.password,"onUpdate:modelValue":e[4]||(e[4]=n=>a.password=n),type:"password",placeholder:"密码",maxlength:"50","show-password":""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(v))]),_:1})]),_:1},8,["modelValue"]),o("div",te,[o("div",{class:M(["strength-bar",V.value]),style:L({width:b.value})},null,6)]),o("div",se,"密码强度:"+W(y.value),1)]),_:1}),t(d,{prop:"confirmPassword"},{default:s(()=>[t(u,{modelValue:a.confirmPassword,"onUpdate:modelValue":e[5]||(e[5]=n=>a.confirmPassword=n),type:"password",placeholder:"确认密码",maxlength:"50","show-password":""},{prefix:s(()=>[t(r,null,{default:s(()=>[t(i(v))]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,{prop:"agreement"},{default:s(()=>[t(k,{modelValue:a.agreement,"onUpdate:modelValue":e[6]||(e[6]=n=>a.agreement=n)},{default:s(()=>[e[10]||(e[10]=m(" 我已阅读并同意 ",-1)),t(C,{type:"primary"},{default:s(()=>[...e[9]||(e[9]=[m("《代理服务协议》",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(d,null,{default:s(()=>[t(P,{type:"primary",loading:f.value,stLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Be,m as Ke,o as r,c as C,b as l,w as t,M as m,S as d,D as ie,l as i,a7 as Oe,a9 as Qe,K as He,a8 as We,a as s,E as Xe,n as o,aL as Ye,C as _,aM as Ge,aN as Je,T as Ze,ad as G,d as ea,e as aa,f as ta,g as la,ae as oa,af as sa,h as na,ag as ra,i as n,ah as pe,ai as ua,aj as ce,W as da,ak as ia,al as pa,X as ca,Y as ma,an as _a,ao as fa,H as J,V as Z,t as ga,ap as va,aq as ya,ar as ba,B as wa,a1 as ha,av as ka,aw as Ca,ax as me,ay as xa,aO as Va,k as w}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Fa}from"./user-dKBxTmfR.js";import{u as Ea,a as qa}from"./useColumnSettings-BGE5jzFS.js";import{r as k}from"./index-C3lsw5-G.js";const za={class:"agents-page"},Sa={key:0,class:"quota-row"},Ra={class:"stat-card stat-total"},Da={class:"stat-icon"},Ua={class:"stat-info"},ja={class:"stat-value"},Pa={class:"stat-card stat-used"},$a={class:"stat-icon"},La={class:"stat-info"},Ta={class:"stat-value"},Ia={class:"stat-card stat-active"},Ma={class:"stat-icon"},Na={class:"stat-info"},Aa={class:"stat-value"},Ba={class:"advanced-search"},Ka={class:"toolbar"},Oa={class:"toolbar-left"},Qa={class:"toolbar-right"},Ha={class:"column-settings"},Wa={class:"pagination-wrapper"},Xa={class:"reset-pwd-content"},Ya={class:"reset-pwd-tip"},Ga={key:0,class:"reset-pwd-result"},Ja={class:"new-pwd"},Za={__name:"Agents",setup(et){const _e=Fa(),fe=ie(()=>_e.user),x=ie(()=>{var u;return((u=fe.value)==null?void 0:u.role)==="admin"}),S=i(!0),ee=i([]),V=i(null),ae=i([]),P=i(!1),{list:ge,loading:ve,page:$,pageSize:L,total:ye,selectedRows:R,filters:F,tableMaxHeight:be,fetchData:T,handleSelectionChange:we,handleSortChange:he,handleSizeChange:ke,handleFilterChange:D,resetFilters:Ce,refreshData:xe}=Ea({apiUrl:"/agents",defaultFilters:{keyword:"",status:""},defaultPageSize:20}),{columnOptions:Ve,visibleColumns:g,saveColumnSettings:Fe}=qa("agents_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"用户名"},{prop:"nickname",label:"昵称"},{prop:"total_quota",label:"总额度"},{prop:"used_quota",label:"已使用"},{prop:"remain_quota",label:"剩余额度"},{prop:"status",label:"状态"},{prop:"last_login_at",label:"最后登录"},{prop:"created_at",label:"创建时间"}]);Ke(async()=>{if(x.value)T();else{te(),le();const u=await k.get("/projects/all");ee.value=u.data}});async function te(){try{V.value=(await k.get("/agents/my-quota")).data}catch{}}async function le(){P.value=!0;try{ae.value=(await k.get("/agents/quota-logs",{params:{page_size:50}})).data.list}finally{P.value=!1}}const E=i(!1),I=i(null),M=i(null),b=i({amount:0,remark:""}),Ee={amount:[{required:!0,message:"请输入金额",trigger:"blur"}]},N=i(!1);function oe(u){I.value=u,b.value={amount:0,remark:""},E.value=!0}async function qe(){M.value&&await M.value.validate(async u=>{var e;if(u){N.value=!0;try{await k.post("/agents/recharge",{agent_id:(e=I.value)==null?void 0:e.id,amount:b.value.amount,remark:b.value.remark}),w.success("充值成功"),E.value=!1,T()}catch{}finally{N.value=!1}}})}const U=i(!1),A=i(null),h=i(""),B=i(!1);function ze(u){A.value=u,h.value="",U.value=!0}async function Se(){var u;B.value=!0;try{const e=await k.post(`/agents/${A.value.id}/reset-password`);h.value=((u=e.data)==null?void 0:u.password)||"",w.success("密码已重置,请妥善保存新密码")}catch{}finally{B.value=!1}}function Re(){var f;const u=h.value;if(!u)return;const e=document.createElement("textarea");e.value=u,e.style.position="fixed",e.style.left="-9999px",e.style.top="-9999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),w.success("已复制到剪贴板")}catch{(f=navigator.clipboard)==null||f.writeText(u).then(()=>w.success("已复制到剪贴板")).catch(()=>w.error("复制失败,请手动复制"))}document.body.removeChild(e)}const se=i(null),v=i({project_id:"",card_type_id:""}),De={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],card_type_id:[{required:!0,message:"请选择套餐",trigger:"change"}]},K=i([]),O=i(!1);async function Ue(u){if(v.value.card_type_id="",!u){K.value=[];return}const e=await k.get(`/projects/${u}/card-types`);K.value=(e.data||[]).filter(f=>parseFloat(f.agent_cost)>0)}async function je(){await se.value.validate(async u=>{if(u){O.value=!0;try{const e=await k.post("/agents/authorize",v.value);w.success(`授权成功!卡密: ${e.data.card_key}`),te(),le(),v.value={project_id:"",card_type_id:""}}catch{}finally{O.value=!1}}})}function Pe(u){if(!R.value.length){w.warning("请先选择要导出的代理");return}const e=new URLSearchParams;e.set("ids",RLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Be,m as Ke,o as r,c as C,b as l,w as t,M as m,S as d,D as ie,l as i,a7 as Oe,a9 as Qe,K as He,a8 as We,a as s,E as Xe,n as o,aL as Ye,C as _,aM as Ge,aN as Je,T as Ze,ad as G,d as ea,e as aa,f as ta,g as la,ae as oa,af as sa,h as na,ag as ra,i as n,ah as pe,ai as ua,aj as ce,W as da,ak as ia,al as pa,X as ca,Y as ma,an as _a,ao as fa,H as J,V as Z,t as ga,ap as va,aq as ya,ar as ba,B as wa,a1 as ha,av as ka,aw as Ca,ax as me,ay as xa,aO as Va,k as w}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Fa}from"./user-CjwLSb7B.js";import{u as Ea,a as qa}from"./useColumnSettings-C0R5rnWU.js";import{r as k}from"./index-C7doSj3W.js";const za={class:"agents-page"},Sa={key:0,class:"quota-row"},Ra={class:"stat-card stat-total"},Da={class:"stat-icon"},Ua={class:"stat-info"},ja={class:"stat-value"},Pa={class:"stat-card stat-used"},$a={class:"stat-icon"},La={class:"stat-info"},Ta={class:"stat-value"},Ia={class:"stat-card stat-active"},Ma={class:"stat-icon"},Na={class:"stat-info"},Aa={class:"stat-value"},Ba={class:"advanced-search"},Ka={class:"toolbar"},Oa={class:"toolbar-left"},Qa={class:"toolbar-right"},Ha={class:"column-settings"},Wa={class:"pagination-wrapper"},Xa={class:"reset-pwd-content"},Ya={class:"reset-pwd-tip"},Ga={key:0,class:"reset-pwd-result"},Ja={class:"new-pwd"},Za={__name:"Agents",setup(et){const _e=Fa(),fe=ie(()=>_e.user),x=ie(()=>{var u;return((u=fe.value)==null?void 0:u.role)==="admin"}),S=i(!0),ee=i([]),V=i(null),ae=i([]),P=i(!1),{list:ge,loading:ve,page:$,pageSize:L,total:ye,selectedRows:R,filters:F,tableMaxHeight:be,fetchData:T,handleSelectionChange:we,handleSortChange:he,handleSizeChange:ke,handleFilterChange:D,resetFilters:Ce,refreshData:xe}=Ea({apiUrl:"/agents",defaultFilters:{keyword:"",status:""},defaultPageSize:20}),{columnOptions:Ve,visibleColumns:g,saveColumnSettings:Fe}=qa("agents_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"用户名"},{prop:"nickname",label:"昵称"},{prop:"total_quota",label:"总额度"},{prop:"used_quota",label:"已使用"},{prop:"remain_quota",label:"剩余额度"},{prop:"status",label:"状态"},{prop:"last_login_at",label:"最后登录"},{prop:"created_at",label:"创建时间"}]);Ke(async()=>{if(x.value)T();else{te(),le();const u=await k.get("/projects/all");ee.value=u.data}});async function te(){try{V.value=(await k.get("/agents/my-quota")).data}catch{}}async function le(){P.value=!0;try{ae.value=(await k.get("/agents/quota-logs",{params:{page_size:50}})).data.list}finally{P.value=!1}}const E=i(!1),I=i(null),M=i(null),b=i({amount:0,remark:""}),Ee={amount:[{required:!0,message:"请输入金额",trigger:"blur"}]},N=i(!1);function oe(u){I.value=u,b.value={amount:0,remark:""},E.value=!0}async function qe(){M.value&&await M.value.validate(async u=>{var e;if(u){N.value=!0;try{await k.post("/agents/recharge",{agent_id:(e=I.value)==null?void 0:e.id,amount:b.value.amount,remark:b.value.remark}),w.success("充值成功"),E.value=!1,T()}catch{}finally{N.value=!1}}})}const U=i(!1),A=i(null),h=i(""),B=i(!1);function ze(u){A.value=u,h.value="",U.value=!0}async function Se(){var u;B.value=!0;try{const e=await k.post(`/agents/${A.value.id}/reset-password`);h.value=((u=e.data)==null?void 0:u.password)||"",w.success("密码已重置,请妥善保存新密码")}catch{}finally{B.value=!1}}function Re(){var f;const u=h.value;if(!u)return;const e=document.createElement("textarea");e.value=u,e.style.position="fixed",e.style.left="-9999px",e.style.top="-9999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),w.success("已复制到剪贴板")}catch{(f=navigator.clipboard)==null||f.writeText(u).then(()=>w.success("已复制到剪贴板")).catch(()=>w.error("复制失败,请手动复制"))}document.body.removeChild(e)}const se=i(null),v=i({project_id:"",card_type_id:""}),De={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],card_type_id:[{required:!0,message:"请选择套餐",trigger:"change"}]},K=i([]),O=i(!1);async function Ue(u){if(v.value.card_type_id="",!u){K.value=[];return}const e=await k.get(`/projects/${u}/card-types`);K.value=(e.data||[]).filter(f=>parseFloat(f.agent_cost)>0)}async function je(){await se.value.validate(async u=>{if(u){O.value=!0;try{const e=await k.post("/agents/authorize",v.value);w.success(`授权成功!卡密: ${e.data.card_key}`),te(),le(),v.value={project_id:"",card_type_id:""}}catch{}finally{O.value=!1}}})}function Pe(u){if(!R.value.length){w.warning("请先选择要导出的代理");return}const e=new URLSearchParams;e.set("ids",RLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Be,m as Ke,o as r,c as C,b as l,w as t,M as m,S as d,D as ie,l as i,a7 as Oe,a9 as Qe,K as He,a8 as We,a as s,E as Xe,n as o,aL as Ye,C as _,aM as Ge,aN as Je,T as Ze,ad as G,d as ea,e as aa,f as ta,g as la,ae as oa,af as sa,h as na,ag as ra,i as n,ah as pe,ai as ua,aj as ce,W as da,ak as ia,al as pa,X as ca,Y as ma,an as _a,ao as fa,H as J,V as Z,t as ga,ap as va,aq as ya,ar as ba,B as wa,a1 as ha,av as ka,aw as Ca,ax as me,ay as xa,aO as Va,k as w}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Fa}from"./user-iqLWbJfU.js";import{u as Ea,a as qa}from"./useColumnSettings-Nw4I78Sz.js";import{r as k}from"./index-CxGbf_5w.js";const za={class:"agents-page"},Sa={key:0,class:"quota-row"},Ra={class:"stat-card stat-total"},Da={class:"stat-icon"},Ua={class:"stat-info"},ja={class:"stat-value"},Pa={class:"stat-card stat-used"},$a={class:"stat-icon"},La={class:"stat-info"},Ta={class:"stat-value"},Ia={class:"stat-card stat-active"},Ma={class:"stat-icon"},Na={class:"stat-info"},Aa={class:"stat-value"},Ba={class:"advanced-search"},Ka={class:"toolbar"},Oa={class:"toolbar-left"},Qa={class:"toolbar-right"},Ha={class:"column-settings"},Wa={class:"pagination-wrapper"},Xa={class:"reset-pwd-content"},Ya={class:"reset-pwd-tip"},Ga={key:0,class:"reset-pwd-result"},Ja={class:"new-pwd"},Za={__name:"Agents",setup(et){const _e=Fa(),fe=ie(()=>_e.user),x=ie(()=>{var u;return((u=fe.value)==null?void 0:u.role)==="admin"}),S=i(!0),ee=i([]),V=i(null),ae=i([]),P=i(!1),{list:ge,loading:ve,page:$,pageSize:L,total:ye,selectedRows:R,filters:F,tableMaxHeight:be,fetchData:T,handleSelectionChange:we,handleSortChange:he,handleSizeChange:ke,handleFilterChange:D,resetFilters:Ce,refreshData:xe}=Ea({apiUrl:"/agents",defaultFilters:{keyword:"",status:""},defaultPageSize:20}),{columnOptions:Ve,visibleColumns:g,saveColumnSettings:Fe}=qa("agents_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"用户名"},{prop:"nickname",label:"昵称"},{prop:"total_quota",label:"总额度"},{prop:"used_quota",label:"已使用"},{prop:"remain_quota",label:"剩余额度"},{prop:"status",label:"状态"},{prop:"last_login_at",label:"最后登录"},{prop:"created_at",label:"创建时间"}]);Ke(async()=>{if(x.value)T();else{te(),le();const u=await k.get("/projects/all");ee.value=u.data}});async function te(){try{V.value=(await k.get("/agents/my-quota")).data}catch{}}async function le(){P.value=!0;try{ae.value=(await k.get("/agents/quota-logs",{params:{page_size:50}})).data.list}finally{P.value=!1}}const E=i(!1),I=i(null),M=i(null),b=i({amount:0,remark:""}),Ee={amount:[{required:!0,message:"请输入金额",trigger:"blur"}]},N=i(!1);function oe(u){I.value=u,b.value={amount:0,remark:""},E.value=!0}async function qe(){M.value&&await M.value.validate(async u=>{var e;if(u){N.value=!0;try{await k.post("/agents/recharge",{agent_id:(e=I.value)==null?void 0:e.id,amount:b.value.amount,remark:b.value.remark}),w.success("充值成功"),E.value=!1,T()}catch{}finally{N.value=!1}}})}const U=i(!1),A=i(null),h=i(""),B=i(!1);function ze(u){A.value=u,h.value="",U.value=!0}async function Se(){var u;B.value=!0;try{const e=await k.post(`/agents/${A.value.id}/reset-password`);h.value=((u=e.data)==null?void 0:u.password)||"",w.success("密码已重置,请妥善保存新密码")}catch{}finally{B.value=!1}}function Re(){var f;const u=h.value;if(!u)return;const e=document.createElement("textarea");e.value=u,e.style.position="fixed",e.style.left="-9999px",e.style.top="-9999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),w.success("已复制到剪贴板")}catch{(f=navigator.clipboard)==null||f.writeText(u).then(()=>w.success("已复制到剪贴板")).catch(()=>w.error("复制失败,请手动复制"))}document.body.removeChild(e)}const se=i(null),v=i({project_id:"",card_type_id:""}),De={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],card_type_id:[{required:!0,message:"请选择套餐",trigger:"change"}]},K=i([]),O=i(!1);async function Ue(u){if(v.value.card_type_id="",!u){K.value=[];return}const e=await k.get(`/projects/${u}/card-types`);K.value=(e.data||[]).filter(f=>parseFloat(f.agent_cost)>0)}async function je(){await se.value.validate(async u=>{if(u){O.value=!0;try{const e=await k.post("/agents/authorize",v.value);w.success(`授权成功!卡密: ${e.data.card_key}`),te(),le(),v.value={project_id:"",card_type_id:""}}catch{}finally{O.value=!1}}})}function Pe(u){if(!R.value.length){w.warning("请先选择要导出的代理");return}const e=new URLSearchParams;e.set("ids",RLine truncated
@@ -0,0 +1 @@
import{_ as ut,m as ct,o as i,c as m,b as l,w as o,a7 as pt,a9 as _t,l as b,K as mt,a8 as vt,a as t,E as ft,n as s,s as gt,C as c,ab as yt,aB as bt,ac as kt,T as ht,ad as be,d as wt,e as xt,f as qt,g as le,ae as Ct,af as Vt,h as zt,ag as Qt,i as _,ah as ke,ai as Et,aj as St,W as Ut,ak as $t,al as jt,X as Dt,Y as Ft,am as Bt,an as Rt,ao as It,H as oe,V as se,S as g,t as Pt,ap as Mt,aq as Kt,ar as Tt,M as y,B as T,aH as Lt,au as At,av as Ht,aw as Nt,ax as he,aQ as Yt,ay as Ot,aE as Wt,D as S,k as U,az as we,j as ne}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Xt,a as Gt}from"./useColumnSettings-Nw4I78Sz.js";import{r as z}from"./index-CxGbf_5w.js";import{u as Jt}from"./user-iqLWbJfU.js";const j={list(k){return z.get("/authorizations",{params:k})},stats(){return z.get("/authorizations/stats")},detail(k){return z.get(`/authorizations/${k}`)},create(k){return z.post("/authorizations",k)},revoke(k,D){return z.put(`/authorizations/${k}/revoke`,{reason:D})},update(k,D){return z.put(`/authorizations/${k}`,D)},delete(k){return z.delete(`/authorizations/${k}`)}},Zt={class:"authorizations-page"},ea={class:"stat-card stat-total"},ta={class:"stat-icon"},aa={class:"stat-info"},la={class:"stat-value"},oa={class:"stat-card stat-active"},sa={class:"stat-icon"},na={class:"stat-info"},ia={class:"stat-value"},da={class:"stat-card stat-expired"},ra={class:"stat-icon"},ua={class:"stat-info"},ca={class:"stat-value"},pa={class:"stat-card stat-revoked"},_a={class:"stat-icon"},ma={class:"stat-info"},va={class:"stat-value"},fa={class:"advanced-search"},ga={class:"toolbar"},ya={class:"toolbar-left"},ba={class:"toolbar-right"},ka={class:"column-settings"},ha={class:"mono-text"},wa={class:"mono-text"},xa={key:0,class:"status-pill status-active"},qa={key:1,class:"status-pill status-expired"},Ca={key:2,class:"status-pill status-revoked"},Va={key:3,class:"status-pill status-unknown"},za={key:0,class:"text-success"},Qa={class:"pagination-wrapper"},Ea={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},Sa={class:"detail-header"},Ua={class:"detail-header-left"},$a={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ja={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Da={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Fa={class:"detail-header-title"},Ba={class:"detail-header-sub"},Ra={class:"detail-header-right"},Ia=["onClick"],Pa={key:0,class:"detail-body"},Ma={class:"detail-row-group"},Ka={class:"detail-row"},Ta={class:"detail-row-val mono"},La={class:"detail-row"},Aa={class:"detail-row-val mono"},Ha={class:"detail-row"},Na={class:"detail-row-val"},Ya={class:"detail-row-group"},Oa={class:"detail-row"},Wa={class:"detail-row-val"},Xa={class:"detail-row"},Ga={class:"detail-row-val"},Ja={key:0,class:"detail-tag green"},Za={key:1,class:"detail-tag blue"},el={class:"detail-row"},tl={class:"detail-row-val"},al={class:"detail-row"},ll={key:0,class:"detail-row-group"},ol={class:"detail-row"},sl={class:"detail-row-val text-red"},nl={key:0,class:"detail-row"},il={class:"detail-row-val"},dl={key:1,class:"detail-row-group"},rl={class:"detail-remark"},ul={__name:"Authorizations",setup(k){const D=Jt(),ie=S(()=>D.user),L=S(()=>{var n;return((n=ie.value)==null?void 0:n.role)==="agent"}),de=b([]),A=b(!0),{list:H,loading:xe,page:W,pageSize:X,total:re,selectedRows:C,filters:V,tableMaxHeight:qe,stats:N,fetchData:$,fetchStats:F,handleSelectionChange:Ce,handleSortChange:Ve,handleSizeChange:ze,handleFilterChange:Q,resetFilters:Qe,refreshData:Ee}=Xt({apiUrl:"/authorizations",statsUrl:"/authorizations/stats",defaultFilters:{bot_qq:"",contact_qq:"",status:"",card_key:""},defaultPageSize:20}),{columnOptions:Se,visibleColumns:q,saveColumnSettings:Ue}=Gt("authorizations_column_settings",[{prop:"id",label:"ID"},{prop:"bot_qq",label:"机器人QQ"},{prop:"contact_qq",label:"联系人QQ"},{prop:"contact_name",label:"联系人"},{prop:"card_key",label:"卡密",visible:!1},{prop:"project_name",label:"项目"},{prop:"duration_days",label:"有效天数"},{prop:"status",label:"状态"},{prop:"expire_time",label:"过期时间"},{prop:"authorized_at",label:"授权时间"}]),$e=S(()=>H.value.filter(n=>n.status==="active"&&!n.is_expired).length),je=S(()=>H.value.filter(n=>n.is_expiredLine truncated
@@ -0,0 +1 @@
import{_ as et,m as tt,o as n,c as p,b as l,w as o,a7 as at,a9 as lt,l as b,K as ot,a8 as st,a as t,E as nt,n as s,s as it,C as u,ab as dt,aB as rt,ac as ut,T as ct,ad as ve,d as pt,e as _t,f as vt,g as ee,ae as mt,af as ft,h as gt,ag as yt,i as _,ah as me,ai as kt,aj as bt,W as ht,ak as wt,al as xt,X as Ct,Y as qt,am as Vt,an as zt,ao as Qt,H as te,V as ae,S as v,t as St,ap as Et,aq as jt,ar as Ut,M as m,B as R,aH as $t,av as Dt,aw as Ft,ax as fe,aQ as Bt,D as z,k as E,az as ge,j as ye}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Rt,a as It}from"./useColumnSettings-C0R5rnWU.js";import{r as Q}from"./index-C7doSj3W.js";import{u as Pt}from"./user-CjwLSb7B.js";const I={list(h){return Q.get("/authorizations",{params:h})},stats(){return Q.get("/authorizations/stats")},detail(h){return Q.get(`/authorizations/${h}`)},create(h){return Q.post("/authorizations",h)},revoke(h,L){return Q.put(`/authorizations/${h}/revoke`,{reason:L})},delete(h){return Q.delete(`/authorizations/${h}`)}},Kt={class:"authorizations-page"},Mt={class:"stat-card stat-total"},Tt={class:"stat-icon"},At={class:"stat-info"},Lt={class:"stat-value"},Ht={class:"stat-card stat-active"},Nt={class:"stat-icon"},Ot={class:"stat-info"},Wt={class:"stat-value"},Xt={class:"stat-card stat-expired"},Yt={class:"stat-icon"},Gt={class:"stat-info"},Jt={class:"stat-value"},Zt={class:"stat-card stat-revoked"},ea={class:"stat-icon"},ta={class:"stat-info"},aa={class:"stat-value"},la={class:"advanced-search"},oa={class:"toolbar"},sa={class:"toolbar-left"},na={class:"toolbar-right"},ia={class:"column-settings"},da={class:"mono-text"},ra={class:"mono-text"},ua={key:0,class:"status-pill status-active"},ca={key:1,class:"status-pill status-expired"},pa={key:2,class:"status-pill status-revoked"},_a={key:3,class:"status-pill status-unknown"},va={key:0,class:"text-success"},ma={class:"pagination-wrapper"},fa={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},ga={class:"detail-header"},ya={class:"detail-header-left"},ka={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ba={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ha={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wa={class:"detail-header-title"},xa={class:"detail-header-sub"},Ca={class:"detail-header-right"},qa=["onClick"],Va={key:0,class:"detail-body"},za={class:"detail-row-group"},Qa={class:"detail-row"},Sa={class:"detail-row-val mono"},Ea={class:"detail-row"},ja={class:"detail-row-val mono"},Ua={class:"detail-row"},$a={class:"detail-row-val"},Da={class:"detail-row-group"},Fa={class:"detail-row"},Ba={class:"detail-row-val"},Ra={class:"detail-row"},Ia={class:"detail-row-val"},Pa={key:0,class:"detail-tag green"},Ka={key:1,class:"detail-tag blue"},Ma={class:"detail-row"},Ta={class:"detail-row-val"},Aa={class:"detail-row"},La={key:0,class:"detail-row-group"},Ha={class:"detail-row"},Na={class:"detail-row-val text-red"},Oa={key:0,class:"detail-row"},Wa={class:"detail-row-val"},Xa={key:1,class:"detail-row-group"},Ya={class:"detail-remark"},Ga={__name:"Authorizations",setup(h){const L=Pt(),le=z(()=>L.user),P=z(()=>{var i;return((i=le.value)==null?void 0:i.role)==="agent"}),oe=b([]),K=b(!0),{list:M,loading:ke,page:H,pageSize:N,total:se,selectedRows:x,filters:C,tableMaxHeight:be,stats:T,fetchData:j,fetchStats:A,handleSelectionChange:he,handleSortChange:we,handleSizeChange:xe,handleFilterChange:q,resetFilters:Ce,refreshData:qe}=Rt({apiUrl:"/authorizations",statsUrl:"/authorizations/stats",defaultFilters:{bot_qq:"",contact_qq:"",status:"",card_key:""},defaultPageSize:20}),{columnOptions:Ve,visibleColumns:w,saveColumnSettings:ze}=It("authorizations_column_settings",[{prop:"id",label:"ID"},{prop:"bot_qq",label:"机器人QQ"},{prop:"contact_qq",label:"联系人QQ"},{prop:"contact_name",label:"联系人"},{prop:"card_key",label:"卡密",visible:!1},{prop:"project_name",label:"项目"},{prop:"duration_days",label:"有效天数"},{prop:"status",label:"状态"},{prop:"expire_time",label:"过期时间"},{prop:"authorized_at",label:"授权时间"}]),Qe=z(()=>M.value.filter(i=>i.status==="active"&&!i.is_expired).length),Se=z(()=>M.value.filter(i=>i.is_expired).length),Ee=z(()=>M.value.filter(i=>i.status==="revoked").length),U=b(!1),O=b(!1),W=b(null),c=ye({project_id:"",card_type_id:"",bot_qq:"",contact_qq:"",cLine truncated
@@ -0,0 +1 @@
import{_ as et,m as tt,o as n,c as p,b as l,w as o,a7 as at,a9 as lt,l as b,K as ot,a8 as st,a as t,E as nt,n as s,s as it,C as u,ab as dt,aB as rt,ac as ut,T as ct,ad as ve,d as pt,e as _t,f as vt,g as ee,ae as mt,af as ft,h as gt,ag as yt,i as _,ah as me,ai as kt,aj as bt,W as ht,ak as wt,al as xt,X as Ct,Y as qt,am as Vt,an as zt,ao as Qt,H as te,V as ae,S as v,t as St,ap as Et,aq as jt,ar as Ut,M as m,B as R,aH as $t,av as Dt,aw as Ft,ax as fe,aQ as Bt,D as z,k as E,az as ge,j as ye}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Rt,a as It}from"./useColumnSettings-BGE5jzFS.js";import{r as Q}from"./index-C3lsw5-G.js";import{u as Pt}from"./user-dKBxTmfR.js";const I={list(h){return Q.get("/authorizations",{params:h})},stats(){return Q.get("/authorizations/stats")},detail(h){return Q.get(`/authorizations/${h}`)},create(h){return Q.post("/authorizations",h)},revoke(h,L){return Q.put(`/authorizations/${h}/revoke`,{reason:L})},delete(h){return Q.delete(`/authorizations/${h}`)}},Kt={class:"authorizations-page"},Mt={class:"stat-card stat-total"},Tt={class:"stat-icon"},At={class:"stat-info"},Lt={class:"stat-value"},Ht={class:"stat-card stat-active"},Nt={class:"stat-icon"},Ot={class:"stat-info"},Wt={class:"stat-value"},Xt={class:"stat-card stat-expired"},Yt={class:"stat-icon"},Gt={class:"stat-info"},Jt={class:"stat-value"},Zt={class:"stat-card stat-revoked"},ea={class:"stat-icon"},ta={class:"stat-info"},aa={class:"stat-value"},la={class:"advanced-search"},oa={class:"toolbar"},sa={class:"toolbar-left"},na={class:"toolbar-right"},ia={class:"column-settings"},da={class:"mono-text"},ra={class:"mono-text"},ua={key:0,class:"status-pill status-active"},ca={key:1,class:"status-pill status-expired"},pa={key:2,class:"status-pill status-revoked"},_a={key:3,class:"status-pill status-unknown"},va={key:0,class:"text-success"},ma={class:"pagination-wrapper"},fa={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},ga={class:"detail-header"},ya={class:"detail-header-left"},ka={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ba={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ha={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},wa={class:"detail-header-title"},xa={class:"detail-header-sub"},Ca={class:"detail-header-right"},qa=["onClick"],Va={key:0,class:"detail-body"},za={class:"detail-row-group"},Qa={class:"detail-row"},Sa={class:"detail-row-val mono"},Ea={class:"detail-row"},ja={class:"detail-row-val mono"},Ua={class:"detail-row"},$a={class:"detail-row-val"},Da={class:"detail-row-group"},Fa={class:"detail-row"},Ba={class:"detail-row-val"},Ra={class:"detail-row"},Ia={class:"detail-row-val"},Pa={key:0,class:"detail-tag green"},Ka={key:1,class:"detail-tag blue"},Ma={class:"detail-row"},Ta={class:"detail-row-val"},Aa={class:"detail-row"},La={key:0,class:"detail-row-group"},Ha={class:"detail-row"},Na={class:"detail-row-val text-red"},Oa={key:0,class:"detail-row"},Wa={class:"detail-row-val"},Xa={key:1,class:"detail-row-group"},Ya={class:"detail-remark"},Ga={__name:"Authorizations",setup(h){const L=Pt(),le=z(()=>L.user),P=z(()=>{var i;return((i=le.value)==null?void 0:i.role)==="agent"}),oe=b([]),K=b(!0),{list:M,loading:ke,page:H,pageSize:N,total:se,selectedRows:x,filters:C,tableMaxHeight:be,stats:T,fetchData:j,fetchStats:A,handleSelectionChange:he,handleSortChange:we,handleSizeChange:xe,handleFilterChange:q,resetFilters:Ce,refreshData:qe}=Rt({apiUrl:"/authorizations",statsUrl:"/authorizations/stats",defaultFilters:{bot_qq:"",contact_qq:"",status:"",card_key:""},defaultPageSize:20}),{columnOptions:Ve,visibleColumns:w,saveColumnSettings:ze}=It("authorizations_column_settings",[{prop:"id",label:"ID"},{prop:"bot_qq",label:"机器人QQ"},{prop:"contact_qq",label:"联系人QQ"},{prop:"contact_name",label:"联系人"},{prop:"card_key",label:"卡密",visible:!1},{prop:"project_name",label:"项目"},{prop:"duration_days",label:"有效天数"},{prop:"status",label:"状态"},{prop:"expire_time",label:"过期时间"},{prop:"authorized_at",label:"授权时间"}]),Qe=z(()=>M.value.filter(i=>i.status==="active"&&!i.is_expired).length),Se=z(()=>M.value.filter(i=>i.is_expired).length),Ee=z(()=>M.value.filter(i=>i.status==="revoked").length),U=b(!1),O=b(!1),W=b(null),c=ye({project_id:"",card_type_id:"",bot_qq:"",contact_qq:"",cLine truncated
@@ -0,0 +1 @@
.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:14px;--el-alert-title-with-description-font-size:16px;--el-alert-description-font-size:14px;--el-alert-close-font-size:16px;--el-alert-close-customed-font-size:14px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);background-color:var(--el-color-white);opacity:1;transition:opacity var(--el-transition-duration-fast);align-items:center;margin:0;display:flex;position:relative;overflow:hidden}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--primary{--el-alert-bg-color:var(--el-color-primary-light-9)}.el-alert--primary.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-primary)}.el-alert--primary.is-light .el-alert__description{color:var(--el-color-primary)}.el-alert--primary.is-dark{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{flex-direction:column;gap:4px;display:flex}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size);margin-right:8px}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size);margin-right:12px}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:24px}.el-alert__title.with-description{font-size:var(--el-alert-title-with-description-font-size)}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;cursor:pointer;position:absolute;top:12px;right:16px}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);line-height:24px;top:8px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.authorizations-page[data-v-e07068b9]{max-width:1600px;margin:0 auto}.stats-row[data-v-e07068b9]{margin-bottom:20px}.stat-card[data-v-e07068b9]{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:12px;background:#fff;border:1px solid #f0f0f4;transition:all .25s;cursor:default}.stat-card[data-v-e07068b9]:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000000d}.stat-icon[data-v-e07068b9]{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon[data-v-e07068b9] .el-icon{font-size:20px!important}.stat-total .stat-icon[data-v-e07068b9]{background:#eff6ff;color:#3b82f6}.stat-active .stat-icon[data-v-e07068b9]{background:#f0fdf4;color:#22c55e}.stat-expired .stat-icon[data-v-e07068b9]{background:#fef3c7;color:#f59e0b}.stat-revoked .stat-icon[data-v-e07068b9]{background:#fef2f2;color:#ef4444}.stat-info[data-v-e07068b9]{display:flex;flex-direction:column;min-width:0}.stat-value[data-v-e07068b9]{font-size:22px;font-weight:700;color:#1d1d1f;line-height:1.1;letter-spacing:-.3px}.stat-label[data-v-e07068b9]{font-size:12px;color:#9ca3af;margin-top:2px;font-weight:500}.main-card[data-v-e07068b9]{margin-bottom:20px;border-radius:16px;border:1px solid #f0f0f4}.main-card[data-v-e07068b9] .el-card__body{padding:24px}.advanced-search[data-v-e07068b9]{padding:20px 24px;background:#f8f9fb;border-radius:14px;margin-bottom:20px;border:1px solid #f0f0f4}.search-form[data-v-e07068b9]{display:flex;flex-wrap:wrap;gap:12px}.toolbar[data-v-e0Line truncated
@@ -0,0 +1 @@
import{_ as Te,o as u,c as A,b as t,w as a,a7 as Me,a9 as Le,l as _,K as Ye,a8 as je,a as i,E as qe,n as l,aP as He,C as b,ab as Ke,aB as Ne,T as Ae,ad as O,d as Oe,e as Ge,ae as We,af as Xe,f as Je,g as Qe,h as Ze,ag as et,i as r,ah as G,ai as tt,aj as at,am as W,W as lt,ak as ot,al as nt,X as st,Y as it,aF as X,an as rt,ao as dt,H as ut,V as pt,S as m,t as mt,ap as ct,aq as _t,ar as ft,M as y,a1 as gt,at as vt,au as bt,av as yt,aw as kt,ax as J,aS as ht,aT as wt,aE as Ct,a6 as xt,D as Q,az as Z,k as f,j as Vt}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Et,a as St}from"./useColumnSettings-Nw4I78Sz.js";import{r as V}from"./index-CxGbf_5w.js";const Dt={class:"blacklist-page"},Ut={class:"stat-card stat-total"},It={class:"stat-icon"},zt={class:"stat-info"},Ft={class:"stat-value"},$t={class:"stat-card stat-active"},Bt={class:"stat-icon"},Pt={class:"stat-info"},Rt={class:"stat-value"},Tt={class:"stat-card stat-expired"},Mt={class:"stat-icon"},Lt={class:"stat-info"},Yt={class:"stat-value"},jt={class:"advanced-search"},qt={class:"toolbar"},Ht={class:"toolbar-left"},Kt={class:"toolbar-right"},Nt={class:"column-settings"},At={class:"pagination-wrapper"},Ot={__name:"Blacklist",setup(Gt){const I=_(!0),$=_(!1),B=_(!1),C=_(!1),E=_(!1),x=_(!1),P=_(null),z=_(null),S=_(null),{list:R,loading:ee,page:T,pageSize:M,total:j,selectedRows:c,filters:k,tableMaxHeight:te,fetchData:D,handleSelectionChange:ae,handleSortChange:le,handleSizeChange:oe,handleFilterChange:U,resetFilters:ne,refreshData:se}=Et({apiUrl:"/blacklists",defaultFilters:{target_type:"",status:"",keyword:""},defaultPageSize:20}),{columnOptions:ie,visibleColumns:g,saveColumnSettings:re}=St("blacklist_column_settings",[{prop:"id",label:"ID"},{prop:"target_type",label:"类型"},{prop:"target_value",label:"目标值"},{prop:"status",label:"状态"},{prop:"expire_time",label:"过期时间"},{prop:"operator_name",label:"操作人"},{prop:"remark",label:"备注"},{prop:"created_at",label:"添加时间"}]),de=Q(()=>R.value.filter(n=>n.status===1).length),ue=Q(()=>R.value.filter(n=>n.expire_time&&new Date(n.expire_time)<new Date).length),s=Vt({id:null,target_type:"ip",target_value:"",expire_time:"",remark:""}),pe={target_type:[{required:!0,message:"请选择目标类型",trigger:"change"}],target_value:[{required:!0,message:"请输入目标值",trigger:"blur"}]};function me(){s.id=null,s.target_type="ip",s.target_value="",s.expire_time="",s.remark="",S.value&&S.value.resetFields()}function ce(){x.value=!1,me(),C.value=!0}function _e(n){x.value=!0,s.id=n.id,s.target_type=n.target_type,s.target_value=n.target_value,s.expire_time=n.expire_time||"",s.remark=n.remark||"",C.value=!0}async function fe(){S.value&&await S.value.validate(async n=>{if(n){$.value=!0;try{x.value?(await V.put(`/blacklists/${s.id}`,{expire_time:s.expire_time||null,remark:s.remark}),f.success("黑名单更新成功")):(await V.post("/blacklists",{target_type:s.target_type,target_value:s.target_value,expire_time:s.expire_time||null,remark:s.remark}),f.success("黑名单添加成功")),C.value=!1,D()}catch{}finally{$.value=!1}}})}async function ge(n,e){try{await V.put(`/blacklists/${n.id}`,{status:e}),f.success("状态更新成功")}catch{n.status=e===1?0:1}}async function ve(n){try{await Z.confirm("确定删除该黑名单吗?","提示",{type:"warning"}),await V.delete(`/blacklists/${n.id}`),f.success("删除成功"),D()}catch(e){e!=="cancel"&&console.error(e)}}async function be(){if(c.value.length)try{await Z.confirm(`确定删除选中的 ${c.value.length} 条黑名单吗?`,"警告",{type:"warning"});const n=c.value.map(e=>e.id);await V.post("/blacklists/batch-delete",{ids:n}),f.success("批量删除成功"),D()}catch(n){n!=="cancel"&&console.error(n)}}function ye(){if(!c.value.length){f.warning("请先选择要导出的记录");return}const n=new URLSearchParams;n.set("ids",c.value.map(h=>h.id).join(","));const e=localStorage.getItem("access_token");window.open(`/api/blacklists/export?${n.toString()}&token=${e}`,"_blank"),f.success("导出任务已启动")}function ke(n){z.value=n.raw}async function he(){if(!z.value){f.warning("请选择 CSV 文件");return}const n=new FormData;n.append("file",z.value),B.value=!0;try{const e=await V.post("/blacklists/import",n,{headers:{"Content-Type":"multipart/form-data"}});f.success(e.message||"导入完成"),E.value=!1,z.value=null,P.value&&P.value.clearFiles(),D()}catch{}finally{B.value=!1}}return(n,e)=>{const h=qe,L=je,Line truncated
@@ -0,0 +1 @@
import{_ as Te,o as u,c as A,b as t,w as a,a7 as Me,a9 as Le,l as _,K as Ye,a8 as je,a as i,E as qe,n as l,aP as He,C as b,ab as Ke,aB as Ne,T as Ae,ad as O,d as Oe,e as Ge,ae as We,af as Xe,f as Je,g as Qe,h as Ze,ag as et,i as r,ah as G,ai as tt,aj as at,am as W,W as lt,ak as ot,al as nt,X as st,Y as it,aF as X,an as rt,ao as dt,H as ut,V as pt,S as m,t as mt,ap as ct,aq as _t,ar as ft,M as y,a1 as gt,at as vt,au as bt,av as yt,aw as kt,ax as J,aS as ht,aT as wt,aE as Ct,a6 as xt,D as Q,az as Z,k as f,j as Vt}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Et,a as St}from"./useColumnSettings-C0R5rnWU.js";import{r as V}from"./index-C7doSj3W.js";const Dt={class:"blacklist-page"},Ut={class:"stat-card stat-total"},It={class:"stat-icon"},zt={class:"stat-info"},Ft={class:"stat-value"},$t={class:"stat-card stat-active"},Bt={class:"stat-icon"},Pt={class:"stat-info"},Rt={class:"stat-value"},Tt={class:"stat-card stat-expired"},Mt={class:"stat-icon"},Lt={class:"stat-info"},Yt={class:"stat-value"},jt={class:"advanced-search"},qt={class:"toolbar"},Ht={class:"toolbar-left"},Kt={class:"toolbar-right"},Nt={class:"column-settings"},At={class:"pagination-wrapper"},Ot={__name:"Blacklist",setup(Gt){const I=_(!0),$=_(!1),B=_(!1),C=_(!1),E=_(!1),x=_(!1),P=_(null),z=_(null),S=_(null),{list:R,loading:ee,page:T,pageSize:M,total:j,selectedRows:c,filters:k,tableMaxHeight:te,fetchData:D,handleSelectionChange:ae,handleSortChange:le,handleSizeChange:oe,handleFilterChange:U,resetFilters:ne,refreshData:se}=Et({apiUrl:"/blacklists",defaultFilters:{target_type:"",status:"",keyword:""},defaultPageSize:20}),{columnOptions:ie,visibleColumns:g,saveColumnSettings:re}=St("blacklist_column_settings",[{prop:"id",label:"ID"},{prop:"target_type",label:"类型"},{prop:"target_value",label:"目标值"},{prop:"status",label:"状态"},{prop:"expire_time",label:"过期时间"},{prop:"operator_name",label:"操作人"},{prop:"remark",label:"备注"},{prop:"created_at",label:"添加时间"}]),de=Q(()=>R.value.filter(n=>n.status===1).length),ue=Q(()=>R.value.filter(n=>n.expire_time&&new Date(n.expire_time)<new Date).length),s=Vt({id:null,target_type:"ip",target_value:"",expire_time:"",remark:""}),pe={target_type:[{required:!0,message:"请选择目标类型",trigger:"change"}],target_value:[{required:!0,message:"请输入目标值",trigger:"blur"}]};function me(){s.id=null,s.target_type="ip",s.target_value="",s.expire_time="",s.remark="",S.value&&S.value.resetFields()}function ce(){x.value=!1,me(),C.value=!0}function _e(n){x.value=!0,s.id=n.id,s.target_type=n.target_type,s.target_value=n.target_value,s.expire_time=n.expire_time||"",s.remark=n.remark||"",C.value=!0}async function fe(){S.value&&await S.value.validate(async n=>{if(n){$.value=!0;try{x.value?(await V.put(`/blacklists/${s.id}`,{expire_time:s.expire_time||null,remark:s.remark}),f.success("黑名单更新成功")):(await V.post("/blacklists",{target_type:s.target_type,target_value:s.target_value,expire_time:s.expire_time||null,remark:s.remark}),f.success("黑名单添加成功")),C.value=!1,D()}catch{}finally{$.value=!1}}})}async function ge(n,e){try{await V.put(`/blacklists/${n.id}`,{status:e}),f.success("状态更新成功")}catch{n.status=e===1?0:1}}async function ve(n){try{await Z.confirm("确定删除该黑名单吗?","提示",{type:"warning"}),await V.delete(`/blacklists/${n.id}`),f.success("删除成功"),D()}catch(e){e!=="cancel"&&console.error(e)}}async function be(){if(c.value.length)try{await Z.confirm(`确定删除选中的 ${c.value.length} 条黑名单吗?`,"警告",{type:"warning"});const n=c.value.map(e=>e.id);await V.post("/blacklists/batch-delete",{ids:n}),f.success("批量删除成功"),D()}catch(n){n!=="cancel"&&console.error(n)}}function ye(){if(!c.value.length){f.warning("请先选择要导出的记录");return}const n=new URLSearchParams;n.set("ids",c.value.map(h=>h.id).join(","));const e=localStorage.getItem("access_token");window.open(`/api/blacklists/export?${n.toString()}&token=${e}`,"_blank"),f.success("导出任务已启动")}function ke(n){z.value=n.raw}async function he(){if(!z.value){f.warning("请选择 CSV 文件");return}const n=new FormData;n.append("file",z.value),B.value=!0;try{const e=await V.post("/blacklists/import",n,{headers:{"Content-Type":"multipart/form-data"}});f.success(e.message||"导入完成"),E.value=!1,z.value=null,P.value&&P.value.clearFiles(),D()}catch{}finally{B.value=!1}}return(n,e)=>{const h=qe,L=je,Line truncated
@@ -0,0 +1 @@
import{_ as Te,o as u,c as A,b as t,w as a,a7 as Me,a9 as Le,l as _,K as Ye,a8 as je,a as i,E as qe,n as l,aP as He,C as b,ab as Ke,aB as Ne,T as Ae,ad as O,d as Oe,e as Ge,ae as We,af as Xe,f as Je,g as Qe,h as Ze,ag as et,i as r,ah as G,ai as tt,aj as at,am as W,W as lt,ak as ot,al as nt,X as st,Y as it,aF as X,an as rt,ao as dt,H as ut,V as pt,S as m,t as mt,ap as ct,aq as _t,ar as ft,M as y,a1 as gt,at as vt,au as bt,av as yt,aw as kt,ax as J,aS as ht,aT as wt,aE as Ct,a6 as xt,D as Q,az as Z,k as f,j as Vt}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Et,a as St}from"./useColumnSettings-BGE5jzFS.js";import{r as V}from"./index-C3lsw5-G.js";const Dt={class:"blacklist-page"},Ut={class:"stat-card stat-total"},It={class:"stat-icon"},zt={class:"stat-info"},Ft={class:"stat-value"},$t={class:"stat-card stat-active"},Bt={class:"stat-icon"},Pt={class:"stat-info"},Rt={class:"stat-value"},Tt={class:"stat-card stat-expired"},Mt={class:"stat-icon"},Lt={class:"stat-info"},Yt={class:"stat-value"},jt={class:"advanced-search"},qt={class:"toolbar"},Ht={class:"toolbar-left"},Kt={class:"toolbar-right"},Nt={class:"column-settings"},At={class:"pagination-wrapper"},Ot={__name:"Blacklist",setup(Gt){const I=_(!0),$=_(!1),B=_(!1),C=_(!1),E=_(!1),x=_(!1),P=_(null),z=_(null),S=_(null),{list:R,loading:ee,page:T,pageSize:M,total:j,selectedRows:c,filters:k,tableMaxHeight:te,fetchData:D,handleSelectionChange:ae,handleSortChange:le,handleSizeChange:oe,handleFilterChange:U,resetFilters:ne,refreshData:se}=Et({apiUrl:"/blacklists",defaultFilters:{target_type:"",status:"",keyword:""},defaultPageSize:20}),{columnOptions:ie,visibleColumns:g,saveColumnSettings:re}=St("blacklist_column_settings",[{prop:"id",label:"ID"},{prop:"target_type",label:"类型"},{prop:"target_value",label:"目标值"},{prop:"status",label:"状态"},{prop:"expire_time",label:"过期时间"},{prop:"operator_name",label:"操作人"},{prop:"remark",label:"备注"},{prop:"created_at",label:"添加时间"}]),de=Q(()=>R.value.filter(n=>n.status===1).length),ue=Q(()=>R.value.filter(n=>n.expire_time&&new Date(n.expire_time)<new Date).length),s=Vt({id:null,target_type:"ip",target_value:"",expire_time:"",remark:""}),pe={target_type:[{required:!0,message:"请选择目标类型",trigger:"change"}],target_value:[{required:!0,message:"请输入目标值",trigger:"blur"}]};function me(){s.id=null,s.target_type="ip",s.target_value="",s.expire_time="",s.remark="",S.value&&S.value.resetFields()}function ce(){x.value=!1,me(),C.value=!0}function _e(n){x.value=!0,s.id=n.id,s.target_type=n.target_type,s.target_value=n.target_value,s.expire_time=n.expire_time||"",s.remark=n.remark||"",C.value=!0}async function fe(){S.value&&await S.value.validate(async n=>{if(n){$.value=!0;try{x.value?(await V.put(`/blacklists/${s.id}`,{expire_time:s.expire_time||null,remark:s.remark}),f.success("黑名单更新成功")):(await V.post("/blacklists",{target_type:s.target_type,target_value:s.target_value,expire_time:s.expire_time||null,remark:s.remark}),f.success("黑名单添加成功")),C.value=!1,D()}catch{}finally{$.value=!1}}})}async function ge(n,e){try{await V.put(`/blacklists/${n.id}`,{status:e}),f.success("状态更新成功")}catch{n.status=e===1?0:1}}async function ve(n){try{await Z.confirm("确定删除该黑名单吗?","提示",{type:"warning"}),await V.delete(`/blacklists/${n.id}`),f.success("删除成功"),D()}catch(e){e!=="cancel"&&console.error(e)}}async function be(){if(c.value.length)try{await Z.confirm(`确定删除选中的 ${c.value.length} 条黑名单吗?`,"警告",{type:"warning"});const n=c.value.map(e=>e.id);await V.post("/blacklists/batch-delete",{ids:n}),f.success("批量删除成功"),D()}catch(n){n!=="cancel"&&console.error(n)}}function ye(){if(!c.value.length){f.warning("请先选择要导出的记录");return}const n=new URLSearchParams;n.set("ids",c.value.map(h=>h.id).join(","));const e=localStorage.getItem("access_token");window.open(`/api/blacklists/export?${n.toString()}&token=${e}`,"_blank"),f.success("导出任务已启动")}function ke(n){z.value=n.raw}async function he(){if(!z.value){f.warning("请选择 CSV 文件");return}const n=new FormData;n.append("file",z.value),B.value=!0;try{const e=await V.post("/blacklists/import",n,{headers:{"Content-Type":"multipart/form-data"}});f.success(e.message||"导入完成"),E.value=!1,z.value=null,P.value&&P.value.clearFiles(),D()}catch{}finally{B.value=!1}}return(n,e)=>{const h=qe,L=je,Line truncated
@@ -0,0 +1 @@
.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light);outline:none;display:inline-block;position:relative}.el-radio-button__inner{white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));outline:var(--el-border);line-height:1;font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;user-select:none;font-size:var(--el-font-size-base);border-radius:0;margin:0;padding:8px 15px;display:inline-block;position:relative}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio{opacity:0;z-index:-1;outline:none;position:absolute}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{font-size:var(--el-font-size-base);border-radius:0;padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;padding:5px 11px;font-size:12px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.blacklist-page[data-v-147e38c2]{max-width:1600px;margin:0 auto}.stats-row[data-v-147e38c2]{margin-bottom:20px}.stat-card[data-v-147e38c2]{display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:12px;background:#fff;border:1px solid #f0f0f4;transition:all .25s;cursor:default}.stat-card[data-v-147e38c2]:hover{transform:translateY(-2px);box-shadow:0 4px 16px #0000000d}.stat-icon[data-v-147e38c2]{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon[data-v-147e38c2] .el-icon{font-size:20px!important}.stat-total .stat-icon[data-v-147e38c2]{background:#eff6ff;color:#3b82f6}.stat-active .stat-icon[data-v-147e38c2]{background:#f0fdf4;color:#22c55e}.stat-expired .stat-icon[data-v-147e38c2]{background:#fef2f2;color:#ef4444}.stat-info[data-v-147e38c2]{display:flex;flex-direction:column;min-width:0}.stat-value[data-v-147e38c2]{font-size:22px;font-weight:700;color:#1d1d1f;line-height:1.1;letter-spacing:-.3px}.stat-label[data-v-147e38c2]{font-size:12px;color:#9ca3af;margin-top:2px;font-weight:500}.main-card[data-v-147e38c2]{margin-bottom:20px;border-radius:16px;border:1px solid #f0f0f4}.main-card[data-v-147e38c2] .el-card__body{padding:24px}.advanced-search[data-v-147e38c2]{padding:20px 24px;background:#f8f9fb;border-radius:14px;margin-bottom:20px;border:1px solid #f0f0f4}.search-form[data-v-147e38c2]{display:flex;flex-wrap:wrap;gap:12px}.toolbar[data-v-147e38c2]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px;padding:0}.toolbar-left[data-v-147e38c2],.toolbar-right[data-v-147e38c2]{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar[data-v-147e38c2] .el-button{border-radius:10px;font-weight:500}.data-table[data-v-147e38c2]{border-radius:12px;overflow:Line truncated
+2
View File
@@ -0,0 +1,2 @@
import{_ as _t,m as mt,F as ft,G as yt,o as n,c as _,b as l,w as s,l as d,j as gt,a7 as bt,a9 as wt,K as ht,a8 as kt,a,E as xt,n as m,aC as Ct,C as r,ab as Vt,ac as St,aD as jt,T as Et,ad as xe,d as $t,e as Dt,ae as zt,H as B,V as T,S as f,af as Ft,f as Ut,g as It,aE as qt,h as Bt,ag as Tt,i as c,ah as Ce,ai as Mt,aj as Rt,aF as Ve,W as Nt,ak as Ot,al as Pt,X as Lt,Y as Ht,am as Qt,aG as Jt,an as Yt,ao as Gt,t as At,ap as Kt,aq as Wt,ar as Xt,M as b,as as Se,B as J,aH as Zt,av as ea,aw as ta,ay as aa,a6 as la,k as V,az as je,D as q}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as S}from"./index-C3lsw5-G.js";import{u as sa}from"./user-dKBxTmfR.js";const oa={class:"cards-page"},na={class:"stat-card stat-total"},da={class:"stat-icon"},ia={class:"stat-info"},ra={class:"stat-value"},ua={class:"stat-card stat-unused"},ca={class:"stat-icon"},pa={class:"stat-info"},va={class:"stat-value"},_a={class:"stat-card stat-used"},ma={class:"stat-icon"},fa={class:"stat-info"},ya={class:"stat-value"},ga={class:"stat-card stat-disabled"},ba={class:"stat-icon"},wa={class:"stat-info"},ha={class:"stat-value"},ka={class:"advanced-search"},xa={class:"toolbar"},Ca={class:"toolbar-left"},Va={class:"toolbar-right"},Sa={class:"column-settings"},ja={class:"card-key-cell"},Ea={class:"card-key-text"},$a={key:0,class:"mono-text"},Da={key:1,class:"text-muted"},za={key:0,class:"text-success"},Fa={class:"pagination-wrapper"},Ua={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},Ia={class:"detail-header"},qa={class:"detail-header-left"},Ba={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ta={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ma={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ra={class:"detail-header-title"},Na={class:"detail-header-sub"},Oa={class:"detail-header-right"},Pa=["onClick"],La={key:0,class:"detail-body"},Ha={class:"detail-row-group"},Qa={class:"detail-row"},Ja={class:"detail-row-val mono"},Ya={class:"detail-row",style:{"justify-content":"flex-end","border-top":"none","padding-top":"4px"}},Ga={class:"detail-row-group"},Aa={class:"detail-row"},Ka={class:"detail-row-val"},Wa={class:"detail-row"},Xa={class:"detail-row-val"},Za={class:"detail-row"},el={class:"detail-row-val"},tl={key:0,class:"detail-tag green"},al={key:1,class:"detail-tag blue"},ll={class:"detail-row"},sl={class:"detail-row-val"},ol={class:"detail-row"},nl={class:"detail-row-val"},dl={key:0,class:"detail-row-group"},il={class:"detail-row"},rl={class:"detail-row-val mono"},ul={class:"detail-row"},cl={class:"detail-row-val"},pl={key:1,class:"detail-row-group"},vl={class:"detail-remark"},_l={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},ml={__name:"Cards",setup(fl){const Ee=sa(),$e=q(()=>Ee.user),$=q(()=>{var o;return((o=$e.value)==null?void 0:o.role)==="agent"}),ce=d([]),te=d(!1),M=d(1),Y=d(20),pe=d(0),R=d(null),G=d([]),w=d([]),ae=d([]),A=d(!0),De=d(null),ve=d(500),v=gt({project_id:"",status:"",keyword:"",start_date:"",end_date:""}),K=d([{prop:"id",label:"ID",visible:!0},{prop:"card_key",label:"卡密",visible:!0},{prop:"project_name",label:"项目",visible:!0},{prop:"card_type_name",label:"类型",visible:!0},{prop:"bot_qq",label:"机器人QQ",visible:!0},{prop:"duration_days",label:"有效天数",visible:!0},{prop:"status",label:"状态",visible:!0},{prop:"expire_time",label:"过期时间",visible:!0},{prop:"created_at",label:"生成时间",visible:!0}]),j=q(()=>{const o={};return K.value.forEach(e=>{o[e.prop]=e.visible}),o}),N=d(!1),le=d(null),g=d({project_id:"",card_type_id:"",count:10,remark:""}),ze={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],card_type_id:[{required:!0,message:"请选择套餐",trigger:"change"}],count:[{required:!0,message:"请输入数量",trigger:"blur"}]},se=d(!1),O=d([]),_e=q(()=>{if(!$.value)return 0;const o=O.value.find(i=>i.id===g.value.card_type_id);return(o&&parseFloat(o.agent_cost)||0)*(g.value.count||0)}),oe=d(!1),u=d(null),me=q(()=>u.value?u.value.status==="used"?"used":u.value.status==="disabled"?"revoked":"unused":""),Fe=q(()=>u.value?u.value.status==="used"?"已使用":u.value.status==="disabled"?"已禁用":"未使用":""),P=d(!1),ne=d(!1),L=dLine truncated
`).filter(k=>k.trim());W.value=Math.max(0,ue.length-1)},e.readAsText(o.raw)}function Ye(o){E.value="",H.value=[],o&&S.get(`/projects/${o}/card-types`).then(e=>{let i=e.data||[];$.value&&(i=i.filter(h=>parseFloat(h.agent_cost)>0)),H.value=i}).catch(()=>{})}function Ge(){V.warning("只能上传一个文件")}async function Ae(){if(!(!L.value||!D.value||!E.value)){ne.value=!0;try{const o=new FormData;o.append("file",L.value),o.append("project_id",D.value),o.append("card_type_id",E.value);const e=await S.post("/cards/import",o,{headers:{"Content-Type":"multipart/form-data"}});V.success(e.message||"导入成功"),P.value=!1,x(),z()}catch(o){console.error("导入失败:",o)}finally{ne.value=!1}}}async function Ke(){if(w.value.length)try{await je.confirm(`确定要删除选中的 ${w.value.length} 条卡密吗?此操作不可恢复!`,"警告",{type:"warning",confirmButtonText:"确定删除",cancelButtonText:"取消"});const o=w.value.map(e=>e.id);await S.post("/cards/batch-delete",{ids:o}),V.success("批量删除成功"),x(),z()}catch(o){o!=="cancel"&&console.error("批量删除失败:",o)}}function We(){w.value.length&&(X.value="unused",Q.value=!0)}async function Xe(){ie.value=!0;try{const o=w.value.map(e=>e.id);await S.post("/cards/batch-status",{ids:o,status:X.value}),V.success("批量状态更新成功"),Q.value=!1,x(),z()}catch(o){console.error("批量状态更新失败:",o)}finally{ie.value=!1}}function Ze(){localStorage.setItem("cards_column_settings",JSON.stringify(K.value))}function et(){const o=localStorage.getItem("cards_column_settings");if(o)try{const e=JSON.parse(o);K.value=e}catch(e){console.error("加载列设置失败:",e)}}function tt(){localStorage.setItem("cards_filter_memory",JSON.stringify(v))}function at(){const o=localStorage.getItem("cards_filter_memory");if(o)try{const e=JSON.parse(o);Object.assign(v,e)}catch(e){console.error("加载筛选记忆失败:",e)}}function ye(o){navigator.clipboard.writeText(o).then(()=>{V.success("已复制到剪贴板")}).catch(()=>{V.error("复制失败")})}function re(){const o=window.innerHeight;ve.value=o-450}return(o,e)=>{const i=xt,h=kt,ue=bt,k=Ft,U=zt,y=Dt,ge=Ut,lt=qt,p=Bt,Z=$t,be=Ht,st=Lt,ot=Nt,nt=At,dt=Gt,C=Xt,it=Wt,rt=ta,ut=wt,ct=aa,ee=ht,pt=la,vt=ea;return n(),_("div",oa,[l(ue,{gutter:20,class:"stats-row"},{default:s(()=>[l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",na,[a("div",da,[l(i,{size:32},{default:s(()=>[l(m(Ct))]),_:1})]),a("div",ia,[a("div",ra,r(((t=R.value)==null?void 0:t.total)||0),1),e[22]||(e[22]=a("div",{class:"stat-label"},"总卡密数",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",ua,[a("div",ca,[l(i,{size:32},{default:s(()=>[l(m(Vt))]),_:1})]),a("div",pa,[a("div",va,r(((t=R.value)==null?void 0:t.unused)||0),1),e[23]||(e[23]=a("div",{class:"stat-label"},"未使用",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",_a,[a("div",ma,[l(i,{size:32},{default:s(()=>[l(m(St))]),_:1})]),a("div",fa,[a("div",ya,r(((t=R.value)==null?void 0:t.used)||0),1),e[24]||(e[24]=a("div",{class:"stat-label"},"已使用",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",ga,[a("div",ba,[l(i,{size:32},{default:s(()=>[l(m(jt))]),_:1})]),a("div",wa,[a("div",ha,r(((t=R.value)==null?void 0:t.disabled)||0),1),e[25]||(e[25]=a("div",{class:"stat-label"},"已禁用",-1))])])]}),_:1})]),_:1}),l(ut,{shadow:"never",class:"main-card"},{default:s(()=>[l(Et,{name:"expand"},{default:s(()=>[xe(a("div",ka,[l(Z,{inline:!0,model:v,class:"search-form","label-width":"80px"},{default:s(()=>[l(y,{label:"项目"},{default:s(()=>[l(U,{modelValue:v.project_id,"onUpdate:modelValue":e[0]||(e[0]=t=>v.project_id=t),placeholder:"全部项目",clearable:"",style:{width:"180px"},onChange:F},{default:s(()=>[(n(!0),_(B,null,T(G.value,t=>(n(),f(k,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"状态"},{default:s(()=>[l(U,{modelValue:v.status,"onUpdate:modelValue":e[1]||(e[1]=t=>v.status=t),placeholder:"全部状态",clearable:"",style:{width:"140px"},onChange:F},{default:s(()=>[l(k,{label:"未使用",value:"unused"}),l(k,{label:"已使用",value:"used"}),l(k,{label:"已禁用",value:"disabled"})]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"卡密"},{default:s(()=>[l(ge,{modelValue:v.keyword,"onUpdate:modelValue":e[2]||(e[2]=t=>v.keyword=t),placeholder:"输入卡密搜索",clearable:"",style:{width:"200px"},onKeyup:It(F,["enter"]),onClear:F},null,8,["modelValue"])]),_:1}),l(y,{label:"生成时间"},{default:s(()=>[l(lt,{modelValue:ae.value,"onUpdate:modelValue":e[3]||(e[3]=t=>ae.value=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"},onChange:Me},null,8,["modelValue"])]),_:1}),l(y,null,{default:s(()=>[l(p,{type:"primary",onClick:F,icon:m(Tt)},{default:s(()=>[...e[26]||(e[26]=[c("搜索",-1)])]),_:1 Line truncated
+2
View File
@@ -0,0 +1,2 @@
import{_ as _t,m as mt,F as ft,G as yt,o as n,c as _,b as l,w as s,l as d,j as gt,a7 as bt,a9 as wt,K as ht,a8 as kt,a,E as xt,n as m,aC as Ct,C as r,ab as Vt,ac as St,aD as jt,T as Et,ad as xe,d as $t,e as Dt,ae as zt,H as B,V as T,S as f,af as Ft,f as Ut,g as It,aE as qt,h as Bt,ag as Tt,i as c,ah as Ce,ai as Mt,aj as Rt,aF as Ve,W as Nt,ak as Ot,al as Pt,X as Lt,Y as Ht,am as Qt,aG as Jt,an as Yt,ao as Gt,t as At,ap as Kt,aq as Wt,ar as Xt,M as b,as as Se,B as J,aH as Zt,av as ea,aw as ta,ay as aa,a6 as la,k as V,az as je,D as q}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as S}from"./index-C7doSj3W.js";import{u as sa}from"./user-CjwLSb7B.js";const oa={class:"cards-page"},na={class:"stat-card stat-total"},da={class:"stat-icon"},ia={class:"stat-info"},ra={class:"stat-value"},ua={class:"stat-card stat-unused"},ca={class:"stat-icon"},pa={class:"stat-info"},va={class:"stat-value"},_a={class:"stat-card stat-used"},ma={class:"stat-icon"},fa={class:"stat-info"},ya={class:"stat-value"},ga={class:"stat-card stat-disabled"},ba={class:"stat-icon"},wa={class:"stat-info"},ha={class:"stat-value"},ka={class:"advanced-search"},xa={class:"toolbar"},Ca={class:"toolbar-left"},Va={class:"toolbar-right"},Sa={class:"column-settings"},ja={class:"card-key-cell"},Ea={class:"card-key-text"},$a={key:0,class:"mono-text"},Da={key:1,class:"text-muted"},za={key:0,class:"text-success"},Fa={class:"pagination-wrapper"},Ua={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},Ia={class:"detail-header"},qa={class:"detail-header-left"},Ba={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ta={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ma={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ra={class:"detail-header-title"},Na={class:"detail-header-sub"},Oa={class:"detail-header-right"},Pa=["onClick"],La={key:0,class:"detail-body"},Ha={class:"detail-row-group"},Qa={class:"detail-row"},Ja={class:"detail-row-val mono"},Ya={class:"detail-row",style:{"justify-content":"flex-end","border-top":"none","padding-top":"4px"}},Ga={class:"detail-row-group"},Aa={class:"detail-row"},Ka={class:"detail-row-val"},Wa={class:"detail-row"},Xa={class:"detail-row-val"},Za={class:"detail-row"},el={class:"detail-row-val"},tl={key:0,class:"detail-tag green"},al={key:1,class:"detail-tag blue"},ll={class:"detail-row"},sl={class:"detail-row-val"},ol={class:"detail-row"},nl={class:"detail-row-val"},dl={key:0,class:"detail-row-group"},il={class:"detail-row"},rl={class:"detail-row-val mono"},ul={class:"detail-row"},cl={class:"detail-row-val"},pl={key:1,class:"detail-row-group"},vl={class:"detail-remark"},_l={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},ml={__name:"Cards",setup(fl){const Ee=sa(),$e=q(()=>Ee.user),$=q(()=>{var o;return((o=$e.value)==null?void 0:o.role)==="agent"}),ce=d([]),te=d(!1),M=d(1),Y=d(20),pe=d(0),R=d(null),G=d([]),w=d([]),ae=d([]),A=d(!0),De=d(null),ve=d(500),v=gt({project_id:"",status:"",keyword:"",start_date:"",end_date:""}),K=d([{prop:"id",label:"ID",visible:!0},{prop:"card_key",label:"卡密",visible:!0},{prop:"project_name",label:"项目",visible:!0},{prop:"card_type_name",label:"类型",visible:!0},{prop:"bot_qq",label:"机器人QQ",visible:!0},{prop:"duration_days",label:"有效天数",visible:!0},{prop:"status",label:"状态",visible:!0},{prop:"expire_time",label:"过期时间",visible:!0},{prop:"created_at",label:"生成时间",visible:!0}]),j=q(()=>{const o={};return K.value.forEach(e=>{o[e.prop]=e.visible}),o}),N=d(!1),le=d(null),g=d({project_id:"",card_type_id:"",count:10,remark:""}),ze={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],card_type_id:[{required:!0,message:"请选择套餐",trigger:"change"}],count:[{required:!0,message:"请输入数量",trigger:"blur"}]},se=d(!1),O=d([]),_e=q(()=>{if(!$.value)return 0;const o=O.value.find(i=>i.id===g.value.card_type_id);return(o&&parseFloat(o.agent_cost)||0)*(g.value.count||0)}),oe=d(!1),u=d(null),me=q(()=>u.value?u.value.status==="used"?"used":u.value.status==="disabled"?"revoked":"unused":""),Fe=q(()=>u.value?u.value.status==="used"?"已使用":u.value.status==="disabled"?"已禁用":"未使用":""),P=d(!1),ne=d(!1),L=dLine truncated
`).filter(k=>k.trim());W.value=Math.max(0,ue.length-1)},e.readAsText(o.raw)}function Ye(o){E.value="",H.value=[],o&&S.get(`/projects/${o}/card-types`).then(e=>{let i=e.data||[];$.value&&(i=i.filter(h=>parseFloat(h.agent_cost)>0)),H.value=i}).catch(()=>{})}function Ge(){V.warning("只能上传一个文件")}async function Ae(){if(!(!L.value||!D.value||!E.value)){ne.value=!0;try{const o=new FormData;o.append("file",L.value),o.append("project_id",D.value),o.append("card_type_id",E.value);const e=await S.post("/cards/import",o,{headers:{"Content-Type":"multipart/form-data"}});V.success(e.message||"导入成功"),P.value=!1,x(),z()}catch(o){console.error("导入失败:",o)}finally{ne.value=!1}}}async function Ke(){if(w.value.length)try{await je.confirm(`确定要删除选中的 ${w.value.length} 条卡密吗?此操作不可恢复!`,"警告",{type:"warning",confirmButtonText:"确定删除",cancelButtonText:"取消"});const o=w.value.map(e=>e.id);await S.post("/cards/batch-delete",{ids:o}),V.success("批量删除成功"),x(),z()}catch(o){o!=="cancel"&&console.error("批量删除失败:",o)}}function We(){w.value.length&&(X.value="unused",Q.value=!0)}async function Xe(){ie.value=!0;try{const o=w.value.map(e=>e.id);await S.post("/cards/batch-status",{ids:o,status:X.value}),V.success("批量状态更新成功"),Q.value=!1,x(),z()}catch(o){console.error("批量状态更新失败:",o)}finally{ie.value=!1}}function Ze(){localStorage.setItem("cards_column_settings",JSON.stringify(K.value))}function et(){const o=localStorage.getItem("cards_column_settings");if(o)try{const e=JSON.parse(o);K.value=e}catch(e){console.error("加载列设置失败:",e)}}function tt(){localStorage.setItem("cards_filter_memory",JSON.stringify(v))}function at(){const o=localStorage.getItem("cards_filter_memory");if(o)try{const e=JSON.parse(o);Object.assign(v,e)}catch(e){console.error("加载筛选记忆失败:",e)}}function ye(o){navigator.clipboard.writeText(o).then(()=>{V.success("已复制到剪贴板")}).catch(()=>{V.error("复制失败")})}function re(){const o=window.innerHeight;ve.value=o-450}return(o,e)=>{const i=xt,h=kt,ue=bt,k=Ft,U=zt,y=Dt,ge=Ut,lt=qt,p=Bt,Z=$t,be=Ht,st=Lt,ot=Nt,nt=At,dt=Gt,C=Xt,it=Wt,rt=ta,ut=wt,ct=aa,ee=ht,pt=la,vt=ea;return n(),_("div",oa,[l(ue,{gutter:20,class:"stats-row"},{default:s(()=>[l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",na,[a("div",da,[l(i,{size:32},{default:s(()=>[l(m(Ct))]),_:1})]),a("div",ia,[a("div",ra,r(((t=R.value)==null?void 0:t.total)||0),1),e[22]||(e[22]=a("div",{class:"stat-label"},"总卡密数",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",ua,[a("div",ca,[l(i,{size:32},{default:s(()=>[l(m(Vt))]),_:1})]),a("div",pa,[a("div",va,r(((t=R.value)==null?void 0:t.unused)||0),1),e[23]||(e[23]=a("div",{class:"stat-label"},"未使用",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",_a,[a("div",ma,[l(i,{size:32},{default:s(()=>[l(m(St))]),_:1})]),a("div",fa,[a("div",ya,r(((t=R.value)==null?void 0:t.used)||0),1),e[24]||(e[24]=a("div",{class:"stat-label"},"已使用",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",ga,[a("div",ba,[l(i,{size:32},{default:s(()=>[l(m(jt))]),_:1})]),a("div",wa,[a("div",ha,r(((t=R.value)==null?void 0:t.disabled)||0),1),e[25]||(e[25]=a("div",{class:"stat-label"},"已禁用",-1))])])]}),_:1})]),_:1}),l(ut,{shadow:"never",class:"main-card"},{default:s(()=>[l(Et,{name:"expand"},{default:s(()=>[xe(a("div",ka,[l(Z,{inline:!0,model:v,class:"search-form","label-width":"80px"},{default:s(()=>[l(y,{label:"项目"},{default:s(()=>[l(U,{modelValue:v.project_id,"onUpdate:modelValue":e[0]||(e[0]=t=>v.project_id=t),placeholder:"全部项目",clearable:"",style:{width:"180px"},onChange:F},{default:s(()=>[(n(!0),_(B,null,T(G.value,t=>(n(),f(k,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"状态"},{default:s(()=>[l(U,{modelValue:v.status,"onUpdate:modelValue":e[1]||(e[1]=t=>v.status=t),placeholder:"全部状态",clearable:"",style:{width:"140px"},onChange:F},{default:s(()=>[l(k,{label:"未使用",value:"unused"}),l(k,{label:"已使用",value:"used"}),l(k,{label:"已禁用",value:"disabled"})]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"卡密"},{default:s(()=>[l(ge,{modelValue:v.keyword,"onUpdate:modelValue":e[2]||(e[2]=t=>v.keyword=t),placeholder:"输入卡密搜索",clearable:"",style:{width:"200px"},onKeyup:It(F,["enter"]),onClear:F},null,8,["modelValue"])]),_:1}),l(y,{label:"生成时间"},{default:s(()=>[l(lt,{modelValue:ae.value,"onUpdate:modelValue":e[3]||(e[3]=t=>ae.value=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"},onChange:Me},null,8,["modelValue"])]),_:1}),l(y,null,{default:s(()=>[l(p,{type:"primary",onClick:F,icon:m(Tt)},{default:s(()=>[...e[26]||(e[26]=[c("搜索",-1)])]),_:1 Line truncated
+2
View File
@@ -0,0 +1,2 @@
import{_ as _t,m as mt,F as ft,G as yt,o as n,c as _,b as l,w as s,l as d,j as gt,a7 as bt,a9 as wt,K as ht,a8 as kt,a,E as xt,n as m,aC as Ct,C as r,ab as Vt,ac as St,aD as jt,T as Et,ad as xe,d as $t,e as Dt,ae as zt,H as B,V as T,S as f,af as Ft,f as Ut,g as It,aE as qt,h as Bt,ag as Tt,i as c,ah as Ce,ai as Mt,aj as Rt,aF as Ve,W as Nt,ak as Ot,al as Pt,X as Lt,Y as Ht,am as Qt,aG as Jt,an as Yt,ao as Gt,t as At,ap as Kt,aq as Wt,ar as Xt,M as b,as as Se,B as J,aH as Zt,av as ea,aw as ta,ay as aa,a6 as la,k as V,az as je,D as q}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as S}from"./index-CxGbf_5w.js";import{u as sa}from"./user-iqLWbJfU.js";const oa={class:"cards-page"},na={class:"stat-card stat-total"},da={class:"stat-icon"},ia={class:"stat-info"},ra={class:"stat-value"},ua={class:"stat-card stat-unused"},ca={class:"stat-icon"},pa={class:"stat-info"},va={class:"stat-value"},_a={class:"stat-card stat-used"},ma={class:"stat-icon"},fa={class:"stat-info"},ya={class:"stat-value"},ga={class:"stat-card stat-disabled"},ba={class:"stat-icon"},wa={class:"stat-info"},ha={class:"stat-value"},ka={class:"advanced-search"},xa={class:"toolbar"},Ca={class:"toolbar-left"},Va={class:"toolbar-right"},Sa={class:"column-settings"},ja={class:"card-key-cell"},Ea={class:"card-key-text"},$a={key:0,class:"mono-text"},Da={key:1,class:"text-muted"},za={key:0,class:"text-success"},Fa={class:"pagination-wrapper"},Ua={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},Ia={class:"detail-header"},qa={class:"detail-header-left"},Ba={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ta={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ma={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ra={class:"detail-header-title"},Na={class:"detail-header-sub"},Oa={class:"detail-header-right"},Pa=["onClick"],La={key:0,class:"detail-body"},Ha={class:"detail-row-group"},Qa={class:"detail-row"},Ja={class:"detail-row-val mono"},Ya={class:"detail-row",style:{"justify-content":"flex-end","border-top":"none","padding-top":"4px"}},Ga={class:"detail-row-group"},Aa={class:"detail-row"},Ka={class:"detail-row-val"},Wa={class:"detail-row"},Xa={class:"detail-row-val"},Za={class:"detail-row"},el={class:"detail-row-val"},tl={key:0,class:"detail-tag green"},al={key:1,class:"detail-tag blue"},ll={class:"detail-row"},sl={class:"detail-row-val"},ol={class:"detail-row"},nl={class:"detail-row-val"},dl={key:0,class:"detail-row-group"},il={class:"detail-row"},rl={class:"detail-row-val mono"},ul={class:"detail-row"},cl={class:"detail-row-val"},pl={key:1,class:"detail-row-group"},vl={class:"detail-remark"},_l={style:{color:"#e6a23c","font-weight":"600","font-size":"16px"}},ml={__name:"Cards",setup(fl){const Ee=sa(),$e=q(()=>Ee.user),$=q(()=>{var o;return((o=$e.value)==null?void 0:o.role)==="agent"}),ce=d([]),te=d(!1),M=d(1),Y=d(20),pe=d(0),R=d(null),G=d([]),w=d([]),ae=d([]),A=d(!0),De=d(null),ve=d(500),v=gt({project_id:"",status:"",keyword:"",start_date:"",end_date:""}),K=d([{prop:"id",label:"ID",visible:!0},{prop:"card_key",label:"卡密",visible:!0},{prop:"project_name",label:"项目",visible:!0},{prop:"card_type_name",label:"类型",visible:!0},{prop:"bot_qq",label:"机器人QQ",visible:!0},{prop:"duration_days",label:"有效天数",visible:!0},{prop:"status",label:"状态",visible:!0},{prop:"expire_time",label:"过期时间",visible:!0},{prop:"created_at",label:"生成时间",visible:!0}]),j=q(()=>{const o={};return K.value.forEach(e=>{o[e.prop]=e.visible}),o}),N=d(!1),le=d(null),g=d({project_id:"",card_type_id:"",count:10,remark:""}),ze={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],card_type_id:[{required:!0,message:"请选择套餐",trigger:"change"}],count:[{required:!0,message:"请输入数量",trigger:"blur"}]},se=d(!1),O=d([]),_e=q(()=>{if(!$.value)return 0;const o=O.value.find(i=>i.id===g.value.card_type_id);return(o&&parseFloat(o.agent_cost)||0)*(g.value.count||0)}),oe=d(!1),u=d(null),me=q(()=>u.value?u.value.status==="used"?"used":u.value.status==="disabled"?"revoked":"unused":""),Fe=q(()=>u.value?u.value.status==="used"?"已使用":u.value.status==="disabled"?"已禁用":"未使用":""),P=d(!1),ne=d(!1),L=dLine truncated
`).filter(k=>k.trim());W.value=Math.max(0,ue.length-1)},e.readAsText(o.raw)}function Ye(o){E.value="",H.value=[],o&&S.get(`/projects/${o}/card-types`).then(e=>{let i=e.data||[];$.value&&(i=i.filter(h=>parseFloat(h.agent_cost)>0)),H.value=i}).catch(()=>{})}function Ge(){V.warning("只能上传一个文件")}async function Ae(){if(!(!L.value||!D.value||!E.value)){ne.value=!0;try{const o=new FormData;o.append("file",L.value),o.append("project_id",D.value),o.append("card_type_id",E.value);const e=await S.post("/cards/import",o,{headers:{"Content-Type":"multipart/form-data"}});V.success(e.message||"导入成功"),P.value=!1,x(),z()}catch(o){console.error("导入失败:",o)}finally{ne.value=!1}}}async function Ke(){if(w.value.length)try{await je.confirm(`确定要删除选中的 ${w.value.length} 条卡密吗?此操作不可恢复!`,"警告",{type:"warning",confirmButtonText:"确定删除",cancelButtonText:"取消"});const o=w.value.map(e=>e.id);await S.post("/cards/batch-delete",{ids:o}),V.success("批量删除成功"),x(),z()}catch(o){o!=="cancel"&&console.error("批量删除失败:",o)}}function We(){w.value.length&&(X.value="unused",Q.value=!0)}async function Xe(){ie.value=!0;try{const o=w.value.map(e=>e.id);await S.post("/cards/batch-status",{ids:o,status:X.value}),V.success("批量状态更新成功"),Q.value=!1,x(),z()}catch(o){console.error("批量状态更新失败:",o)}finally{ie.value=!1}}function Ze(){localStorage.setItem("cards_column_settings",JSON.stringify(K.value))}function et(){const o=localStorage.getItem("cards_column_settings");if(o)try{const e=JSON.parse(o);K.value=e}catch(e){console.error("加载列设置失败:",e)}}function tt(){localStorage.setItem("cards_filter_memory",JSON.stringify(v))}function at(){const o=localStorage.getItem("cards_filter_memory");if(o)try{const e=JSON.parse(o);Object.assign(v,e)}catch(e){console.error("加载筛选记忆失败:",e)}}function ye(o){navigator.clipboard.writeText(o).then(()=>{V.success("已复制到剪贴板")}).catch(()=>{V.error("复制失败")})}function re(){const o=window.innerHeight;ve.value=o-450}return(o,e)=>{const i=xt,h=kt,ue=bt,k=Ft,U=zt,y=Dt,ge=Ut,lt=qt,p=Bt,Z=$t,be=Ht,st=Lt,ot=Nt,nt=At,dt=Gt,C=Xt,it=Wt,rt=ta,ut=wt,ct=aa,ee=ht,pt=la,vt=ea;return n(),_("div",oa,[l(ue,{gutter:20,class:"stats-row"},{default:s(()=>[l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",na,[a("div",da,[l(i,{size:32},{default:s(()=>[l(m(Ct))]),_:1})]),a("div",ia,[a("div",ra,r(((t=R.value)==null?void 0:t.total)||0),1),e[22]||(e[22]=a("div",{class:"stat-label"},"总卡密数",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",ua,[a("div",ca,[l(i,{size:32},{default:s(()=>[l(m(Vt))]),_:1})]),a("div",pa,[a("div",va,r(((t=R.value)==null?void 0:t.unused)||0),1),e[23]||(e[23]=a("div",{class:"stat-label"},"未使用",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",_a,[a("div",ma,[l(i,{size:32},{default:s(()=>[l(m(St))]),_:1})]),a("div",fa,[a("div",ya,r(((t=R.value)==null?void 0:t.used)||0),1),e[24]||(e[24]=a("div",{class:"stat-label"},"已使用",-1))])])]}),_:1}),l(h,{xs:12,sm:6,md:6,lg:6},{default:s(()=>{var t;return[a("div",ga,[a("div",ba,[l(i,{size:32},{default:s(()=>[l(m(jt))]),_:1})]),a("div",wa,[a("div",ha,r(((t=R.value)==null?void 0:t.disabled)||0),1),e[25]||(e[25]=a("div",{class:"stat-label"},"已禁用",-1))])])]}),_:1})]),_:1}),l(ut,{shadow:"never",class:"main-card"},{default:s(()=>[l(Et,{name:"expand"},{default:s(()=>[xe(a("div",ka,[l(Z,{inline:!0,model:v,class:"search-form","label-width":"80px"},{default:s(()=>[l(y,{label:"项目"},{default:s(()=>[l(U,{modelValue:v.project_id,"onUpdate:modelValue":e[0]||(e[0]=t=>v.project_id=t),placeholder:"全部项目",clearable:"",style:{width:"180px"},onChange:F},{default:s(()=>[(n(!0),_(B,null,T(G.value,t=>(n(),f(k,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"状态"},{default:s(()=>[l(U,{modelValue:v.status,"onUpdate:modelValue":e[1]||(e[1]=t=>v.status=t),placeholder:"全部状态",clearable:"",style:{width:"140px"},onChange:F},{default:s(()=>[l(k,{label:"未使用",value:"unused"}),l(k,{label:"已使用",value:"used"}),l(k,{label:"已禁用",value:"disabled"})]),_:1},8,["modelValue"])]),_:1}),l(y,{label:"卡密"},{default:s(()=>[l(ge,{modelValue:v.keyword,"onUpdate:modelValue":e[2]||(e[2]=t=>v.keyword=t),placeholder:"输入卡密搜索",clearable:"",style:{width:"200px"},onKeyup:It(F,["enter"]),onClear:F},null,8,["modelValue"])]),_:1}),l(y,{label:"生成时间"},{default:s(()=>[l(lt,{modelValue:ae.value,"onUpdate:modelValue":e[3]||(e[3]=t=>ae.value=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"},onChange:Me},null,8,["modelValue"])]),_:1}),l(y,null,{default:s(()=>[l(p,{type:"primary",onClick:F,icon:m(Tt)},{default:s(()=>[...e[26]||(e[26]=[c("搜索",-1)])]),_:1 Line truncated
@@ -0,0 +1 @@
import{_ as ze,m as je,o as d,c as h,b as t,w as a,l as x,a7 as De,a9 as Ue,K as $e,a8 as Fe,a as i,E as Ie,n as o,z as Me,C as r,ab as Ye,aR as Be,T as Re,ad as X,d as He,e as Pe,f as Te,g as Ne,ae as qe,af as Ke,H as T,V as N,S as p,h as Le,ag as Ae,i as u,ah as G,ai as Oe,aj as We,W as Xe,ak as Ge,al as Je,X as Qe,Y as Ze,an as et,ao as tt,t as lt,ap as at,aq as ot,ar as nt,M as v,a1 as st,av as it,aw as dt,ax as J,ay as ut,aE as rt,at as pt,D as Q,k as C,az as Z,j as ct}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as mt,a as _t}from"./useColumnSettings-Nw4I78Sz.js";import{r as S}from"./index-CxGbf_5w.js";const ft={class:"coupons-page"},gt={class:"stat-card stat-total"},vt={class:"stat-icon"},bt={class:"stat-info"},xt={class:"stat-value"},yt={class:"stat-card stat-active"},ht={class:"stat-icon"},Ct={class:"stat-info"},kt={class:"stat-value"},wt={class:"stat-card stat-used"},Vt={class:"stat-icon"},Et={class:"stat-info"},St={class:"stat-value"},zt={class:"advanced-search"},jt={class:"toolbar"},Dt={class:"toolbar-left"},Ut={class:"toolbar-right"},$t={class:"column-settings"},Ft={style:{color:"#67C23A","font-weight":"600"}},It={key:0},Mt={key:1},Yt={class:"pagination-wrapper"},Bt={__name:"Coupons",setup(Rt){const z=x(!0),j=x([]),{list:$,loading:ee,page:F,pageSize:I,total:q,selectedRows:f,filters:b,tableMaxHeight:te,fetchData:D,handleSelectionChange:le,handleSortChange:ae,handleSizeChange:oe,handleFilterChange:k,resetFilters:ne,refreshData:se}=mt({apiUrl:"/coupons",defaultFilters:{keyword:"",status:"",project_id:""},defaultPageSize:20}),{columnOptions:ie,visibleColumns:g,saveColumnSettings:de}=_t("coupons_column_settings",[{prop:"id",label:"ID"},{prop:"code",label:"优惠码"},{prop:"name",label:"名称/备注"},{prop:"discount_percent",label:"省钱%"},{prop:"usage",label:"使用情况"},{prop:"min_amount",label:"最低消费"},{prop:"status",label:"状态"},{prop:"expire_at",label:"过期时间"},{prop:"created_at",label:"创建时间"}]),ue=Q(()=>$.value.filter(s=>s.status===1).length),re=Q(()=>$.value.reduce((s,e)=>s+(e.used_count||0),0));je(async()=>{var s;try{const e=await S.get("/projects");j.value=((s=e.data)==null?void 0:s.list)||e.data||[]}catch{j.value=[]}});const w=x(!1),V=x(!1),M=x(null),K=x(null),Y=x(!1),n=ct({code:"",name:"",discount_percent:10,max_use_count:0,min_amount:0,project_ids:[],expire_at:"",status:1}),pe={code:[{required:!0,message:"请输入优惠码",trigger:"blur"}],discount_percent:[{required:!0,message:"请输入省钱百分比",trigger:"blur"}]};function L(s){s?(V.value=!0,M.value=s.id,n.code=s.code,n.name=s.name,n.discount_percent=parseFloat(s.discount_percent),n.max_use_count=s.max_use_count,n.min_amount=parseFloat(s.min_amount),n.project_ids=s.project_ids&&s.project_ids.trim()?s.project_ids.split(",").filter(Boolean):[],n.expire_at=s.expire_at||"",n.status=s.status):(V.value=!1,M.value=null,n.code="",n.name="",n.discount_percent=10,n.max_use_count=0,n.min_amount=0,n.project_ids=[],n.expire_at="",n.status=1),w.value=!0}async function ce(){if(await K.value.validate().catch(()=>!1)){Y.value=!0;try{const e={code:n.code.toUpperCase(),name:n.name,discount_percent:n.discount_percent,max_use_count:n.max_use_count,min_amount:n.min_amount,project_ids:n.project_ids.join(","),expire_at:n.expire_at||null,status:n.status};V.value?(await S.put(`/coupons/${M.value}`,e),C.success("更新成功")):(await S.post("/coupons",e),C.success("创建成功")),w.value=!1,D()}catch{}finally{Y.value=!1}}}async function me(s){try{await Z.confirm(`确定删除优惠码「${s.code}」吗?`,"确认删除",{type:"warning"}),await S.delete(`/coupons/${s.id}`),C.success("删除成功"),D()}catch{}}async function _e(){if(f.value.length)try{await Z.confirm(`确定删除选中的 ${f.value.length} 个优惠码吗?`,"批量删除",{type:"warning"});for(const s of f.value)await S.delete(`/coupons/${s.id}`);C.success("批量删除成功"),D()}catch{}}function fe(s){if(!f.value.length){C.warning("请先选择要导出的优惠码");return}const e=new URLSearchParams;e.set("ids",f.value.map(E=>E.id).join(",")),e.append("format",s);const y=localStorage.getItem("access_token");window.open(`/api/coupons/export?${e.toString()}&token=${y}`,"_blank"),C.success("导出任务已启动")}return(s,e)=>{const y=Ie,E=Fe,ge=De,B=Te,c=Pe,U=Ke,R=qe,m=Le,A=He,O=Ze,ve=Qe,be=Xe,xe=lt,ye=tt,_=nt,W=st,he=ot,Ce=dt,ke=Ue,H=ut,we=rt,Ve=pt,Ee=$e,Se=it;return d(),h("div",ft,[t(ge,{gutter:20,class:"stats-row"},{default:a(()=>[t(E,{xLine truncated
@@ -0,0 +1 @@
import{_ as ze,m as je,o as d,c as h,b as t,w as a,l as x,a7 as De,a9 as Ue,K as $e,a8 as Fe,a as i,E as Ie,n as o,z as Me,C as r,ab as Ye,aR as Be,T as Re,ad as X,d as He,e as Pe,f as Te,g as Ne,ae as qe,af as Ke,H as T,V as N,S as p,h as Le,ag as Ae,i as u,ah as G,ai as Oe,aj as We,W as Xe,ak as Ge,al as Je,X as Qe,Y as Ze,an as et,ao as tt,t as lt,ap as at,aq as ot,ar as nt,M as v,a1 as st,av as it,aw as dt,ax as J,ay as ut,aE as rt,at as pt,D as Q,k as C,az as Z,j as ct}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as mt,a as _t}from"./useColumnSettings-BGE5jzFS.js";import{r as S}from"./index-C3lsw5-G.js";const ft={class:"coupons-page"},gt={class:"stat-card stat-total"},vt={class:"stat-icon"},bt={class:"stat-info"},xt={class:"stat-value"},yt={class:"stat-card stat-active"},ht={class:"stat-icon"},Ct={class:"stat-info"},kt={class:"stat-value"},wt={class:"stat-card stat-used"},Vt={class:"stat-icon"},Et={class:"stat-info"},St={class:"stat-value"},zt={class:"advanced-search"},jt={class:"toolbar"},Dt={class:"toolbar-left"},Ut={class:"toolbar-right"},$t={class:"column-settings"},Ft={style:{color:"#67C23A","font-weight":"600"}},It={key:0},Mt={key:1},Yt={class:"pagination-wrapper"},Bt={__name:"Coupons",setup(Rt){const z=x(!0),j=x([]),{list:$,loading:ee,page:F,pageSize:I,total:q,selectedRows:f,filters:b,tableMaxHeight:te,fetchData:D,handleSelectionChange:le,handleSortChange:ae,handleSizeChange:oe,handleFilterChange:k,resetFilters:ne,refreshData:se}=mt({apiUrl:"/coupons",defaultFilters:{keyword:"",status:"",project_id:""},defaultPageSize:20}),{columnOptions:ie,visibleColumns:g,saveColumnSettings:de}=_t("coupons_column_settings",[{prop:"id",label:"ID"},{prop:"code",label:"优惠码"},{prop:"name",label:"名称/备注"},{prop:"discount_percent",label:"省钱%"},{prop:"usage",label:"使用情况"},{prop:"min_amount",label:"最低消费"},{prop:"status",label:"状态"},{prop:"expire_at",label:"过期时间"},{prop:"created_at",label:"创建时间"}]),ue=Q(()=>$.value.filter(s=>s.status===1).length),re=Q(()=>$.value.reduce((s,e)=>s+(e.used_count||0),0));je(async()=>{var s;try{const e=await S.get("/projects");j.value=((s=e.data)==null?void 0:s.list)||e.data||[]}catch{j.value=[]}});const w=x(!1),V=x(!1),M=x(null),K=x(null),Y=x(!1),n=ct({code:"",name:"",discount_percent:10,max_use_count:0,min_amount:0,project_ids:[],expire_at:"",status:1}),pe={code:[{required:!0,message:"请输入优惠码",trigger:"blur"}],discount_percent:[{required:!0,message:"请输入省钱百分比",trigger:"blur"}]};function L(s){s?(V.value=!0,M.value=s.id,n.code=s.code,n.name=s.name,n.discount_percent=parseFloat(s.discount_percent),n.max_use_count=s.max_use_count,n.min_amount=parseFloat(s.min_amount),n.project_ids=s.project_ids&&s.project_ids.trim()?s.project_ids.split(",").filter(Boolean):[],n.expire_at=s.expire_at||"",n.status=s.status):(V.value=!1,M.value=null,n.code="",n.name="",n.discount_percent=10,n.max_use_count=0,n.min_amount=0,n.project_ids=[],n.expire_at="",n.status=1),w.value=!0}async function ce(){if(await K.value.validate().catch(()=>!1)){Y.value=!0;try{const e={code:n.code.toUpperCase(),name:n.name,discount_percent:n.discount_percent,max_use_count:n.max_use_count,min_amount:n.min_amount,project_ids:n.project_ids.join(","),expire_at:n.expire_at||null,status:n.status};V.value?(await S.put(`/coupons/${M.value}`,e),C.success("更新成功")):(await S.post("/coupons",e),C.success("创建成功")),w.value=!1,D()}catch{}finally{Y.value=!1}}}async function me(s){try{await Z.confirm(`确定删除优惠码「${s.code}」吗?`,"确认删除",{type:"warning"}),await S.delete(`/coupons/${s.id}`),C.success("删除成功"),D()}catch{}}async function _e(){if(f.value.length)try{await Z.confirm(`确定删除选中的 ${f.value.length} 个优惠码吗?`,"批量删除",{type:"warning"});for(const s of f.value)await S.delete(`/coupons/${s.id}`);C.success("批量删除成功"),D()}catch{}}function fe(s){if(!f.value.length){C.warning("请先选择要导出的优惠码");return}const e=new URLSearchParams;e.set("ids",f.value.map(E=>E.id).join(",")),e.append("format",s);const y=localStorage.getItem("access_token");window.open(`/api/coupons/export?${e.toString()}&token=${y}`,"_blank"),C.success("导出任务已启动")}return(s,e)=>{const y=Ie,E=Fe,ge=De,B=Te,c=Pe,U=Ke,R=qe,m=Le,A=He,O=Ze,ve=Qe,be=Xe,xe=lt,ye=tt,_=nt,W=st,he=ot,Ce=dt,ke=Ue,H=ut,we=rt,Ve=pt,Ee=$e,Se=it;return d(),h("div",ft,[t(ge,{gutter:20,class:"stats-row"},{default:a(()=>[t(E,{xLine truncated
@@ -0,0 +1 @@
import{_ as ze,m as je,o as d,c as h,b as t,w as a,l as x,a7 as De,a9 as Ue,K as $e,a8 as Fe,a as i,E as Ie,n as o,z as Me,C as r,ab as Ye,aR as Be,T as Re,ad as X,d as He,e as Pe,f as Te,g as Ne,ae as qe,af as Ke,H as T,V as N,S as p,h as Le,ag as Ae,i as u,ah as G,ai as Oe,aj as We,W as Xe,ak as Ge,al as Je,X as Qe,Y as Ze,an as et,ao as tt,t as lt,ap as at,aq as ot,ar as nt,M as v,a1 as st,av as it,aw as dt,ax as J,ay as ut,aE as rt,at as pt,D as Q,k as C,az as Z,j as ct}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as mt,a as _t}from"./useColumnSettings-C0R5rnWU.js";import{r as S}from"./index-C7doSj3W.js";const ft={class:"coupons-page"},gt={class:"stat-card stat-total"},vt={class:"stat-icon"},bt={class:"stat-info"},xt={class:"stat-value"},yt={class:"stat-card stat-active"},ht={class:"stat-icon"},Ct={class:"stat-info"},kt={class:"stat-value"},wt={class:"stat-card stat-used"},Vt={class:"stat-icon"},Et={class:"stat-info"},St={class:"stat-value"},zt={class:"advanced-search"},jt={class:"toolbar"},Dt={class:"toolbar-left"},Ut={class:"toolbar-right"},$t={class:"column-settings"},Ft={style:{color:"#67C23A","font-weight":"600"}},It={key:0},Mt={key:1},Yt={class:"pagination-wrapper"},Bt={__name:"Coupons",setup(Rt){const z=x(!0),j=x([]),{list:$,loading:ee,page:F,pageSize:I,total:q,selectedRows:f,filters:b,tableMaxHeight:te,fetchData:D,handleSelectionChange:le,handleSortChange:ae,handleSizeChange:oe,handleFilterChange:k,resetFilters:ne,refreshData:se}=mt({apiUrl:"/coupons",defaultFilters:{keyword:"",status:"",project_id:""},defaultPageSize:20}),{columnOptions:ie,visibleColumns:g,saveColumnSettings:de}=_t("coupons_column_settings",[{prop:"id",label:"ID"},{prop:"code",label:"优惠码"},{prop:"name",label:"名称/备注"},{prop:"discount_percent",label:"省钱%"},{prop:"usage",label:"使用情况"},{prop:"min_amount",label:"最低消费"},{prop:"status",label:"状态"},{prop:"expire_at",label:"过期时间"},{prop:"created_at",label:"创建时间"}]),ue=Q(()=>$.value.filter(s=>s.status===1).length),re=Q(()=>$.value.reduce((s,e)=>s+(e.used_count||0),0));je(async()=>{var s;try{const e=await S.get("/projects");j.value=((s=e.data)==null?void 0:s.list)||e.data||[]}catch{j.value=[]}});const w=x(!1),V=x(!1),M=x(null),K=x(null),Y=x(!1),n=ct({code:"",name:"",discount_percent:10,max_use_count:0,min_amount:0,project_ids:[],expire_at:"",status:1}),pe={code:[{required:!0,message:"请输入优惠码",trigger:"blur"}],discount_percent:[{required:!0,message:"请输入省钱百分比",trigger:"blur"}]};function L(s){s?(V.value=!0,M.value=s.id,n.code=s.code,n.name=s.name,n.discount_percent=parseFloat(s.discount_percent),n.max_use_count=s.max_use_count,n.min_amount=parseFloat(s.min_amount),n.project_ids=s.project_ids&&s.project_ids.trim()?s.project_ids.split(",").filter(Boolean):[],n.expire_at=s.expire_at||"",n.status=s.status):(V.value=!1,M.value=null,n.code="",n.name="",n.discount_percent=10,n.max_use_count=0,n.min_amount=0,n.project_ids=[],n.expire_at="",n.status=1),w.value=!0}async function ce(){if(await K.value.validate().catch(()=>!1)){Y.value=!0;try{const e={code:n.code.toUpperCase(),name:n.name,discount_percent:n.discount_percent,max_use_count:n.max_use_count,min_amount:n.min_amount,project_ids:n.project_ids.join(","),expire_at:n.expire_at||null,status:n.status};V.value?(await S.put(`/coupons/${M.value}`,e),C.success("更新成功")):(await S.post("/coupons",e),C.success("创建成功")),w.value=!1,D()}catch{}finally{Y.value=!1}}}async function me(s){try{await Z.confirm(`确定删除优惠码「${s.code}」吗?`,"确认删除",{type:"warning"}),await S.delete(`/coupons/${s.id}`),C.success("删除成功"),D()}catch{}}async function _e(){if(f.value.length)try{await Z.confirm(`确定删除选中的 ${f.value.length} 个优惠码吗?`,"批量删除",{type:"warning"});for(const s of f.value)await S.delete(`/coupons/${s.id}`);C.success("批量删除成功"),D()}catch{}}function fe(s){if(!f.value.length){C.warning("请先选择要导出的优惠码");return}const e=new URLSearchParams;e.set("ids",f.value.map(E=>E.id).join(",")),e.append("format",s);const y=localStorage.getItem("access_token");window.open(`/api/coupons/export?${e.toString()}&token=${y}`,"_blank"),C.success("导出任务已启动")}return(s,e)=>{const y=Ie,E=Fe,ge=De,B=Te,c=Pe,U=Ke,R=qe,m=Le,A=He,O=Ze,ve=Qe,be=Xe,xe=lt,ye=tt,_=nt,W=st,he=ot,Ce=dt,ke=Ue,H=ut,we=rt,Ve=pt,Ee=$e,Se=it;return d(),h("div",ft,[t(ge,{gutter:20,class:"stats-row"},{default:a(()=>[t(E,{xLine truncated
@@ -0,0 +1,60 @@
import{_ as Q2,m as j2,I as tL,F as eL,o as Jr,c as vm,b as he,w as Yt,S as ln,M as No,l as bi,a7 as rL,r as Bl,H as aL,V as nL,a8 as iL,a9 as oL,A as wi,a as zt,E as sL,a4 as lL,C as Ti,i as wa,D as Bo}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css */import{u as uL}from"./user-CjwLSb7B.js";import{r as fL}from"./index-C7doSj3W.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var pp=function(r,e){return pp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},pp(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var hL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vL=function(){function r(){this.browser=new hL,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 r}(),yt=new vL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window?(yt.node=!0,yt.svgSupported=!0):cL(navigator.userAgent,yt);function cL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var ag=12,yw="sans-serif",Ka=ag+"px "+yw,pL=20,dL=100,gL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-pL)/dL;e[a]=n}return e}var mL=yL(gL),Ja={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=Ja.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||Ka),r.measureText(t);t=t||"",a=a||Ka;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||ag,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=mL[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},mw=Wr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),_w=Wr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),So=Object.prototype.toString,ah=Array.prototype,_L=ah.forEach,SL=ah.filter,ng=ah.slice,xL=ah.map,cm=(function(){}).constructor,Vl=cm?cm.prototype:null,ig="__proto__",bL=2311;function Sw(){return bL++}function og(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=So.call(r);if(t==="[object Array]"){if(!As(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(_w[t]){if(!As(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!mw[t]&&!As(r)&&!lo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==ig&&(e[o]=rt(r[o]))}return e}function ut(r,e,t){if(!et(e)||!et(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==ig){var n=r[a],i=e[a];et(i)&&et(n)&&!z(i)&&!z(n)&&!lo(i)&&!lo(n)&&!pm(i)&&!pm(n)&&!As(i)&&!As(n)?ut(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function sg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ut(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==ig&&(r[t]=e[t]);return r}function j(r,e,t){for(var a=_t(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function ct(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function wL(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Qt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else j(r,eLine truncated
`),i=n.length;if(i===1)return Gm(n[0],e,t,a);for(var o=new ht(0,0,0,0),s=0;s<n.length;s++){var l=Gm(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function ds(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function $i(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function lh(r){return Ze("国",r)}function wr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function yf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=wr(a[0],t.width),u+=wr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var lv="__zr_normal__",uv=Yr.concat(["ignore"]),EI=Wr(Yr,function(r,e){return r[e]=!0,r},{ignore:!1}),Mi={},kI=new ht(0,0,0,0),uh=function(){function r(e){this.id=Sw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=kI;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mi,a,f):yf(Mi,a,f),i.x=Mi.x,i.y=Mi.y,o=Mi.align,s=Mi.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=wr(h[0],f.width),c=wr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=We,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Np:Op},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Xe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,la(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=_t(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==lv)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConf Line truncated
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var $u={},$w={};function zI(r){delete $w[r]}function GI(r){if(!r)return!1;if(typeof r=="string")return pf(r,1)<kp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=pf(e[n].color,1);return t/=a,t<kp}return!1}var FI=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new rI,o=a.renderer||"canvas";$u[o]||(o=_t($u)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new $u[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!yt.node&&!yt.worker&&!l?new PI(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?yt.touchEventsSupported:!!f,v=44,c;h&&(c=st(a.pointerSize,v)),this.handler=new Cw(i,s,u,s.root,c),this.animation=new TI({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=GI(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=Qi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Qi();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof at&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,zI(this.id))},r}();function Fm(r,e){var t=new FI(Sw(),r,e);return $w[t.id]=t,t}function HI(r,e){$u[r]=e}var Bp;function WI(r){if(typeof Bp=="function")return Bp(r)}function UI(r){Bp=r}var Hm=1e-4,qw=20;function YI(r){return r.replace(/^\s+|\s+$/g,"")}function Dt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Y(r)?YI(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Xt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),qw),r=(+r).toFixed(e),t?r:+r}function sr(r){return r.sort(function(e,t){return e-t}),r}function Br(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return XI(r)}function XI(r){var e=r.toString().toLowerCase(),t=e.indeLine truncated
`);i=fT(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)hT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function fT(r,e,t,a){a=a||{};var n=V({},a);n.font=e,t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0);n.cnCharWidth=Ze("国",e);var o=n.ascCharWidth=Ze("a",e);n.placeholder=st(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ze(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function hT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ze(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?AP(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Ze(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function AP(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function CP(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=lh(n),s=st(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?vT(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var c=v.length*s,p=st(e.height,c);if(c>p&&u){var d=Math.floor(p/s);f=f||v.length>d,v=v.slice(0,d)}if(r&&i&&h!=null)for(var g=fT(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<v.length;m++)hT(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<v.length;m++)S=Math.max(Ze(v[m],n),S);h==null&&(h=S);var b=S;return a&&(_+=a[0]+a[2],b+=a[1]+a[3],h+=a[1]+a[3]),l&&(b=h),{lines:v,height:p,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var DP=function(){function r(){}return r}(),qm=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),MP=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function LP(r,e){var t=new MP;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=cv.lastIndex=0,l;(l=cv.exec(r))!=null;){var u=l.index;u>s&&pv(t,r.substring(s,u),e,o),pv(t,l[2],e,o,l[1]),s=cv.lastIndex}s<r.length&&pv(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,p=i==="truncate",d=e.lineOverflow==="truncate",g={};function y(F,H,U){F.width=H,F.lineHeight=U,h+=U,v=Math.max(v,H)}t:for(var m=0;m<t.lines.length;m++){for(var _=t.lines[m],S=0,b=0,x=0;x<_.tokens.length;x++){var w=_.tokens[x],T=w.styleName&&e.rich[w.styleName]||{},A=w.textPadding=T.padding,C=A?A[1]+A[3]:0,M=w.font=T.font||e.font;w.contentHeight=lh(M);var L=st(T.height,w.contentHeight);if(w.innerHeight=L,A&&(L+=A[0]+A[2]),w.height=L,w.lineHeight=Fr(T.lineHeight,e.lineHeight,L),w.align=T&&T.align||e.align,w.verticalAlign=T&&T.verticalAlign||"middle",d&&n!=null&&h+w.lineHeight>n){var I=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,b,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length<I;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,f.push(w),w.contentWidth=Ze(w.text,M);else{if(R){var E=T.backgroundColor,N=E&&E.image;N&&(N=wP(N),hh(N)&&(w.width=Math.max(w.width,N.width*L/N.height)))}var O=p&&a!=null?a-b:null;O!=null&&O<w.width?!R||O<C?(w.text="",w.width=w.contentWidth=0):(TP(g,w.text,O-C,M,e.ellipsis,{minChar:e.truncateMinChar}),w.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,w.width=w.contentWidth=Ze(w.text,M)):w.contentWidth=Ze(w.text,M)}w.width+=C,b+=w.width,T&&(S=Math.max(S,w.lineHeight))}y(_,b,S)}t.outerWidth=t.width=st(a,v),t.outerHeight=t.height=st(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var w=f[m],B=w.percentWidth;w.width=parseInt(B,10)/100*t.width}return t}function pv(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var p=wr(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=p}else{var d=vT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new DP;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ze(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new qm)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new qm([m]))}}function IP(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var PP=Wr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function RP(r){return IP(r)?!!PP[r]:!0}function vT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Ze(v,e),p=a?!1:!RP(v);if(i.length?f+c>t:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Gp="__zr_style_"+Math.round(Math.random()*10),jn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jn[Gp]=!0;var Km=["z","z2","invisible"],EP=["invisible"],ur=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kP(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ht(0,0,0,0)),a?ht.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ht(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:V(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=cs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&cs)},e.prototype.styleUpdated=function(){this.__dirty&=~cs},e.prototype.createStyle=function(t){return ih(jn,t)},e.prototype.useStyle=function(t){t[Gp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Gp]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,Km)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=_t(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var p=_t(u),v=0;v<p.length;v++){var c=p[v];this.style[c]=this.style[c]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?EP:Km,v=0;v<d.length;v++){var c=d[v];a&&a[c]!=null?this[c]=a[c]:l&&n[c]!=null&&(this[c]=n[c])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return V(t,a),t},e.prototype.getAnimationStyleProps=function(){return vh},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirty Line truncated
`,`
`,`
`];function se(r,e){return e.type=r,e}function rd(r){return r.type==="section"}function OA(r){return rd(r)?Ck:Dk}function NA(r){if(rd(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return D(r.blocks,function(n){var i=NA(n);i>=e&&(e=i+ +(a&&(!i||rd(n)&&!n.noHeader)))}),e}return 0}function Ck(r,e,t,a){var n=e.noHeader,i=Mk(NA(e)),o=[],s=e.blocks||[];Le(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new MA(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(d,g){var y=e.valueFormatter,m=OA(d)(y?V(V({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):ad(a,o.join(""),n?t:i.html);if(n)return h;var v=Jp(e.header,"ordinal",r.useUTC),c=kA(a,r.renderMode).nameStyle,p=EA(a);return r.renderMode==="richText"?BA(r,v,c)+i.richText+h:ad(a,'<div style="'+c+";"+p+';">'+Ce(v)+"</div>"+h,t)}function Dk(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Jp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Jp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!i,g=!s&&i,y=kA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":BA(r,v,m))+(o?"":Pk(r,p,d,g,_)):ad(a,(s?"":h)+(i?"":Lk(v,!s,m))+(o?"":Ik(p,d,g,_)),t)}}function n_(r,e,t,a,n,i){if(r){var o=OA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Mk(r){return{html:Tk[r],richText:Ak[r]}}function ad(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=EA(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function Lk(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ce(r)+"</span>"}function Ik(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return Ce(o)}).join("&nbsp;&nbsp;")+"</span>"}function BA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Pk(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function VA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return fi(a)}function zA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Vv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=tT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=xE({color:t,type:e,renderMode:a,markerId:n});return Y(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?D(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function GA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=VA(e,t),f,h,v,c;if(o>1||l&&!o){var p=Rk(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=ho(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=yg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return se("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[se("nameValue",{markerType:"item",markerColor:u,name:_,noName:!_r(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function Rk(r,e,t,a,n){var i=e.getData(),o=Wr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?D(a,function(h){f(ho(i,t,h),h)}):D(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(se("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Da=xt();function iu(r,e){return r.getName(e)||r.getId(e)}var tf="__universalTransitionEnabled",Vt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Os({count:kk,reset:Ok}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Da(this).sourceManager=new RA(this);i.prepareSource();var o=this.getInitialData(t,n);o_(o,this),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,i_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Qs(this),i=n?Lo(t):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),ut(t,a.getTheme().get(this.subType)),ut(t,t Line truncated
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return BB(o,s)+(o!=="style"?Ce(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+VB(o)}return a(r)}function zB(r,e,t){t=t||{};var a=t.newline?`
`:"",n=" {"+a,i=a+"}",o=G(_t(r),function(l){return l+n+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(_t(e),function(l){return"@keyframes "+l+n+G(_t(e[l]),function(u){return u+n+G(_t(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function dd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function t1(r,e,t,a){return ne("svg","root",{width:r,height:e,xmlns:aD,"xmlns:xlink":nD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var GB=0;function oD(){return GB++}var e1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},En="transform-origin";function FB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new rD;return n.reset(Fw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function HB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[En]=t+"px "+a+"px")}var WB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function UB(r,e,t){var a=r.shape.paths,n={},i,o;if(D(a,function(l){var u=dd(t.zrId);u.animation=!0,Nh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=sD(n,t);return i.replace(o,s)}}function r1(r){return Y(r)?e1[r]?"cubic-bezier("+e1[r]+")":cg(r)?r:"":""}function Nh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Mg){var s=UB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],v=r1(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function A(vt,tt,pt){for(var q=vt.getTracks(),ot=vt.getMaxTime(),Ot=0;Ot<q.length;Ot++){var Lt=q[Ot];if(Lt.needsAnimate()){var Et=Lt.keyframes,Ft=Lt.propName;if(pt&&(Ft=pt(Ft)),Ft)for(var ee=0;ee<Et.length;ee++){var Fe=Et[ee],ke=Math.round(Fe.time/ot*100)+"%",sn=r1(Fe.easing),ba=Fe.rawValue;(Y(ba)||wt(ba))&&(tt[ke]=tt[ke]||{},tt[ke][Ft]=Fe.rawValue,sn&&(tt[ke][T]=sn))}}}}for(var C=0;C<S;C++){var M=_[C],L=M.targetName;L?L==="shape"&&A(M,x):!a&&A(M,b)}for(var I in b){var P={};Xw(P,r),V(P,b[I]);var R=Hw(P),E=b[I][T];w[I]=R?{transform:R}:{},HB(w[I],P),E&&(w[I][T]=E)}var N,O=!0;for(var I in x){w[I]=w[I]||{};var B=!N,E=x[I][T];B&&(N=new Zr);var F=N.len();N.reset(),w[I].d=FB(r,x[I],N);var H=N.len();if(!B&&F!==H){O=!1;break}E&&(w[I][T]=E)}if(!O)for(var I in w)delete w[I].d;if(!a)for(var C=0;C<S;C++){var M=_[C],L=M.targetName;L==="style"&&A(M,w,function(q){return WB[q]})}for(var U=_t(w),K=!0,Q,C=1;C<U.length;C++){var it=U[C-1],It=U[C];if(w[it][En]!==w[It][En]){K=!1;break}Q=w[it][En]}if(K&&Q){for(var I in w)w[I][En]&&delete w[I][En];e[En]=Q}if(Ct(U,function(vt){return _t(w[vt]).length>0}).length){var Ut=sD(w,t);return Ut+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+oD();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function YB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};a1(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dp(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),a1(a,e,t)}}function a1(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+oD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var nl=Math.round;function lD(r){return r&&Y(r.src)}function uD(r){return r&&J(r.toDataURL)}function uy(r,e,t,a){kB(function(n,i){var o=n==="fill"||n==="stroke";o&&Gw(i)?hD(e,r,n,a):o&&pg(i)?vD(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),QB(t,r,a)}function fy(r,e){var t=WI(e);t&&(t.e Line truncated
`+g.message)}var n=new at;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new ht(u,f,h,v)}if(s){var p=UD(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new St({shape:l.plain()}));var d=[];return D(t.named,function(g){s5.get(g.svgNodeTagLower)!=null&&(d.push(g),u5(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function u5(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function f5(r){var e=[],t=$();return D(r,function(a){if(a.namedFrom==null){var n=new nB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var wd=[126,25],rS="南海诸岛",kn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Rn=0;Rn<kn.length;Rn++)for(var Vi=0;Vi<kn[Rn].length;Vi++)kn[Rn][Vi][0]/=10.5,kn[Rn][Vi][1]/=-10.5/.75,kn[Rn][Vi][0]+=wd[0],kn[Rn][Vi][1]+=wd[1];function h5(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===rS)return;e.push(new GC(rS,G(kn,function(a){return{type:"polygon",exterior:a}}),wd))}}var v5={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function c5(r,e){if(r==="china"){var t=v5[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var p5=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function d5(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:p5[0]})}var g5="name",y5=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=$(),this._mapName=e,this._specialAreas=a,this._geoJSON=_5(t)}return r.prototype.load=function(e,t){t=t||g5;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:m5(n)})}var i=$(),o=[];return D(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ht(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?oB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return h5(t,n),D(n,function(i){var o=i.name;c5(t,i),d5(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function m5(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function _5(r){return Y(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ns=$();const ya={registerMap:function(r,e,t){if(e.svg){var a=new l5(r,e.svg);ns.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new y5(r,n,t);ns.set(r,a)}},getGeoResource:function(r){return ns.get(r)},getMapForUser:function(r){var e=ns.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=ns.get(r);if(a)return a.load(e,t)}};var my=["rect","circle","line","ellipse","polygon","polyline","path"],S5=$(my),x5=$(my.concat(["g"])),b5=$(my.concat(["g"])),YD=xt();function Au(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function aS(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var XD=function(){function r(e){var t=new at;this.uid=Do("ec_map_draw"),this._controller=new kl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,p=!u.childAt(0)||i;p?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Tt(f,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),a=$(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],d);y&&p.push(y)}return p}function v(c){return{shape:{points:h(c)}}}n.removeAll(),D(e.geo.regions,function(c){var p=c.name,d=t.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new at),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),a.set(p,{dataIdx:y,regionModel:m})}var S=[],b=[];D(c.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=uS(A,u)),D(A,function(M){S.push(new Re(v(M)))})}else{var C=T.points;u&&(C=uS(C,u,!0)),D(C,function(M){b.push(new Ee(v(M)))})}});var x=f(c.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new Mg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(C),nS(e,C,y,m),iS(e,C,p,m,o,y,x),A&&(aS(C),D(C.states,aS))}}w(S),w(b,!0)}),t.each(function(c,p){var d=a.get(p),g=d.dataIdx,y=d.regionModel;oS(e,c,p,y,o,g),sS(e,c,p,y,o),lS(e,c,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=$(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);S5.get(f)!=null&&h instanceof ur&&nS(e,h,v,c),h instanceof ur&&(h.culling=!0);var p=c.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(b5.get(f)!=null&&iS(e,h,s,c,l,v,null),oS(e,h,s,c,l,v),sS(e,h,s,c,l),x5.get(f)!=null)){var d=lS(e,h,s,c,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ui(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&t Line truncated
`))}),e.join(`
`+Wh+`
`)}function k6(r){return G(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+_o:"")+n.join(_o))}),a.join(`
`)}).join(`
`+Wh+`
`)}function O6(r){var e=R6(r);return{value:Ct([E6(e.seriesGroupByCategoryAxis),k6(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+Wh+`
`),meta:e.meta}}function qf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function N6(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(_o)>=0)return!0}var Ud=new RegExp("["+_o+"]+","g");function B6(r){for(var e=r.split(/\n+/g),t=qf(e.shift()).split(Ud),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=qf(e[i]).split(Ud);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function V6(r){for(var e=r.split(/\n+/g),t=qf(e.shift()),a=[],n=0;n<e.length;n++){var i=qf(e[n]);if(i){var o=i.split(Ud),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function z6(r,e){var t=r.split(new RegExp(`
*`+Wh+`
*`,"g")),a={series:[]};return D(t,function(n,i){if(N6(n)){var o=B6(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=V6(n);a.series.push(o)}}),a}var G6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=O6(t);if(J(h)){var p=h(a.getOption());Y(p)?u.innerHTML=p:lo(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}bp(_,"click",x),bp(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var w;try{J(v)?w=v(u,a.getOption()):w=z6(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e}(nr);function F6(r,e){return G(r,function(t,a){var n=e&&e[a];if(et(n)&&!z(n)){var i=et(t)&&!z(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=j(t,n),o&&delete t.name,t}else return t})}qr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];D(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(V({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:F6(a.data,i)})}}),e.mergeOption(j({series:t},r.newOption))});var b2=D,w2=xt();function H6(r,e){var t=em(r);b2(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function W6(r){var e=em(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return b2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function U6(r){w2(r).snapshots=null}function Y6(r){return em(r).length}function em(r){var e=w2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var X6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){U6(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(nr);qr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Z6=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rm=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=rb(t,e);D($6,function(o,s){(!a||!a.include||ct(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coor Line truncated
`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=ls([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Vv;y.marker=m.makeTooltipMarker("item",fi(y.color),c);var _=Q0(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?n_(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=nt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=rt(l),l.content=Ce(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=ls(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Vv;this._showOrMove(p,function(){var m=rt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(Y(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=xh(y.axisValue,c,g)),c=oA(c,n,!0)}else if(J(v)){var _=X(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),J(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=W(a[0],u),i=W(a[1],f);else if(et(a)){var d=a;d.width=h[0],d.height=h[1];var g=te(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(Y(a)&&l){var y=m8(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=g8(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=pb(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=pb(c)?h[1]/2:c==="bottom"?h[1]:0),T2(t)){var y=y8(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&D(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&D(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){yt.node||!a.getDom()||(tl(this,"_updatePosition"),this._tooltipContent.dispose(),Fd("itemTooltip",a))},e.type="tooltip",e}(Ht);function ls(r,e,t){var a=e.ecModel,n;t?(n=new Mt(t,a,a),n=new Mt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(n=new Mt(o,n,a)))}return n}function cb(r,e){return r.dispatchAction||X(e.dispatchAction,e)}function g8(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function y8(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function m8(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x Line truncated
`)){var g=new Gu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",Wi(Eb,d,null,i,v)).on("mouseover",Wi(Qd,y.name,null,i,v)).on("mouseout",Wi(jd,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=nt(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var A=T.indexOfName(d),C=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),L=Xe(C.fill);L&&L[3]===0&&(L[3]=.2,C=V(V({},C),{fill:la(L,"rgba")}));var I=this._createItem(w,d,p,c,a,t,{},C,M,h,i);I.on("click",Wi(Eb,null,d,i,v)).on("mouseover",Wi(Qd,null,d,i,v)).on("mouseout",Wi(jd,null,d,i,v)),n.ssr&&I.eachChild(function(P){var R=nt(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Jd(t,function(u){var f=u.type,h=new bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);de(h,{normal:v,emphasis:c},{defaultText:u.title}),ei(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=yU(f,i,l,u,c,g,v),b=new Gu,x=i.getModel("textStyle");if(J(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(mU({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,A=s,C=o.get("formatter"),M=a;Y(C)&&C?M=C.replace("{name}",a??""):J(C)&&(M=C(a));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new bt({style:Bt(x,{text:M,x:T,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var I=new St({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&di({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),ei(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ai(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ai("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ht);function yU(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Jd(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:vo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function mU(r){var e=r.icon||"roundRect",t=Jt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Eb(r,e,t,a){jd(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Qd(r,e,t,a)}function k2(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Qd(r,e, Line truncated
`||n==="")){var i=r.isSelected(n);Z(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function SU(r){r.registerAction("legendToggleSelect","legendselectchanged",lt(fs,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",lt(fs,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",lt(fs,"inverseSelect")),r.registerAction("legendSelect","legendselected",lt(fs,"select")),r.registerAction("legendUnSelect","legendunselected",lt(fs,"unSelect"))}function O2(r){r.registerComponentModel(Kd),r.registerComponentView(E2),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,_U),r.registerSubTypeDefaulter("legend",function(){return"plain"}),SU(r)}var xU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Lo(t);r.prototype.init.call(this,t,a,n),Ob(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Ob(this,this.option,t)},e.type="legend.scroll",e.defaultOption=on(Kd.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Kd);function Ob(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,tn(e,t,{type:"box",ignoreSize:!!n})}var Nb=at,ip=["width","height"],op=["x","y"],bU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Nb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Nb)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=z(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new bt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=wl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:X(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=ip[u],h=op[u],v=ip[1-u],c=op[1-u];o&&ai("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=rt(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ai(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ai("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new St({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Tt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get(" Line truncated
@@ -0,0 +1,60 @@
import{_ as Q2,m as j2,I as tL,F as eL,o as Jr,c as vm,b as he,w as Yt,S as ln,M as No,l as bi,a7 as rL,r as Bl,H as aL,V as nL,a8 as iL,a9 as oL,A as wi,a as zt,E as sL,a4 as lL,C as Ti,i as wa,D as Bo}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css */import{u as uL}from"./user-iqLWbJfU.js";import{r as fL}from"./index-CxGbf_5w.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var pp=function(r,e){return pp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},pp(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var hL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vL=function(){function r(){this.browser=new hL,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 r}(),yt=new vL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window?(yt.node=!0,yt.svgSupported=!0):cL(navigator.userAgent,yt);function cL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var ag=12,yw="sans-serif",Ka=ag+"px "+yw,pL=20,dL=100,gL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-pL)/dL;e[a]=n}return e}var mL=yL(gL),Ja={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=Ja.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||Ka),r.measureText(t);t=t||"",a=a||Ka;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||ag,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=mL[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},mw=Wr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),_w=Wr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),So=Object.prototype.toString,ah=Array.prototype,_L=ah.forEach,SL=ah.filter,ng=ah.slice,xL=ah.map,cm=(function(){}).constructor,Vl=cm?cm.prototype:null,ig="__proto__",bL=2311;function Sw(){return bL++}function og(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=So.call(r);if(t==="[object Array]"){if(!As(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(_w[t]){if(!As(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!mw[t]&&!As(r)&&!lo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==ig&&(e[o]=rt(r[o]))}return e}function ut(r,e,t){if(!et(e)||!et(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==ig){var n=r[a],i=e[a];et(i)&&et(n)&&!z(i)&&!z(n)&&!lo(i)&&!lo(n)&&!pm(i)&&!pm(n)&&!As(i)&&!As(n)?ut(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function sg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ut(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==ig&&(r[t]=e[t]);return r}function j(r,e,t){for(var a=_t(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function ct(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function wL(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Qt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else j(r,eLine truncated
`),i=n.length;if(i===1)return Gm(n[0],e,t,a);for(var o=new ht(0,0,0,0),s=0;s<n.length;s++){var l=Gm(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function ds(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function $i(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function lh(r){return Ze("国",r)}function wr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function yf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=wr(a[0],t.width),u+=wr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var lv="__zr_normal__",uv=Yr.concat(["ignore"]),EI=Wr(Yr,function(r,e){return r[e]=!0,r},{ignore:!1}),Mi={},kI=new ht(0,0,0,0),uh=function(){function r(e){this.id=Sw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=kI;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mi,a,f):yf(Mi,a,f),i.x=Mi.x,i.y=Mi.y,o=Mi.align,s=Mi.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=wr(h[0],f.width),c=wr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=We,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Np:Op},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Xe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,la(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=_t(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==lv)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConf Line truncated
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var $u={},$w={};function zI(r){delete $w[r]}function GI(r){if(!r)return!1;if(typeof r=="string")return pf(r,1)<kp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=pf(e[n].color,1);return t/=a,t<kp}return!1}var FI=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new rI,o=a.renderer||"canvas";$u[o]||(o=_t($u)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new $u[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!yt.node&&!yt.worker&&!l?new PI(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?yt.touchEventsSupported:!!f,v=44,c;h&&(c=st(a.pointerSize,v)),this.handler=new Cw(i,s,u,s.root,c),this.animation=new TI({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=GI(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=Qi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Qi();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof at&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,zI(this.id))},r}();function Fm(r,e){var t=new FI(Sw(),r,e);return $w[t.id]=t,t}function HI(r,e){$u[r]=e}var Bp;function WI(r){if(typeof Bp=="function")return Bp(r)}function UI(r){Bp=r}var Hm=1e-4,qw=20;function YI(r){return r.replace(/^\s+|\s+$/g,"")}function Dt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Y(r)?YI(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Xt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),qw),r=(+r).toFixed(e),t?r:+r}function sr(r){return r.sort(function(e,t){return e-t}),r}function Br(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return XI(r)}function XI(r){var e=r.toString().toLowerCase(),t=e.indeLine truncated
`);i=fT(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)hT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function fT(r,e,t,a){a=a||{};var n=V({},a);n.font=e,t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0);n.cnCharWidth=Ze("国",e);var o=n.ascCharWidth=Ze("a",e);n.placeholder=st(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ze(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function hT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ze(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?AP(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Ze(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function AP(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function CP(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=lh(n),s=st(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?vT(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var c=v.length*s,p=st(e.height,c);if(c>p&&u){var d=Math.floor(p/s);f=f||v.length>d,v=v.slice(0,d)}if(r&&i&&h!=null)for(var g=fT(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<v.length;m++)hT(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<v.length;m++)S=Math.max(Ze(v[m],n),S);h==null&&(h=S);var b=S;return a&&(_+=a[0]+a[2],b+=a[1]+a[3],h+=a[1]+a[3]),l&&(b=h),{lines:v,height:p,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var DP=function(){function r(){}return r}(),qm=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),MP=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function LP(r,e){var t=new MP;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=cv.lastIndex=0,l;(l=cv.exec(r))!=null;){var u=l.index;u>s&&pv(t,r.substring(s,u),e,o),pv(t,l[2],e,o,l[1]),s=cv.lastIndex}s<r.length&&pv(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,p=i==="truncate",d=e.lineOverflow==="truncate",g={};function y(F,H,U){F.width=H,F.lineHeight=U,h+=U,v=Math.max(v,H)}t:for(var m=0;m<t.lines.length;m++){for(var _=t.lines[m],S=0,b=0,x=0;x<_.tokens.length;x++){var w=_.tokens[x],T=w.styleName&&e.rich[w.styleName]||{},A=w.textPadding=T.padding,C=A?A[1]+A[3]:0,M=w.font=T.font||e.font;w.contentHeight=lh(M);var L=st(T.height,w.contentHeight);if(w.innerHeight=L,A&&(L+=A[0]+A[2]),w.height=L,w.lineHeight=Fr(T.lineHeight,e.lineHeight,L),w.align=T&&T.align||e.align,w.verticalAlign=T&&T.verticalAlign||"middle",d&&n!=null&&h+w.lineHeight>n){var I=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,b,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length<I;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,f.push(w),w.contentWidth=Ze(w.text,M);else{if(R){var E=T.backgroundColor,N=E&&E.image;N&&(N=wP(N),hh(N)&&(w.width=Math.max(w.width,N.width*L/N.height)))}var O=p&&a!=null?a-b:null;O!=null&&O<w.width?!R||O<C?(w.text="",w.width=w.contentWidth=0):(TP(g,w.text,O-C,M,e.ellipsis,{minChar:e.truncateMinChar}),w.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,w.width=w.contentWidth=Ze(w.text,M)):w.contentWidth=Ze(w.text,M)}w.width+=C,b+=w.width,T&&(S=Math.max(S,w.lineHeight))}y(_,b,S)}t.outerWidth=t.width=st(a,v),t.outerHeight=t.height=st(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var w=f[m],B=w.percentWidth;w.width=parseInt(B,10)/100*t.width}return t}function pv(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var p=wr(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=p}else{var d=vT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new DP;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ze(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new qm)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new qm([m]))}}function IP(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var PP=Wr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function RP(r){return IP(r)?!!PP[r]:!0}function vT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Ze(v,e),p=a?!1:!RP(v);if(i.length?f+c>t:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Gp="__zr_style_"+Math.round(Math.random()*10),jn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jn[Gp]=!0;var Km=["z","z2","invisible"],EP=["invisible"],ur=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kP(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ht(0,0,0,0)),a?ht.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ht(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:V(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=cs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&cs)},e.prototype.styleUpdated=function(){this.__dirty&=~cs},e.prototype.createStyle=function(t){return ih(jn,t)},e.prototype.useStyle=function(t){t[Gp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Gp]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,Km)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=_t(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var p=_t(u),v=0;v<p.length;v++){var c=p[v];this.style[c]=this.style[c]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?EP:Km,v=0;v<d.length;v++){var c=d[v];a&&a[c]!=null?this[c]=a[c]:l&&n[c]!=null&&(this[c]=n[c])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return V(t,a),t},e.prototype.getAnimationStyleProps=function(){return vh},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirty Line truncated
`,`
`,`
`];function se(r,e){return e.type=r,e}function rd(r){return r.type==="section"}function OA(r){return rd(r)?Ck:Dk}function NA(r){if(rd(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return D(r.blocks,function(n){var i=NA(n);i>=e&&(e=i+ +(a&&(!i||rd(n)&&!n.noHeader)))}),e}return 0}function Ck(r,e,t,a){var n=e.noHeader,i=Mk(NA(e)),o=[],s=e.blocks||[];Le(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new MA(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(d,g){var y=e.valueFormatter,m=OA(d)(y?V(V({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):ad(a,o.join(""),n?t:i.html);if(n)return h;var v=Jp(e.header,"ordinal",r.useUTC),c=kA(a,r.renderMode).nameStyle,p=EA(a);return r.renderMode==="richText"?BA(r,v,c)+i.richText+h:ad(a,'<div style="'+c+";"+p+';">'+Ce(v)+"</div>"+h,t)}function Dk(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Jp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Jp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!i,g=!s&&i,y=kA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":BA(r,v,m))+(o?"":Pk(r,p,d,g,_)):ad(a,(s?"":h)+(i?"":Lk(v,!s,m))+(o?"":Ik(p,d,g,_)),t)}}function n_(r,e,t,a,n,i){if(r){var o=OA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Mk(r){return{html:Tk[r],richText:Ak[r]}}function ad(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=EA(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function Lk(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ce(r)+"</span>"}function Ik(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return Ce(o)}).join("&nbsp;&nbsp;")+"</span>"}function BA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Pk(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function VA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return fi(a)}function zA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Vv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=tT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=xE({color:t,type:e,renderMode:a,markerId:n});return Y(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?D(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function GA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=VA(e,t),f,h,v,c;if(o>1||l&&!o){var p=Rk(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=ho(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=yg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return se("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[se("nameValue",{markerType:"item",markerColor:u,name:_,noName:!_r(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function Rk(r,e,t,a,n){var i=e.getData(),o=Wr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?D(a,function(h){f(ho(i,t,h),h)}):D(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(se("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Da=xt();function iu(r,e){return r.getName(e)||r.getId(e)}var tf="__universalTransitionEnabled",Vt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Os({count:kk,reset:Ok}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Da(this).sourceManager=new RA(this);i.prepareSource();var o=this.getInitialData(t,n);o_(o,this),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,i_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Qs(this),i=n?Lo(t):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),ut(t,a.getTheme().get(this.subType)),ut(t,t Line truncated
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return BB(o,s)+(o!=="style"?Ce(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+VB(o)}return a(r)}function zB(r,e,t){t=t||{};var a=t.newline?`
`:"",n=" {"+a,i=a+"}",o=G(_t(r),function(l){return l+n+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(_t(e),function(l){return"@keyframes "+l+n+G(_t(e[l]),function(u){return u+n+G(_t(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function dd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function t1(r,e,t,a){return ne("svg","root",{width:r,height:e,xmlns:aD,"xmlns:xlink":nD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var GB=0;function oD(){return GB++}var e1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},En="transform-origin";function FB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new rD;return n.reset(Fw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function HB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[En]=t+"px "+a+"px")}var WB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function UB(r,e,t){var a=r.shape.paths,n={},i,o;if(D(a,function(l){var u=dd(t.zrId);u.animation=!0,Nh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=sD(n,t);return i.replace(o,s)}}function r1(r){return Y(r)?e1[r]?"cubic-bezier("+e1[r]+")":cg(r)?r:"":""}function Nh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Mg){var s=UB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],v=r1(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function A(vt,tt,pt){for(var q=vt.getTracks(),ot=vt.getMaxTime(),Ot=0;Ot<q.length;Ot++){var Lt=q[Ot];if(Lt.needsAnimate()){var Et=Lt.keyframes,Ft=Lt.propName;if(pt&&(Ft=pt(Ft)),Ft)for(var ee=0;ee<Et.length;ee++){var Fe=Et[ee],ke=Math.round(Fe.time/ot*100)+"%",sn=r1(Fe.easing),ba=Fe.rawValue;(Y(ba)||wt(ba))&&(tt[ke]=tt[ke]||{},tt[ke][Ft]=Fe.rawValue,sn&&(tt[ke][T]=sn))}}}}for(var C=0;C<S;C++){var M=_[C],L=M.targetName;L?L==="shape"&&A(M,x):!a&&A(M,b)}for(var I in b){var P={};Xw(P,r),V(P,b[I]);var R=Hw(P),E=b[I][T];w[I]=R?{transform:R}:{},HB(w[I],P),E&&(w[I][T]=E)}var N,O=!0;for(var I in x){w[I]=w[I]||{};var B=!N,E=x[I][T];B&&(N=new Zr);var F=N.len();N.reset(),w[I].d=FB(r,x[I],N);var H=N.len();if(!B&&F!==H){O=!1;break}E&&(w[I][T]=E)}if(!O)for(var I in w)delete w[I].d;if(!a)for(var C=0;C<S;C++){var M=_[C],L=M.targetName;L==="style"&&A(M,w,function(q){return WB[q]})}for(var U=_t(w),K=!0,Q,C=1;C<U.length;C++){var it=U[C-1],It=U[C];if(w[it][En]!==w[It][En]){K=!1;break}Q=w[it][En]}if(K&&Q){for(var I in w)w[I][En]&&delete w[I][En];e[En]=Q}if(Ct(U,function(vt){return _t(w[vt]).length>0}).length){var Ut=sD(w,t);return Ut+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+oD();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function YB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};a1(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dp(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),a1(a,e,t)}}function a1(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+oD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var nl=Math.round;function lD(r){return r&&Y(r.src)}function uD(r){return r&&J(r.toDataURL)}function uy(r,e,t,a){kB(function(n,i){var o=n==="fill"||n==="stroke";o&&Gw(i)?hD(e,r,n,a):o&&pg(i)?vD(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),QB(t,r,a)}function fy(r,e){var t=WI(e);t&&(t.e Line truncated
`+g.message)}var n=new at;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new ht(u,f,h,v)}if(s){var p=UD(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new St({shape:l.plain()}));var d=[];return D(t.named,function(g){s5.get(g.svgNodeTagLower)!=null&&(d.push(g),u5(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function u5(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function f5(r){var e=[],t=$();return D(r,function(a){if(a.namedFrom==null){var n=new nB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var wd=[126,25],rS="南海诸岛",kn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Rn=0;Rn<kn.length;Rn++)for(var Vi=0;Vi<kn[Rn].length;Vi++)kn[Rn][Vi][0]/=10.5,kn[Rn][Vi][1]/=-10.5/.75,kn[Rn][Vi][0]+=wd[0],kn[Rn][Vi][1]+=wd[1];function h5(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===rS)return;e.push(new GC(rS,G(kn,function(a){return{type:"polygon",exterior:a}}),wd))}}var v5={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function c5(r,e){if(r==="china"){var t=v5[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var p5=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function d5(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:p5[0]})}var g5="name",y5=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=$(),this._mapName=e,this._specialAreas=a,this._geoJSON=_5(t)}return r.prototype.load=function(e,t){t=t||g5;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:m5(n)})}var i=$(),o=[];return D(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ht(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?oB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return h5(t,n),D(n,function(i){var o=i.name;c5(t,i),d5(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function m5(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function _5(r){return Y(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ns=$();const ya={registerMap:function(r,e,t){if(e.svg){var a=new l5(r,e.svg);ns.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new y5(r,n,t);ns.set(r,a)}},getGeoResource:function(r){return ns.get(r)},getMapForUser:function(r){var e=ns.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=ns.get(r);if(a)return a.load(e,t)}};var my=["rect","circle","line","ellipse","polygon","polyline","path"],S5=$(my),x5=$(my.concat(["g"])),b5=$(my.concat(["g"])),YD=xt();function Au(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function aS(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var XD=function(){function r(e){var t=new at;this.uid=Do("ec_map_draw"),this._controller=new kl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,p=!u.childAt(0)||i;p?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Tt(f,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),a=$(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],d);y&&p.push(y)}return p}function v(c){return{shape:{points:h(c)}}}n.removeAll(),D(e.geo.regions,function(c){var p=c.name,d=t.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new at),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),a.set(p,{dataIdx:y,regionModel:m})}var S=[],b=[];D(c.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=uS(A,u)),D(A,function(M){S.push(new Re(v(M)))})}else{var C=T.points;u&&(C=uS(C,u,!0)),D(C,function(M){b.push(new Ee(v(M)))})}});var x=f(c.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new Mg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(C),nS(e,C,y,m),iS(e,C,p,m,o,y,x),A&&(aS(C),D(C.states,aS))}}w(S),w(b,!0)}),t.each(function(c,p){var d=a.get(p),g=d.dataIdx,y=d.regionModel;oS(e,c,p,y,o,g),sS(e,c,p,y,o),lS(e,c,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=$(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);S5.get(f)!=null&&h instanceof ur&&nS(e,h,v,c),h instanceof ur&&(h.culling=!0);var p=c.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(b5.get(f)!=null&&iS(e,h,s,c,l,v,null),oS(e,h,s,c,l,v),sS(e,h,s,c,l),x5.get(f)!=null)){var d=lS(e,h,s,c,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ui(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&t Line truncated
`))}),e.join(`
`+Wh+`
`)}function k6(r){return G(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+_o:"")+n.join(_o))}),a.join(`
`)}).join(`
`+Wh+`
`)}function O6(r){var e=R6(r);return{value:Ct([E6(e.seriesGroupByCategoryAxis),k6(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+Wh+`
`),meta:e.meta}}function qf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function N6(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(_o)>=0)return!0}var Ud=new RegExp("["+_o+"]+","g");function B6(r){for(var e=r.split(/\n+/g),t=qf(e.shift()).split(Ud),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=qf(e[i]).split(Ud);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function V6(r){for(var e=r.split(/\n+/g),t=qf(e.shift()),a=[],n=0;n<e.length;n++){var i=qf(e[n]);if(i){var o=i.split(Ud),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function z6(r,e){var t=r.split(new RegExp(`
*`+Wh+`
*`,"g")),a={series:[]};return D(t,function(n,i){if(N6(n)){var o=B6(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=V6(n);a.series.push(o)}}),a}var G6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=O6(t);if(J(h)){var p=h(a.getOption());Y(p)?u.innerHTML=p:lo(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}bp(_,"click",x),bp(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var w;try{J(v)?w=v(u,a.getOption()):w=z6(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e}(nr);function F6(r,e){return G(r,function(t,a){var n=e&&e[a];if(et(n)&&!z(n)){var i=et(t)&&!z(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=j(t,n),o&&delete t.name,t}else return t})}qr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];D(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(V({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:F6(a.data,i)})}}),e.mergeOption(j({series:t},r.newOption))});var b2=D,w2=xt();function H6(r,e){var t=em(r);b2(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function W6(r){var e=em(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return b2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function U6(r){w2(r).snapshots=null}function Y6(r){return em(r).length}function em(r){var e=w2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var X6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){U6(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(nr);qr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Z6=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rm=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=rb(t,e);D($6,function(o,s){(!a||!a.include||ct(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coor Line truncated
`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=ls([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Vv;y.marker=m.makeTooltipMarker("item",fi(y.color),c);var _=Q0(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?n_(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=nt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=rt(l),l.content=Ce(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=ls(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Vv;this._showOrMove(p,function(){var m=rt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(Y(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=xh(y.axisValue,c,g)),c=oA(c,n,!0)}else if(J(v)){var _=X(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),J(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=W(a[0],u),i=W(a[1],f);else if(et(a)){var d=a;d.width=h[0],d.height=h[1];var g=te(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(Y(a)&&l){var y=m8(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=g8(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=pb(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=pb(c)?h[1]/2:c==="bottom"?h[1]:0),T2(t)){var y=y8(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&D(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&D(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){yt.node||!a.getDom()||(tl(this,"_updatePosition"),this._tooltipContent.dispose(),Fd("itemTooltip",a))},e.type="tooltip",e}(Ht);function ls(r,e,t){var a=e.ecModel,n;t?(n=new Mt(t,a,a),n=new Mt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(n=new Mt(o,n,a)))}return n}function cb(r,e){return r.dispatchAction||X(e.dispatchAction,e)}function g8(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function y8(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function m8(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x Line truncated
`)){var g=new Gu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",Wi(Eb,d,null,i,v)).on("mouseover",Wi(Qd,y.name,null,i,v)).on("mouseout",Wi(jd,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=nt(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var A=T.indexOfName(d),C=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),L=Xe(C.fill);L&&L[3]===0&&(L[3]=.2,C=V(V({},C),{fill:la(L,"rgba")}));var I=this._createItem(w,d,p,c,a,t,{},C,M,h,i);I.on("click",Wi(Eb,null,d,i,v)).on("mouseover",Wi(Qd,null,d,i,v)).on("mouseout",Wi(jd,null,d,i,v)),n.ssr&&I.eachChild(function(P){var R=nt(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Jd(t,function(u){var f=u.type,h=new bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);de(h,{normal:v,emphasis:c},{defaultText:u.title}),ei(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=yU(f,i,l,u,c,g,v),b=new Gu,x=i.getModel("textStyle");if(J(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(mU({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,A=s,C=o.get("formatter"),M=a;Y(C)&&C?M=C.replace("{name}",a??""):J(C)&&(M=C(a));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new bt({style:Bt(x,{text:M,x:T,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var I=new St({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&di({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),ei(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ai(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ai("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ht);function yU(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Jd(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:vo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function mU(r){var e=r.icon||"roundRect",t=Jt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Eb(r,e,t,a){jd(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Qd(r,e,t,a)}function k2(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Qd(r,e, Line truncated
`||n==="")){var i=r.isSelected(n);Z(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function SU(r){r.registerAction("legendToggleSelect","legendselectchanged",lt(fs,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",lt(fs,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",lt(fs,"inverseSelect")),r.registerAction("legendSelect","legendselected",lt(fs,"select")),r.registerAction("legendUnSelect","legendunselected",lt(fs,"unSelect"))}function O2(r){r.registerComponentModel(Kd),r.registerComponentView(E2),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,_U),r.registerSubTypeDefaulter("legend",function(){return"plain"}),SU(r)}var xU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Lo(t);r.prototype.init.call(this,t,a,n),Ob(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Ob(this,this.option,t)},e.type="legend.scroll",e.defaultOption=on(Kd.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Kd);function Ob(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,tn(e,t,{type:"box",ignoreSize:!!n})}var Nb=at,ip=["width","height"],op=["x","y"],bU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Nb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Nb)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=z(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new bt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=wl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:X(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=ip[u],h=op[u],v=ip[1-u],c=op[1-u];o&&ai("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=rt(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ai(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ai("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new St({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Tt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get(" Line truncated
@@ -0,0 +1 @@
.stat-card[data-v-a5d72369]{border-radius:8px;transition:all .25s;margin-bottom:6px;border:1px solid #f0f0f0;overflow:hidden}.stat-card[data-v-a5d72369] .el-card__body{padding:10px 12px;display:flex;align-items:center;gap:10px}.stat-card[data-v-a5d72369]:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000014!important;border-color:#e0e0e0}.stat-icon[data-v-a5d72369]{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-info[data-v-a5d72369]{flex:1;min-width:0}.stat-value[data-v-a5d72369]{font-size:18px;font-weight:700;color:#1e293b;line-height:1.2}.stat-label[data-v-a5d72369]{color:#94a3b8;font-size:11px;margin-top:1px;white-space:nowrap}.chart-card[data-v-a5d72369]{border-radius:8px}.chart-card[data-v-a5d72369] .el-card__body{padding:12px 14px}.chart-card[data-v-a5d72369] .el-card__header{padding:10px 14px}.chart-header[data-v-a5d72369]{display:flex;align-items:center;justify-content:space-between}.chart-header-title[data-v-a5d72369]{font-size:13px;font-weight:600;display:flex;align-items:center;gap:4px}.chart-header-meta[data-v-a5d72369]{display:flex;align-items:center;gap:8px;font-size:11px;color:#94a3b8}.chart-header-meta b[data-v-a5d72369]{color:#475569}.chart-meta-divider[data-v-a5d72369]{color:#e2e8f0}
@@ -0,0 +1,60 @@
import{_ as Q2,m as j2,I as tL,F as eL,o as Jr,c as vm,b as he,w as Yt,S as ln,M as No,l as bi,a7 as rL,r as Bl,H as aL,V as nL,a8 as iL,a9 as oL,A as wi,a as zt,E as sL,a4 as lL,C as Ti,i as wa,D as Bo}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css */import{u as uL}from"./user-dKBxTmfR.js";import{r as fL}from"./index-C3lsw5-G.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var pp=function(r,e){return pp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},pp(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var hL=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),vL=function(){function r(){this.browser=new hL,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 r}(),yt=new vL;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:!yt.hasGlobalWindow||"Deno"in window?(yt.node=!0,yt.svgSupported=!0):cL(navigator.userAgent,yt);function cL(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var ag=12,yw="sans-serif",Ka=ag+"px "+yw,pL=20,dL=100,gL="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function yL(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-pL)/dL;e[a]=n}return e}var mL=yL(gL),Ja={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=Ja.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||Ka),r.measureText(t);t=t||"",a=a||Ka;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||ag,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=mL[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},mw=Wr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),_w=Wr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),So=Object.prototype.toString,ah=Array.prototype,_L=ah.forEach,SL=ah.filter,ng=ah.slice,xL=ah.map,cm=(function(){}).constructor,Vl=cm?cm.prototype:null,ig="__proto__",bL=2311;function Sw(){return bL++}function og(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function rt(r){if(r==null||typeof r!="object")return r;var e=r,t=So.call(r);if(t==="[object Array]"){if(!As(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=rt(r[a])}}else if(_w[t]){if(!As(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!mw[t]&&!As(r)&&!lo(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==ig&&(e[o]=rt(r[o]))}return e}function ut(r,e,t){if(!et(e)||!et(r))return t?rt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==ig){var n=r[a],i=e[a];et(i)&&et(n)&&!z(i)&&!z(n)&&!lo(i)&&!lo(n)&&!pm(i)&&!pm(n)&&!As(i)&&!As(n)?ut(n,i,t):(t||!(a in r))&&(r[a]=rt(e[a]))}return r}function sg(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ut(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==ig&&(r[t]=e[t]);return r}function j(r,e,t){for(var a=_t(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function ct(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function wL(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Qt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else j(r,eLine truncated
`),i=n.length;if(i===1)return Gm(n[0],e,t,a);for(var o=new ht(0,0,0,0),s=0;s<n.length;s++){var l=Gm(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function ds(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function $i(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function lh(r){return Ze("国",r)}function wr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function yf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=wr(a[0],t.width),u+=wr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var lv="__zr_normal__",uv=Yr.concat(["ignore"]),EI=Wr(Yr,function(r,e){return r[e]=!0,r},{ignore:!1}),Mi={},kI=new ht(0,0,0,0),uh=function(){function r(e){this.id=Sw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=kI;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mi,a,f):yf(Mi,a,f),i.x=Mi.x,i.y=Mi.y,o=Mi.align,s=Mi.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=wr(h[0],f.width),c=wr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=We,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Np:Op},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Xe(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,la(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(et(e))for(var a=e,n=_t(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==lv)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConf Line truncated
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var $u={},$w={};function zI(r){delete $w[r]}function GI(r){if(!r)return!1;if(typeof r=="string")return pf(r,1)<kp;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=pf(e[n].color,1);return t/=a,t<kp}return!1}var FI=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new rI,o=a.renderer||"canvas";$u[o]||(o=_t($u)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new $u[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!yt.node&&!yt.worker&&!l?new PI(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?yt.touchEventsSupported:!!f,v=44,c;h&&(c=st(a.pointerSize,v)),this.handler=new Cw(i,s,u,s.root,c),this.animation=new TI({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=GI(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=Qi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Qi();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof at&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,zI(this.id))},r}();function Fm(r,e){var t=new FI(Sw(),r,e);return $w[t.id]=t,t}function HI(r,e){$u[r]=e}var Bp;function WI(r){if(typeof Bp=="function")return Bp(r)}function UI(r){Bp=r}var Hm=1e-4,qw=20;function YI(r){return r.replace(/^\s+|\s+$/g,"")}function Dt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Y(r)?YI(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Xt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),qw),r=(+r).toFixed(e),t?r:+r}function sr(r){return r.sort(function(e,t){return e-t}),r}function Br(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return XI(r)}function XI(r){var e=r.toString().toLowerCase(),t=e.indeLine truncated
`);i=fT(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)hT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function fT(r,e,t,a){a=a||{};var n=V({},a);n.font=e,t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0);n.cnCharWidth=Ze("国",e);var o=n.ascCharWidth=Ze("a",e);n.placeholder=st(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ze(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function hT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ze(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?AP(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Ze(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function AP(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function CP(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=lh(n),s=st(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?vT(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
`):[];var c=v.length*s,p=st(e.height,c);if(c>p&&u){var d=Math.floor(p/s);f=f||v.length>d,v=v.slice(0,d)}if(r&&i&&h!=null)for(var g=fT(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<v.length;m++)hT(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<v.length;m++)S=Math.max(Ze(v[m],n),S);h==null&&(h=S);var b=S;return a&&(_+=a[0]+a[2],b+=a[1]+a[3],h+=a[1]+a[3]),l&&(b=h),{lines:v,height:p,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var DP=function(){function r(){}return r}(),qm=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),MP=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function LP(r,e){var t=new MP;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=cv.lastIndex=0,l;(l=cv.exec(r))!=null;){var u=l.index;u>s&&pv(t,r.substring(s,u),e,o),pv(t,l[2],e,o,l[1]),s=cv.lastIndex}s<r.length&&pv(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,p=i==="truncate",d=e.lineOverflow==="truncate",g={};function y(F,H,U){F.width=H,F.lineHeight=U,h+=U,v=Math.max(v,H)}t:for(var m=0;m<t.lines.length;m++){for(var _=t.lines[m],S=0,b=0,x=0;x<_.tokens.length;x++){var w=_.tokens[x],T=w.styleName&&e.rich[w.styleName]||{},A=w.textPadding=T.padding,C=A?A[1]+A[3]:0,M=w.font=T.font||e.font;w.contentHeight=lh(M);var L=st(T.height,w.contentHeight);if(w.innerHeight=L,A&&(L+=A[0]+A[2]),w.height=L,w.lineHeight=Fr(T.lineHeight,e.lineHeight,L),w.align=T&&T.align||e.align,w.verticalAlign=T&&T.verticalAlign||"middle",d&&n!=null&&h+w.lineHeight>n){var I=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,b,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length<I;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,f.push(w),w.contentWidth=Ze(w.text,M);else{if(R){var E=T.backgroundColor,N=E&&E.image;N&&(N=wP(N),hh(N)&&(w.width=Math.max(w.width,N.width*L/N.height)))}var O=p&&a!=null?a-b:null;O!=null&&O<w.width?!R||O<C?(w.text="",w.width=w.contentWidth=0):(TP(g,w.text,O-C,M,e.ellipsis,{minChar:e.truncateMinChar}),w.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,w.width=w.contentWidth=Ze(w.text,M)):w.contentWidth=Ze(w.text,M)}w.width+=C,b+=w.width,T&&(S=Math.max(S,w.lineHeight))}y(_,b,S)}t.outerWidth=t.width=st(a,v),t.outerHeight=t.height=st(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var w=f[m],B=w.percentWidth;w.width=parseInt(B,10)/100*t.width}return t}function pv(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var p=wr(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=p}else{var d=vT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new DP;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ze(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new qm)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new qm([m]))}}function IP(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var PP=Wr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function RP(r){return IP(r)?!!PP[r]:!0}function vT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Ze(v,e),p=a?!1:!RP(v);if(i.length?f+c>t:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Gp="__zr_style_"+Math.round(Math.random()*10),jn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jn[Gp]=!0;var Km=["z","z2","invisible"],EP=["invisible"],ur=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=_t(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kP(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ht(0,0,0,0)),a?ht.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ht(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:V(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=cs,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&cs)},e.prototype.styleUpdated=function(){this.__dirty&=~cs},e.prototype.createStyle=function(t){return ih(jn,t)},e.prototype.useStyle=function(t){t[Gp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Gp]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,Km)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=_t(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var p=_t(u),v=0;v<p.length;v++){var c=p[v];this.style[c]=this.style[c]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?EP:Km,v=0;v<d.length;v++){var c=d[v];a&&a[c]!=null?this[c]=a[c]:l&&n[c]!=null&&(this[c]=n[c])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return V(t,a),t},e.prototype.getAnimationStyleProps=function(){return vh},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirty Line truncated
`,`
`,`
`];function se(r,e){return e.type=r,e}function rd(r){return r.type==="section"}function OA(r){return rd(r)?Ck:Dk}function NA(r){if(rd(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return D(r.blocks,function(n){var i=NA(n);i>=e&&(e=i+ +(a&&(!i||rd(n)&&!n.noHeader)))}),e}return 0}function Ck(r,e,t,a){var n=e.noHeader,i=Mk(NA(e)),o=[],s=e.blocks||[];Le(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new MA(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(d,g){var y=e.valueFormatter,m=OA(d)(y?V(V({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):ad(a,o.join(""),n?t:i.html);if(n)return h;var v=Jp(e.header,"ordinal",r.useUTC),c=kA(a,r.renderMode).nameStyle,p=EA(a);return r.renderMode==="richText"?BA(r,v,c)+i.richText+h:ad(a,'<div style="'+c+";"+p+';">'+Ce(v)+"</div>"+h,t)}function Dk(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(b,x){return Jp(b,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Jp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!i,g=!s&&i,y=kA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":BA(r,v,m))+(o?"":Pk(r,p,d,g,_)):ad(a,(s?"":h)+(i?"":Lk(v,!s,m))+(o?"":Ik(p,d,g,_)),t)}}function n_(r,e,t,a,n,i){if(r){var o=OA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Mk(r){return{html:Tk[r],richText:Ak[r]}}function ad(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=EA(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function Lk(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ce(r)+"</span>"}function Ik(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+i+";"+a+'">'+G(r,function(o){return Ce(o)}).join("&nbsp;&nbsp;")+"</span>"}function BA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Pk(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}function VA(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return fi(a)}function zA(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Vv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=tT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=xE({color:t,type:e,renderMode:a,markerId:n});return Y(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?D(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function GA(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=VA(e,t),f,h,v,c;if(o>1||l&&!o){var p=Rk(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=ho(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=yg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return se("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[se("nameValue",{markerType:"item",markerColor:u,name:_,noName:!_r(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function Rk(r,e,t,a,n){var i=e.getData(),o=Wr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?D(a,function(h){f(ho(i,t,h),h)}):D(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(se("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Da=xt();function iu(r,e){return r.getName(e)||r.getId(e)}var tf="__universalTransitionEnabled",Vt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Os({count:kk,reset:Ok}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=Da(this).sourceManager=new RA(this);i.prepareSource();var o=this.getInitialData(t,n);o_(o,this),this.dataTask.context.data=o,Da(this).dataBeforeProcessed=o,i_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Qs(this),i=n?Lo(t):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),ut(t,a.getTheme().get(this.subType)),ut(t,t Line truncated
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return BB(o,s)+(o!=="style"?Ce(l):l||"")+(i?""+t+G(i,function(u){return a(u)}).join(t)+t:"")+VB(o)}return a(r)}function zB(r,e,t){t=t||{};var a=t.newline?`
`:"",n=" {"+a,i=a+"}",o=G(_t(r),function(l){return l+n+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(_t(e),function(l){return"@keyframes "+l+n+G(_t(e[l]),function(u){return u+n+G(_t(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function dd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function t1(r,e,t,a){return ne("svg","root",{width:r,height:e,xmlns:aD,"xmlns:xlink":nD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var GB=0;function oD(){return GB++}var e1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},En="transform-origin";function FB(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new rD;return n.reset(Fw(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function HB(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[En]=t+"px "+a+"px")}var WB={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function UB(r,e,t){var a=r.shape.paths,n={},i,o;if(D(a,function(l){var u=dd(t.zrId);u.animation=!0,Nh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=_t(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=sD(n,t);return i.replace(o,s)}}function r1(r){return Y(r)?e1[r]?"cubic-bezier("+e1[r]+")":cg(r)?r:"":""}function Nh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Mg){var s=UB(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],v=r1(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function A(vt,tt,pt){for(var q=vt.getTracks(),ot=vt.getMaxTime(),Ot=0;Ot<q.length;Ot++){var Lt=q[Ot];if(Lt.needsAnimate()){var Et=Lt.keyframes,Ft=Lt.propName;if(pt&&(Ft=pt(Ft)),Ft)for(var ee=0;ee<Et.length;ee++){var Fe=Et[ee],ke=Math.round(Fe.time/ot*100)+"%",sn=r1(Fe.easing),ba=Fe.rawValue;(Y(ba)||wt(ba))&&(tt[ke]=tt[ke]||{},tt[ke][Ft]=Fe.rawValue,sn&&(tt[ke][T]=sn))}}}}for(var C=0;C<S;C++){var M=_[C],L=M.targetName;L?L==="shape"&&A(M,x):!a&&A(M,b)}for(var I in b){var P={};Xw(P,r),V(P,b[I]);var R=Hw(P),E=b[I][T];w[I]=R?{transform:R}:{},HB(w[I],P),E&&(w[I][T]=E)}var N,O=!0;for(var I in x){w[I]=w[I]||{};var B=!N,E=x[I][T];B&&(N=new Zr);var F=N.len();N.reset(),w[I].d=FB(r,x[I],N);var H=N.len();if(!B&&F!==H){O=!1;break}E&&(w[I][T]=E)}if(!O)for(var I in w)delete w[I].d;if(!a)for(var C=0;C<S;C++){var M=_[C],L=M.targetName;L==="style"&&A(M,w,function(q){return WB[q]})}for(var U=_t(w),K=!0,Q,C=1;C<U.length;C++){var it=U[C-1],It=U[C];if(w[it][En]!==w[It][En]){K=!1;break}Q=w[it][En]}if(K&&Q){for(var I in w)w[I][En]&&delete w[I][En];e[En]=Q}if(Ct(U,function(vt){return _t(w[vt]).length>0}).length){var Ut=sD(w,t);return Ut+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+oD();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function YB(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};a1(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Dp(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),a1(a,e,t)}}function a1(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+oD(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var nl=Math.round;function lD(r){return r&&Y(r.src)}function uD(r){return r&&J(r.toDataURL)}function uy(r,e,t,a){kB(function(n,i){var o=n==="fill"||n==="stroke";o&&Gw(i)?hD(e,r,n,a):o&&pg(i)?vD(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),QB(t,r,a)}function fy(r,e){var t=WI(e);t&&(t.e Line truncated
`+g.message)}var n=new at;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new ht(u,f,h,v)}if(s){var p=UD(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new St({shape:l.plain()}));var d=[];return D(t.named,function(g){s5.get(g.svgNodeTagLower)!=null&&(d.push(g),u5(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function u5(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function f5(r){var e=[],t=$();return D(r,function(a){if(a.namedFrom==null){var n=new nB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var wd=[126,25],rS="南海诸岛",kn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Rn=0;Rn<kn.length;Rn++)for(var Vi=0;Vi<kn[Rn].length;Vi++)kn[Rn][Vi][0]/=10.5,kn[Rn][Vi][1]/=-10.5/.75,kn[Rn][Vi][0]+=wd[0],kn[Rn][Vi][1]+=wd[1];function h5(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===rS)return;e.push(new GC(rS,G(kn,function(a){return{type:"polygon",exterior:a}}),wd))}}var v5={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function c5(r,e){if(r==="china"){var t=v5[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var p5=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function d5(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:p5[0]})}var g5="name",y5=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=$(),this._mapName=e,this._specialAreas=a,this._geoJSON=_5(t)}return r.prototype.load=function(e,t){t=t||g5;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:m5(n)})}var i=$(),o=[];return D(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ht(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?oB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return h5(t,n),D(n,function(i){var o=i.name;c5(t,i),d5(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function m5(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function _5(r){return Y(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var ns=$();const ya={registerMap:function(r,e,t){if(e.svg){var a=new l5(r,e.svg);ns.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new y5(r,n,t);ns.set(r,a)}},getGeoResource:function(r){return ns.get(r)},getMapForUser:function(r){var e=ns.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=ns.get(r);if(a)return a.load(e,t)}};var my=["rect","circle","line","ellipse","polygon","polyline","path"],S5=$(my),x5=$(my.concat(["g"])),b5=$(my.concat(["g"])),YD=xt();function Au(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function aS(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var XD=function(){function r(e){var t=new at;this.uid=Do("ec_map_draw"),this._controller=new kl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,p=!u.childAt(0)||i;p?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Tt(f,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),a=$(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],d);y&&p.push(y)}return p}function v(c){return{shape:{points:h(c)}}}n.removeAll(),D(e.geo.regions,function(c){var p=c.name,d=t.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new at),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),a.set(p,{dataIdx:y,regionModel:m})}var S=[],b=[];D(c.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=uS(A,u)),D(A,function(M){S.push(new Re(v(M)))})}else{var C=T.points;u&&(C=uS(C,u,!0)),D(C,function(M){b.push(new Ee(v(M)))})}});var x=f(c.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new Mg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(C),nS(e,C,y,m),iS(e,C,p,m,o,y,x),A&&(aS(C),D(C.states,aS))}}w(S),w(b,!0)}),t.each(function(c,p){var d=a.get(p),g=d.dataIdx,y=d.regionModel;oS(e,c,p,y,o,g),sS(e,c,p,y,o),lS(e,c,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=$(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);S5.get(f)!=null&&h instanceof ur&&nS(e,h,v,c),h instanceof ur&&(h.culling=!0);var p=c.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(b5.get(f)!=null&&iS(e,h,s,c,l,v,null),oS(e,h,s,c,l,v),sS(e,h,s,c,l),x5.get(f)!=null)){var d=lS(e,h,s,c,l);d==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ui(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&t Line truncated
`))}),e.join(`
`+Wh+`
`)}function k6(r){return G(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+_o:"")+n.join(_o))}),a.join(`
`)}).join(`
`+Wh+`
`)}function O6(r){var e=R6(r);return{value:Ct([E6(e.seriesGroupByCategoryAxis),k6(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
`+Wh+`
`),meta:e.meta}}function qf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function N6(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(_o)>=0)return!0}var Ud=new RegExp("["+_o+"]+","g");function B6(r){for(var e=r.split(/\n+/g),t=qf(e.shift()).split(Ud),a=[],n=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=qf(e[i]).split(Ud);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function V6(r){for(var e=r.split(/\n+/g),t=qf(e.shift()),a=[],n=0;n<e.length;n++){var i=qf(e[n]);if(i){var o=i.split(Ud),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function z6(r,e){var t=r.split(new RegExp(`
*`+Wh+`
*`,"g")),a={series:[]};return D(t,function(n,i){if(N6(n)){var o=B6(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=V6(n);a.series.push(o)}}),a}var G6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=O6(t);if(J(h)){var p=h(a.getOption());Y(p)?u.innerHTML=p:lo(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}bp(_,"click",x),bp(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var w;try{J(v)?w=v(u,a.getOption()):w=z6(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e}(nr);function F6(r,e){return G(r,function(t,a){var n=e&&e[a];if(et(n)&&!z(n)){var i=et(t)&&!z(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=j(t,n),o&&delete t.name,t}else return t})}qr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];D(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(V({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:F6(a.data,i)})}}),e.mergeOption(j({series:t},r.newOption))});var b2=D,w2=xt();function H6(r,e){var t=em(r);b2(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function W6(r){var e=em(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return b2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function U6(r){w2(r).snapshots=null}function Y6(r){return em(r).length}function em(r){var e=w2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var X6=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){U6(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(nr);qr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Z6=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rm=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=rb(t,e);D($6,function(o,s){(!a||!a.include||ct(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coor Line truncated
`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=ls([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Vv;y.marker=m.makeTooltipMarker("item",fi(y.color),c);var _=Q0(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?n_(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=nt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=rt(l),l.content=Ce(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=ls(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Vv;this._showOrMove(p,function(){var m=rt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(Y(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=xh(y.axisValue,c,g)),c=oA(c,n,!0)}else if(J(v)){var _=X(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),J(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=W(a[0],u),i=W(a[1],f);else if(et(a)){var d=a;d.width=h[0],d.height=h[1];var g=te(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(Y(a)&&l){var y=m8(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=g8(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=pb(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=pb(c)?h[1]/2:c==="bottom"?h[1]:0),T2(t)){var y=y8(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&D(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&D(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){yt.node||!a.getDom()||(tl(this,"_updatePosition"),this._tooltipContent.dispose(),Fd("itemTooltip",a))},e.type="tooltip",e}(Ht);function ls(r,e,t){var a=e.ecModel,n;t?(n=new Mt(t,a,a),n=new Mt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(n=new Mt(o,n,a)))}return n}function cb(r,e){return r.dispatchAction||X(e.dispatchAction,e)}function g8(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function y8(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function m8(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x Line truncated
`)){var g=new Gu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",Wi(Eb,d,null,i,v)).on("mouseover",Wi(Qd,y.name,null,i,v)).on("mouseout",Wi(jd,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=nt(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var A=T.indexOfName(d),C=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),L=Xe(C.fill);L&&L[3]===0&&(L[3]=.2,C=V(V({},C),{fill:la(L,"rgba")}));var I=this._createItem(w,d,p,c,a,t,{},C,M,h,i);I.on("click",Wi(Eb,null,d,i,v)).on("mouseover",Wi(Qd,null,d,i,v)).on("mouseout",Wi(jd,null,d,i,v)),n.ssr&&I.eachChild(function(P){var R=nt(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Jd(t,function(u){var f=u.type,h=new bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);de(h,{normal:v,emphasis:c},{defaultText:u.title}),ei(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=yU(f,i,l,u,c,g,v),b=new Gu,x=i.getModel("textStyle");if(J(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(mU({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,A=s,C=o.get("formatter"),M=a;Y(C)&&C?M=C.replace("{name}",a??""):J(C)&&(M=C(a));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new bt({style:Bt(x,{text:M,x:T,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var I=new St({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&di({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),ei(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ai(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ai("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ht);function yU(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Jd(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:vo(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),c.stroke==="auto"&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?a.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function mU(r){var e=r.icon||"roundRect",t=Jt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Eb(r,e,t,a){jd(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Qd(r,e,t,a)}function k2(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Qd(r,e, Line truncated
`||n==="")){var i=r.isSelected(n);Z(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function SU(r){r.registerAction("legendToggleSelect","legendselectchanged",lt(fs,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",lt(fs,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",lt(fs,"inverseSelect")),r.registerAction("legendSelect","legendselected",lt(fs,"select")),r.registerAction("legendUnSelect","legendunselected",lt(fs,"unSelect"))}function O2(r){r.registerComponentModel(Kd),r.registerComponentView(E2),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,_U),r.registerSubTypeDefaulter("legend",function(){return"plain"}),SU(r)}var xU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Lo(t);r.prototype.init.call(this,t,a,n),Ob(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),Ob(this,this.option,t)},e.type="legend.scroll",e.defaultOption=on(Kd.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Kd);function Ob(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,tn(e,t,{type:"box",ignoreSize:!!n})}var Nb=at,ip=["width","height"],op=["x","y"],bU=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Nb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Nb)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=z(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new bt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=wl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:X(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=ip[u],h=op[u],v=ip[1-u],c=op[1-u];o&&ai("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=rt(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ai(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),ai("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new St({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Tt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get(" Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as b,o as E,c as V,a as o,b as s,w as a,E as x,d as k,u as h,r as B,e as C,f as F,g as I,h as K,i as L,j as U,k as z,l as m}from"./index-Bn3no55S.js";/* empty css *//* empty css */import{u as N}from"./user-dKBxTmfR.js";import"./index-C3lsw5-G.js";const R={class:"login-container"},q={class:"login-card"},S={class:"login-icon"},j={__name:"Login",setup(A){const p=h(),_=N(),r=m(!1),t=m(null),l=U({username:"",password:""}),f={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};async function u(){t.value&&await t.value.validate(async d=>{if(d){r.value=!0;try{await _.login(l.username,l.password,"admin"),z.success("登录成功"),p.push("/dashboard")}catch{}finally{r.value=!1}}})}return(d,e)=>{const g=B("Key"),v=x,c=F,n=C,w=K,y=k;return E(),V("div",R,[e[5]||(e[5]=o("div",{class:"login-bg"},[o("div",{class:"bg-circle c1"}),o("div",{class:"bg-circle c2"}),o("div",{class:"bg-circle c3"})],-1)),o("div",q,[o("div",S,[s(v,{size:48,color:"#409EFF"},{default:a(()=>[s(g)]),_:1})]),e[3]||(e[3]=o("h2",{class:"login-title"},"CardAuth",-1)),e[4]||(e[4]=o("p",{class:"login-subtitle"},"授权管理系统",-1)),s(y,{ref_key:"formRef",ref:t,model:l,rules:f,size:"large",class:"login-form"},{default:a(()=>[s(n,{prop:"username"},{default:a(()=>[s(c,{modelValue:l.username,"onUpdate:modelValue":e[0]||(e[0]=i=>l.username=i),placeholder:"用户名","prefix-icon":"User",clearable:""},null,8,["modelValue"])]),_:1}),s(n,{prop:"password"},{default:a(()=>[s(c,{modelValue:l.password,"onUpdate:modelValue":e[1]||(e[1]=i=>l.password=i),type:"password",placeholder:"密码","prefix-icon":"Lock","show-password":"",onKeyup:I(u,["enter"])},null,8,["modelValue"])]),_:1}),s(n,null,{default:a(()=>[s(w,{type:"primary",loading:r.value,style:{width:"100%"},size:"large",onClick:u},{default:a(()=>[...e[2]||(e[2]=[L(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])])])}}},J=b(j,[["__scopeId","data-v-3765d254"]]);export{J as default};
+1
View File
@@ -0,0 +1 @@
import{_ as b,o as E,c as V,a as o,b as s,w as a,E as x,d as k,u as h,r as B,e as C,f as F,g as I,h as K,i as L,j as U,k as z,l as m}from"./index-B5xNuf83.js";/* empty css *//* empty css */import{u as N}from"./user-CjwLSb7B.js";import"./index-C7doSj3W.js";const R={class:"login-container"},q={class:"login-card"},S={class:"login-icon"},j={__name:"Login",setup(A){const p=h(),_=N(),r=m(!1),t=m(null),l=U({username:"",password:""}),f={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};async function u(){t.value&&await t.value.validate(async d=>{if(d){r.value=!0;try{await _.login(l.username,l.password,"admin"),z.success("登录成功"),p.push("/dashboard")}catch{}finally{r.value=!1}}})}return(d,e)=>{const g=B("Key"),v=x,c=F,n=C,w=K,y=k;return E(),V("div",R,[e[5]||(e[5]=o("div",{class:"login-bg"},[o("div",{class:"bg-circle c1"}),o("div",{class:"bg-circle c2"}),o("div",{class:"bg-circle c3"})],-1)),o("div",q,[o("div",S,[s(v,{size:48,color:"#409EFF"},{default:a(()=>[s(g)]),_:1})]),e[3]||(e[3]=o("h2",{class:"login-title"},"CardAuth",-1)),e[4]||(e[4]=o("p",{class:"login-subtitle"},"授权管理系统",-1)),s(y,{ref_key:"formRef",ref:t,model:l,rules:f,size:"large",class:"login-form"},{default:a(()=>[s(n,{prop:"username"},{default:a(()=>[s(c,{modelValue:l.username,"onUpdate:modelValue":e[0]||(e[0]=i=>l.username=i),placeholder:"用户名","prefix-icon":"User",clearable:""},null,8,["modelValue"])]),_:1}),s(n,{prop:"password"},{default:a(()=>[s(c,{modelValue:l.password,"onUpdate:modelValue":e[1]||(e[1]=i=>l.password=i),type:"password",placeholder:"密码","prefix-icon":"Lock","show-password":"",onKeyup:I(u,["enter"])},null,8,["modelValue"])]),_:1}),s(n,null,{default:a(()=>[s(w,{type:"primary",loading:r.value,style:{width:"100%"},size:"large",onClick:u},{default:a(()=>[...e[2]||(e[2]=[L(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])])])}}},J=b(j,[["__scopeId","data-v-3765d254"]]);export{J as default};
+1
View File
@@ -0,0 +1 @@
import{_ as b,o as E,c as V,a as o,b as s,w as a,E as x,d as k,u as h,r as B,e as C,f as F,g as I,h as K,i as L,j as U,k as z,l as m}from"./index-CZJEDzxI.js";/* empty css *//* empty css */import{u as N}from"./user-iqLWbJfU.js";import"./index-CxGbf_5w.js";const R={class:"login-container"},q={class:"login-card"},S={class:"login-icon"},j={__name:"Login",setup(A){const p=h(),_=N(),r=m(!1),t=m(null),l=U({username:"",password:""}),f={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]};async function u(){t.value&&await t.value.validate(async d=>{if(d){r.value=!0;try{await _.login(l.username,l.password,"admin"),z.success("登录成功"),p.push("/dashboard")}catch{}finally{r.value=!1}}})}return(d,e)=>{const g=B("Key"),v=x,c=F,n=C,w=K,y=k;return E(),V("div",R,[e[5]||(e[5]=o("div",{class:"login-bg"},[o("div",{class:"bg-circle c1"}),o("div",{class:"bg-circle c2"}),o("div",{class:"bg-circle c3"})],-1)),o("div",q,[o("div",S,[s(v,{size:48,color:"#409EFF"},{default:a(()=>[s(g)]),_:1})]),e[3]||(e[3]=o("h2",{class:"login-title"},"CardAuth",-1)),e[4]||(e[4]=o("p",{class:"login-subtitle"},"授权管理系统",-1)),s(y,{ref_key:"formRef",ref:t,model:l,rules:f,size:"large",class:"login-form"},{default:a(()=>[s(n,{prop:"username"},{default:a(()=>[s(c,{modelValue:l.username,"onUpdate:modelValue":e[0]||(e[0]=i=>l.username=i),placeholder:"用户名","prefix-icon":"User",clearable:""},null,8,["modelValue"])]),_:1}),s(n,{prop:"password"},{default:a(()=>[s(c,{modelValue:l.password,"onUpdate:modelValue":e[1]||(e[1]=i=>l.password=i),type:"password",placeholder:"密码","prefix-icon":"Lock","show-password":"",onKeyup:I(u,["enter"])},null,8,["modelValue"])]),_:1}),s(n,null,{default:a(()=>[s(w,{type:"primary",loading:r.value,style:{width:"100%"},size:"large",onClick:u},{default:a(()=>[...e[2]||(e[2]=[L(" 登 录 ",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])])])}}},J=b(j,[["__scopeId","data-v-3765d254"]]);export{J as default};
+1
View File
@@ -0,0 +1 @@
import{_ as ue,o as n,c as I,b as a,w as o,a7 as ce,a9 as pe,a8 as _e,a as l,E as me,n as e,aP as ge,C as g,aK as fe,q as he,T as be,ad as U,d as ve,e as we,f as Ce,g as E,aE as ke,h as ye,ag as xe,i as p,ah as P,ai as Se,W as Ee,ak as Ve,al as De,X as ze,Y as Ie,an as Ue,ao as Pe,H as Ke,V as Fe,S as d,t as Le,ap as Me,aq as Re,ar as Te,M as _,a1 as Be,av as Ye,aw as Ne,ax as K,D as F,l as L,k as M}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as qe,a as $e}from"./useColumnSettings-Nw4I78Sz.js";import"./index-CxGbf_5w.js";const je={class:"logs-page"},He={class:"stat-card stat-total"},Oe={class:"stat-icon"},We={class:"stat-info"},Ae={class:"stat-value"},Xe={class:"stat-card stat-today"},Ge={class:"stat-icon"},Je={class:"stat-info"},Qe={class:"stat-value"},Ze={class:"stat-card stat-users"},et={class:"stat-icon"},tt={class:"stat-info"},at={class:"stat-value"},ot={class:"advanced-search"},lt={class:"toolbar"},st={class:"toolbar-left"},nt={class:"toolbar-right"},it={class:"column-settings"},dt={class:"pagination-wrapper"},rt={__name:"Logs",setup(ut){const w=L(!0),V=L([]),{list:k,loading:R,page:y,pageSize:x,total:D,selectedRows:C,filters:i,tableMaxHeight:T,fetchData:B,handleSelectionChange:Y,handleSortChange:N,handleSizeChange:q,handleFilterChange:m,resetFilters:$,refreshData:j}=qe({apiUrl:"/logs",defaultFilters:{action:"",user_id:"",username:"",start_date:"",end_date:""},defaultPageSize:20}),{columnOptions:H,visibleColumns:c,saveColumnSettings:O}=$e("logs_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"操作用户"},{prop:"nickname",label:"昵称"},{prop:"action",label:"操作类型"},{prop:"target_type",label:"目标类型"},{prop:"target_id",label:"目标ID"},{prop:"detail",label:"详情"},{prop:"ip",label:"IP"},{prop:"created_at",label:"时间"}]),W=F(()=>{const r=new Date().toISOString().slice(0,10);return k.value.filter(t=>t.created_at&&t.created_at.startsWith(r)).length}),A=F(()=>new Set(k.value.map(r=>r.user_id)).size);function X(r){r?(i.start_date=r[0],i.end_date=r[1]):(i.start_date="",i.end_date=""),m()}function G(r){if(!C.value.length){M.warning("请先选择要导出的日志");return}const t=new URLSearchParams;t.set("ids",C.value.map(b=>b.id).join(",")),t.append("format",r);const f=localStorage.getItem("access_token");window.open(`/api/logs/export?${t.toString()}&token=${f}`,"_blank"),M.success("导出任务已启动")}return(r,t)=>{const f=me,b=_e,J=ce,S=Ce,v=we,Q=ke,h=ye,Z=ve,z=Ie,ee=ze,te=Ee,ae=Le,oe=Pe,u=Te,le=Be,se=Re,ne=Ne,ie=pe,de=Ye;return n(),I("div",je,[a(J,{gutter:20,class:"stats-row"},{default:o(()=>[a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",He,[l("div",Oe,[a(f,{size:32},{default:o(()=>[a(e(ge))]),_:1})]),l("div",We,[l("div",Ae,g(e(D)),1),t[7]||(t[7]=l("div",{class:"stat-label"},"总日志数",-1))])])]),_:1}),a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",Xe,[l("div",Ge,[a(f,{size:32},{default:o(()=>[a(e(fe))]),_:1})]),l("div",Je,[l("div",Qe,g(W.value),1),t[8]||(t[8]=l("div",{class:"stat-label"},"今日日志",-1))])])]),_:1}),a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",Ze,[l("div",et,[a(f,{size:32},{default:o(()=>[a(e(he))]),_:1})]),l("div",tt,[l("div",at,g(A.value),1),t[9]||(t[9]=l("div",{class:"stat-label"},"操作用户数",-1))])])]),_:1})]),_:1}),a(ie,{shadow:"never",class:"main-card"},{default:o(()=>[a(be,{name:"expand"},{default:o(()=>[U(l("div",ot,[a(Z,{inline:!0,model:e(i),class:"search-form","label-width":"90px"},{default:o(()=>[a(v,{label:"操作类型"},{default:o(()=>[a(S,{modelValue:e(i).action,"onUpdate:modelValue":t[0]||(t[0]=s=>e(i).action=s),placeholder:"输入操作类型",clearable:"",style:{width:"160px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"用户ID"},{default:o(()=>[a(S,{modelValue:e(i).user_id,"onUpdate:modelValue":t[1]||(t[1]=s=>e(i).user_id=s),placeholder:"用户ID",clearable:"",style:{width:"130px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"用户名"},{default:o(()=>[a(S,{modelValue:e(i).username,"onUpdate:modelValue":t[2]||(t[2]=s=>e(i).username=s),placeholder:"用户名",clearable:"",style:{width:"150px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"日期范围"},{default:o(()=>[a(Q,{modelValue:V.value,"onUpdate:modelValue":t[3]||(t[3]=s=>V.value=s),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"},onChange:X},null,8,["moLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as ue,o as n,c as I,b as a,w as o,a7 as ce,a9 as pe,a8 as _e,a as l,E as me,n as e,aP as ge,C as g,aK as fe,q as he,T as be,ad as U,d as ve,e as we,f as Ce,g as E,aE as ke,h as ye,ag as xe,i as p,ah as P,ai as Se,W as Ee,ak as Ve,al as De,X as ze,Y as Ie,an as Ue,ao as Pe,H as Ke,V as Fe,S as d,t as Le,ap as Me,aq as Re,ar as Te,M as _,a1 as Be,av as Ye,aw as Ne,ax as K,D as F,l as L,k as M}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as qe,a as $e}from"./useColumnSettings-BGE5jzFS.js";import"./index-C3lsw5-G.js";const je={class:"logs-page"},He={class:"stat-card stat-total"},Oe={class:"stat-icon"},We={class:"stat-info"},Ae={class:"stat-value"},Xe={class:"stat-card stat-today"},Ge={class:"stat-icon"},Je={class:"stat-info"},Qe={class:"stat-value"},Ze={class:"stat-card stat-users"},et={class:"stat-icon"},tt={class:"stat-info"},at={class:"stat-value"},ot={class:"advanced-search"},lt={class:"toolbar"},st={class:"toolbar-left"},nt={class:"toolbar-right"},it={class:"column-settings"},dt={class:"pagination-wrapper"},rt={__name:"Logs",setup(ut){const w=L(!0),V=L([]),{list:k,loading:R,page:y,pageSize:x,total:D,selectedRows:C,filters:i,tableMaxHeight:T,fetchData:B,handleSelectionChange:Y,handleSortChange:N,handleSizeChange:q,handleFilterChange:m,resetFilters:$,refreshData:j}=qe({apiUrl:"/logs",defaultFilters:{action:"",user_id:"",username:"",start_date:"",end_date:""},defaultPageSize:20}),{columnOptions:H,visibleColumns:c,saveColumnSettings:O}=$e("logs_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"操作用户"},{prop:"nickname",label:"昵称"},{prop:"action",label:"操作类型"},{prop:"target_type",label:"目标类型"},{prop:"target_id",label:"目标ID"},{prop:"detail",label:"详情"},{prop:"ip",label:"IP"},{prop:"created_at",label:"时间"}]),W=F(()=>{const r=new Date().toISOString().slice(0,10);return k.value.filter(t=>t.created_at&&t.created_at.startsWith(r)).length}),A=F(()=>new Set(k.value.map(r=>r.user_id)).size);function X(r){r?(i.start_date=r[0],i.end_date=r[1]):(i.start_date="",i.end_date=""),m()}function G(r){if(!C.value.length){M.warning("请先选择要导出的日志");return}const t=new URLSearchParams;t.set("ids",C.value.map(b=>b.id).join(",")),t.append("format",r);const f=localStorage.getItem("access_token");window.open(`/api/logs/export?${t.toString()}&token=${f}`,"_blank"),M.success("导出任务已启动")}return(r,t)=>{const f=me,b=_e,J=ce,S=Ce,v=we,Q=ke,h=ye,Z=ve,z=Ie,ee=ze,te=Ee,ae=Le,oe=Pe,u=Te,le=Be,se=Re,ne=Ne,ie=pe,de=Ye;return n(),I("div",je,[a(J,{gutter:20,class:"stats-row"},{default:o(()=>[a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",He,[l("div",Oe,[a(f,{size:32},{default:o(()=>[a(e(ge))]),_:1})]),l("div",We,[l("div",Ae,g(e(D)),1),t[7]||(t[7]=l("div",{class:"stat-label"},"总日志数",-1))])])]),_:1}),a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",Xe,[l("div",Ge,[a(f,{size:32},{default:o(()=>[a(e(fe))]),_:1})]),l("div",Je,[l("div",Qe,g(W.value),1),t[8]||(t[8]=l("div",{class:"stat-label"},"今日日志",-1))])])]),_:1}),a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",Ze,[l("div",et,[a(f,{size:32},{default:o(()=>[a(e(he))]),_:1})]),l("div",tt,[l("div",at,g(A.value),1),t[9]||(t[9]=l("div",{class:"stat-label"},"操作用户数",-1))])])]),_:1})]),_:1}),a(ie,{shadow:"never",class:"main-card"},{default:o(()=>[a(be,{name:"expand"},{default:o(()=>[U(l("div",ot,[a(Z,{inline:!0,model:e(i),class:"search-form","label-width":"90px"},{default:o(()=>[a(v,{label:"操作类型"},{default:o(()=>[a(S,{modelValue:e(i).action,"onUpdate:modelValue":t[0]||(t[0]=s=>e(i).action=s),placeholder:"输入操作类型",clearable:"",style:{width:"160px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"用户ID"},{default:o(()=>[a(S,{modelValue:e(i).user_id,"onUpdate:modelValue":t[1]||(t[1]=s=>e(i).user_id=s),placeholder:"用户ID",clearable:"",style:{width:"130px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"用户名"},{default:o(()=>[a(S,{modelValue:e(i).username,"onUpdate:modelValue":t[2]||(t[2]=s=>e(i).username=s),placeholder:"用户名",clearable:"",style:{width:"150px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"日期范围"},{default:o(()=>[a(Q,{modelValue:V.value,"onUpdate:modelValue":t[3]||(t[3]=s=>V.value=s),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"},onChange:X},null,8,["moLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as ue,o as n,c as I,b as a,w as o,a7 as ce,a9 as pe,a8 as _e,a as l,E as me,n as e,aP as ge,C as g,aK as fe,q as he,T as be,ad as U,d as ve,e as we,f as Ce,g as E,aE as ke,h as ye,ag as xe,i as p,ah as P,ai as Se,W as Ee,ak as Ve,al as De,X as ze,Y as Ie,an as Ue,ao as Pe,H as Ke,V as Fe,S as d,t as Le,ap as Me,aq as Re,ar as Te,M as _,a1 as Be,av as Ye,aw as Ne,ax as K,D as F,l as L,k as M}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as qe,a as $e}from"./useColumnSettings-C0R5rnWU.js";import"./index-C7doSj3W.js";const je={class:"logs-page"},He={class:"stat-card stat-total"},Oe={class:"stat-icon"},We={class:"stat-info"},Ae={class:"stat-value"},Xe={class:"stat-card stat-today"},Ge={class:"stat-icon"},Je={class:"stat-info"},Qe={class:"stat-value"},Ze={class:"stat-card stat-users"},et={class:"stat-icon"},tt={class:"stat-info"},at={class:"stat-value"},ot={class:"advanced-search"},lt={class:"toolbar"},st={class:"toolbar-left"},nt={class:"toolbar-right"},it={class:"column-settings"},dt={class:"pagination-wrapper"},rt={__name:"Logs",setup(ut){const w=L(!0),V=L([]),{list:k,loading:R,page:y,pageSize:x,total:D,selectedRows:C,filters:i,tableMaxHeight:T,fetchData:B,handleSelectionChange:Y,handleSortChange:N,handleSizeChange:q,handleFilterChange:m,resetFilters:$,refreshData:j}=qe({apiUrl:"/logs",defaultFilters:{action:"",user_id:"",username:"",start_date:"",end_date:""},defaultPageSize:20}),{columnOptions:H,visibleColumns:c,saveColumnSettings:O}=$e("logs_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"操作用户"},{prop:"nickname",label:"昵称"},{prop:"action",label:"操作类型"},{prop:"target_type",label:"目标类型"},{prop:"target_id",label:"目标ID"},{prop:"detail",label:"详情"},{prop:"ip",label:"IP"},{prop:"created_at",label:"时间"}]),W=F(()=>{const r=new Date().toISOString().slice(0,10);return k.value.filter(t=>t.created_at&&t.created_at.startsWith(r)).length}),A=F(()=>new Set(k.value.map(r=>r.user_id)).size);function X(r){r?(i.start_date=r[0],i.end_date=r[1]):(i.start_date="",i.end_date=""),m()}function G(r){if(!C.value.length){M.warning("请先选择要导出的日志");return}const t=new URLSearchParams;t.set("ids",C.value.map(b=>b.id).join(",")),t.append("format",r);const f=localStorage.getItem("access_token");window.open(`/api/logs/export?${t.toString()}&token=${f}`,"_blank"),M.success("导出任务已启动")}return(r,t)=>{const f=me,b=_e,J=ce,S=Ce,v=we,Q=ke,h=ye,Z=ve,z=Ie,ee=ze,te=Ee,ae=Le,oe=Pe,u=Te,le=Be,se=Re,ne=Ne,ie=pe,de=Ye;return n(),I("div",je,[a(J,{gutter:20,class:"stats-row"},{default:o(()=>[a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",He,[l("div",Oe,[a(f,{size:32},{default:o(()=>[a(e(ge))]),_:1})]),l("div",We,[l("div",Ae,g(e(D)),1),t[7]||(t[7]=l("div",{class:"stat-label"},"总日志数",-1))])])]),_:1}),a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",Xe,[l("div",Ge,[a(f,{size:32},{default:o(()=>[a(e(fe))]),_:1})]),l("div",Je,[l("div",Qe,g(W.value),1),t[8]||(t[8]=l("div",{class:"stat-label"},"今日日志",-1))])])]),_:1}),a(b,{xs:12,sm:8,md:8,lg:8},{default:o(()=>[l("div",Ze,[l("div",et,[a(f,{size:32},{default:o(()=>[a(e(he))]),_:1})]),l("div",tt,[l("div",at,g(A.value),1),t[9]||(t[9]=l("div",{class:"stat-label"},"操作用户数",-1))])])]),_:1})]),_:1}),a(ie,{shadow:"never",class:"main-card"},{default:o(()=>[a(be,{name:"expand"},{default:o(()=>[U(l("div",ot,[a(Z,{inline:!0,model:e(i),class:"search-form","label-width":"90px"},{default:o(()=>[a(v,{label:"操作类型"},{default:o(()=>[a(S,{modelValue:e(i).action,"onUpdate:modelValue":t[0]||(t[0]=s=>e(i).action=s),placeholder:"输入操作类型",clearable:"",style:{width:"160px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"用户ID"},{default:o(()=>[a(S,{modelValue:e(i).user_id,"onUpdate:modelValue":t[1]||(t[1]=s=>e(i).user_id=s),placeholder:"用户ID",clearable:"",style:{width:"130px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"用户名"},{default:o(()=>[a(S,{modelValue:e(i).username,"onUpdate:modelValue":t[2]||(t[2]=s=>e(i).username=s),placeholder:"用户名",clearable:"",style:{width:"150px"},onClear:e(m),onKeyup:E(e(m),["enter"])},null,8,["modelValue","onClear","onKeyup"])]),_:1}),a(v,{label:"日期范围"},{default:o(()=>[a(Q,{modelValue:V.value,"onUpdate:modelValue":t[3]||(t[3]=s=>V.value=s),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"260px"},onChange:X},null,8,["moLine truncated
@@ -0,0 +1 @@
import{_ as hl,m as oe,F as xl,G as xe,o as r,c as h,b as e,w as a,B as O,H as P,l as c,I as El,J as Cl,K as Sl,u as Vl,L as Ml,r as u,T as ne,M as y,N as Bl,a as n,E as zl,O as Fl,A as z,P as Tl,Q as Il,R as Rl,S as g,U as Al,V as N,W as Ll,X as Pl,Y as Ul,i as b,C as F,Z as Dl,$ as $l,a0 as Gl,a1 as Ol,a2 as Nl,a3 as Hl,a4 as Kl,d as jl,a5 as Ee,e as Wl,f as ql,h as Yl,a6 as Jl,D as _,k as x}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Ql}from"./user-CjwLSb7B.js";import{r as Ce}from"./index-C7doSj3W.js";const Xl={class:"logo-icon"},Zl={key:0,class:"logo-text"},ea={key:0,class:"sidebar-footer"},la={class:"theme-label"},aa={class:"theme-dots"},ta=["title","onClick"],oa={key:1,class:"sidebar-footer-collapse"},na=["title"],sa={class:"header-left"},ua={class:"header-right"},ra=["title"],da={class:"user-info"},ia={class:"user-name"},pa={class:"profile-avatar-section"},ma={class:"avatar-overlay"},ca=768,Se="cardauth_sidebar_theme",Ve="cardauth_primary_theme",fa={__name:"MainLayout",setup(_a){const H=Vl(),U=Ml(),k=Ql(),i=_(()=>k.user),f=c(!1),Me=_(()=>U.path),se=_(()=>{var t;return["admin","project_admin"].includes((t=i.value)==null?void 0:t.role)}),Be=_(()=>{var t;return((t=i.value)==null?void 0:t.role)==="agent"}),K=_(()=>{var t;return((t=i.value)==null?void 0:t.role)==="admin"}),ze=_(()=>se.value),v=c(!1),E=c(!1);function j(){v.value=window.innerWidth<ca,v.value&&(f.value=!1,E.value=!1)}function Fe(){v.value?E.value=!E.value:f.value=!f.value}function ue(){E.value=!1}function Te(){v.value&&(E.value=!1)}function Ie(){ue(),H.push("/dashboard")}oe(()=>{j(),window.addEventListener("resize",j)}),xl(()=>{window.removeEventListener("resize",j)});const re=_(()=>{var l,m;return{admin:"超级管理员",project_admin:"项目管理员",agent:"代理"}[(l=i.value)==null?void 0:l.role]||((m=i.value)==null?void 0:m.role)}),de=c(null),W=c({top:"0px",opacity:0});function q(){El(()=>{const t=de.value;if(!t)return;const l=t.querySelector(".el-menu-item.is-active");if(!l){W.value={top:"0px",opacity:0};return}const m=t.getBoundingClientRect(),s=l.getBoundingClientRect();W.value={top:`${s.top-m.top}px`,height:`${s.height}px`,opacity:1}})}xe(()=>U.path,q),xe(f,()=>{setTimeout(q,350)});const T=[{key:"dark-blue",label:"深海蓝",color:"#1a1a2e"},{key:"dark",label:"暗夜黑",color:"#141414"},{key:"light",label:"简约白",color:"#ffffff"},{key:"purple",label:"罗兰紫",color:"#2d1b4e"},{key:"green",label:"森林绿",color:"#0d2f23"}],V=c("dark-blue"),Re=_(()=>{var t;return((t=T.find(l=>l.key===V.value))==null?void 0:t.color)||"#1a1a2e"}),Ae=_(()=>{var t;return((t=T.find(l=>l.key===V.value))==null?void 0:t.label)||"深海蓝"});function ie(t){V.value=t,localStorage.setItem(Se,t)}oe(()=>{const t=localStorage.getItem(Se);t&&T.some(l=>l.key===t)&&(V.value=t),q()});const I=[{key:"indigo",label:"靛蓝",color:"#6366f1"},{key:"blue",label:"天蓝",color:"#0ea5e9"},{key:"rose",label:"玫瑰",color:"#f43f5e"},{key:"amber",label:"琥珀",color:"#f59e0b"},{key:"emerald",label:"翠绿",color:"#10b981"}],M=c("indigo"),Le=_(()=>{var t;return((t=I.find(l=>l.key===M.value))==null?void 0:t.color)||"#6366f1"}),Pe=_(()=>{var t;return((t=I.find(l=>l.key===M.value))==null?void 0:t.label)||"靛蓝"});function pe(t){const l=document.body.classList;I.forEach(m=>l.remove(`theme-primary-${m.key}`)),l.add(`theme-primary-${t}`)}function Ue(t){M.value=t,localStorage.setItem(Ve,t),pe(t)}oe(()=>{const t=localStorage.getItem(Ve);t&&I.some(l=>l.key===t)&&(M.value=t),pe(M.value)});const De={"/dashboard":[],"/projects":[{path:"/dashboard",title:"业务管理"}],"/products":[{path:"/dashboard",title:"业务管理"}],"/cards":[{path:"/dashboard",title:"业务管理"}],"/authorizations":[{path:"/dashboard",title:"业务管理"}],"/orders":[{path:"/dashboard",title:"订单与代理"}],"/coupons":[{path:"/dashboard",title:"订单与代理"}],"/blacklist":[{path:"/dashboard",title:"订单与代理"}],"/agents":[{path:"/dashboard",title:"订单与代理"}],"/users":[{path:"/dashboard",title:"系统管理"}],"/payment-config":[{path:"/dashboard",title:"系统管理"}],"/system":[{path:"/dashboard",title:"系统管理"}],"/logs":[{path:"/dashboard",title:"系统管理"}]},me=_(()=>[...De[U.path]||[],{title:U.meta.title}]),R=c(!1),Y=c(!1),J=c(null),C=c({old_password:"",new_password:""}),$e={old_password:[{required:!0,message:"请输入原密码",trigger:"blur"}],new_password:[{required:!0,min:6,message:"新密码至少6位",trigger:"blur"}]};function Ge(t){var l,m,s,D,d;if(t==="logout"){const Z=(l=i.value)==null?void 0:l.role;k.logout(),H.push(Z==="agent"?"/agent/login":"/login")}else t==="changePwd"?(C.value={old_password:"",new_password:""},R.value=!0):t==="profile"&&(p.value={nickname:((m=i.value)==Line truncated
@@ -0,0 +1 @@
import{_ as hl,m as oe,F as xl,G as xe,o as r,c as h,b as e,w as a,B as O,H as P,l as c,I as El,J as Cl,K as Sl,u as Vl,L as Ml,r as u,T as ne,M as y,N as Bl,a as n,E as zl,O as Fl,A as z,P as Tl,Q as Il,R as Rl,S as g,U as Al,V as N,W as Ll,X as Pl,Y as Ul,i as b,C as F,Z as Dl,$ as $l,a0 as Gl,a1 as Ol,a2 as Nl,a3 as Hl,a4 as Kl,d as jl,a5 as Ee,e as Wl,f as ql,h as Yl,a6 as Jl,D as _,k as x}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Ql}from"./user-iqLWbJfU.js";import{r as Ce}from"./index-CxGbf_5w.js";const Xl={class:"logo-icon"},Zl={key:0,class:"logo-text"},ea={key:0,class:"sidebar-footer"},la={class:"theme-label"},aa={class:"theme-dots"},ta=["title","onClick"],oa={key:1,class:"sidebar-footer-collapse"},na=["title"],sa={class:"header-left"},ua={class:"header-right"},ra=["title"],da={class:"user-info"},ia={class:"user-name"},pa={class:"profile-avatar-section"},ma={class:"avatar-overlay"},ca=768,Se="cardauth_sidebar_theme",Ve="cardauth_primary_theme",fa={__name:"MainLayout",setup(_a){const H=Vl(),U=Ml(),k=Ql(),i=_(()=>k.user),f=c(!1),Me=_(()=>U.path),se=_(()=>{var t;return["admin","project_admin"].includes((t=i.value)==null?void 0:t.role)}),Be=_(()=>{var t;return((t=i.value)==null?void 0:t.role)==="agent"}),K=_(()=>{var t;return((t=i.value)==null?void 0:t.role)==="admin"}),ze=_(()=>se.value),v=c(!1),E=c(!1);function j(){v.value=window.innerWidth<ca,v.value&&(f.value=!1,E.value=!1)}function Fe(){v.value?E.value=!E.value:f.value=!f.value}function ue(){E.value=!1}function Te(){v.value&&(E.value=!1)}function Ie(){ue(),H.push("/dashboard")}oe(()=>{j(),window.addEventListener("resize",j)}),xl(()=>{window.removeEventListener("resize",j)});const re=_(()=>{var l,m;return{admin:"超级管理员",project_admin:"项目管理员",agent:"代理"}[(l=i.value)==null?void 0:l.role]||((m=i.value)==null?void 0:m.role)}),de=c(null),W=c({top:"0px",opacity:0});function q(){El(()=>{const t=de.value;if(!t)return;const l=t.querySelector(".el-menu-item.is-active");if(!l){W.value={top:"0px",opacity:0};return}const m=t.getBoundingClientRect(),s=l.getBoundingClientRect();W.value={top:`${s.top-m.top}px`,height:`${s.height}px`,opacity:1}})}xe(()=>U.path,q),xe(f,()=>{setTimeout(q,350)});const T=[{key:"dark-blue",label:"深海蓝",color:"#1a1a2e"},{key:"dark",label:"暗夜黑",color:"#141414"},{key:"light",label:"简约白",color:"#ffffff"},{key:"purple",label:"罗兰紫",color:"#2d1b4e"},{key:"green",label:"森林绿",color:"#0d2f23"}],V=c("dark-blue"),Re=_(()=>{var t;return((t=T.find(l=>l.key===V.value))==null?void 0:t.color)||"#1a1a2e"}),Ae=_(()=>{var t;return((t=T.find(l=>l.key===V.value))==null?void 0:t.label)||"深海蓝"});function ie(t){V.value=t,localStorage.setItem(Se,t)}oe(()=>{const t=localStorage.getItem(Se);t&&T.some(l=>l.key===t)&&(V.value=t),q()});const I=[{key:"indigo",label:"靛蓝",color:"#6366f1"},{key:"blue",label:"天蓝",color:"#0ea5e9"},{key:"rose",label:"玫瑰",color:"#f43f5e"},{key:"amber",label:"琥珀",color:"#f59e0b"},{key:"emerald",label:"翠绿",color:"#10b981"}],M=c("indigo"),Le=_(()=>{var t;return((t=I.find(l=>l.key===M.value))==null?void 0:t.color)||"#6366f1"}),Pe=_(()=>{var t;return((t=I.find(l=>l.key===M.value))==null?void 0:t.label)||"靛蓝"});function pe(t){const l=document.body.classList;I.forEach(m=>l.remove(`theme-primary-${m.key}`)),l.add(`theme-primary-${t}`)}function Ue(t){M.value=t,localStorage.setItem(Ve,t),pe(t)}oe(()=>{const t=localStorage.getItem(Ve);t&&I.some(l=>l.key===t)&&(M.value=t),pe(M.value)});const De={"/dashboard":[],"/projects":[{path:"/dashboard",title:"业务管理"}],"/products":[{path:"/dashboard",title:"业务管理"}],"/cards":[{path:"/dashboard",title:"业务管理"}],"/authorizations":[{path:"/dashboard",title:"业务管理"}],"/orders":[{path:"/dashboard",title:"订单与代理"}],"/coupons":[{path:"/dashboard",title:"订单与代理"}],"/blacklist":[{path:"/dashboard",title:"订单与代理"}],"/agents":[{path:"/dashboard",title:"订单与代理"}],"/users":[{path:"/dashboard",title:"系统管理"}],"/payment-config":[{path:"/dashboard",title:"系统管理"}],"/system":[{path:"/dashboard",title:"系统管理"}],"/logs":[{path:"/dashboard",title:"系统管理"}]},me=_(()=>[...De[U.path]||[],{title:U.meta.title}]),R=c(!1),Y=c(!1),J=c(null),C=c({old_password:"",new_password:""}),$e={old_password:[{required:!0,message:"请输入原密码",trigger:"blur"}],new_password:[{required:!0,min:6,message:"新密码至少6位",trigger:"blur"}]};function Ge(t){var l,m,s,D,d;if(t==="logout"){const Z=(l=i.value)==null?void 0:l.role;k.logout(),H.push(Z==="agent"?"/agent/login":"/login")}else t==="changePwd"?(C.value={old_password:"",new_password:""},R.value=!0):t==="profile"&&(p.value={nickname:((m=i.value)==Line truncated
@@ -0,0 +1 @@
import{_ as hl,m as oe,F as xl,G as xe,o as r,c as h,b as e,w as a,B as O,H as P,l as c,I as El,J as Cl,K as Sl,u as Vl,L as Ml,r as u,T as ne,M as y,N as Bl,a as n,E as zl,O as Fl,A as z,P as Tl,Q as Il,R as Rl,S as g,U as Al,V as N,W as Ll,X as Pl,Y as Ul,i as b,C as F,Z as Dl,$ as $l,a0 as Gl,a1 as Ol,a2 as Nl,a3 as Hl,a4 as Kl,d as jl,a5 as Ee,e as Wl,f as ql,h as Yl,a6 as Jl,D as _,k as x}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Ql}from"./user-dKBxTmfR.js";import{r as Ce}from"./index-C3lsw5-G.js";const Xl={class:"logo-icon"},Zl={key:0,class:"logo-text"},ea={key:0,class:"sidebar-footer"},la={class:"theme-label"},aa={class:"theme-dots"},ta=["title","onClick"],oa={key:1,class:"sidebar-footer-collapse"},na=["title"],sa={class:"header-left"},ua={class:"header-right"},ra=["title"],da={class:"user-info"},ia={class:"user-name"},pa={class:"profile-avatar-section"},ma={class:"avatar-overlay"},ca=768,Se="cardauth_sidebar_theme",Ve="cardauth_primary_theme",fa={__name:"MainLayout",setup(_a){const H=Vl(),U=Ml(),k=Ql(),i=_(()=>k.user),f=c(!1),Me=_(()=>U.path),se=_(()=>{var t;return["admin","project_admin"].includes((t=i.value)==null?void 0:t.role)}),Be=_(()=>{var t;return((t=i.value)==null?void 0:t.role)==="agent"}),K=_(()=>{var t;return((t=i.value)==null?void 0:t.role)==="admin"}),ze=_(()=>se.value),v=c(!1),E=c(!1);function j(){v.value=window.innerWidth<ca,v.value&&(f.value=!1,E.value=!1)}function Fe(){v.value?E.value=!E.value:f.value=!f.value}function ue(){E.value=!1}function Te(){v.value&&(E.value=!1)}function Ie(){ue(),H.push("/dashboard")}oe(()=>{j(),window.addEventListener("resize",j)}),xl(()=>{window.removeEventListener("resize",j)});const re=_(()=>{var l,m;return{admin:"超级管理员",project_admin:"项目管理员",agent:"代理"}[(l=i.value)==null?void 0:l.role]||((m=i.value)==null?void 0:m.role)}),de=c(null),W=c({top:"0px",opacity:0});function q(){El(()=>{const t=de.value;if(!t)return;const l=t.querySelector(".el-menu-item.is-active");if(!l){W.value={top:"0px",opacity:0};return}const m=t.getBoundingClientRect(),s=l.getBoundingClientRect();W.value={top:`${s.top-m.top}px`,height:`${s.height}px`,opacity:1}})}xe(()=>U.path,q),xe(f,()=>{setTimeout(q,350)});const T=[{key:"dark-blue",label:"深海蓝",color:"#1a1a2e"},{key:"dark",label:"暗夜黑",color:"#141414"},{key:"light",label:"简约白",color:"#ffffff"},{key:"purple",label:"罗兰紫",color:"#2d1b4e"},{key:"green",label:"森林绿",color:"#0d2f23"}],V=c("dark-blue"),Re=_(()=>{var t;return((t=T.find(l=>l.key===V.value))==null?void 0:t.color)||"#1a1a2e"}),Ae=_(()=>{var t;return((t=T.find(l=>l.key===V.value))==null?void 0:t.label)||"深海蓝"});function ie(t){V.value=t,localStorage.setItem(Se,t)}oe(()=>{const t=localStorage.getItem(Se);t&&T.some(l=>l.key===t)&&(V.value=t),q()});const I=[{key:"indigo",label:"靛蓝",color:"#6366f1"},{key:"blue",label:"天蓝",color:"#0ea5e9"},{key:"rose",label:"玫瑰",color:"#f43f5e"},{key:"amber",label:"琥珀",color:"#f59e0b"},{key:"emerald",label:"翠绿",color:"#10b981"}],M=c("indigo"),Le=_(()=>{var t;return((t=I.find(l=>l.key===M.value))==null?void 0:t.color)||"#6366f1"}),Pe=_(()=>{var t;return((t=I.find(l=>l.key===M.value))==null?void 0:t.label)||"靛蓝"});function pe(t){const l=document.body.classList;I.forEach(m=>l.remove(`theme-primary-${m.key}`)),l.add(`theme-primary-${t}`)}function Ue(t){M.value=t,localStorage.setItem(Ve,t),pe(t)}oe(()=>{const t=localStorage.getItem(Ve);t&&I.some(l=>l.key===t)&&(M.value=t),pe(M.value)});const De={"/dashboard":[],"/projects":[{path:"/dashboard",title:"业务管理"}],"/products":[{path:"/dashboard",title:"业务管理"}],"/cards":[{path:"/dashboard",title:"业务管理"}],"/authorizations":[{path:"/dashboard",title:"业务管理"}],"/orders":[{path:"/dashboard",title:"订单与代理"}],"/coupons":[{path:"/dashboard",title:"订单与代理"}],"/blacklist":[{path:"/dashboard",title:"订单与代理"}],"/agents":[{path:"/dashboard",title:"订单与代理"}],"/users":[{path:"/dashboard",title:"系统管理"}],"/payment-config":[{path:"/dashboard",title:"系统管理"}],"/system":[{path:"/dashboard",title:"系统管理"}],"/logs":[{path:"/dashboard",title:"系统管理"}]},me=_(()=>[...De[U.path]||[],{title:U.meta.title}]),R=c(!1),Y=c(!1),J=c(null),C=c({old_password:"",new_password:""}),$e={old_password:[{required:!0,message:"请输入原密码",trigger:"blur"}],new_password:[{required:!0,min:6,message:"新密码至少6位",trigger:"blur"}]};function Ge(t){var l,m,s,D,d;if(t==="logout"){const Z=(l=i.value)==null?void 0:l.role;k.logout(),H.push(Z==="agent"?"/agent/login":"/login")}else t==="changePwd"?(C.value={old_password:"",new_password:""},R.value=!0):t==="profile"&&(p.value={nickname:((m=i.value)==Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Se,o as n,c as _,b as s,w as l,a7 as Ve,a9 as ze,l as F,K as Be,a8 as je,a as t,E as De,n as a,aP as Fe,C as d,ab as Ue,aB as qe,ac as Ie,T as Te,ad as A,d as $e,e as Pe,ae as Qe,af as Me,f as Re,g as Ke,h as Le,ag as Ne,i as m,ah as H,ai as Oe,S as r,W as Ae,ak as He,al as We,X as Xe,Y as Ye,M as p,an as Ge,ao as Je,H as Ze,V as et,t as tt,ap as at,aq as st,ar as lt,a1 as ot,B as U,aH as nt,av as it,aw as dt,ax as W,D as b,k as q,az as rt}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as ut,a as pt}from"./useColumnSettings-BGE5jzFS.js";import{u as ct}from"./user-dKBxTmfR.js";import{r as X}from"./index-C3lsw5-G.js";const _t={class:"orders-page"},mt={class:"stat-card stat-total"},vt={class:"stat-icon"},yt={class:"stat-info"},ft={class:"stat-value"},wt={class:"stat-card stat-paid"},gt={class:"stat-icon"},ht={class:"stat-info"},kt={class:"stat-value"},bt={class:"stat-card stat-pending"},xt={class:"stat-icon"},Ct={class:"stat-info"},Et={class:"stat-value"},St={class:"stat-card stat-refunded"},Vt={class:"stat-icon"},zt={class:"stat-info"},Bt={class:"stat-value"},jt={class:"advanced-search"},Dt={class:"toolbar"},Ft={class:"toolbar-left"},Ut={class:"toolbar-right"},qt={class:"column-settings"},It={class:"price-text"},Tt={key:3,class:"text-muted"},$t={key:0,class:"mono-text"},Pt={key:1,class:"text-muted"},Qt={class:"pagination-wrapper"},Mt={class:"detail-header"},Rt={class:"detail-header-left"},Kt={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Lt={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Nt={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ot={key:3,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},At={class:"detail-header-title"},Ht={class:"detail-header-sub"},Wt={class:"detail-header-right"},Xt=["onClick"],Yt={key:0,class:"detail-body"},Gt={class:"detail-row-group"},Jt={class:"detail-row"},Zt={class:"detail-row-val mono"},ea={class:"detail-row"},ta={class:"detail-row-val mono"},aa={class:"detail-row"},sa={class:"detail-row-val price-text"},la={class:"detail-row"},oa={class:"detail-row-val"},na={class:"detail-row-group"},ia={class:"detail-row"},da={class:"detail-row-val"},ra={class:"detail-row"},ua={class:"detail-row-val"},pa={class:"detail-row"},ca={class:"detail-row-val"},_a={key:0,class:"mono-text"},ma={key:1,class:"text-muted"},va={class:"detail-row-group"},ya={class:"detail-row",style:{"border-top":"none"}},fa={class:"detail-row-val",style:{"max-width":"100%"}},wa={class:"detail-row-group"},ga={class:"detail-row"},ha={class:"detail-row-val"},ka={class:"detail-row"},ba={class:"detail-row-val"},xa={__name:"Orders",setup(Ca){const Y=ct(),G=b(()=>Y.user),I=b(()=>{var u;return["admin","project_admin"].includes((u=G.value)==null?void 0:u.role)}),C=F(!0),z=F(!1),i=F(null),J=b(()=>i.value?{pending:"待支付",paid:"已支付",expired:"已过期",refunded:"已退款"}[i.value.status]||i.value.status:""),{list:E,loading:Z,page:B,pageSize:j,total:T,selectedRows:S,filters:f,tableMaxHeight:ee,fetchData:$,handleSelectionChange:te,handleSortChange:ae,handleSizeChange:se,handleFilterChange:x,resetFilters:le,refreshData:oe}=ut({apiUrl:"/orders",defaultFilters:{status:"",pay_type:"",keyword:""},defaultPageSize:20}),{columnOptions:ne,visibleColumns:v,saveColumnSettings:ie}=pt("orders_column_settings",[{prop:"id",label:"ID"},{prop:"order_no",label:"订单号"},{prop:"project_name",label:"项目"},{prop:"card_type_name",label:"套餐"},{prop:"amount",label:"金额"},{prop:"pay_type",label:"支付方式"},{prop:"status",label:"状态"},{prop:"trade_no",label:"交易号"},{prop:"card_key",label:"卡密"},{prop:"paid_at",label:"支付时间"},{prop:"created_at",label:"创建时间"}]),de=b(()=>E.value.filter(u=>u.status==="paid").reduce((u,e)=>u+parseFloat(e.amount||0),0).toFixed(2)),re=b(()=>E.value.filter(u=>u.status==="pending").length),ue=b(()=>E.value.filter(u=>u.status==="refunded").length);async function pe(u){try{const e=await X.get(`/orders/${u.id}`);i.value=e.data,z.value=!0}catch(e){console.error(e)}}async function ce(u){try{await rt.confirm("确定手动补单?将自动发货卡密。","提示",{type:"warning"}),await X.post(`/orders/${u.id}/complete`),q.success("补单成功"),$()}catch(e)Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Se,o as n,c as _,b as s,w as l,a7 as Ve,a9 as ze,l as F,K as Be,a8 as je,a as t,E as De,n as a,aP as Fe,C as d,ab as Ue,aB as qe,ac as Ie,T as Te,ad as A,d as $e,e as Pe,ae as Qe,af as Me,f as Re,g as Ke,h as Le,ag as Ne,i as m,ah as H,ai as Oe,S as r,W as Ae,ak as He,al as We,X as Xe,Y as Ye,M as p,an as Ge,ao as Je,H as Ze,V as et,t as tt,ap as at,aq as st,ar as lt,a1 as ot,B as U,aH as nt,av as it,aw as dt,ax as W,D as b,k as q,az as rt}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as ut,a as pt}from"./useColumnSettings-C0R5rnWU.js";import{u as ct}from"./user-CjwLSb7B.js";import{r as X}from"./index-C7doSj3W.js";const _t={class:"orders-page"},mt={class:"stat-card stat-total"},vt={class:"stat-icon"},yt={class:"stat-info"},ft={class:"stat-value"},wt={class:"stat-card stat-paid"},gt={class:"stat-icon"},ht={class:"stat-info"},kt={class:"stat-value"},bt={class:"stat-card stat-pending"},xt={class:"stat-icon"},Ct={class:"stat-info"},Et={class:"stat-value"},St={class:"stat-card stat-refunded"},Vt={class:"stat-icon"},zt={class:"stat-info"},Bt={class:"stat-value"},jt={class:"advanced-search"},Dt={class:"toolbar"},Ft={class:"toolbar-left"},Ut={class:"toolbar-right"},qt={class:"column-settings"},It={class:"price-text"},Tt={key:3,class:"text-muted"},$t={key:0,class:"mono-text"},Pt={key:1,class:"text-muted"},Qt={class:"pagination-wrapper"},Mt={class:"detail-header"},Rt={class:"detail-header-left"},Kt={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Lt={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Nt={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ot={key:3,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},At={class:"detail-header-title"},Ht={class:"detail-header-sub"},Wt={class:"detail-header-right"},Xt=["onClick"],Yt={key:0,class:"detail-body"},Gt={class:"detail-row-group"},Jt={class:"detail-row"},Zt={class:"detail-row-val mono"},ea={class:"detail-row"},ta={class:"detail-row-val mono"},aa={class:"detail-row"},sa={class:"detail-row-val price-text"},la={class:"detail-row"},oa={class:"detail-row-val"},na={class:"detail-row-group"},ia={class:"detail-row"},da={class:"detail-row-val"},ra={class:"detail-row"},ua={class:"detail-row-val"},pa={class:"detail-row"},ca={class:"detail-row-val"},_a={key:0,class:"mono-text"},ma={key:1,class:"text-muted"},va={class:"detail-row-group"},ya={class:"detail-row",style:{"border-top":"none"}},fa={class:"detail-row-val",style:{"max-width":"100%"}},wa={class:"detail-row-group"},ga={class:"detail-row"},ha={class:"detail-row-val"},ka={class:"detail-row"},ba={class:"detail-row-val"},xa={__name:"Orders",setup(Ca){const Y=ct(),G=b(()=>Y.user),I=b(()=>{var u;return["admin","project_admin"].includes((u=G.value)==null?void 0:u.role)}),C=F(!0),z=F(!1),i=F(null),J=b(()=>i.value?{pending:"待支付",paid:"已支付",expired:"已过期",refunded:"已退款"}[i.value.status]||i.value.status:""),{list:E,loading:Z,page:B,pageSize:j,total:T,selectedRows:S,filters:f,tableMaxHeight:ee,fetchData:$,handleSelectionChange:te,handleSortChange:ae,handleSizeChange:se,handleFilterChange:x,resetFilters:le,refreshData:oe}=ut({apiUrl:"/orders",defaultFilters:{status:"",pay_type:"",keyword:""},defaultPageSize:20}),{columnOptions:ne,visibleColumns:v,saveColumnSettings:ie}=pt("orders_column_settings",[{prop:"id",label:"ID"},{prop:"order_no",label:"订单号"},{prop:"project_name",label:"项目"},{prop:"card_type_name",label:"套餐"},{prop:"amount",label:"金额"},{prop:"pay_type",label:"支付方式"},{prop:"status",label:"状态"},{prop:"trade_no",label:"交易号"},{prop:"card_key",label:"卡密"},{prop:"paid_at",label:"支付时间"},{prop:"created_at",label:"创建时间"}]),de=b(()=>E.value.filter(u=>u.status==="paid").reduce((u,e)=>u+parseFloat(e.amount||0),0).toFixed(2)),re=b(()=>E.value.filter(u=>u.status==="pending").length),ue=b(()=>E.value.filter(u=>u.status==="refunded").length);async function pe(u){try{const e=await X.get(`/orders/${u.id}`);i.value=e.data,z.value=!0}catch(e){console.error(e)}}async function ce(u){try{await rt.confirm("确定手动补单?将自动发货卡密。","提示",{type:"warning"}),await X.post(`/orders/${u.id}/complete`),q.success("补单成功"),$()}catch(e)Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Se,o as n,c as _,b as s,w as l,a7 as Ve,a9 as ze,l as F,K as Be,a8 as je,a as t,E as De,n as a,aP as Fe,C as d,ab as Ue,aB as qe,ac as Ie,T as Te,ad as A,d as $e,e as Pe,ae as Qe,af as Me,f as Re,g as Ke,h as Le,ag as Ne,i as m,ah as H,ai as Oe,S as r,W as Ae,ak as He,al as We,X as Xe,Y as Ye,M as p,an as Ge,ao as Je,H as Ze,V as et,t as tt,ap as at,aq as st,ar as lt,a1 as ot,B as U,aH as nt,av as it,aw as dt,ax as W,D as b,k as q,az as rt}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as ut,a as pt}from"./useColumnSettings-Nw4I78Sz.js";import{u as ct}from"./user-iqLWbJfU.js";import{r as X}from"./index-CxGbf_5w.js";const _t={class:"orders-page"},mt={class:"stat-card stat-total"},vt={class:"stat-icon"},yt={class:"stat-info"},ft={class:"stat-value"},wt={class:"stat-card stat-paid"},gt={class:"stat-icon"},ht={class:"stat-info"},kt={class:"stat-value"},bt={class:"stat-card stat-pending"},xt={class:"stat-icon"},Ct={class:"stat-info"},Et={class:"stat-value"},St={class:"stat-card stat-refunded"},Vt={class:"stat-icon"},zt={class:"stat-info"},Bt={class:"stat-value"},jt={class:"advanced-search"},Dt={class:"toolbar"},Ft={class:"toolbar-left"},Ut={class:"toolbar-right"},qt={class:"column-settings"},It={class:"price-text"},Tt={key:3,class:"text-muted"},$t={key:0,class:"mono-text"},Pt={key:1,class:"text-muted"},Qt={class:"pagination-wrapper"},Mt={class:"detail-header"},Rt={class:"detail-header-left"},Kt={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Lt={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Nt={key:2,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ot={key:3,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},At={class:"detail-header-title"},Ht={class:"detail-header-sub"},Wt={class:"detail-header-right"},Xt=["onClick"],Yt={key:0,class:"detail-body"},Gt={class:"detail-row-group"},Jt={class:"detail-row"},Zt={class:"detail-row-val mono"},ea={class:"detail-row"},ta={class:"detail-row-val mono"},aa={class:"detail-row"},sa={class:"detail-row-val price-text"},la={class:"detail-row"},oa={class:"detail-row-val"},na={class:"detail-row-group"},ia={class:"detail-row"},da={class:"detail-row-val"},ra={class:"detail-row"},ua={class:"detail-row-val"},pa={class:"detail-row"},ca={class:"detail-row-val"},_a={key:0,class:"mono-text"},ma={key:1,class:"text-muted"},va={class:"detail-row-group"},ya={class:"detail-row",style:{"border-top":"none"}},fa={class:"detail-row-val",style:{"max-width":"100%"}},wa={class:"detail-row-group"},ga={class:"detail-row"},ha={class:"detail-row-val"},ka={class:"detail-row"},ba={class:"detail-row-val"},xa={__name:"Orders",setup(Ca){const Y=ct(),G=b(()=>Y.user),I=b(()=>{var u;return["admin","project_admin"].includes((u=G.value)==null?void 0:u.role)}),C=F(!0),z=F(!1),i=F(null),J=b(()=>i.value?{pending:"待支付",paid:"已支付",expired:"已过期",refunded:"已退款"}[i.value.status]||i.value.status:""),{list:E,loading:Z,page:B,pageSize:j,total:T,selectedRows:S,filters:f,tableMaxHeight:ee,fetchData:$,handleSelectionChange:te,handleSortChange:ae,handleSizeChange:se,handleFilterChange:x,resetFilters:le,refreshData:oe}=ut({apiUrl:"/orders",defaultFilters:{status:"",pay_type:"",keyword:""},defaultPageSize:20}),{columnOptions:ne,visibleColumns:v,saveColumnSettings:ie}=pt("orders_column_settings",[{prop:"id",label:"ID"},{prop:"order_no",label:"订单号"},{prop:"project_name",label:"项目"},{prop:"card_type_name",label:"套餐"},{prop:"amount",label:"金额"},{prop:"pay_type",label:"支付方式"},{prop:"status",label:"状态"},{prop:"trade_no",label:"交易号"},{prop:"card_key",label:"卡密"},{prop:"paid_at",label:"支付时间"},{prop:"created_at",label:"创建时间"}]),de=b(()=>E.value.filter(u=>u.status==="paid").reduce((u,e)=>u+parseFloat(e.amount||0),0).toFixed(2)),re=b(()=>E.value.filter(u=>u.status==="pending").length),ue=b(()=>E.value.filter(u=>u.status==="refunded").length);async function pe(u){try{const e=await X.get(`/orders/${u.id}`);i.value=e.data,z.value=!0}catch(e){console.error(e)}}async function ce(u){try{await rt.confirm("确定手动补单?将自动发货卡密。","提示",{type:"warning"}),await X.post(`/orders/${u.id}/complete`),q.success("补单成功"),$()}catch(e)Line truncated
@@ -0,0 +1 @@
import{_ as G,m as W,o as U,c as A,b as a,w as l,l as d,a9 as H,K as X,r,ad as Z,S as h,d as ee,aU as ae,E as le,i as n,e as te,f as oe,a as _,h as ne,aV as pe,t as se,av as ue,a1 as ie,aW as re,D as I,k as v,j as de}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as D}from"./index-CxGbf_5w.js";const me={class:"page-container"},_e={class:"card-header"},fe={__name:"PaymentConfig",setup(ye){const g=d(null),k=d(!1),b=d(!1),C=d(!1),f=d(!1),s=de({success:!1,message:""}),t=d({api_url:"",app_id:"",app_key:"",pay_types:["alipay","wxpay"]}),B={api_url:[{required:!0,message:"请输入支付网关地址",trigger:"blur"}],app_id:[{required:!0,message:"请输入商户ID",trigger:"blur"}],app_key:[{required:!0,message:"请输入商户密钥",trigger:"blur"}]},V=I(()=>(window.location.origin||"http://localhost:3000").replace(":3000",":8080")+"/api/public/payment/notify"),w=I(()=>(window.location.origin||"http://localhost:3000")+"/#/result");W(()=>R());async function R(){k.value=!0;try{const e=(await D.get("/system/configs?keys=payment_api_url,payment_app_id,payment_app_key,payment_pay_types")).data||{};t.value.api_url=e.payment_api_url||"",t.value.app_id=e.payment_app_id||"",t.value.app_key=e.payment_app_key||"",t.value.pay_types=e.payment_pay_types?JSON.parse(e.payment_pay_types):["alipay","wxpay"]}catch{}finally{k.value=!1}}async function q(){g.value&&await g.value.validate(async p=>{if(p){b.value=!0;try{await D.post("/system/configs",{configs:{payment_api_url:t.value.api_url,payment_app_id:t.value.app_id,payment_app_key:t.value.app_key,payment_pay_types:JSON.stringify(t.value.pay_types)}}),v.success("支付配置保存成功")}catch{}finally{b.value=!1}}})}async function L(){if(!t.value.api_url||!t.value.app_id||!t.value.app_key){v.warning("请先填写完整的接口参数");return}C.value=!0;try{const p=await D.post("/system/test-payment",{api_url:t.value.api_url,app_id:t.value.app_id,app_key:t.value.app_key});s.success=p.code===200,s.message=p.message||"连接测试完成",f.value=!0}catch{s.success=!1,s.message="连接测试失败,请检查参数",f.value=!0}finally{C.value=!1}}function x(p){navigator.clipboard.writeText(p).then(()=>{v.success("已复制到剪贴板")}).catch(()=>{v.info("复制失败,请手动复制")})}return(p,e)=>{const N=r("CreditCard"),u=le,P=ie,T=r("Connection"),y=ae,m=oe,i=te,S=r("Link"),c=ne,K=r("Coin"),F=r("BankCard"),E=se,J=r("ChatDotRound"),M=r("Chicken"),O=pe,Q=ee,Y=H,$=re,j=X,z=ue;return U(),A("div",me,[a(Y,{shadow:"never",class:"config-card"},{header:l(()=>[_("div",_e,[_("span",null,[a(u,null,{default:l(()=>[a(N)]),_:1}),e[9]||(e[9]=n(" 支付配置",-1))]),a(P,{type:"warning",effect:"plain",size:"small"},{default:l(()=>[...e[10]||(e[10]=[n("易支付 (EPay) 接口",-1)])]),_:1})])]),default:l(()=>[Z((U(),h(Q,{ref_key:"formRef",ref:g,model:t.value,rules:B,"label-width":"120px","label-position":"right"},{default:l(()=>[a(y,{"content-position":"left"},{default:l(()=>[a(u,null,{default:l(()=>[a(T)]),_:1}),e[11]||(e[11]=n(" 接口参数 ",-1))]),_:1}),a(i,{label:"支付网关",prop:"api_url"},{default:l(()=>[a(m,{modelValue:t.value.api_url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.value.api_url=o),placeholder:"易支付网关地址,如 https://pay.example.com"},{prepend:l(()=>[...e[12]||(e[12]=[n("URL",-1)])]),_:1},8,["modelValue"]),e[13]||(e[13]=_("div",{class:"form-tip"},"易支付平台提供的支付网关地址,通常以 /submit.php 结尾",-1))]),_:1}),a(i,{label:"商户ID",prop:"app_id"},{default:l(()=>[a(m,{modelValue:t.value.app_id,"onUpdate:modelValue":e[1]||(e[1]=o=>t.value.app_id=o),placeholder:"易支付商户ID (PID)"},{prepend:l(()=>[...e[14]||(e[14]=[n("PID",-1)])]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"商户密钥",prop:"app_key"},{default:l(()=>[a(m,{modelValue:t.value.app_key,"onUpdate:modelValue":e[2]||(e[2]=o=>t.value.app_key=o),type:"password","show-password":"",placeholder:"易支付商户密钥 (KEY)"},{'prepend"':l(()=>[...e[15]||(e[15]=[n("KEY",-1)])]),_:1},8,["modelValue"])]),_:1}),a(y,{"content-position":"left"},{default:l(()=>[a(u,null,{default:l(()=>[a(S)]),_:1}),e[16]||(e[16]=n(" 回调地址 ",-1))]),_:1}),a(i,{label:"异步通知地址"},{default:l(()=>[a(m,{modelValue:V.value,"onUpdate:modelValue":e[4]||(e[4]=o=>V.value=o),readonly:""},{append:l(()=>[a(c,{icon:p.CopyDocument,onClick:e[3]||(e[3]=o=>x(V.value))},{default:l(()=>[...e[17]||(e[17]=[n("复制",-1)])]),_:1},8,["icon"])]),_:1},8,["modelValue"]),e[18]||(e[18]=_("div",{class:"form-tip"},"将此地址填入易支付后台的「异步通知地址」",-1))]),_:1}),a(i,{label:"同步跳转地址"},{default:l(()=>[a(m,{modelValue:w.value,"onUpdate:modelValue":e[6]||(e[6]=o=>w.value=o),readonly:""},{append:l(()=>[a(c,{icon:p.CopyDocument,onClick:e[5]||(e[5]=o=>x(w.value))},{default:l(()=>[...Line truncated
@@ -0,0 +1 @@
import{_ as G,m as W,o as U,c as A,b as a,w as l,l as d,a9 as H,K as X,r,ad as Z,S as h,d as ee,aU as ae,E as le,i as n,e as te,f as oe,a as _,h as ne,aV as pe,t as se,av as ue,a1 as ie,aW as re,D as I,k as v,j as de}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as D}from"./index-C3lsw5-G.js";const me={class:"page-container"},_e={class:"card-header"},fe={__name:"PaymentConfig",setup(ye){const g=d(null),k=d(!1),b=d(!1),C=d(!1),f=d(!1),s=de({success:!1,message:""}),t=d({api_url:"",app_id:"",app_key:"",pay_types:["alipay","wxpay"]}),B={api_url:[{required:!0,message:"请输入支付网关地址",trigger:"blur"}],app_id:[{required:!0,message:"请输入商户ID",trigger:"blur"}],app_key:[{required:!0,message:"请输入商户密钥",trigger:"blur"}]},V=I(()=>(window.location.origin||"http://localhost:3000").replace(":3000",":8080")+"/api/public/payment/notify"),w=I(()=>(window.location.origin||"http://localhost:3000")+"/#/result");W(()=>R());async function R(){k.value=!0;try{const e=(await D.get("/system/configs?keys=payment_api_url,payment_app_id,payment_app_key,payment_pay_types")).data||{};t.value.api_url=e.payment_api_url||"",t.value.app_id=e.payment_app_id||"",t.value.app_key=e.payment_app_key||"",t.value.pay_types=e.payment_pay_types?JSON.parse(e.payment_pay_types):["alipay","wxpay"]}catch{}finally{k.value=!1}}async function q(){g.value&&await g.value.validate(async p=>{if(p){b.value=!0;try{await D.post("/system/configs",{configs:{payment_api_url:t.value.api_url,payment_app_id:t.value.app_id,payment_app_key:t.value.app_key,payment_pay_types:JSON.stringify(t.value.pay_types)}}),v.success("支付配置保存成功")}catch{}finally{b.value=!1}}})}async function L(){if(!t.value.api_url||!t.value.app_id||!t.value.app_key){v.warning("请先填写完整的接口参数");return}C.value=!0;try{const p=await D.post("/system/test-payment",{api_url:t.value.api_url,app_id:t.value.app_id,app_key:t.value.app_key});s.success=p.code===200,s.message=p.message||"连接测试完成",f.value=!0}catch{s.success=!1,s.message="连接测试失败,请检查参数",f.value=!0}finally{C.value=!1}}function x(p){navigator.clipboard.writeText(p).then(()=>{v.success("已复制到剪贴板")}).catch(()=>{v.info("复制失败,请手动复制")})}return(p,e)=>{const N=r("CreditCard"),u=le,P=ie,T=r("Connection"),y=ae,m=oe,i=te,S=r("Link"),c=ne,K=r("Coin"),F=r("BankCard"),E=se,J=r("ChatDotRound"),M=r("Chicken"),O=pe,Q=ee,Y=H,$=re,j=X,z=ue;return U(),A("div",me,[a(Y,{shadow:"never",class:"config-card"},{header:l(()=>[_("div",_e,[_("span",null,[a(u,null,{default:l(()=>[a(N)]),_:1}),e[9]||(e[9]=n(" 支付配置",-1))]),a(P,{type:"warning",effect:"plain",size:"small"},{default:l(()=>[...e[10]||(e[10]=[n("易支付 (EPay) 接口",-1)])]),_:1})])]),default:l(()=>[Z((U(),h(Q,{ref_key:"formRef",ref:g,model:t.value,rules:B,"label-width":"120px","label-position":"right"},{default:l(()=>[a(y,{"content-position":"left"},{default:l(()=>[a(u,null,{default:l(()=>[a(T)]),_:1}),e[11]||(e[11]=n(" 接口参数 ",-1))]),_:1}),a(i,{label:"支付网关",prop:"api_url"},{default:l(()=>[a(m,{modelValue:t.value.api_url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.value.api_url=o),placeholder:"易支付网关地址,如 https://pay.example.com"},{prepend:l(()=>[...e[12]||(e[12]=[n("URL",-1)])]),_:1},8,["modelValue"]),e[13]||(e[13]=_("div",{class:"form-tip"},"易支付平台提供的支付网关地址,通常以 /submit.php 结尾",-1))]),_:1}),a(i,{label:"商户ID",prop:"app_id"},{default:l(()=>[a(m,{modelValue:t.value.app_id,"onUpdate:modelValue":e[1]||(e[1]=o=>t.value.app_id=o),placeholder:"易支付商户ID (PID)"},{prepend:l(()=>[...e[14]||(e[14]=[n("PID",-1)])]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"商户密钥",prop:"app_key"},{default:l(()=>[a(m,{modelValue:t.value.app_key,"onUpdate:modelValue":e[2]||(e[2]=o=>t.value.app_key=o),type:"password","show-password":"",placeholder:"易支付商户密钥 (KEY)"},{'prepend"':l(()=>[...e[15]||(e[15]=[n("KEY",-1)])]),_:1},8,["modelValue"])]),_:1}),a(y,{"content-position":"left"},{default:l(()=>[a(u,null,{default:l(()=>[a(S)]),_:1}),e[16]||(e[16]=n(" 回调地址 ",-1))]),_:1}),a(i,{label:"异步通知地址"},{default:l(()=>[a(m,{modelValue:V.value,"onUpdate:modelValue":e[4]||(e[4]=o=>V.value=o),readonly:""},{append:l(()=>[a(c,{icon:p.CopyDocument,onClick:e[3]||(e[3]=o=>x(V.value))},{default:l(()=>[...e[17]||(e[17]=[n("复制",-1)])]),_:1},8,["icon"])]),_:1},8,["modelValue"]),e[18]||(e[18]=_("div",{class:"form-tip"},"将此地址填入易支付后台的「异步通知地址」",-1))]),_:1}),a(i,{label:"同步跳转地址"},{default:l(()=>[a(m,{modelValue:w.value,"onUpdate:modelValue":e[6]||(e[6]=o=>w.value=o),readonly:""},{append:l(()=>[a(c,{icon:p.CopyDocument,onClick:e[5]||(e[5]=o=>x(w.value))},{default:l(()=>[...Line truncated
@@ -0,0 +1 @@
import{_ as G,m as W,o as U,c as A,b as a,w as l,l as d,a9 as H,K as X,r,ad as Z,S as h,d as ee,aU as ae,E as le,i as n,e as te,f as oe,a as _,h as ne,aV as pe,t as se,av as ue,a1 as ie,aW as re,D as I,k as v,j as de}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as D}from"./index-C7doSj3W.js";const me={class:"page-container"},_e={class:"card-header"},fe={__name:"PaymentConfig",setup(ye){const g=d(null),k=d(!1),b=d(!1),C=d(!1),f=d(!1),s=de({success:!1,message:""}),t=d({api_url:"",app_id:"",app_key:"",pay_types:["alipay","wxpay"]}),B={api_url:[{required:!0,message:"请输入支付网关地址",trigger:"blur"}],app_id:[{required:!0,message:"请输入商户ID",trigger:"blur"}],app_key:[{required:!0,message:"请输入商户密钥",trigger:"blur"}]},V=I(()=>(window.location.origin||"http://localhost:3000").replace(":3000",":8080")+"/api/public/payment/notify"),w=I(()=>(window.location.origin||"http://localhost:3000")+"/#/result");W(()=>R());async function R(){k.value=!0;try{const e=(await D.get("/system/configs?keys=payment_api_url,payment_app_id,payment_app_key,payment_pay_types")).data||{};t.value.api_url=e.payment_api_url||"",t.value.app_id=e.payment_app_id||"",t.value.app_key=e.payment_app_key||"",t.value.pay_types=e.payment_pay_types?JSON.parse(e.payment_pay_types):["alipay","wxpay"]}catch{}finally{k.value=!1}}async function q(){g.value&&await g.value.validate(async p=>{if(p){b.value=!0;try{await D.post("/system/configs",{configs:{payment_api_url:t.value.api_url,payment_app_id:t.value.app_id,payment_app_key:t.value.app_key,payment_pay_types:JSON.stringify(t.value.pay_types)}}),v.success("支付配置保存成功")}catch{}finally{b.value=!1}}})}async function L(){if(!t.value.api_url||!t.value.app_id||!t.value.app_key){v.warning("请先填写完整的接口参数");return}C.value=!0;try{const p=await D.post("/system/test-payment",{api_url:t.value.api_url,app_id:t.value.app_id,app_key:t.value.app_key});s.success=p.code===200,s.message=p.message||"连接测试完成",f.value=!0}catch{s.success=!1,s.message="连接测试失败,请检查参数",f.value=!0}finally{C.value=!1}}function x(p){navigator.clipboard.writeText(p).then(()=>{v.success("已复制到剪贴板")}).catch(()=>{v.info("复制失败,请手动复制")})}return(p,e)=>{const N=r("CreditCard"),u=le,P=ie,T=r("Connection"),y=ae,m=oe,i=te,S=r("Link"),c=ne,K=r("Coin"),F=r("BankCard"),E=se,J=r("ChatDotRound"),M=r("Chicken"),O=pe,Q=ee,Y=H,$=re,j=X,z=ue;return U(),A("div",me,[a(Y,{shadow:"never",class:"config-card"},{header:l(()=>[_("div",_e,[_("span",null,[a(u,null,{default:l(()=>[a(N)]),_:1}),e[9]||(e[9]=n(" 支付配置",-1))]),a(P,{type:"warning",effect:"plain",size:"small"},{default:l(()=>[...e[10]||(e[10]=[n("易支付 (EPay) 接口",-1)])]),_:1})])]),default:l(()=>[Z((U(),h(Q,{ref_key:"formRef",ref:g,model:t.value,rules:B,"label-width":"120px","label-position":"right"},{default:l(()=>[a(y,{"content-position":"left"},{default:l(()=>[a(u,null,{default:l(()=>[a(T)]),_:1}),e[11]||(e[11]=n(" 接口参数 ",-1))]),_:1}),a(i,{label:"支付网关",prop:"api_url"},{default:l(()=>[a(m,{modelValue:t.value.api_url,"onUpdate:modelValue":e[0]||(e[0]=o=>t.value.api_url=o),placeholder:"易支付网关地址,如 https://pay.example.com"},{prepend:l(()=>[...e[12]||(e[12]=[n("URL",-1)])]),_:1},8,["modelValue"]),e[13]||(e[13]=_("div",{class:"form-tip"},"易支付平台提供的支付网关地址,通常以 /submit.php 结尾",-1))]),_:1}),a(i,{label:"商户ID",prop:"app_id"},{default:l(()=>[a(m,{modelValue:t.value.app_id,"onUpdate:modelValue":e[1]||(e[1]=o=>t.value.app_id=o),placeholder:"易支付商户ID (PID)"},{prepend:l(()=>[...e[14]||(e[14]=[n("PID",-1)])]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"商户密钥",prop:"app_key"},{default:l(()=>[a(m,{modelValue:t.value.app_key,"onUpdate:modelValue":e[2]||(e[2]=o=>t.value.app_key=o),type:"password","show-password":"",placeholder:"易支付商户密钥 (KEY)"},{'prepend"':l(()=>[...e[15]||(e[15]=[n("KEY",-1)])]),_:1},8,["modelValue"])]),_:1}),a(y,{"content-position":"left"},{default:l(()=>[a(u,null,{default:l(()=>[a(S)]),_:1}),e[16]||(e[16]=n(" 回调地址 ",-1))]),_:1}),a(i,{label:"异步通知地址"},{default:l(()=>[a(m,{modelValue:V.value,"onUpdate:modelValue":e[4]||(e[4]=o=>V.value=o),readonly:""},{append:l(()=>[a(c,{icon:p.CopyDocument,onClick:e[3]||(e[3]=o=>x(V.value))},{default:l(()=>[...e[17]||(e[17]=[n("复制",-1)])]),_:1},8,["icon"])]),_:1},8,["modelValue"]),e[18]||(e[18]=_("div",{class:"form-tip"},"将此地址填入易支付后台的「异步通知地址」",-1))]),_:1}),a(i,{label:"同步跳转地址"},{default:l(()=>[a(m,{modelValue:w.value,"onUpdate:modelValue":e[6]||(e[6]=o=>w.value=o),readonly:""},{append:l(()=>[a(c,{icon:p.CopyDocument,onClick:e[5]||(e[5]=o=>x(w.value))},{default:l(()=>[...Line truncated
@@ -0,0 +1 @@
import{_ as Be,m as Re,o as r,c as B,b as t,w as a,l as w,a7 as Me,a9 as Pe,K as Te,a8 as qe,a as n,E as Le,n as l,aA as Ne,C as v,ab as Ke,ac as Ae,aB as He,T as Oe,ad as Q,d as We,e as Xe,ae as Ye,H as O,V as W,S as u,af as Ge,f as Je,g as Qe,h as Ze,ag as et,i as c,ah as Z,ai as tt,aj as at,M as m,W as lt,ak as ot,al as st,X as nt,Y as it,am as ee,an as dt,ao as rt,t as ut,ap as ct,aq as pt,ar as mt,a1 as _t,at as ft,au as vt,av as gt,aw as bt,ax as te,ay as yt,D as z,k as C,az as ae}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as ht}from"./user-dKBxTmfR.js";import{u as wt,a as Ct}from"./useColumnSettings-BGE5jzFS.js";import{r as x}from"./index-C3lsw5-G.js";const Vt={class:"products-page"},kt={class:"stat-card stat-total"},xt={class:"stat-icon"},Et={class:"stat-info"},jt={class:"stat-value"},St={class:"stat-card stat-active"},Ut={class:"stat-icon"},zt={class:"stat-info"},$t={class:"stat-value"},Dt={class:"stat-card stat-inactive"},Ft={class:"stat-icon"},It={class:"stat-info"},Bt={class:"stat-value"},Rt={class:"stat-card stat-forever"},Mt={class:"stat-icon"},Pt={class:"stat-info"},Tt={class:"stat-value"},qt={class:"advanced-search"},Lt={class:"toolbar"},Nt={class:"toolbar-left"},Kt={class:"toolbar-right"},At={class:"column-settings"},Ht={class:"price-text"},Ot={class:"pagination-wrapper"},Wt={__name:"Products",setup(Xt){const le=ht(),R=z(()=>le.user),M=z(()=>{var o;return["admin","project_admin"].includes((o=R.value)==null?void 0:o.role)}),P=w([]),$=w(!0),{list:D,loading:oe,page:T,pageSize:q,total:X,selectedRows:b,filters:y,tableMaxHeight:se,fetchData:E,handleSelectionChange:ne,handleSortChange:ie,handleSizeChange:de,handleFilterChange:j,resetFilters:re,refreshData:ue}=wt({apiUrl:"/products",defaultFilters:{project_id:"",status:"",keyword:""},defaultPageSize:20}),{columnOptions:ce,visibleColumns:g,saveColumnSettings:pe}=Ct("products_column_settings",[{prop:"id",label:"ID"},{prop:"project_name",label:"所属项目"},{prop:"name",label:"商品名称"},{prop:"duration_days",label:"有效期"},{prop:"original_price",label:"原价"},{prop:"price",label:"售价"},{prop:"agent_cost",label:"代理价格"},{prop:"sort",label:"排序"},{prop:"status",label:"状态"},{prop:"created_at",label:"创建时间"}]),me=z(()=>D.value.filter(o=>o.status===1).length),_e=z(()=>D.value.filter(o=>o.status===0).length),fe=z(()=>D.value.filter(o=>o.duration_days==0).length);Re(async()=>{const o=await x.get("/projects/all");P.value=o.data});const V=w(!1),S=w(!1),L=w(null),d=w({project_id:null,name:"",duration_days:30,price:0,original_price:0,agent_cost:0,sort:0,status:1}),ve={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入价格",trigger:"blur"}]},N=w(!1);let K=null;function ge(){S.value=!1,K=null,d.value={project_id:null,name:"",description:"",duration_days:30,price:0,original_price:0,agent_cost:0,sort:0,status:1},V.value=!0}function be(o){S.value=!0,K=o.id,d.value={project_id:o.project_id,name:o.name,description:o.description??"",duration_days:o.duration_days,price:o.price,original_price:o.original_price??0,agent_cost:o.agent_cost,sort:o.sort,status:o.status},V.value=!0}async function ye(){L.value&&await L.value.validate(async o=>{if(o){N.value=!0;try{const e=d.value.project_id;S.value?(await x.put(`/projects/${e}/card-types/${K}`,d.value),C.success("更新成功")):(await x.post(`/projects/${e}/card-types`,d.value),C.success("创建成功")),V.value=!1,E()}catch(e){console.error(e)}finally{N.value=!1}}})}async function he(o){try{await ae.confirm("确定删除该商品?","提示",{type:"warning"}),await x.delete(`/projects/${o.project_id}/card-types/${o.id}`),C.success("删除成功"),E()}catch(e){e!=="cancel"&&console.error(e)}}async function we(){if(b.value.length)try{await ae.confirm(`确定删除选中的 ${b.value.length} 个商品吗?`,"批量删除",{type:"warning"});for(const o of b.value)await x.delete(`/projects/${o.project_id}/card-types/${o.id}`);C.success("批量删除成功"),E()}catch(o){o!=="cancel"&&console.error(o)}}async function Ce(o){try{await x.put(`/projects/${o.project_id}/card-types/${o.id}`,{status:o.status}),C.success("状态更新成功"),E()}catch(e){o.status=o.status===1?0:1,console.error(e)}}function Ve(o){if(!b.value.length){C.warning("请先选择要导出的数据");return}const e=new URLSearchParams;e.set("ids",b.value.map(k=>k.id).join(",")),e.append("format",o);const h=localStoLine truncated
@@ -0,0 +1 @@
import{_ as Be,m as Re,o as r,c as B,b as t,w as a,l as w,a7 as Me,a9 as Pe,K as Te,a8 as qe,a as n,E as Le,n as l,aA as Ne,C as v,ab as Ke,ac as Ae,aB as He,T as Oe,ad as Q,d as We,e as Xe,ae as Ye,H as O,V as W,S as u,af as Ge,f as Je,g as Qe,h as Ze,ag as et,i as c,ah as Z,ai as tt,aj as at,M as m,W as lt,ak as ot,al as st,X as nt,Y as it,am as ee,an as dt,ao as rt,t as ut,ap as ct,aq as pt,ar as mt,a1 as _t,at as ft,au as vt,av as gt,aw as bt,ax as te,ay as yt,D as z,k as C,az as ae}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as ht}from"./user-iqLWbJfU.js";import{u as wt,a as Ct}from"./useColumnSettings-Nw4I78Sz.js";import{r as x}from"./index-CxGbf_5w.js";const Vt={class:"products-page"},kt={class:"stat-card stat-total"},xt={class:"stat-icon"},Et={class:"stat-info"},jt={class:"stat-value"},St={class:"stat-card stat-active"},Ut={class:"stat-icon"},zt={class:"stat-info"},$t={class:"stat-value"},Dt={class:"stat-card stat-inactive"},Ft={class:"stat-icon"},It={class:"stat-info"},Bt={class:"stat-value"},Rt={class:"stat-card stat-forever"},Mt={class:"stat-icon"},Pt={class:"stat-info"},Tt={class:"stat-value"},qt={class:"advanced-search"},Lt={class:"toolbar"},Nt={class:"toolbar-left"},Kt={class:"toolbar-right"},At={class:"column-settings"},Ht={class:"price-text"},Ot={class:"pagination-wrapper"},Wt={__name:"Products",setup(Xt){const le=ht(),R=z(()=>le.user),M=z(()=>{var o;return["admin","project_admin"].includes((o=R.value)==null?void 0:o.role)}),P=w([]),$=w(!0),{list:D,loading:oe,page:T,pageSize:q,total:X,selectedRows:b,filters:y,tableMaxHeight:se,fetchData:E,handleSelectionChange:ne,handleSortChange:ie,handleSizeChange:de,handleFilterChange:j,resetFilters:re,refreshData:ue}=wt({apiUrl:"/products",defaultFilters:{project_id:"",status:"",keyword:""},defaultPageSize:20}),{columnOptions:ce,visibleColumns:g,saveColumnSettings:pe}=Ct("products_column_settings",[{prop:"id",label:"ID"},{prop:"project_name",label:"所属项目"},{prop:"name",label:"商品名称"},{prop:"duration_days",label:"有效期"},{prop:"original_price",label:"原价"},{prop:"price",label:"售价"},{prop:"agent_cost",label:"代理价格"},{prop:"sort",label:"排序"},{prop:"status",label:"状态"},{prop:"created_at",label:"创建时间"}]),me=z(()=>D.value.filter(o=>o.status===1).length),_e=z(()=>D.value.filter(o=>o.status===0).length),fe=z(()=>D.value.filter(o=>o.duration_days==0).length);Re(async()=>{const o=await x.get("/projects/all");P.value=o.data});const V=w(!1),S=w(!1),L=w(null),d=w({project_id:null,name:"",duration_days:30,price:0,original_price:0,agent_cost:0,sort:0,status:1}),ve={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入价格",trigger:"blur"}]},N=w(!1);let K=null;function ge(){S.value=!1,K=null,d.value={project_id:null,name:"",description:"",duration_days:30,price:0,original_price:0,agent_cost:0,sort:0,status:1},V.value=!0}function be(o){S.value=!0,K=o.id,d.value={project_id:o.project_id,name:o.name,description:o.description??"",duration_days:o.duration_days,price:o.price,original_price:o.original_price??0,agent_cost:o.agent_cost,sort:o.sort,status:o.status},V.value=!0}async function ye(){L.value&&await L.value.validate(async o=>{if(o){N.value=!0;try{const e=d.value.project_id;S.value?(await x.put(`/projects/${e}/card-types/${K}`,d.value),C.success("更新成功")):(await x.post(`/projects/${e}/card-types`,d.value),C.success("创建成功")),V.value=!1,E()}catch(e){console.error(e)}finally{N.value=!1}}})}async function he(o){try{await ae.confirm("确定删除该商品?","提示",{type:"warning"}),await x.delete(`/projects/${o.project_id}/card-types/${o.id}`),C.success("删除成功"),E()}catch(e){e!=="cancel"&&console.error(e)}}async function we(){if(b.value.length)try{await ae.confirm(`确定删除选中的 ${b.value.length} 个商品吗?`,"批量删除",{type:"warning"});for(const o of b.value)await x.delete(`/projects/${o.project_id}/card-types/${o.id}`);C.success("批量删除成功"),E()}catch(o){o!=="cancel"&&console.error(o)}}async function Ce(o){try{await x.put(`/projects/${o.project_id}/card-types/${o.id}`,{status:o.status}),C.success("状态更新成功"),E()}catch(e){o.status=o.status===1?0:1,console.error(e)}}function Ve(o){if(!b.value.length){C.warning("请先选择要导出的数据");return}const e=new URLSearchParams;e.set("ids",b.value.map(k=>k.id).join(",")),e.append("format",o);const h=localStoLine truncated
@@ -0,0 +1 @@
import{_ as Be,m as Re,o as r,c as B,b as t,w as a,l as w,a7 as Me,a9 as Pe,K as Te,a8 as qe,a as n,E as Le,n as l,aA as Ne,C as v,ab as Ke,ac as Ae,aB as He,T as Oe,ad as Q,d as We,e as Xe,ae as Ye,H as O,V as W,S as u,af as Ge,f as Je,g as Qe,h as Ze,ag as et,i as c,ah as Z,ai as tt,aj as at,M as m,W as lt,ak as ot,al as st,X as nt,Y as it,am as ee,an as dt,ao as rt,t as ut,ap as ct,aq as pt,ar as mt,a1 as _t,at as ft,au as vt,av as gt,aw as bt,ax as te,ay as yt,D as z,k as C,az as ae}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as ht}from"./user-CjwLSb7B.js";import{u as wt,a as Ct}from"./useColumnSettings-C0R5rnWU.js";import{r as x}from"./index-C7doSj3W.js";const Vt={class:"products-page"},kt={class:"stat-card stat-total"},xt={class:"stat-icon"},Et={class:"stat-info"},jt={class:"stat-value"},St={class:"stat-card stat-active"},Ut={class:"stat-icon"},zt={class:"stat-info"},$t={class:"stat-value"},Dt={class:"stat-card stat-inactive"},Ft={class:"stat-icon"},It={class:"stat-info"},Bt={class:"stat-value"},Rt={class:"stat-card stat-forever"},Mt={class:"stat-icon"},Pt={class:"stat-info"},Tt={class:"stat-value"},qt={class:"advanced-search"},Lt={class:"toolbar"},Nt={class:"toolbar-left"},Kt={class:"toolbar-right"},At={class:"column-settings"},Ht={class:"price-text"},Ot={class:"pagination-wrapper"},Wt={__name:"Products",setup(Xt){const le=ht(),R=z(()=>le.user),M=z(()=>{var o;return["admin","project_admin"].includes((o=R.value)==null?void 0:o.role)}),P=w([]),$=w(!0),{list:D,loading:oe,page:T,pageSize:q,total:X,selectedRows:b,filters:y,tableMaxHeight:se,fetchData:E,handleSelectionChange:ne,handleSortChange:ie,handleSizeChange:de,handleFilterChange:j,resetFilters:re,refreshData:ue}=wt({apiUrl:"/products",defaultFilters:{project_id:"",status:"",keyword:""},defaultPageSize:20}),{columnOptions:ce,visibleColumns:g,saveColumnSettings:pe}=Ct("products_column_settings",[{prop:"id",label:"ID"},{prop:"project_name",label:"所属项目"},{prop:"name",label:"商品名称"},{prop:"duration_days",label:"有效期"},{prop:"original_price",label:"原价"},{prop:"price",label:"售价"},{prop:"agent_cost",label:"代理价格"},{prop:"sort",label:"排序"},{prop:"status",label:"状态"},{prop:"created_at",label:"创建时间"}]),me=z(()=>D.value.filter(o=>o.status===1).length),_e=z(()=>D.value.filter(o=>o.status===0).length),fe=z(()=>D.value.filter(o=>o.duration_days==0).length);Re(async()=>{const o=await x.get("/projects/all");P.value=o.data});const V=w(!1),S=w(!1),L=w(null),d=w({project_id:null,name:"",duration_days:30,price:0,original_price:0,agent_cost:0,sort:0,status:1}),ve={project_id:[{required:!0,message:"请选择项目",trigger:"change"}],name:[{required:!0,message:"请输入商品名称",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入价格",trigger:"blur"}]},N=w(!1);let K=null;function ge(){S.value=!1,K=null,d.value={project_id:null,name:"",description:"",duration_days:30,price:0,original_price:0,agent_cost:0,sort:0,status:1},V.value=!0}function be(o){S.value=!0,K=o.id,d.value={project_id:o.project_id,name:o.name,description:o.description??"",duration_days:o.duration_days,price:o.price,original_price:o.original_price??0,agent_cost:o.agent_cost,sort:o.sort,status:o.status},V.value=!0}async function ye(){L.value&&await L.value.validate(async o=>{if(o){N.value=!0;try{const e=d.value.project_id;S.value?(await x.put(`/projects/${e}/card-types/${K}`,d.value),C.success("更新成功")):(await x.post(`/projects/${e}/card-types`,d.value),C.success("创建成功")),V.value=!1,E()}catch(e){console.error(e)}finally{N.value=!1}}})}async function he(o){try{await ae.confirm("确定删除该商品?","提示",{type:"warning"}),await x.delete(`/projects/${o.project_id}/card-types/${o.id}`),C.success("删除成功"),E()}catch(e){e!=="cancel"&&console.error(e)}}async function we(){if(b.value.length)try{await ae.confirm(`确定删除选中的 ${b.value.length} 个商品吗?`,"批量删除",{type:"warning"});for(const o of b.value)await x.delete(`/projects/${o.project_id}/card-types/${o.id}`);C.success("批量删除成功"),E()}catch(o){o!=="cancel"&&console.error(o)}}async function Ce(o){try{await x.put(`/projects/${o.project_id}/card-types/${o.id}`,{status:o.status}),C.success("状态更新成功"),E()}catch(e){o.status=o.status===1?0:1,console.error(e)}}function Ve(o){if(!b.value.length){C.warning("请先选择要导出的数据");return}const e=new URLSearchParams;e.set("ids",b.value.map(k=>k.id).join(",")),e.append("format",o);const h=localStoLine truncated
@@ -0,0 +1 @@
import{_ as We,o as c,c as ie,b as t,w as a,a7 as Xe,a9 as Ye,l as p,K as Ge,a8 as Je,a as n,E as Qe,n as o,aa as Ze,C as g,ab as et,ac as tt,T as at,ad as Q,d as lt,e as ot,f as st,g as nt,ae as it,af as dt,h as ut,ag as rt,i,ah as de,ai as pt,S as y,aj as ue,M as k,W as ct,ak as mt,al as ft,X as vt,Y as _t,am as re,an as gt,ao as yt,H as bt,V as wt,t as kt,ap as Ct,aq as ht,ar as Vt,as as xt,at as Et,au as St,av as $t,aw as Ut,ax as pe,a1 as zt,ay as jt,D as P,k as f,az as T}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Dt}from"./user-iqLWbJfU.js";import{u as Ft,a as It}from"./useColumnSettings-Nw4I78Sz.js";import{r as b}from"./index-CxGbf_5w.js";const Pt={class:"projects-page"},Tt={class:"stat-card stat-total"},Kt={class:"stat-icon"},Rt={class:"stat-info"},Bt={class:"stat-value"},Lt={class:"stat-card stat-active"},At={class:"stat-icon"},Mt={class:"stat-info"},qt={class:"stat-value"},Nt={class:"stat-card stat-inactive"},Ht={class:"stat-icon"},Ot={class:"stat-info"},Wt={class:"stat-value"},Xt={class:"advanced-search"},Yt={class:"toolbar"},Gt={class:"toolbar-left"},Jt={class:"toolbar-right"},Qt={class:"column-settings"},Zt={class:"key-cell"},ea={class:"mono-text"},ta={class:"pagination-wrapper"},aa={style:{"margin-bottom":"12px"}},la={__name:"Projects",setup(oa){const ce=Dt(),me=P(()=>ce.user),K=P(()=>{var s;return["admin","project_admin"].includes((s=me.value)==null?void 0:s.role)}),z=p(!0),{list:R,loading:fe,page:B,pageSize:L,total:Z,selectedRows:w,filters:S,tableMaxHeight:ve,fetchData:h,handleSelectionChange:_e,handleSortChange:ge,handleSizeChange:ye,handleFilterChange:j,resetFilters:be,refreshData:we}=Ft({apiUrl:"/projects",defaultFilters:{keyword:"",status:""},defaultPageSize:20}),{columnOptions:ke,visibleColumns:V,saveColumnSettings:Ce}=It("projects_column_settings",[{prop:"id",label:"ID"},{prop:"name",label:"项目名称"},{prop:"description",label:"描述"},{prop:"api_key",label:"API Key"},{prop:"status",label:"状态"},{prop:"created_at",label:"创建时间"}]),he=P(()=>R.value.filter(s=>s.status===1).length),Ve=P(()=>R.value.filter(s=>s.status===0).length),x=p(!1),D=p(!1),A=p(null),v=p({name:"",description:"",status:1}),xe={name:[{required:!0,message:"请输入项目名称",trigger:"blur"}]},M=p(!1);let q=null;function Ee(){D.value=!1,q=null,v.value={name:"",description:"",status:1},x.value=!0}function Se(s){D.value=!0,q=s.id,v.value={name:s.name,description:s.description,status:s.status},x.value=!0}async function $e(){A.value&&await A.value.validate(async s=>{if(s){M.value=!0;try{if(D.value)await b.put(`/projects/${q}`,v.value),f.success("更新成功");else{const e=await b.post("/projects",v.value);f.success("创建成功,API Key: "+e.data.api_key)}x.value=!1,h()}catch{}finally{M.value=!1}}})}async function Ue(s){try{await b.put(`/projects/${s.id}`,{status:s.status}),f.success("状态更新成功"),h()}catch{s.status=s.status===1?0:1}}async function ze(s){try{await T.confirm("确定重置API Key?旧Key将立即失效。","提示",{type:"warning"});const e=await b.post(`/projects/${s.id}/regenerate-key`);f.success("新API Key: "+e.data.api_key),h()}catch{}}async function je(s){try{await T.confirm("确定删除该项目?","提示",{type:"warning"}),await b.delete(`/projects/${s.id}`),f.success("删除成功"),h()}catch{}}async function De(){if(w.value.length)try{await T.confirm(`确定删除选中的 ${w.value.length} 个项目吗?`,"批量删除",{type:"warning"});for(const s of w.value)await b.delete(`/projects/${s.id}`);f.success("批量删除成功"),h()}catch{}}function Fe(s){if(!w.value.length){f.warning("请先选择要导出的项目");return}const e=new URLSearchParams;e.set("ids",w.value.map(U=>U.id).join(",")),e.append("format",s);const C=localStorage.getItem("access_token");window.open(`/api/projects/export?${e.toString()}&token=${C}`,"_blank"),f.success("导出任务已启动")}function Ie(s){navigator.clipboard.writeText(s).then(()=>f.success("已复制")).catch(()=>f.error("复制失败"))}const N=p(!1),E=p(null),ee=p([]),H=p(!1),$=p(!1),O=p(null),d=p({name:"",duration_days:30,price:0,agent_cost:0,sort:0,status:1}),Pe={name:[{required:!0,message:"请输入名称",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入价格",trigger:"blur"}]},W=p(!1);async function X(s){E.value=s,N.value=!0,H.value=!0;try{ee.value=(await b.get(`/projects/${s.id}/card-types`)).data}finally{H.value=!1}}function te(s){d.value=s?{...s}:{name:"",duration_days:30,price:0,agent_cost:0,sort:0,status:1},$.value=!Line truncated
@@ -0,0 +1 @@
import{_ as We,o as c,c as ie,b as t,w as a,a7 as Xe,a9 as Ye,l as p,K as Ge,a8 as Je,a as n,E as Qe,n as o,aa as Ze,C as g,ab as et,ac as tt,T as at,ad as Q,d as lt,e as ot,f as st,g as nt,ae as it,af as dt,h as ut,ag as rt,i,ah as de,ai as pt,S as y,aj as ue,M as k,W as ct,ak as mt,al as ft,X as vt,Y as _t,am as re,an as gt,ao as yt,H as bt,V as wt,t as kt,ap as Ct,aq as ht,ar as Vt,as as xt,at as Et,au as St,av as $t,aw as Ut,ax as pe,a1 as zt,ay as jt,D as P,k as f,az as T}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Dt}from"./user-CjwLSb7B.js";import{u as Ft,a as It}from"./useColumnSettings-C0R5rnWU.js";import{r as b}from"./index-C7doSj3W.js";const Pt={class:"projects-page"},Tt={class:"stat-card stat-total"},Kt={class:"stat-icon"},Rt={class:"stat-info"},Bt={class:"stat-value"},Lt={class:"stat-card stat-active"},At={class:"stat-icon"},Mt={class:"stat-info"},qt={class:"stat-value"},Nt={class:"stat-card stat-inactive"},Ht={class:"stat-icon"},Ot={class:"stat-info"},Wt={class:"stat-value"},Xt={class:"advanced-search"},Yt={class:"toolbar"},Gt={class:"toolbar-left"},Jt={class:"toolbar-right"},Qt={class:"column-settings"},Zt={class:"key-cell"},ea={class:"mono-text"},ta={class:"pagination-wrapper"},aa={style:{"margin-bottom":"12px"}},la={__name:"Projects",setup(oa){const ce=Dt(),me=P(()=>ce.user),K=P(()=>{var s;return["admin","project_admin"].includes((s=me.value)==null?void 0:s.role)}),z=p(!0),{list:R,loading:fe,page:B,pageSize:L,total:Z,selectedRows:w,filters:S,tableMaxHeight:ve,fetchData:h,handleSelectionChange:_e,handleSortChange:ge,handleSizeChange:ye,handleFilterChange:j,resetFilters:be,refreshData:we}=Ft({apiUrl:"/projects",defaultFilters:{keyword:"",status:""},defaultPageSize:20}),{columnOptions:ke,visibleColumns:V,saveColumnSettings:Ce}=It("projects_column_settings",[{prop:"id",label:"ID"},{prop:"name",label:"项目名称"},{prop:"description",label:"描述"},{prop:"api_key",label:"API Key"},{prop:"status",label:"状态"},{prop:"created_at",label:"创建时间"}]),he=P(()=>R.value.filter(s=>s.status===1).length),Ve=P(()=>R.value.filter(s=>s.status===0).length),x=p(!1),D=p(!1),A=p(null),v=p({name:"",description:"",status:1}),xe={name:[{required:!0,message:"请输入项目名称",trigger:"blur"}]},M=p(!1);let q=null;function Ee(){D.value=!1,q=null,v.value={name:"",description:"",status:1},x.value=!0}function Se(s){D.value=!0,q=s.id,v.value={name:s.name,description:s.description,status:s.status},x.value=!0}async function $e(){A.value&&await A.value.validate(async s=>{if(s){M.value=!0;try{if(D.value)await b.put(`/projects/${q}`,v.value),f.success("更新成功");else{const e=await b.post("/projects",v.value);f.success("创建成功,API Key: "+e.data.api_key)}x.value=!1,h()}catch{}finally{M.value=!1}}})}async function Ue(s){try{await b.put(`/projects/${s.id}`,{status:s.status}),f.success("状态更新成功"),h()}catch{s.status=s.status===1?0:1}}async function ze(s){try{await T.confirm("确定重置API Key?旧Key将立即失效。","提示",{type:"warning"});const e=await b.post(`/projects/${s.id}/regenerate-key`);f.success("新API Key: "+e.data.api_key),h()}catch{}}async function je(s){try{await T.confirm("确定删除该项目?","提示",{type:"warning"}),await b.delete(`/projects/${s.id}`),f.success("删除成功"),h()}catch{}}async function De(){if(w.value.length)try{await T.confirm(`确定删除选中的 ${w.value.length} 个项目吗?`,"批量删除",{type:"warning"});for(const s of w.value)await b.delete(`/projects/${s.id}`);f.success("批量删除成功"),h()}catch{}}function Fe(s){if(!w.value.length){f.warning("请先选择要导出的项目");return}const e=new URLSearchParams;e.set("ids",w.value.map(U=>U.id).join(",")),e.append("format",s);const C=localStorage.getItem("access_token");window.open(`/api/projects/export?${e.toString()}&token=${C}`,"_blank"),f.success("导出任务已启动")}function Ie(s){navigator.clipboard.writeText(s).then(()=>f.success("已复制")).catch(()=>f.error("复制失败"))}const N=p(!1),E=p(null),ee=p([]),H=p(!1),$=p(!1),O=p(null),d=p({name:"",duration_days:30,price:0,agent_cost:0,sort:0,status:1}),Pe={name:[{required:!0,message:"请输入名称",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入价格",trigger:"blur"}]},W=p(!1);async function X(s){E.value=s,N.value=!0,H.value=!0;try{ee.value=(await b.get(`/projects/${s.id}/card-types`)).data}finally{H.value=!1}}function te(s){d.value=s?{...s}:{name:"",duration_days:30,price:0,agent_cost:0,sort:0,status:1},$.value=!Line truncated
@@ -0,0 +1 @@
import{_ as We,o as c,c as ie,b as t,w as a,a7 as Xe,a9 as Ye,l as p,K as Ge,a8 as Je,a as n,E as Qe,n as o,aa as Ze,C as g,ab as et,ac as tt,T as at,ad as Q,d as lt,e as ot,f as st,g as nt,ae as it,af as dt,h as ut,ag as rt,i,ah as de,ai as pt,S as y,aj as ue,M as k,W as ct,ak as mt,al as ft,X as vt,Y as _t,am as re,an as gt,ao as yt,H as bt,V as wt,t as kt,ap as Ct,aq as ht,ar as Vt,as as xt,at as Et,au as St,av as $t,aw as Ut,ax as pe,a1 as zt,ay as jt,D as P,k as f,az as T}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Dt}from"./user-dKBxTmfR.js";import{u as Ft,a as It}from"./useColumnSettings-BGE5jzFS.js";import{r as b}from"./index-C3lsw5-G.js";const Pt={class:"projects-page"},Tt={class:"stat-card stat-total"},Kt={class:"stat-icon"},Rt={class:"stat-info"},Bt={class:"stat-value"},Lt={class:"stat-card stat-active"},At={class:"stat-icon"},Mt={class:"stat-info"},qt={class:"stat-value"},Nt={class:"stat-card stat-inactive"},Ht={class:"stat-icon"},Ot={class:"stat-info"},Wt={class:"stat-value"},Xt={class:"advanced-search"},Yt={class:"toolbar"},Gt={class:"toolbar-left"},Jt={class:"toolbar-right"},Qt={class:"column-settings"},Zt={class:"key-cell"},ea={class:"mono-text"},ta={class:"pagination-wrapper"},aa={style:{"margin-bottom":"12px"}},la={__name:"Projects",setup(oa){const ce=Dt(),me=P(()=>ce.user),K=P(()=>{var s;return["admin","project_admin"].includes((s=me.value)==null?void 0:s.role)}),z=p(!0),{list:R,loading:fe,page:B,pageSize:L,total:Z,selectedRows:w,filters:S,tableMaxHeight:ve,fetchData:h,handleSelectionChange:_e,handleSortChange:ge,handleSizeChange:ye,handleFilterChange:j,resetFilters:be,refreshData:we}=Ft({apiUrl:"/projects",defaultFilters:{keyword:"",status:""},defaultPageSize:20}),{columnOptions:ke,visibleColumns:V,saveColumnSettings:Ce}=It("projects_column_settings",[{prop:"id",label:"ID"},{prop:"name",label:"项目名称"},{prop:"description",label:"描述"},{prop:"api_key",label:"API Key"},{prop:"status",label:"状态"},{prop:"created_at",label:"创建时间"}]),he=P(()=>R.value.filter(s=>s.status===1).length),Ve=P(()=>R.value.filter(s=>s.status===0).length),x=p(!1),D=p(!1),A=p(null),v=p({name:"",description:"",status:1}),xe={name:[{required:!0,message:"请输入项目名称",trigger:"blur"}]},M=p(!1);let q=null;function Ee(){D.value=!1,q=null,v.value={name:"",description:"",status:1},x.value=!0}function Se(s){D.value=!0,q=s.id,v.value={name:s.name,description:s.description,status:s.status},x.value=!0}async function $e(){A.value&&await A.value.validate(async s=>{if(s){M.value=!0;try{if(D.value)await b.put(`/projects/${q}`,v.value),f.success("更新成功");else{const e=await b.post("/projects",v.value);f.success("创建成功,API Key: "+e.data.api_key)}x.value=!1,h()}catch{}finally{M.value=!1}}})}async function Ue(s){try{await b.put(`/projects/${s.id}`,{status:s.status}),f.success("状态更新成功"),h()}catch{s.status=s.status===1?0:1}}async function ze(s){try{await T.confirm("确定重置API Key?旧Key将立即失效。","提示",{type:"warning"});const e=await b.post(`/projects/${s.id}/regenerate-key`);f.success("新API Key: "+e.data.api_key),h()}catch{}}async function je(s){try{await T.confirm("确定删除该项目?","提示",{type:"warning"}),await b.delete(`/projects/${s.id}`),f.success("删除成功"),h()}catch{}}async function De(){if(w.value.length)try{await T.confirm(`确定删除选中的 ${w.value.length} 个项目吗?`,"批量删除",{type:"warning"});for(const s of w.value)await b.delete(`/projects/${s.id}`);f.success("批量删除成功"),h()}catch{}}function Fe(s){if(!w.value.length){f.warning("请先选择要导出的项目");return}const e=new URLSearchParams;e.set("ids",w.value.map(U=>U.id).join(",")),e.append("format",s);const C=localStorage.getItem("access_token");window.open(`/api/projects/export?${e.toString()}&token=${C}`,"_blank"),f.success("导出任务已启动")}function Ie(s){navigator.clipboard.writeText(s).then(()=>f.success("已复制")).catch(()=>f.error("复制失败"))}const N=p(!1),E=p(null),ee=p([]),H=p(!1),$=p(!1),O=p(null),d=p({name:"",duration_days:30,price:0,agent_cost:0,sort:0,status:1}),Pe={name:[{required:!0,message:"请输入名称",trigger:"blur"}],price:[{required:!0,type:"number",message:"请输入价格",trigger:"blur"}]},W=p(!1);async function X(s){E.value=s,N.value=!0,H.value=!0;try{ee.value=(await b.get(`/projects/${s.id}/card-types`)).data}finally{H.value=!1}}function te(s){d.value=s?{...s}:{name:"",duration_days:30,price:0,agent_cost:0,sort:0,status:1},$.value=!Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Zt,G as et,m as St,o as l,c as o,b as C,w as M,T,b4 as zt,a as t,C as a,A as it,H as Q,V as D,S as E,b5 as Z,I as rt,l as r,j as Ft,D as It,b6 as K,M as d,B,a4 as ts,i as S,ad as g,b7 as q,g as Ht,a5 as x,b8 as ss,k as L}from"./index-B5xNuf83.js";import{r as z}from"./index-C7doSj3W.js";const es={class:"shop-app"},ls={key:0,class:"page-loader"},as={class:"shop-header"},os={class:"header-bar"},ns={class:"brand-text"},is={class:"brand-name"},rs=["onClick"],us={class:"shop-main"},ds={key:0},cs={class:"hero"},vs={class:"hero-text"},ps={class:"hero-stat"},ys={class:"stat-num"},bs=["onClick"],fs={key:1,class:"product-grid"},ms={key:2,class:"empty-state"},_s={key:0,class:"card-badge"},ks={class:"card-header"},hs={class:"card-name"},gs={class:"card-duration"},ws={class:"card-features"},qs={key:0},xs={key:1},Cs={key:2},Qs={class:"card-price"},Bs={class:"price-amount"},js={key:0,class:"price-discount"},Rs={key:1,class:"price-original"},$s=["onClick"],Vs={key:1},Ms={class:"center-card"},Ts={key:0,class:"form-area"},Ss={class:"form-field"},zs={class:"form-field"},Fs={class:"form-field"},Is={class:"form-field"},Hs=["disabled"],Us={key:0,class:"spinner"},As={key:1},Ds={key:2},Ls=["onClick"],Ps={key:"card",class:"center-card"},Ns={class:"form-field"},Xs=["disabled"],Es=["disabled"],Ks={key:0,class:"spinner"},Os={key:1},Gs={key:"bot",class:"center-card"},Ys={class:"form-field"},Js=["disabled"],Ws=["disabled"],Zs={key:0,class:"spinner"},te={key:1},se={class:"cr-status-text"},ee={class:"cr-body"},le={class:"cr-row"},ae={class:"mono"},oe={class:"cr-row"},ne={class:"cr-row"},ie={class:"cr-row"},re={class:"cr-row"},ue={class:"mono"},de={class:"cr-row"},ce={class:"mono"},ve={key:0,class:"cr-row"},pe={class:"mono"},ye={key:1,class:"cr-row"},be={class:"modal-footer"},fe={class:"act-success-title"},me={class:"act-success-sub"},_e={class:"act-success-body"},ke={class:"act-row"},he={class:"act-row"},ge={class:"mono"},we={class:"act-row"},qe={class:"mono"},xe={class:"act-row"},Ce={class:"mono"},Qe={key:0,class:"act-row"},Be={key:1,class:"act-row"},je={class:"act-error-body"},Re={class:"modal-footer"},$e={class:"qr-summary"},Ve={class:"qr-icon"},Me={class:"qr-text"},Te={class:"qr-grid"},Se={class:"qr-cell"},ze={class:"qr-num"},Fe={class:"qr-cell"},Ie={class:"qr-num ok"},He={class:"qr-cell"},Ue={class:"qr-num warn"},Ae={key:0,class:"qr-list"},De={class:"qr-item-head"},Le={class:"qr-qq"},Pe={class:"qr-item-body"},Ne={class:"qr-row"},Xe={class:"qr-row"},Ee={class:"qr-row"},Ke={class:"modal-footer"},Oe={class:"shop-footer"},Ge={class:"modal-product-header"},Ye={class:"modal-product-icon"},Je={class:"modal-product-info"},We={class:"modal-product-title"},Ze={class:"modal-product-meta"},tl={class:"modal-product-price"},sl={class:"mp-amount"},el={class:"modal-body"},ll={class:"form-field modal-field"},al={class:"form-field modal-field"},ol={class:"form-field modal-field"},nl={class:"form-field modal-field"},il={class:"coupon-row"},rl=["disabled"],ul={key:0,class:"spinner sm"},dl={key:1},cl={class:"form-field modal-field"},vl={class:"pay-opts"},pl=["value"],yl=["innerHTML"],bl={class:"pay-label"},fl={class:"m-total"},ml={class:"total-line"},_l={key:0,class:"m-old-price"},kl={class:"m-total-price"},hl={class:"modal-footer"},gl=["disabled"],wl={key:0,class:"spinner"},ql={key:1},xl={key:1,class:"success-block"},Cl={class:"key-box"},Ql={class:"mono"},Bl={class:"success-rows"},jl={class:"s-row"},Rl={class:"mono"},$l={class:"s-row"},Vl={class:"s-row"},Ml={class:"mono"},Tl={class:"s-row"},Sl={class:"mono"},zl={class:"modal-footer"},Fl={__name:"Shop",setup(Il){const ut=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5zM3.102 4l1.313 7h8.17l1.313-7H3.102zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})]),Ut=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"})]),At=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})]),m=r("buy"),dt=[{key:"buy",label:"购买授权",icon:ut},{key:"activate",label:"在线授权",icon:Ut},{key:"query",label:"授权查询",icon:At}],ct=r(null),vt=r([]),pt=r({width:"0px",transform:"translateX(0px)",opacity:0});function yt(){rt(()=>{const i=ct.value,s=vt.value;if(!i||!s||!s.length)return;const c=dt.findIndex(V=>V.key===m.value),n=s[c];if(!n)return;const e=i.getBoundingClientRect(),f=n.getBoundingClientRect();pt.value={width:`${f.width}px`,transform:`trans Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Zt,G as et,m as St,o as l,c as o,b as C,w as M,T,b4 as zt,a as t,C as a,A as it,H as Q,V as D,S as E,b5 as Z,I as rt,l as r,j as Ft,D as It,b6 as K,M as d,B,a4 as ts,i as S,ad as g,b7 as q,g as Ht,a5 as x,b8 as ss,k as L}from"./index-Bn3no55S.js";import{r as z}from"./index-C3lsw5-G.js";const es={class:"shop-app"},ls={key:0,class:"page-loader"},as={class:"shop-header"},os={class:"header-bar"},ns={class:"brand-text"},is={class:"brand-name"},rs=["onClick"],us={class:"shop-main"},ds={key:0},cs={class:"hero"},vs={class:"hero-text"},ps={class:"hero-stat"},ys={class:"stat-num"},bs=["onClick"],fs={key:1,class:"product-grid"},ms={key:2,class:"empty-state"},_s={key:0,class:"card-badge"},ks={class:"card-header"},hs={class:"card-name"},gs={class:"card-duration"},ws={class:"card-features"},qs={key:0},xs={key:1},Cs={key:2},Qs={class:"card-price"},Bs={class:"price-amount"},js={key:0,class:"price-discount"},Rs={key:1,class:"price-original"},$s=["onClick"],Vs={key:1},Ms={class:"center-card"},Ts={key:0,class:"form-area"},Ss={class:"form-field"},zs={class:"form-field"},Fs={class:"form-field"},Is={class:"form-field"},Hs=["disabled"],Us={key:0,class:"spinner"},As={key:1},Ds={key:2},Ls=["onClick"],Ps={key:"card",class:"center-card"},Ns={class:"form-field"},Xs=["disabled"],Es=["disabled"],Ks={key:0,class:"spinner"},Os={key:1},Gs={key:"bot",class:"center-card"},Ys={class:"form-field"},Js=["disabled"],Ws=["disabled"],Zs={key:0,class:"spinner"},te={key:1},se={class:"cr-status-text"},ee={class:"cr-body"},le={class:"cr-row"},ae={class:"mono"},oe={class:"cr-row"},ne={class:"cr-row"},ie={class:"cr-row"},re={class:"cr-row"},ue={class:"mono"},de={class:"cr-row"},ce={class:"mono"},ve={key:0,class:"cr-row"},pe={class:"mono"},ye={key:1,class:"cr-row"},be={class:"modal-footer"},fe={class:"act-success-title"},me={class:"act-success-sub"},_e={class:"act-success-body"},ke={class:"act-row"},he={class:"act-row"},ge={class:"mono"},we={class:"act-row"},qe={class:"mono"},xe={class:"act-row"},Ce={class:"mono"},Qe={key:0,class:"act-row"},Be={key:1,class:"act-row"},je={class:"act-error-body"},Re={class:"modal-footer"},$e={class:"qr-summary"},Ve={class:"qr-icon"},Me={class:"qr-text"},Te={class:"qr-grid"},Se={class:"qr-cell"},ze={class:"qr-num"},Fe={class:"qr-cell"},Ie={class:"qr-num ok"},He={class:"qr-cell"},Ue={class:"qr-num warn"},Ae={key:0,class:"qr-list"},De={class:"qr-item-head"},Le={class:"qr-qq"},Pe={class:"qr-item-body"},Ne={class:"qr-row"},Xe={class:"qr-row"},Ee={class:"qr-row"},Ke={class:"modal-footer"},Oe={class:"shop-footer"},Ge={class:"modal-product-header"},Ye={class:"modal-product-icon"},Je={class:"modal-product-info"},We={class:"modal-product-title"},Ze={class:"modal-product-meta"},tl={class:"modal-product-price"},sl={class:"mp-amount"},el={class:"modal-body"},ll={class:"form-field modal-field"},al={class:"form-field modal-field"},ol={class:"form-field modal-field"},nl={class:"form-field modal-field"},il={class:"coupon-row"},rl=["disabled"],ul={key:0,class:"spinner sm"},dl={key:1},cl={class:"form-field modal-field"},vl={class:"pay-opts"},pl=["value"],yl=["innerHTML"],bl={class:"pay-label"},fl={class:"m-total"},ml={class:"total-line"},_l={key:0,class:"m-old-price"},kl={class:"m-total-price"},hl={class:"modal-footer"},gl=["disabled"],wl={key:0,class:"spinner"},ql={key:1},xl={key:1,class:"success-block"},Cl={class:"key-box"},Ql={class:"mono"},Bl={class:"success-rows"},jl={class:"s-row"},Rl={class:"mono"},$l={class:"s-row"},Vl={class:"s-row"},Ml={class:"mono"},Tl={class:"s-row"},Sl={class:"mono"},zl={class:"modal-footer"},Fl={__name:"Shop",setup(Il){const ut=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5zM3.102 4l1.313 7h8.17l1.313-7H3.102zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})]),Ut=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"})]),At=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})]),m=r("buy"),dt=[{key:"buy",label:"购买授权",icon:ut},{key:"activate",label:"在线授权",icon:Ut},{key:"query",label:"授权查询",icon:At}],ct=r(null),vt=r([]),pt=r({width:"0px",transform:"translateX(0px)",opacity:0});function yt(){rt(()=>{const i=ct.value,s=vt.value;if(!i||!s||!s.length)return;const c=dt.findIndex(V=>V.key===m.value),n=s[c];if(!n)return;const e=i.getBoundingClientRect(),f=n.getBoundingClientRect();pt.value={width:`${f.width}px`,transform:`trans Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Zt,G as et,m as St,o as l,c as o,b as C,w as M,T,b4 as zt,a as t,C as a,A as it,H as Q,V as D,S as E,b5 as Z,I as rt,l as r,j as Ft,D as It,b6 as K,M as d,B,a4 as ts,i as S,ad as g,b7 as q,g as Ht,a5 as x,b8 as ss,k as L}from"./index-CZJEDzxI.js";import{r as z}from"./index-CxGbf_5w.js";const es={class:"shop-app"},ls={key:0,class:"page-loader"},as={class:"shop-header"},os={class:"header-bar"},ns={class:"brand-text"},is={class:"brand-name"},rs=["onClick"],us={class:"shop-main"},ds={key:0},cs={class:"hero"},vs={class:"hero-text"},ps={class:"hero-stat"},ys={class:"stat-num"},bs=["onClick"],fs={key:1,class:"product-grid"},ms={key:2,class:"empty-state"},_s={key:0,class:"card-badge"},ks={class:"card-header"},hs={class:"card-name"},gs={class:"card-duration"},ws={class:"card-features"},qs={key:0},xs={key:1},Cs={key:2},Qs={class:"card-price"},Bs={class:"price-amount"},js={key:0,class:"price-discount"},Rs={key:1,class:"price-original"},$s=["onClick"],Vs={key:1},Ms={class:"center-card"},Ts={key:0,class:"form-area"},Ss={class:"form-field"},zs={class:"form-field"},Fs={class:"form-field"},Is={class:"form-field"},Hs=["disabled"],Us={key:0,class:"spinner"},As={key:1},Ds={key:2},Ls=["onClick"],Ps={key:"card",class:"center-card"},Ns={class:"form-field"},Xs=["disabled"],Es=["disabled"],Ks={key:0,class:"spinner"},Os={key:1},Gs={key:"bot",class:"center-card"},Ys={class:"form-field"},Js=["disabled"],Ws=["disabled"],Zs={key:0,class:"spinner"},te={key:1},se={class:"cr-status-text"},ee={class:"cr-body"},le={class:"cr-row"},ae={class:"mono"},oe={class:"cr-row"},ne={class:"cr-row"},ie={class:"cr-row"},re={class:"cr-row"},ue={class:"mono"},de={class:"cr-row"},ce={class:"mono"},ve={key:0,class:"cr-row"},pe={class:"mono"},ye={key:1,class:"cr-row"},be={class:"modal-footer"},fe={class:"act-success-title"},me={class:"act-success-sub"},_e={class:"act-success-body"},ke={class:"act-row"},he={class:"act-row"},ge={class:"mono"},we={class:"act-row"},qe={class:"mono"},xe={class:"act-row"},Ce={class:"mono"},Qe={key:0,class:"act-row"},Be={key:1,class:"act-row"},je={class:"act-error-body"},Re={class:"modal-footer"},$e={class:"qr-summary"},Ve={class:"qr-icon"},Me={class:"qr-text"},Te={class:"qr-grid"},Se={class:"qr-cell"},ze={class:"qr-num"},Fe={class:"qr-cell"},Ie={class:"qr-num ok"},He={class:"qr-cell"},Ue={class:"qr-num warn"},Ae={key:0,class:"qr-list"},De={class:"qr-item-head"},Le={class:"qr-qq"},Pe={class:"qr-item-body"},Ne={class:"qr-row"},Xe={class:"qr-row"},Ee={class:"qr-row"},Ke={class:"modal-footer"},Oe={class:"shop-footer"},Ge={class:"modal-product-header"},Ye={class:"modal-product-icon"},Je={class:"modal-product-info"},We={class:"modal-product-title"},Ze={class:"modal-product-meta"},tl={class:"modal-product-price"},sl={class:"mp-amount"},el={class:"modal-body"},ll={class:"form-field modal-field"},al={class:"form-field modal-field"},ol={class:"form-field modal-field"},nl={class:"form-field modal-field"},il={class:"coupon-row"},rl=["disabled"],ul={key:0,class:"spinner sm"},dl={key:1},cl={class:"form-field modal-field"},vl={class:"pay-opts"},pl=["value"],yl=["innerHTML"],bl={class:"pay-label"},fl={class:"m-total"},ml={class:"total-line"},_l={key:0,class:"m-old-price"},kl={class:"m-total-price"},hl={class:"modal-footer"},gl=["disabled"],wl={key:0,class:"spinner"},ql={key:1},xl={key:1,class:"success-block"},Cl={class:"key-box"},Ql={class:"mono"},Bl={class:"success-rows"},jl={class:"s-row"},Rl={class:"mono"},$l={class:"s-row"},Vl={class:"s-row"},Ml={class:"mono"},Tl={class:"s-row"},Sl={class:"mono"},zl={class:"modal-footer"},Fl={__name:"Shop",setup(Il){const ut=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5zM3.102 4l1.313 7h8.17l1.313-7H3.102zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})]),Ut=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"})]),At=()=>K("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:"currentColor"},[K("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"})]),m=r("buy"),dt=[{key:"buy",label:"购买授权",icon:ut},{key:"activate",label:"在线授权",icon:Ut},{key:"query",label:"授权查询",icon:At}],ct=r(null),vt=r([]),pt=r({width:"0px",transform:"translateX(0px)",opacity:0});function yt(){rt(()=>{const i=ct.value,s=vt.value;if(!i||!s||!s.length)return;const c=dt.findIndex(V=>V.key===m.value),n=s[c];if(!n)return;const e=i.getBoundingClientRect(),f=n.getBoundingClientRect();pt.value={width:`${f.width}px`,transform:`trans Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as se,m as ne,k as c,o as b,c as ue,b as l,w as a,l as p,aX as ie,aY as re,ad as M,S as A,a9 as me,d as pe,e as de,f as _e,ay as fe,a as _,h as ve,n as f,aZ as B,i as r,a_ as N,a1 as ce,av as ye,E as ge,a$ as Ve,C as G,q as be,aS as xe,b0 as ke,b1 as we,b2 as Se,at as Ue,x as Ce,D as O}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Ee}from"./user-CjwLSb7B.js";import{r as y}from"./index-C7doSj3W.js";const Te={class:"page-container"},Fe={class:"card-header"},Le={class:"card-header"},Pe={class:"card-header"},Re={__name:"System",setup(he){const g=Ee(),V=O(()=>g.user),Q=p("site"),x=p(null),k=p(!1),w=p(!1),s=p({site_name:"",site_logo:"",site_keywords:"",site_description:"",card_key_prefix:"",order_expire_minutes:15,site_icp:""}),X={site_name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],order_expire_minutes:[{required:!0,message:"请输入订单过期时间",trigger:"blur"}]},S=p(null),U=p(!1),C=p(!1),d=p({username:"",nickname:"",email:"",phone:""}),Y={email:[{type:"email",message:"邮箱格式不正确",trigger:"blur"}]},Z=O(()=>{var e,m;return{admin:"超级管理员",project_admin:"项目管理员",agent:"代理"}[(e=V.value)==null?void 0:e.role]||((m=V.value)==null?void 0:m.role)||"-"});ne(()=>{D(),z(),$()});async function D(){k.value=!0;try{const m=(await y.get("/system/configs?keys=site_name,site_logo,site_keywords,site_description,card_key_prefix,order_expire_minutes,site_icp")).data||{};s.value.site_name=m.site_name||"CardAuth授权管理系统",s.value.site_logo=m.site_logo||"",s.value.site_keywords=m.site_keywords||"",s.value.site_description=m.site_description||"",s.value.card_key_prefix=m.card_key_prefix||"CA",s.value.order_expire_minutes=parseInt(m.order_expire_minutes||"15",10),s.value.site_icp=m.site_icp||""}catch{}finally{k.value=!1}}async function H(){x.value&&await x.value.validate(async u=>{if(u){w.value=!0;try{await y.post("/system/configs",{configs:{site_name:s.value.site_name,site_logo:s.value.site_logo,site_keywords:s.value.site_keywords,site_description:s.value.site_description,card_key_prefix:s.value.card_key_prefix,order_expire_minutes:String(s.value.order_expire_minutes),site_icp:s.value.site_icp}}),c.success("网站基本信息保存成功")}catch{}finally{w.value=!1}}})}async function z(){U.value=!0;try{await g.fetchUser();const u=g.user||{};d.value={username:u.username||"",nickname:u.nickname||"",email:u.email||"",phone:u.phone||""}}catch{c.error("获取个人信息失败")}finally{U.value=!1}}async function J(){S.value&&await S.value.validate(async u=>{if(u){C.value=!0;try{await y.put("/auth/profile",{nickname:d.value.nickname,email:d.value.email,phone:d.value.phone}),c.success("个人资料保存成功"),await g.fetchUser()}catch{}finally{C.value=!1}}})}const K=p(null),E=p(!1),T=p(!1),F=p(!1),o=p({smtp_host:"",smtp_port:465,smtp_user:"",smtp_pass:"",smtp_encryption:"ssl",smtp_from_email:"",smtp_from_name:"CardAuth",smtp_enabled:"0",smtp_expire_days:7});async function $(){E.value=!0;try{const e=(await y.get("/system/smtp-config")).data||{};o.value.smtp_host=e.smtp_host||"",o.value.smtp_port=parseInt(e.smtp_port||"465",10),o.value.smtp_user=e.smtp_user||"",o.value.smtp_pass=e.smtp_pass||"",o.value.smtp_encryption=e.smtp_encryption||"ssl",o.value.smtp_from_email=e.smtp_from_email||"",o.value.smtp_from_name=e.smtp_from_name||"CardAuth",o.value.smtp_enabled=e.smtp_enabled||"0",o.value.smtp_expire_days=parseInt(e.smtp_expire_days||"7",10)}catch{}finally{E.value=!1}}async function W(){T.value=!0;try{await y.post("/system/smtp-config",o.value),c.success("SMTP 配置保存成功")}catch{}finally{T.value=!1}}async function ee(){var u;F.value=!0;try{const e=((u=V.value)==null?void 0:u.email)||o.value.smtp_user;if(!e){c.warning("请先完善当前管理员邮箱,或填写 SMTP 用户名");return}await y.post("/system/test-smtp",{test_email:e}),c.success("测试邮件发送成功,请检查收件箱")}catch{}finally{F.value=!1}}return(u,e)=>{const m=ge,L=ce,i=_e,n=de,P=fe,v=ve,R=pe,h=me,I=re,le=Ue,j=ke,ae=xe,te=we,oe=ie,q=ye;return b(),ue("div",Te,[l(oe,{modelValue:Q.value,"onUpdate:modelValue":e[20]||(e[20]=t=>Q.value=t),type:"border-card",class:"system-tabs"},{default:a(()=>[l(I,{name:"site",label:"网站基本信息"},{label:a(()=>[_("span",null,[l(m,null,{default:a(()=>[l(f(Ve))]),_:1}),e[21]||(e[21]=r(" 网站基本信息",-1))])]),default:a(()=>[M((b(),A(h,{shadow:"never",class:"config-card"},{header:a(()=>[_("div",Fe,[e[23]||(e[23]=_("span",null,"站点配置",-1)),l(L,{type:"info",effect:"plain",size:"small"},{default:a(()=>[...e[22]||(e[22]=[r("全局生效",-1)])]),_:1})])]),default:a(()=>[l(R,{ref_key:"siteFormRef",ref:x,model:s.value,rules:X,"labeLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as se,m as ne,k as c,o as b,c as ue,b as l,w as a,l as p,aX as ie,aY as re,ad as M,S as A,a9 as me,d as pe,e as de,f as _e,ay as fe,a as _,h as ve,n as f,aZ as B,i as r,a_ as N,a1 as ce,av as ye,E as ge,a$ as Ve,C as G,q as be,aS as xe,b0 as ke,b1 as we,b2 as Se,at as Ue,x as Ce,D as O}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Ee}from"./user-dKBxTmfR.js";import{r as y}from"./index-C3lsw5-G.js";const Te={class:"page-container"},Fe={class:"card-header"},Le={class:"card-header"},Pe={class:"card-header"},Re={__name:"System",setup(he){const g=Ee(),V=O(()=>g.user),Q=p("site"),x=p(null),k=p(!1),w=p(!1),s=p({site_name:"",site_logo:"",site_keywords:"",site_description:"",card_key_prefix:"",order_expire_minutes:15,site_icp:""}),X={site_name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],order_expire_minutes:[{required:!0,message:"请输入订单过期时间",trigger:"blur"}]},S=p(null),U=p(!1),C=p(!1),d=p({username:"",nickname:"",email:"",phone:""}),Y={email:[{type:"email",message:"邮箱格式不正确",trigger:"blur"}]},Z=O(()=>{var e,m;return{admin:"超级管理员",project_admin:"项目管理员",agent:"代理"}[(e=V.value)==null?void 0:e.role]||((m=V.value)==null?void 0:m.role)||"-"});ne(()=>{D(),z(),$()});async function D(){k.value=!0;try{const m=(await y.get("/system/configs?keys=site_name,site_logo,site_keywords,site_description,card_key_prefix,order_expire_minutes,site_icp")).data||{};s.value.site_name=m.site_name||"CardAuth授权管理系统",s.value.site_logo=m.site_logo||"",s.value.site_keywords=m.site_keywords||"",s.value.site_description=m.site_description||"",s.value.card_key_prefix=m.card_key_prefix||"CA",s.value.order_expire_minutes=parseInt(m.order_expire_minutes||"15",10),s.value.site_icp=m.site_icp||""}catch{}finally{k.value=!1}}async function H(){x.value&&await x.value.validate(async u=>{if(u){w.value=!0;try{await y.post("/system/configs",{configs:{site_name:s.value.site_name,site_logo:s.value.site_logo,site_keywords:s.value.site_keywords,site_description:s.value.site_description,card_key_prefix:s.value.card_key_prefix,order_expire_minutes:String(s.value.order_expire_minutes),site_icp:s.value.site_icp}}),c.success("网站基本信息保存成功")}catch{}finally{w.value=!1}}})}async function z(){U.value=!0;try{await g.fetchUser();const u=g.user||{};d.value={username:u.username||"",nickname:u.nickname||"",email:u.email||"",phone:u.phone||""}}catch{c.error("获取个人信息失败")}finally{U.value=!1}}async function J(){S.value&&await S.value.validate(async u=>{if(u){C.value=!0;try{await y.put("/auth/profile",{nickname:d.value.nickname,email:d.value.email,phone:d.value.phone}),c.success("个人资料保存成功"),await g.fetchUser()}catch{}finally{C.value=!1}}})}const K=p(null),E=p(!1),T=p(!1),F=p(!1),o=p({smtp_host:"",smtp_port:465,smtp_user:"",smtp_pass:"",smtp_encryption:"ssl",smtp_from_email:"",smtp_from_name:"CardAuth",smtp_enabled:"0",smtp_expire_days:7});async function $(){E.value=!0;try{const e=(await y.get("/system/smtp-config")).data||{};o.value.smtp_host=e.smtp_host||"",o.value.smtp_port=parseInt(e.smtp_port||"465",10),o.value.smtp_user=e.smtp_user||"",o.value.smtp_pass=e.smtp_pass||"",o.value.smtp_encryption=e.smtp_encryption||"ssl",o.value.smtp_from_email=e.smtp_from_email||"",o.value.smtp_from_name=e.smtp_from_name||"CardAuth",o.value.smtp_enabled=e.smtp_enabled||"0",o.value.smtp_expire_days=parseInt(e.smtp_expire_days||"7",10)}catch{}finally{E.value=!1}}async function W(){T.value=!0;try{await y.post("/system/smtp-config",o.value),c.success("SMTP 配置保存成功")}catch{}finally{T.value=!1}}async function ee(){var u;F.value=!0;try{const e=((u=V.value)==null?void 0:u.email)||o.value.smtp_user;if(!e){c.warning("请先完善当前管理员邮箱,或填写 SMTP 用户名");return}await y.post("/system/test-smtp",{test_email:e}),c.success("测试邮件发送成功,请检查收件箱")}catch{}finally{F.value=!1}}return(u,e)=>{const m=ge,L=ce,i=_e,n=de,P=fe,v=ve,R=pe,h=me,I=re,le=Ue,j=ke,ae=xe,te=we,oe=ie,q=ye;return b(),ue("div",Te,[l(oe,{modelValue:Q.value,"onUpdate:modelValue":e[20]||(e[20]=t=>Q.value=t),type:"border-card",class:"system-tabs"},{default:a(()=>[l(I,{name:"site",label:"网站基本信息"},{label:a(()=>[_("span",null,[l(m,null,{default:a(()=>[l(f(Ve))]),_:1}),e[21]||(e[21]=r(" 网站基本信息",-1))])]),default:a(()=>[M((b(),A(h,{shadow:"never",class:"config-card"},{header:a(()=>[_("div",Fe,[e[23]||(e[23]=_("span",null,"站点配置",-1)),l(L,{type:"info",effect:"plain",size:"small"},{default:a(()=>[...e[22]||(e[22]=[r("全局生效",-1)])]),_:1})])]),default:a(()=>[l(R,{ref_key:"siteFormRef",ref:x,model:s.value,rules:X,"labeLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as se,m as ne,k as c,o as b,c as ue,b as l,w as a,l as p,aX as ie,aY as re,ad as M,S as A,a9 as me,d as pe,e as de,f as _e,ay as fe,a as _,h as ve,n as f,aZ as B,i as r,a_ as N,a1 as ce,av as ye,E as ge,a$ as Ve,C as G,q as be,aS as xe,b0 as ke,b1 as we,b2 as Se,at as Ue,x as Ce,D as O}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Ee}from"./user-iqLWbJfU.js";import{r as y}from"./index-CxGbf_5w.js";const Te={class:"page-container"},Fe={class:"card-header"},Le={class:"card-header"},Pe={class:"card-header"},Re={__name:"System",setup(he){const g=Ee(),V=O(()=>g.user),Q=p("site"),x=p(null),k=p(!1),w=p(!1),s=p({site_name:"",site_logo:"",site_keywords:"",site_description:"",card_key_prefix:"",order_expire_minutes:15,site_icp:""}),X={site_name:[{required:!0,message:"请输入站点名称",trigger:"blur"}],order_expire_minutes:[{required:!0,message:"请输入订单过期时间",trigger:"blur"}]},S=p(null),U=p(!1),C=p(!1),d=p({username:"",nickname:"",email:"",phone:""}),Y={email:[{type:"email",message:"邮箱格式不正确",trigger:"blur"}]},Z=O(()=>{var e,m;return{admin:"超级管理员",project_admin:"项目管理员",agent:"代理"}[(e=V.value)==null?void 0:e.role]||((m=V.value)==null?void 0:m.role)||"-"});ne(()=>{D(),z(),$()});async function D(){k.value=!0;try{const m=(await y.get("/system/configs?keys=site_name,site_logo,site_keywords,site_description,card_key_prefix,order_expire_minutes,site_icp")).data||{};s.value.site_name=m.site_name||"CardAuth授权管理系统",s.value.site_logo=m.site_logo||"",s.value.site_keywords=m.site_keywords||"",s.value.site_description=m.site_description||"",s.value.card_key_prefix=m.card_key_prefix||"CA",s.value.order_expire_minutes=parseInt(m.order_expire_minutes||"15",10),s.value.site_icp=m.site_icp||""}catch{}finally{k.value=!1}}async function H(){x.value&&await x.value.validate(async u=>{if(u){w.value=!0;try{await y.post("/system/configs",{configs:{site_name:s.value.site_name,site_logo:s.value.site_logo,site_keywords:s.value.site_keywords,site_description:s.value.site_description,card_key_prefix:s.value.card_key_prefix,order_expire_minutes:String(s.value.order_expire_minutes),site_icp:s.value.site_icp}}),c.success("网站基本信息保存成功")}catch{}finally{w.value=!1}}})}async function z(){U.value=!0;try{await g.fetchUser();const u=g.user||{};d.value={username:u.username||"",nickname:u.nickname||"",email:u.email||"",phone:u.phone||""}}catch{c.error("获取个人信息失败")}finally{U.value=!1}}async function J(){S.value&&await S.value.validate(async u=>{if(u){C.value=!0;try{await y.put("/auth/profile",{nickname:d.value.nickname,email:d.value.email,phone:d.value.phone}),c.success("个人资料保存成功"),await g.fetchUser()}catch{}finally{C.value=!1}}})}const K=p(null),E=p(!1),T=p(!1),F=p(!1),o=p({smtp_host:"",smtp_port:465,smtp_user:"",smtp_pass:"",smtp_encryption:"ssl",smtp_from_email:"",smtp_from_name:"CardAuth",smtp_enabled:"0",smtp_expire_days:7});async function $(){E.value=!0;try{const e=(await y.get("/system/smtp-config")).data||{};o.value.smtp_host=e.smtp_host||"",o.value.smtp_port=parseInt(e.smtp_port||"465",10),o.value.smtp_user=e.smtp_user||"",o.value.smtp_pass=e.smtp_pass||"",o.value.smtp_encryption=e.smtp_encryption||"ssl",o.value.smtp_from_email=e.smtp_from_email||"",o.value.smtp_from_name=e.smtp_from_name||"CardAuth",o.value.smtp_enabled=e.smtp_enabled||"0",o.value.smtp_expire_days=parseInt(e.smtp_expire_days||"7",10)}catch{}finally{E.value=!1}}async function W(){T.value=!0;try{await y.post("/system/smtp-config",o.value),c.success("SMTP 配置保存成功")}catch{}finally{T.value=!1}}async function ee(){var u;F.value=!0;try{const e=((u=V.value)==null?void 0:u.email)||o.value.smtp_user;if(!e){c.warning("请先完善当前管理员邮箱,或填写 SMTP 用户名");return}await y.post("/system/test-smtp",{test_email:e}),c.success("测试邮件发送成功,请检查收件箱")}catch{}finally{F.value=!1}}return(u,e)=>{const m=ge,L=ce,i=_e,n=de,P=fe,v=ve,R=pe,h=me,I=re,le=Ue,j=ke,ae=xe,te=we,oe=ie,q=ye;return b(),ue("div",Te,[l(oe,{modelValue:Q.value,"onUpdate:modelValue":e[20]||(e[20]=t=>Q.value=t),type:"border-card",class:"system-tabs"},{default:a(()=>[l(I,{name:"site",label:"网站基本信息"},{label:a(()=>[_("span",null,[l(m,null,{default:a(()=>[l(f(Ve))]),_:1}),e[21]||(e[21]=r(" 网站基本信息",-1))])]),default:a(()=>[M((b(),A(h,{shadow:"never",class:"config-card"},{header:a(()=>[_("div",Fe,[e[23]||(e[23]=_("span",null,"站点配置",-1)),l(L,{type:"info",effect:"plain",size:"small"},{default:a(()=>[...e[22]||(e[22]=[r("全局生效",-1)])]),_:1})])]),default:a(()=>[l(R,{ref_key:"siteFormRef",ref:x,model:s.value,rules:X,"labeLine truncated
@@ -0,0 +1 @@
.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{justify-content:space-between;align-items:center;margin:0 0 15px;padding:0;display:flex;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);z-index:1;height:2px;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none;position:absolute;bottom:0;left:0}.el-tabs__active-bar.is-bottom{bottom:auto}.el-tabs__new-tab{border:1px solid var(--el-border-color);text-align:center;width:20px;height:20px;color:var(--el-text-color-primary);cursor:pointer;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;margin:10px 0 10px 10px;font-size:12px;line-height:20px;transition:all .15s;display:flex}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:auto;margin-bottom:-1px;position:relative;overflow:hidden}.el-tabs__nav-wrap:after{content:"";background-color:var(--el-border-color-light);width:100%;height:2px;z-index:var(--el-index-normal);position:absolute;bottom:0;left:0}.el-tabs__nav-wrap.is-bottom:after{top:0;bottom:auto}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{cursor:pointer;color:var(--el-text-color-secondary);text-align:center;width:20px;font-size:12px;line-height:44px;position:absolute}.el-tabs__nav-next.is-disabled,.el-tabs__nav-prev.is-disabled{color:var(--el-text-color-disabled);cursor:not-allowed}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1);display:flex;position:relative}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{text-align:center;flex:1}.el-tabs__item{height:var(--el-tabs-header-height);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary);justify-content:center;align-items:center;padding:0 20px;font-weight:500;list-style:none;display:flex;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border-radius:50%;margin-left:5px}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;position:relative;overflow:hidden}.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--top>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height);box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);box-sizing:border-box;border-bottom:none;border-radius:4px 4px 0 0}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{transform-origin:100%;width:0;height:14px;font-size:12px;position:relative;right:-2px;overflow:hidden}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid #0000;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transitionLine truncated
@@ -0,0 +1 @@
.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{justify-content:space-between;align-items:center;margin:0 0 15px;padding:0;display:flex;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);z-index:1;height:2px;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none;position:absolute;bottom:0;left:0}.el-tabs__active-bar.is-bottom{bottom:auto}.el-tabs__new-tab{border:1px solid var(--el-border-color);text-align:center;width:20px;height:20px;color:var(--el-text-color-primary);cursor:pointer;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;margin:10px 0 10px 10px;font-size:12px;line-height:20px;transition:all .15s;display:flex}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:auto;margin-bottom:-1px;position:relative;overflow:hidden}.el-tabs__nav-wrap:after{content:"";background-color:var(--el-border-color-light);width:100%;height:2px;z-index:var(--el-index-normal);position:absolute;bottom:0;left:0}.el-tabs__nav-wrap.is-bottom:after{top:0;bottom:auto}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{cursor:pointer;color:var(--el-text-color-secondary);text-align:center;width:20px;font-size:12px;line-height:44px;position:absolute}.el-tabs__nav-next.is-disabled,.el-tabs__nav-prev.is-disabled{color:var(--el-text-color-disabled);cursor:not-allowed}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1);display:flex;position:relative}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{text-align:center;flex:1}.el-tabs__item{height:var(--el-tabs-header-height);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary);justify-content:center;align-items:center;padding:0 20px;font-weight:500;list-style:none;display:flex;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border-radius:50%;margin-left:5px}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;position:relative;overflow:hidden}.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--top>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height);box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);box-sizing:border-box;border-bottom:none;border-radius:4px 4px 0 0}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{transform-origin:100%;width:0;height:14px;font-size:12px;position:relative;right:-2px;overflow:hidden}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid #0000;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transitionLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Ye,m as Ae,o as u,c as V,b as t,w as s,a7 as Oe,a9 as Je,l as h,K as Ge,a8 as Qe,a as l,E as We,n as o,aI as H,C as d,q as ie,p as de,T as Xe,ad as re,d as Ze,e as el,f as ll,g as al,ae as tl,af as sl,aE as ol,h as nl,ag as il,i as p,ah as ue,ai as dl,aj as rl,am as pe,ak as ul,an as pl,ao as cl,H as ce,V as me,S as m,t as ml,ap as vl,aq as _l,ar as fl,M as _,a2 as gl,a1 as bl,at as kl,aJ as wl,aK as hl,aH as yl,au as xl,av as Cl,aw as Vl,ax as ve,s as jl,x as El,B as R,az as _e,k as U}from"./index-CZJEDzxI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Sl,a as Ul}from"./useColumnSettings-Nw4I78Sz.js";import{r as z}from"./index-CxGbf_5w.js";const zl={class:"users-page"},Dl={class:"stat-card stat-total"},Bl={class:"stat-icon"},$l={class:"stat-info"},Il={class:"stat-value"},Tl={class:"stat-card stat-admin"},Pl={class:"stat-icon"},Rl={class:"stat-info"},Ml={class:"stat-value"},ql={class:"stat-card stat-project"},Fl={class:"stat-icon"},Ll={class:"stat-info"},Kl={class:"stat-value"},Nl={class:"stat-card stat-agent"},Hl={class:"stat-icon"},Yl={class:"stat-info"},Al={class:"stat-value"},Ol={class:"advanced-search"},Jl={class:"toolbar"},Gl={class:"toolbar-left"},Ql={class:"toolbar-right"},Wl={class:"column-settings"},Xl={class:"user-cell"},Zl={class:"user-info"},ea={class:"user-name"},la={class:"user-id"},aa={class:"time-cell"},ta={class:"time-cell"},sa={class:"pagination-wrapper"},oa={class:"role-option"},na={class:"role-option"},ia={class:"role-option"},da={class:"detail-header"},ra={class:"detail-header-left"},ua={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},pa={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ca={class:"detail-header-title"},ma={class:"detail-header-sub"},va={class:"detail-header-right"},_a=["onClick"],fa={key:0,class:"detail-body"},ga={class:"detail-row-group"},ba={class:"detail-row"},ka={class:"detail-row-val"},wa={class:"detail-row"},ha={class:"detail-row-val"},ya={class:"detail-row"},xa={class:"detail-row-val"},Ca={class:"detail-row-group"},Va={class:"detail-row"},ja={class:"detail-row-val"},Ea={class:"detail-row"},Sa={class:"detail-row-val"},Ua={class:"detail-row-group"},za={class:"detail-row"},Da={class:"detail-row-val"},Ba={class:"detail-row"},$a={class:"detail-row-val mono"},Ia={class:"detail-row-group"},Ta={class:"detail-row"},Pa={class:"detail-row-val"},Ra={key:0,class:"detail-row-group"},Ma={class:"detail-remark"},qa={class:"detail-actions"},Fa={__name:"Users",setup(La){const D=h(!0),Y=h([]),A=h([]),{list:fe,loading:ge,page:M,pageSize:q,total:O,stats:B,selectedRows:C,filters:f,tableMaxHeight:be,fetchData:ke,handleSelectionChange:we,handleSortChange:he,handleSizeChange:ye,handleFilterChange:j,resetFilters:xe,refreshData:$}=Sl({apiUrl:"/users",statsUrl:"/users/stats",defaultFilters:{keyword:"",role:"",status:"",start_date:"",end_date:""},defaultPageSize:20}),{columnOptions:Ce,visibleColumns:y,saveColumnSettings:Ve}=Ul("users_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"用户名"},{prop:"nickname",label:"昵称"},{prop:"email",label:"邮箱"},{prop:"role",label:"角色"},{prop:"status",label:"状态"},{prop:"last_login_at",label:"最后登录"},{prop:"last_login_ip",label:"登录IP"},{prop:"created_at",label:"创建时间"}]),E=h(!1),b=h(!1),F=h(null),i=h({username:"",password:"",nickname:"",email:"",role:"agent",status:1,remark:"",project_ids:[]}),je={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:50,message:"长度在 3 到 50 个字符",trigger:"blur"}],password:[{required:!0,min:6,message:"密码至少6位",trigger:"blur"}],role:[{required:!0,message:"请选择角色",trigger:"change"}],email:[{type:"email",message:"请输入正确的邮箱地址",trigger:"blur"}]},L=h(!1);let K=null;const N=h(!1),r=h(null);function Ee(n){n?(f.start_date=n[0],f.end_date=n[1]):(f.start_date="",f.end_date=""),j()}async function Se(n){try{await z.put(`/users/${n.id}`,{status:n.status}),U.success("状态更新成功")}catch(e){n.status=n.status===1?0:1,console.error("更新状态失败:",e)}}async function J(n){try{await _e.confirm(`确定要删除用户 "${n.username}" 吗?此操作不可恢复。`,"删除确认",{confirmButtonText:"确定删除",cancelButtonText:"取消",type:"warning"}),await z.delete(`/users/${n.id}`),U.success("删除成功"),$()}catch(e){e!=="cancel"&&console.erLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Ye,m as Ae,o as u,c as V,b as t,w as s,a7 as Oe,a9 as Je,l as h,K as Ge,a8 as Qe,a as l,E as We,n as o,aI as H,C as d,q as ie,p as de,T as Xe,ad as re,d as Ze,e as el,f as ll,g as al,ae as tl,af as sl,aE as ol,h as nl,ag as il,i as p,ah as ue,ai as dl,aj as rl,am as pe,ak as ul,an as pl,ao as cl,H as ce,V as me,S as m,t as ml,ap as vl,aq as _l,ar as fl,M as _,a2 as gl,a1 as bl,at as kl,aJ as wl,aK as hl,aH as yl,au as xl,av as Cl,aw as Vl,ax as ve,s as jl,x as El,B as R,az as _e,k as U}from"./index-Bn3no55S.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Sl,a as Ul}from"./useColumnSettings-BGE5jzFS.js";import{r as z}from"./index-C3lsw5-G.js";const zl={class:"users-page"},Dl={class:"stat-card stat-total"},Bl={class:"stat-icon"},$l={class:"stat-info"},Il={class:"stat-value"},Tl={class:"stat-card stat-admin"},Pl={class:"stat-icon"},Rl={class:"stat-info"},Ml={class:"stat-value"},ql={class:"stat-card stat-project"},Fl={class:"stat-icon"},Ll={class:"stat-info"},Kl={class:"stat-value"},Nl={class:"stat-card stat-agent"},Hl={class:"stat-icon"},Yl={class:"stat-info"},Al={class:"stat-value"},Ol={class:"advanced-search"},Jl={class:"toolbar"},Gl={class:"toolbar-left"},Ql={class:"toolbar-right"},Wl={class:"column-settings"},Xl={class:"user-cell"},Zl={class:"user-info"},ea={class:"user-name"},la={class:"user-id"},aa={class:"time-cell"},ta={class:"time-cell"},sa={class:"pagination-wrapper"},oa={class:"role-option"},na={class:"role-option"},ia={class:"role-option"},da={class:"detail-header"},ra={class:"detail-header-left"},ua={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},pa={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ca={class:"detail-header-title"},ma={class:"detail-header-sub"},va={class:"detail-header-right"},_a=["onClick"],fa={key:0,class:"detail-body"},ga={class:"detail-row-group"},ba={class:"detail-row"},ka={class:"detail-row-val"},wa={class:"detail-row"},ha={class:"detail-row-val"},ya={class:"detail-row"},xa={class:"detail-row-val"},Ca={class:"detail-row-group"},Va={class:"detail-row"},ja={class:"detail-row-val"},Ea={class:"detail-row"},Sa={class:"detail-row-val"},Ua={class:"detail-row-group"},za={class:"detail-row"},Da={class:"detail-row-val"},Ba={class:"detail-row"},$a={class:"detail-row-val mono"},Ia={class:"detail-row-group"},Ta={class:"detail-row"},Pa={class:"detail-row-val"},Ra={key:0,class:"detail-row-group"},Ma={class:"detail-remark"},qa={class:"detail-actions"},Fa={__name:"Users",setup(La){const D=h(!0),Y=h([]),A=h([]),{list:fe,loading:ge,page:M,pageSize:q,total:O,stats:B,selectedRows:C,filters:f,tableMaxHeight:be,fetchData:ke,handleSelectionChange:we,handleSortChange:he,handleSizeChange:ye,handleFilterChange:j,resetFilters:xe,refreshData:$}=Sl({apiUrl:"/users",statsUrl:"/users/stats",defaultFilters:{keyword:"",role:"",status:"",start_date:"",end_date:""},defaultPageSize:20}),{columnOptions:Ce,visibleColumns:y,saveColumnSettings:Ve}=Ul("users_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"用户名"},{prop:"nickname",label:"昵称"},{prop:"email",label:"邮箱"},{prop:"role",label:"角色"},{prop:"status",label:"状态"},{prop:"last_login_at",label:"最后登录"},{prop:"last_login_ip",label:"登录IP"},{prop:"created_at",label:"创建时间"}]),E=h(!1),b=h(!1),F=h(null),i=h({username:"",password:"",nickname:"",email:"",role:"agent",status:1,remark:"",project_ids:[]}),je={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:50,message:"长度在 3 到 50 个字符",trigger:"blur"}],password:[{required:!0,min:6,message:"密码至少6位",trigger:"blur"}],role:[{required:!0,message:"请选择角色",trigger:"change"}],email:[{type:"email",message:"请输入正确的邮箱地址",trigger:"blur"}]},L=h(!1);let K=null;const N=h(!1),r=h(null);function Ee(n){n?(f.start_date=n[0],f.end_date=n[1]):(f.start_date="",f.end_date=""),j()}async function Se(n){try{await z.put(`/users/${n.id}`,{status:n.status}),U.success("状态更新成功")}catch(e){n.status=n.status===1?0:1,console.error("更新状态失败:",e)}}async function J(n){try{await _e.confirm(`确定要删除用户 "${n.username}" 吗?此操作不可恢复。`,"删除确认",{confirmButtonText:"确定删除",cancelButtonText:"取消",type:"warning"}),await z.delete(`/users/${n.id}`),U.success("删除成功"),$()}catch(e){e!=="cancel"&&console.erLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as Ye,m as Ae,o as u,c as V,b as t,w as s,a7 as Oe,a9 as Je,l as h,K as Ge,a8 as Qe,a as l,E as We,n as o,aI as H,C as d,q as ie,p as de,T as Xe,ad as re,d as Ze,e as el,f as ll,g as al,ae as tl,af as sl,aE as ol,h as nl,ag as il,i as p,ah as ue,ai as dl,aj as rl,am as pe,ak as ul,an as pl,ao as cl,H as ce,V as me,S as m,t as ml,ap as vl,aq as _l,ar as fl,M as _,a2 as gl,a1 as bl,at as kl,aJ as wl,aK as hl,aH as yl,au as xl,av as Cl,aw as Vl,ax as ve,s as jl,x as El,B as R,az as _e,k as U}from"./index-B5xNuf83.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as Sl,a as Ul}from"./useColumnSettings-C0R5rnWU.js";import{r as z}from"./index-C7doSj3W.js";const zl={class:"users-page"},Dl={class:"stat-card stat-total"},Bl={class:"stat-icon"},$l={class:"stat-info"},Il={class:"stat-value"},Tl={class:"stat-card stat-admin"},Pl={class:"stat-icon"},Rl={class:"stat-info"},Ml={class:"stat-value"},ql={class:"stat-card stat-project"},Fl={class:"stat-icon"},Ll={class:"stat-info"},Kl={class:"stat-value"},Nl={class:"stat-card stat-agent"},Hl={class:"stat-icon"},Yl={class:"stat-info"},Al={class:"stat-value"},Ol={class:"advanced-search"},Jl={class:"toolbar"},Gl={class:"toolbar-left"},Ql={class:"toolbar-right"},Wl={class:"column-settings"},Xl={class:"user-cell"},Zl={class:"user-info"},ea={class:"user-name"},la={class:"user-id"},aa={class:"time-cell"},ta={class:"time-cell"},sa={class:"pagination-wrapper"},oa={class:"role-option"},na={class:"role-option"},ia={class:"role-option"},da={class:"detail-header"},ra={class:"detail-header-left"},ua={key:0,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},pa={key:1,viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ca={class:"detail-header-title"},ma={class:"detail-header-sub"},va={class:"detail-header-right"},_a=["onClick"],fa={key:0,class:"detail-body"},ga={class:"detail-row-group"},ba={class:"detail-row"},ka={class:"detail-row-val"},wa={class:"detail-row"},ha={class:"detail-row-val"},ya={class:"detail-row"},xa={class:"detail-row-val"},Ca={class:"detail-row-group"},Va={class:"detail-row"},ja={class:"detail-row-val"},Ea={class:"detail-row"},Sa={class:"detail-row-val"},Ua={class:"detail-row-group"},za={class:"detail-row"},Da={class:"detail-row-val"},Ba={class:"detail-row"},$a={class:"detail-row-val mono"},Ia={class:"detail-row-group"},Ta={class:"detail-row"},Pa={class:"detail-row-val"},Ra={key:0,class:"detail-row-group"},Ma={class:"detail-remark"},qa={class:"detail-actions"},Fa={__name:"Users",setup(La){const D=h(!0),Y=h([]),A=h([]),{list:fe,loading:ge,page:M,pageSize:q,total:O,stats:B,selectedRows:C,filters:f,tableMaxHeight:be,fetchData:ke,handleSelectionChange:we,handleSortChange:he,handleSizeChange:ye,handleFilterChange:j,resetFilters:xe,refreshData:$}=Sl({apiUrl:"/users",statsUrl:"/users/stats",defaultFilters:{keyword:"",role:"",status:"",start_date:"",end_date:""},defaultPageSize:20}),{columnOptions:Ce,visibleColumns:y,saveColumnSettings:Ve}=Ul("users_column_settings",[{prop:"id",label:"ID"},{prop:"username",label:"用户名"},{prop:"nickname",label:"昵称"},{prop:"email",label:"邮箱"},{prop:"role",label:"角色"},{prop:"status",label:"状态"},{prop:"last_login_at",label:"最后登录"},{prop:"last_login_ip",label:"登录IP"},{prop:"created_at",label:"创建时间"}]),E=h(!1),b=h(!1),F=h(null),i=h({username:"",password:"",nickname:"",email:"",role:"agent",status:1,remark:"",project_ids:[]}),je={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:50,message:"长度在 3 到 50 个字符",trigger:"blur"}],password:[{required:!0,min:6,message:"密码至少6位",trigger:"blur"}],role:[{required:!0,message:"请选择角色",trigger:"change"}],email:[{type:"email",message:"请输入正确的邮箱地址",trigger:"blur"}]},L=h(!1);let K=null;const N=h(!1),r=h(null);function Ee(n){n?(f.start_date=n[0],f.end_date=n[1]):(f.start_date="",f.end_date=""),j()}async function Se(n){try{await z.put(`/users/${n.id}`,{status:n.status}),U.success("状态更新成功")}catch(e){n.status=n.status===1?0:1,console.error("更新状态失败:",e)}}async function J(n){try{await _e.confirm(`确定要删除用户 "${n.username}" 吗?此操作不可恢复。`,"删除确认",{confirmButtonText:"确定删除",cancelButtonText:"取消",type:"warning"}),await z.delete(`/users/${n.id}`),U.success("删除成功"),$()}catch(e){e!=="cancel"&&console.erLine truncated
@@ -0,0 +1 @@
.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);min-width:150px;padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);overflow-wrap:break-word;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);margin-bottom:12px;line-height:1}.el-popover__reference:focus:not(.focusing),.el-popover__reference:focus:hover{outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus:active,.el-popover.el-popper:focus{outline-width:0}
@@ -0,0 +1 @@
.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);--el-popper-bg-color-light:var(--el-bg-color-overlay);--el-popper-bg-color-dark:var(--el-text-color-primary);border-radius:var(--el-popper-border-radius);z-index:2000;overflow-wrap:break-word;word-break:normal;visibility:visible;min-width:10px;padding:5px 11px;font-size:12px;line-height:20px;position:absolute}.el-popper.is-dark{--el-fill-color-blank:var(--el-popper-bg-color-dark);color:var(--el-bg-color);background:var(--el-popper-bg-color-dark);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-popper-bg-color-dark);right:0}.el-popper.is-light{--el-fill-color-blank:var(--el-popper-bg-color-light);background:var(--el-popper-bg-color-light);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-popper-bg-color-light);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{z-index:-1;width:10px;height:10px;position:absolute}.el-popper__arrow:before{z-index:-1;content:" ";background:var(--el-text-color-primary);box-sizing:border-box;width:10px;height:10px;position:absolute;transform:rotate(45deg)}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-top-color:#0000!important;border-left-color:#0000!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:#0000!important;border-right-color:#0000!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-bottom-color:#0000!important;border-left-color:#0000!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-top-color:#0000!important;border-right-color:#0000!important}
@@ -0,0 +1 @@
.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary);color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);cursor:pointer;white-space:nowrap;font-size:var(--el-font-size-base);-webkit-user-select:none;user-select:none;outline:none;align-items:center;height:32px;margin-right:30px;display:inline-flex;position:relative}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box;padding:0 15px 0 9px}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.is-bordered.el-radio--small{border-radius:var(--el-border-radius-base);padding:0 11px 0 7px}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{width:12px;height:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;vertical-align:middle;outline:none;display:inline-flex;position:relative}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{background-color:var(--el-color-white);transform:translate(-50%,-50%)scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);cursor:pointer;box-sizing:border-box;transition:all .3s;display:inline-block;position:relative}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{border-radius:var(--el-radio-input-border-radius);content:"";width:4px;height:4px;transition:transform .15s ease-in;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)scale(0)}.el-radio__original{opacity:0;z-index:-1;outline:none;margin:0;position:absolute;top:0;bottom:0;left:0;right:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-radio-group{flex-wrap:wrap;align-items:center;font-size:0;display:inline-flex}
@@ -0,0 +1 @@
.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{content:"";background-position:50%;background-repeat:no-repeat;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") 0 0/100% 100% no-repeat;border-top:none;border-right:none;width:12px;height:12px;position:absolute;top:50%;right:20px;transform:translateY(-50%);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") 0 0/100% 100% no-repeat}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__loading,.el-select-dropdown__empty{text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;margin:0;padding:6px 0;list-style:none}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{font-size:var(--el-font-size-base);white-space:nowrap;text-overflow:ellipsis;color:var(--el-text-color-regular);box-sizing:border-box;cursor:pointer;height:34px;padding:0 32px 0 20px;line-height:34px;position:relative;overflow:hidden}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed;background-color:unset}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{content:"";background-position:50%;background-repeat:no-repeat;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") 0 0/100% 100% no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") 0 0/100% 100% no-repeat;border-top:none;border-right:none;width:12px;height:12px;position:absolute;top:50%;right:20px;transform:translateY(-50%);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") 0 0/100% 100% no-repeat}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{margin:0;padding:0;list-style:none;position:relative}.el-select-group__title{box-sizing:border-box;color:var(--el-color-info);text-overflow:ellipsis;white-space:nowrap;padding:0 20px;font-size:12px;line-height:34px;overflow:hidden}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;vertical-align:middle;width:var(--el-Line truncated
@@ -0,0 +1 @@
.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;position:relative;overflow:hidden}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));width:0;height:0;transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3);display:block;position:relative}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{z-index:1;border-radius:4px;position:absolute;bottom:2px;right:2px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}
+92
View File
@@ -0,0 +1,92 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-Cgm8z3bb.js","assets/user-CjwLSb7B.js","assets/index-C7doSj3W.js","assets/Login-DexVXGmB.css","assets/base-BhyKBIh7.css","assets/el-input-FRZVk2Ev.css","assets/AgentLogin-cC_2JL8W.js","assets/AgentLogin-D9WJ8j9x.css","assets/el-link-CPQZ-olG.css","assets/el-checkbox-CzNtyWdF.css","assets/AgentRegister-PEiEtkUp.js","assets/AgentRegister-7UV8clUI.css","assets/MainLayout-B-elBVyI.js","assets/MainLayout-NyI85wLD.css","assets/el-upload-DfG5YBrW.css","assets/el-dialog-BIfDN5q_.css","assets/el-avatar-DOlF0Z_P.css","assets/el-tag-1VV9QMa7.css","assets/el-tooltip-GF-yQkxY.css","assets/el-popper-Wf_ds9r7.css","assets/el-dropdown-item-BeIfAqTO.css","assets/Dashboard-CUec1tsG.js","assets/Dashboard-CjXgCO-1.css","assets/el-col-BWEC13sA.css","assets/el-card-BAyktVMS.css","assets/Projects-CDoJvGdb.js","assets/useColumnSettings-C0R5rnWU.js","assets/Projects-BNg1nS_b.css","assets/el-loading-C-X_DDFa.css","assets/el-input-number-DExoAqKP.css","assets/el-table-column-DMM_I_SE.css","assets/el-switch-DpR9-s4E.css","assets/el-popover-Ciemdyvv.css","assets/Products-DykjVCUN.js","assets/Products-T7S207w9.css","assets/Cards-C2cz-l-Q.js","assets/Cards-Dx3-rO2z.css","assets/el-date-picker-BsrAVvYx.css","assets/Users-nV_ked4C.js","assets/Users-BawBSfeg.css","assets/Agents-DkIqgGqj.js","assets/Agents-CMih9NPH.css","assets/Orders-DjAcMVqV.js","assets/Orders-Bz1sTx9n.css","assets/Logs-DvVXsrhY.js","assets/Logs-DpLKjJre.css","assets/Authorizations-BiZ-Ylsy.js","assets/Authorizations-BMoXOSb9.css","assets/Coupons-Cern4sAn.js","assets/Coupons-CFC82d0U.css","assets/Blacklist-eH-c4VFV.js","assets/Blacklist-u-Hq2DCx.css","assets/el-radio-group-iy_biC8N.css","assets/PaymentConfig-DWKprpmn.js","assets/PaymentConfig-CQKz3tlS.css","assets/System-BF5uDQ9s.js","assets/System-CcULoynz.css","assets/Shop-DaJA4F_5.js","assets/Shop-D8Vqyx3L.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();/**
* @vue/shared v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function S2(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const hn={},es=[],ft=()=>{},Hg=()=>!1,td=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nd=e=>e.startsWith("onUpdate:"),Bn=Object.assign,x2=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_5=Object.prototype.hasOwnProperty,Pt=(e,t)=>_5.call(e,t),Ce=Array.isArray,ts=e=>Ji(e)==="[object Map]",ad=e=>Ji(e)==="[object Set]",Ho=e=>Ji(e)==="[object Date]",We=e=>typeof e=="function",Le=e=>typeof e=="string",Pa=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Fo=e=>(ot(e)||We(e))&&We(e.then)&&We(e.catch),Fg=Object.prototype.toString,Ji=e=>Fg.call(e),S5=e=>Ji(e).slice(8,-1),xi=e=>Ji(e)==="[object Object]",ld=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ui=S2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),od=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},x5=/-\w/g,Un=od(e=>e.replace(x5,t=>t.slice(1).toUpperCase())),k5=/\B([A-Z])/g,uo=od(e=>e.replace(k5,"-$1").toLowerCase()),Qi=od(e=>e.charAt(0).toUpperCase()+e.slice(1)),pr=od(e=>e?`on${Qi(e)}`:""),_l=(e,t)=>!Object.is(e,t),Ju=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Kg=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},k2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E5=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let zv;const rd=()=>zv||(zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],l=Le(a)?$5(a):je(a);if(l)for(const o in l)t[o]=l[o]}return t}else if(Le(e)||ot(e))return e}const M5=/;(?![^(]*\))/g,T5=/:([^]+)/,O5=/\/\*[^]*?\*\//g;function $5(e){const t={};return e.replace(O5,"").split(M5).forEach(n=>{if(n){const a=n.split(T5);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Le(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const a=R(e[n]);a&&(t+=a+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Xl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Le(t)&&(e.class=R(t)),n&&(e.style=je(n)),e}const N5="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",A5=S2(N5);function Wg(e){return!!e||e===""}function R5(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=wr(e[a],t[a]);return n}function wr(e,t){if(e===t)return!0;let n=Ho(e),a=Ho(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Pa(e),a=Pa(t),n||a)return e===t;if(n=Ce(e),a=Ce(t),n||a)return n&&a?R5(e,t):!1;if(n=ot(e),a=ot(t),n||a){if(!n||!a)return!1;const l=Object.keys(e).length,o=Object.keys(t).length;if(l!==o)return!1;for(const r in e){const s=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(s&&!u||!s&&u||!wr(e[r],t[r]))return!1}}return String(e)===String(t)}function jg(e,t){return e.findIndex(n=>wr(n,t))}const qg=e=>!!(e&&e.__v_isRef===!0),Se=e=>Le(e)?e:e==null?"":Ce(e)||ot(e)&&(e.toString===Fg||!We(e.toString))?qg(e)?Se(e.value):JSON.stringify(e,Ug,2):String(e),Ug=(e,t)=>qg(t)?Ug(e,t.value):ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,l],o)=>(n[ef(a,o)+" =>"]=l,n),{})}:ad(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ef(n))}:Pa(t)?ef(t):ot(t)&&!Ce(t)&&!xi(t)?String(t):t,ef=(e,t="")=>{var n;return Pa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Hn;class Yg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Hn&&(Hn.active?(this.parent=Hn,this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Hn;try{return Hn=this,t()}finally{Hn=n}}}on(){++this._on===1&&(this.prevScope=Hn,Hn=this)}off(){if(this._on>0&&--this._on===0){if(Hn===this)Hn=this.prevScope;else{let t=Hn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(this.effects.length=0,n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function E2(e){return new Yg(e)}function sd(){return Hn}function M2(e,t=!1){Hn&&Hn.cleanups.push(e)}let bn;const tf=new WeakSet;class Gg{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Hn&&(Hn.active?Hn.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tf.has(this)&&(tf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zg(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dv(this),Jg(this);const t=bn,n=el;bn=this,el=!0;try{return this.fn()}finally{Qg(this),bn=t,el=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$2(t);this.deps=this.depsTail=void 0,Dv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jf(this)&&this.run()}get dirty(){return Jf(this)}}let Xg=0,ci,di;function Zg(e,t=!1){if(e.flags|=8,t){e.next=di,di=e;return}e.next=ci,ci=e}function T2(){Xg++}function O2(){if(--Xg>0)return;if(di){let t=di;for(di=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ci;){let t=ci;for(ci=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Jg(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qg(e){let t,n=e.depsTail,a=n;for(;a;){const l=a.prevDep;a.version===-1?(a===n&&(n=l),$2(a),P5(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=l}e.deps=t,e.depsTail=n}function Jf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(e4(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function e4(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ki)||(e.globalVersion=ki,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jf(e))))return;e.flags|=2;const t=e.dep,n=bn,a=el;bn=e,el=!0;try{Jg(e);const l=e.fn(e._value);(t.version===0||_l(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{bn=n,el=a,Qg(e),e.flags&=-3}}function $2(e,t=!1){const{dep:n,prevSub:a,nextSub:l}=e;if(a&&(a.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)$2(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function P5(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let el=!0;const t4=[];function to(){t4.push(el),el=!1}function no(){const e=t4.pop();el=e===void 0?!0:e}function Dv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=bn;bn=void 0;try{t()}finally{bn=n}}}let ki=0;class I5{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 N2{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(!bn||!el||bn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==bn)n=this.activeLink=new I5(bn,this),bn.deps?(n.prevDep=bn.depsTail,bn.depsTail.nextDep=n,bn.depsTail=n):bn.deps=bn.depsTail=n,n4(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=bn.depsTail,n.nextDep=void 0,bn.depsTail.nexLine truncated
* @vue/runtime-core v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function eu(e,t,n,a){try{return a?e(...a):e()}catch(l){pd(l,t,n)}}function ja(e,t,n,a){if(We(e)){const l=eu(e,t,n,a);return l&&Fo(l)&&l.catch(o=>{pd(o,t,n)}),l}if(Ce(e)){const l=[];for(let o=0;o<e.length;o++)l.push(ja(e[o],t,n,a));return l}}function pd(e,t,n,a=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||hn;if(t){let s=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}s=s.parent}if(o){to(),eu(o,null,10,[e,u,c]),no();return}}r9(e,n,l,a,r)}function r9(e,t,n,a=!0,l=!1){if(l)throw e;console.error(e)}const pa=[];let bl=-1;const ns=[];let Ao=null,Ur=0;const h4=Promise.resolve();let wc=null;function Pe(e){const t=wc||h4;return e?t.then(this?e.bind(this):e):t}function s9(e){let t=bl+1,n=pa.length;for(;t<n;){const a=t+n>>>1,l=pa[a],o=Mi(l);o<e||o===e&&l.flags&2?t=a+1:n=a}return t}function A2(e){if(!(e.flags&1)){const t=Mi(e),n=pa[pa.length-1];!n||!(e.flags&2)&&t>=Mi(n)?pa.push(e):pa.splice(s9(t),0,e),e.flags|=1,m4()}}function m4(){wc||(wc=h4.then(y4))}function i9(e){Ce(e)?ns.push(...e):Ao&&e.id===-1?Ao.splice(Ur+1,0,e):e.flags&1||(ns.push(e),e.flags|=1),m4()}function Fv(e,t,n=bl+1){for(;n<pa.length;n++){const a=pa[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;pa.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function g4(e){if(ns.length){const t=[...new Set(ns)].sort((n,a)=>Mi(n)-Mi(a));if(ns.length=0,Ao){Ao.push(...t);return}for(Ao=t,Ur=0;Ur<Ao.length;Ur++){const n=Ao[Ur];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ao=null,Ur=0}}const Mi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function y4(e){try{for(bl=0;bl<pa.length;bl++){const t=pa[bl];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),eu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bl<pa.length;bl++){const t=pa[bl];t&&(t.flags&=-2)}bl=-1,pa.length=0,g4(),wc=null,(pa.length||ns.length)&&y4()}}let Xn=null,b4=null;function Cc(e){const t=Xn;return Xn=e,b4=e&&e.type.__scopeId||null,t}function ae(e,t=Xn,n){if(!t||e._n)return e;const a=(...l)=>{a._d&&xc(-1);const o=Cc(t);let r;try{r=e(...l)}finally{Cc(o),a._d&&xc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function vt(e,t){if(Xn===null)return e;const n=yd(Xn),a=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,r,s,u=hn]=t[l];o&&(We(o)&&(o={mounted:o,updated:o}),o.deep&&Yl(r),a.push({dir:o,instance:n,value:r,oldValue:void 0,arg:s,modifiers:u}))}return e}function Xo(e,t,n,a){const l=e.dirs,o=t&&t.dirs;for(let r=0;r<l.length;r++){const s=l[r];o&&(s.oldValue=o[r].value);let u=s.dir[a];u&&(to(),ja(u,n,8,[e.el,s,e,t]),no())}}function wt(e,t){if(la){let n=la.provides;const a=la.parent&&la.parent.provides;a===n&&(n=la.provides=Object.create(a)),n[e]=t}}function Ie(e,t,n=!1){const a=mt();if(a||hr){let l=hr?hr._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&We(t)?t.call(a&&a.proxy):t}}function R2(){return!!(mt()||hr)}const u9=Symbol.for("v-scx"),c9=()=>Ie(u9);function sa(e,t){return P2(e,null,t)}function fe(e,t,n){return P2(e,t,n)}function P2(e,t,n=hn){const{immediate:a,deep:l,flush:o,once:r}=n,s=Bn({},n),u=t&&a||!t&&o!=="post";let c;if($i){if(o==="sync"){const g=c9();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=ft,g.resume=ft,g.pause=ft,g}}const d=la;s.call=(g,v,m)=>ja(g,d,v,m);let f=!1;o==="post"?s.scheduler=g=>{da(g,d&&d.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(g,v)=>{v?g():A2(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=o9(e,t,s);return $i&&(c?c.push(p):u&&p()),p}function d9(e,t,n){const a=this.proxy,l=Le(e)?e.includes(".")?w4(a,e):()=>a[e]:e.bind(a,a);let o;We(t)?o=t:(o=t.handler,n=t);const r=nu(this),s=P2(l,o.bind(a),n);return r(),s}function w4(e,t){const n=t.split(".");return()=>{let a=e;for(let l=0;l<n.length&&a;l++)a=a[n[l]];return a}}const Eo=new WeakMap,C4=Symbol("_vte"),_4=e=>e.__isTeleport,ar=e=>e&&(e.disabled||e.disabled===""),f9=e=>e&&(e.defer||e.defer===""),Kv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,t0=(e,t)=>{const n=e&&e.to;return Le(n)?t?t(n):null:n},p9={name:"Teleport",__isTeleport:!0,process(e,t,n,a,l,o,r,s,u,c){const{mc:d,pc:f,pbc:p,o:{insert:g,querySelector:v,createText:m,createComment:h,parentNode:y}}=c,b=ar(t.props);let{dynamicChildren:C}=t;const _=(E,T,O)=>{E.shapeFlag&16&&d(E.children,T,O,l,o,r,s,u)},x=(E=t)=>{const T=ar(E.props),O=E.target=t0(E.props,v),N=n0(O,E,m,g);O&&(r!=="svg"&&Kv(O)?r="svg":r!=="mathml"&&Wv(O)&&(r="mathml"),l&&l.isCE&&(l.ce._teleportTargets||(l.ce._teleportTargets=new Set)).add(O),T||(_(E,O,N),ti(E,!1)))},k=E=>{const T=()=>{if(Eo.get(E)===T){if(Eo.delete(E),ar(E.props)){const O=y(E.el)||n;_(E,O,E.anchor),ti(E,!0)}x(E)}};Eo.set(E,T),da(T,o)};if(e==null){const E=t.el=m(""),T=t.anchor=m("");if(g(E,n Line truncated
* @vue/runtime-dom v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let i0;const oh=typeof window<"u"&&window.trustedTypes;if(oh)try{i0=oh.createPolicy("vue",{createHTML:e=>e})}catch{}const t3=i0?e=>i0.createHTML(e):e=>e,iC="http://www.w3.org/2000/svg",uC="http://www.w3.org/1998/Math/MathML",Wl=typeof document<"u"?document:null,rh=Wl&&Wl.createElement("template"),cC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const l=t==="svg"?Wl.createElementNS(iC,e):t==="mathml"?Wl.createElementNS(uC,e):n?Wl.createElement(e,{is:n}):Wl.createElement(e);return e==="select"&&a&&a.multiple!=null&&l.setAttribute("multiple",a.multiple),l},createText:e=>Wl.createTextNode(e),createComment:e=>Wl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,l,o){const r=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{rh.innerHTML=t3(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const s=rh.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xo="transition",qs="animation",fs=Symbol("_vtc"),n3={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},a3=Bn({},x4,n3),dC=e=>(e.displayName="Transition",e.props=a3,e),Yn=dC((e,{slots:t})=>Ge(m9,l3(e),t)),Jo=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},sh=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function l3(e){const t={};for(const A in e)A in n3||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:a,duration:l,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=fC(l),m=v&&v[0],h=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:C,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:E=b,onAppearCancelled:T=C}=t,O=(A,B,q,W)=>{A._enterCancelled=W,Mo(A,B?d:s),Mo(A,B?c:r),q&&q()},N=(A,B)=>{A._isLeaving=!1,Mo(A,f),Mo(A,g),Mo(A,p),B&&B()},P=A=>(B,q)=>{const W=A?E:b,H=()=>O(B,A,q);Jo(W,[B,H]),ih(()=>{Mo(B,A?u:o),yl(B,A?d:s),sh(W)||uh(B,a,m,H)})};return Bn(t,{onBeforeEnter(A){Jo(y,[A]),yl(A,o),yl(A,r)},onBeforeAppear(A){Jo(k,[A]),yl(A,u),yl(A,c)},onEnter:P(!1),onAppear:P(!0),onLeave(A,B){A._isLeaving=!0;const q=()=>N(A,B);yl(A,f),A._enterCancelled?(yl(A,p),u0(A)):(u0(A),yl(A,p)),ih(()=>{A._isLeaving&&(Mo(A,f),yl(A,g),sh(_)||uh(A,a,h,q))}),Jo(_,[A,q])},onEnterCancelled(A){O(A,!1,void 0,!0),Jo(C,[A])},onAppearCancelled(A){O(A,!0,void 0,!0),Jo(T,[A])},onLeaveCancelled(A){N(A),Jo(x,[A])}})}function fC(e){if(e==null)return null;if(ot(e))return[sf(e.enter),sf(e.leave)];{const t=sf(e);return[t,t]}}function sf(e){return E5(e)}function yl(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fs]||(e[fs]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[fs];n&&(n.delete(t),n.size||(e[fs]=void 0))}function ih(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pC=0;function uh(e,t,n,a){const l=e._endId=++pC,o=()=>{l===e._endId&&a()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:s,propCount:u}=o3(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,p),o()},p=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},s+1),e.addEventListener(c,p)}function o3(e,t){const n=window.getComputedStyle(e),a=v=>(n[v]||"").split(", "),l=a(`${xo}Delay`),o=a(`${xo}Duration`),r=ch(l,o),s=a(`${qs}Delay`),u=a(`${qs}Duration`),c=ch(s,u);let d=null,f=0,p=0;t===xo?r>0&&(d=xo,f=r,p=o.length):t===qs?c>0&&(d=qs,f=c,p=u.length):(f=Math.max(r,c),d=f>0?r>c?xo:qs:null,p=d?d===xo?o.length:u.length:0);const g=d===xo&&/\b(?:transform|all)(?:,|$)/.test(a(`${xo}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function ch(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,a)=>dh(n)+dh(e[a])))}function dh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function u0(e){return(e?e.ownerDocument:document).body.offsetHeight}function vC(e,t,n){const a=e[fs];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ec=Symbol("_vod"),W2=Symbol("_vsh"),Rt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ec]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Us(e,t)},mounted(e,{value:t},{tra Line truncated
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let g3;const bd=e=>g3=e,y3=Symbol();function c0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var hi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(hi||(hi={}));function FC(){const e=E2(!0),t=e.run(()=>L({}));let n=[],a=[];const l=Ka({install(o){bd(l),l._a=o,o.provide(y3,l),o.config.globalProperties.$pinia=l,a.forEach(r=>n.push(r)),a=[]},use(o){return this._a?n.push(o):a.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}const b3=()=>{};function kh(e,t,n,a=b3){e.push(t);const l=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!n&&sd()&&M2(l),l}function Dr(e,...t){e.slice().forEach(n=>{n(...t)})}const KC=e=>e(),Eh=Symbol(),df=Symbol();function d0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],l=e[n];c0(l)&&c0(a)&&e.hasOwnProperty(n)&&!Xt(a)&&!Zl(a)?e[n]=d0(l,a):e[n]=a}return e}const WC=Symbol();function jC(e){return!c0(e)||!e.hasOwnProperty(WC)}const{assign:To}=Object;function qC(e){return!!(Xt(e)&&e.effect)}function UC(e,t,n,a){const{state:l,actions:o,getters:r}=t,s=n.state.value[e];let u;function c(){s||(n.state.value[e]=l?l():{});const d=Rn(n.state.value[e]);return To(d,o,Object.keys(r||{}).reduce((f,p)=>(f[p]=Ka(S(()=>{bd(n);const g=n._s.get(e);return r[p].call(g,g)})),f),{}))}return u=w3(e,c,t,n,a,!0),u}function w3(e,t,n={},a,l,o){let r;const s=To({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],g;const v=a.state.value[e];!o&&!v&&(a.state.value[e]={});let m;function h(T){let O;c=d=!1,typeof T=="function"?(T(a.state.value[e]),O={type:hi.patchFunction,storeId:e,events:g}):(d0(a.state.value[e],T),O={type:hi.patchObject,payload:T,storeId:e,events:g});const N=m=Symbol();Pe().then(()=>{m===N&&(c=!0)}),d=!0,Dr(f,O,a.state.value[e])}const y=o?function(){const{state:O}=n,N=O?O():{};this.$patch(P=>{To(P,N)})}:b3;function b(){r.stop(),f=[],p=[],a._s.delete(e)}const C=(T,O="")=>{if(Eh in T)return T[df]=O,T;const N=function(){bd(a);const P=Array.from(arguments),A=[],B=[];function q(V){A.push(V)}function W(V){B.push(V)}Dr(p,{args:P,name:N[df],store:x,after:q,onError:W});let H;try{H=T.apply(this&&this.$id===e?this:x,P)}catch(V){throw Dr(B,V),V}return H instanceof Promise?H.then(V=>(Dr(A,V),V)).catch(V=>(Dr(B,V),Promise.reject(V))):(Dr(A,H),H)};return N[Eh]=!0,N[df]=O,N},_={_p:a,$id:e,$onAction:kh.bind(null,p),$patch:h,$reset:y,$subscribe(T,O={}){const N=kh(f,T,O.detached,()=>P()),P=r.run(()=>fe(()=>a.state.value[e],A=>{(O.flush==="sync"?d:c)&&T({storeId:e,type:hi.direct,events:g},A)},To({},u,O)));return N},$dispose:b},x=Lt(_);a._s.set(e,x);const E=(a._a&&a._a.runWithContext||KC)(()=>a._e.run(()=>(r=E2()).run(()=>t({action:C}))));for(const T in E){const O=E[T];if(Xt(O)&&!qC(O)||Zl(O))o||(v&&jC(O)&&(Xt(O)?O.value=v[T]:d0(O,v[T])),a.state.value[e][T]=O);else if(typeof O=="function"){const N=C(O,T);E[T]=N,s.actions[T]=O}}return To(x,E),To(Zt(x),E),Object.defineProperty(x,"$state",{get:()=>a.state.value[e],set:T=>{h(O=>{To(O,T)})}}),a._p.forEach(T=>{To(x,r.run(()=>T({store:x,app:a._a,pinia:a,options:s})))}),v&&o&&n.hydrate&&n.hydrate(x.$state,v),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function xie(e,t,n){let a,l;const o=typeof t=="function";a=e,l=o?n:t;function r(s,u){const c=R2();return s=s||(c?Ie(y3,null):null),s&&bd(s),s=g3,s._s.has(a)||(o?w3(a,t,l,s):UC(a,l,s)),s._s.get(a)}return r.$id=a,r}const _e={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},YC=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ff=["sun","mon","tue","wed","thu","fri","sat"],lt="update:modelValue",yt="change",Mn="input",Mh=Symbol("INSTALLED_KEY"),cl=["","default","small","large"],Th=["left","center","right"];var C3=typeof global=="object"&&global&&global.Object===Object&&global,GC=typeof self=="object"&&self&&self.Object===Object&&self,dl=C3||GC||Function("return this")(),qa=dl.Symbol,_3=Object.prototype,XC=_3.hasOwnProperty,ZC=_3.toString,Ys=qa?qa.toStringTag:void 0;function JC(e){var t=XC.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var a=!0}catch{}var l=ZC.call(e);return a&&(t?e[Ys]=n:delete e[Ys]),l}var QC=Object.prototype,e_=QC.toString;function t_(e){return e_.call(e)}var n_="[object Null]",a_="[object Undefined]",Oh=qa?qa.toStringTag:void 0;function Ar(e){return e==null?e===void 0?a_:n_:Oh&&Oh in Object(e)?JC(e):t_(e)}function Al(e){return e!=null&&typeof e=="object"}var l_="[object Symbol]";function wd(e){return typeof e=="symbol"||Al(e)&&Ar(e)==l_}function j2(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n<a;)l[n]=t(e[n],n,e);return l}var ma=Array.isArray,$h=qa?qa.prototype:void 0,Nh=$h?$h.toString:void 0;functiLine truncated
For more detail, please visit: ${l}
`)},{immediate:!0})},GE='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',p6=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,r1=e=>typeof Element>"u"?!1:e instanceof Element,XE=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,s1=e=>Array.from(e.querySelectorAll(GE)).filter(t=>xr(t)&&XE(t)),xr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},nc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},v6=e=>!e.getAttribute("aria-owns"),h6=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n);return l[Array.prototype.indexOf.call(l,e)+t]||null},du=(e,t)=>{if(!e||!e.focus)return;let n=!1;r1(e)&&!xr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),r1(e)&&n&&e.removeAttribute("tabindex")},rs=e=>{e&&(du(e),!v6(e)&&e.click())},Ad=()=>Vt&&/firefox/i.test(window.navigator.userAgent),m6=()=>Vt&&/android/i.test(window.navigator.userAgent),cp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),bf=e=>Qi(e),ZE="utils/dom/style",g6=(e="")=>e.split(" ").filter(t=>!!t.trim()),El=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ha=(e,t)=>{!e||!t.trim()||e.classList.add(...g6(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...g6(t))},Gl=(e,t)=>{var a;if(!Vt||!e||!t||p6(e))return"";let n=Un(t);n==="float"&&(n="cssFloat");try{const l=e.style[n];if(l)return l;const o=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},y6=(e,t,n)=>{if(!(!e||!t))if(ot(t))s6(t).forEach(([a,l])=>y6(e,a,l));else{const a=Un(t);e.style[a]=n}};function pn(e,t="px"){if(!e&&e!==0)return"";if(He(e)||yE(e))return`${e}${t}`;if(Le(e))return e;Ft(ZE,"binding value must be a string or number")}const b6=(e,t,n,a)=>{const l={offsetX:0,offsetY:0},o=L(!1),r=(p,g)=>{if(e.value){const{offsetX:v,offsetY:m}=l,h=e.value.getBoundingClientRect(),y=Math.max(h.left,0),b=Math.max(h.top,0),C=h.width,_=h.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,E=-y+v,T=-b+m,O=x-y-C+v,N=k-b-(_<k?_:0)+m;a!=null&&a.value||(p=wa(p,E,O),g=wa(g,T,N)),l.offsetX=p,l.offsetY=g,e.value.style.transform=`translate(${pn(p)}, ${pn(g)})`}},s=p=>{const g=p.clientX,v=p.clientY,{offsetX:m,offsetY:h}=l,y=C=>{o.value||(o.value=!0),r(m+C.clientX-g,h+C.clientY-v)},b=()=>{o.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{l.offsetX=0,l.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:g}=l;r(p,g)};return gt(()=>{sa(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:o,resetPosition:d,updatePosition:f}};var JE={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday Line truncated
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})`);const n=dp();return u6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Yr=[];const C1=e=>{Gt(e)===_e.esc&&Yr.forEach(t=>t(e))},hT=e=>{gt(()=>{Yr.length===0&&document.addEventListener("keydown",C1),Vt&&Yr.push(e)}),Dt(()=>{Yr=Yr.filter(t=>t!==e),Yr.length===0&&Vt&&document.removeEventListener("keydown",C1)})},L6=()=>{const e=dp(),t=Sp(),n=S(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:S(()=>`#${n.value}`)}},mT=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},gT=()=>{const{id:e,selector:t}=L6();return md(()=>{Vt&&(document.body.querySelector(t.value)||mT(e.value))}),{id:e,selector:t}},yT=xe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),bT=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:o}=w1(),{registerTimeout:r,cancelTimeout:s}=w1();return{onOpen:(d,f=i(e))=>{o(()=>{a(d);const p=i(n);He(p)&&p>0&&r(()=>{l(d)},p)},f)},onClose:(d,f=i(t))=>{s(),o(()=>{l(d)},f)}}},B6=Symbol("elForwardRef"),wT=e=>{wt(B6,{setForwardRef:n=>{e.value=n}})},CT=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),_1={current:0},S1=L(0),z6=2e3,x1=Symbol("elZIndexContextKey"),D6=Symbol("zIndexContextKey"),vu=e=>{const t=mt()?Ie(x1,_1):_1,n=e||(mt()?Ie(D6,void 0):void 0),a=S(()=>{const r=i(n);return He(r)?r:z6}),l=S(()=>a.value+S1.value),o=()=>(t.current++,S1.value=t.current,l.value);return!Vt&&!Ie(x1)&&Ft("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:l,nextZIndex:o}},Cs=Math.min,gr=Math.max,Ac=Math.round,Vu=Math.floor,Tl=e=>({x:e,y:e}),_T={left:"right",right:"left",bottom:"top",top:"bottom"};function _0(e,t,n){return gr(e,Cs(t,n))}function hu(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function mu(e){return e.split("-")[1]}function H6(e){return e==="x"?"y":"x"}function xp(e){return e==="y"?"height":"width"}function Vo(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function kp(e){return H6(Vo(e))}function ST(e,t,n){n===void 0&&(n=!1);const a=mu(e),l=kp(e),o=xp(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=Rc(r)),[r,Rc(r)]}function xT(e){const t=Rc(e);return[S0(e),t,S0(t)]}function S0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const k1=["left","right"],E1=["right","left"],kT=["top","bottom"],ET=["bottom","top"];function MT(e,t,n){switch(e){case"top":case"bottom":return n?t?E1:k1:t?k1:E1;case"left":case"right":return t?kT:ET;default:return[]}}function TT(e,t,n,a){const l=mu(e);let o=MT(Er(e),n==="start",a);return l&&(o=o.map(r=>r+"-"+l),t&&(o=o.concat(o.map(S0)))),o}function Rc(e){const t=Er(e);return _T[t]+e.slice(t.length)}function OT(e){return{top:0,right:0,bottom:0,left:0,...e}}function F6(e){return typeof e!="number"?OT(e):{top:e,right:e,bottom:e,left:e}}function Pc(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function M1(e,t,n){let{reference:a,floating:l}=e;const o=Vo(t),r=kp(t),s=xp(r),u=Er(t),c=o==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,p=a[s]/2-l[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-l.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-l.width,y:f};break;default:g={x:a.x,y:a.y}}switch(mu(t)){case"start":g[r]-=p*(n&&c?-1:1);break;case"end":g[r]+=p*(n&&c?-1:1);break}return g}async function K6(e,t){var n;t===void 0&&(t={});const{x:a,y:l,platform:o,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=hu(t,e),v=F6(g),h=s[p?f==="floating"?"reference":"floating":f],y=Pc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(h)))==null||n?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),_=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},x=Pc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-x.top+v.top)/_.y,bottom:(x.bottom-y.bottom+v.bottom)/_.y,left:(y.left-x.left+v.left)/_.x,right:(x.right-y.right+v.right)/_.x}}const $T=50,NT=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:K6},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=M1(c,a,u),p=a,g=0;const v={};for(let m=0;m<o.length;m++){const h=o[m];if(!h)continue;const{name:y,fn:b}=h,{x:C,y:_,data:x,reset:k}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:l,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=_??f,v[y]={...v[y],...x},k&&g<$T&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:l}):k.rects),{x:d,y:f}=M1(c,p,u)),m=-1)}return{x:d,y:f,placement:p,strategy:l,middlewareData:v}},AT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:o,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=hu(e,t)||{};if(c==null)return{};const f=F6(d),p={x:n,y:a},g=kp(l),v=xp(g),m=await r.getDimensions(c),h=g==="y",y=h?"top":"left",b=h?"bottom":"right",C=h?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[g]-p[g]-o.floating[v],x=p[g]-o.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let E=k?k[C]:0;(!E||!await(r.isElement==null?void 0:r.isElement(k)))&&(E=s.floating[C]||o.floating[v]);const T=_/2-x/2,O=E/2-m[v]/2-1,N=Cs(f[y],O),P=Cs(f[b],O),A=N,B=E-m[v]-P,q=E/2-m[v]/2+T,W=_0(A,q,B),H=!u.arrow&&mu(l)!=null&&q!==W&&o.reference[v]/2-(q<A?N:P)-m[v]/2<0,V=H?q<A?q-A:q-B:0;return{[g]:p[g]+V,data:{[g]:W,centerOffset:q-W-V,...H&&{alignmentOffset:V}},reset:H}}}),RT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:l,middlewareData:o,rects:r,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=! Line truncated
(?:
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+a+":){5}(?::"+n+"|(?::"+a+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+a+":){4}(?:(?::"+a+"){0,1}:"+n+"|(?::"+a+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+a+":){3}(?:(?::"+a+"){0,2}:"+n+"|(?::"+a+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+a+":){2}(?:(?::"+a+"){0,3}:"+n+"|(?::"+a+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+a+":){1}(?:(?::"+a+"){0,4}:"+n+"|(?::"+a+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+a+"){0,5}:"+n+"|(?::"+a+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+l+"$"),u=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+l+t(_)+")","g")};u.v4=function(C){return C&&C.exact?r:new RegExp(""+t(C)+n+t(C),"g")},u.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+l+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+g+v+m+")"+h+y;return Bu=new RegExp("(?:^"+b+"$)","i"),Bu},D1={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oi={integer:function(t){return oi.number(t)&&parseInt(t,10)===t},float:function(t){return oi.number(t)&&!oi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!oi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(D1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cD())},hex:function(t){return typeof t=="string"&&!!t.match(D1.hex)}},dD=function(t,n,a,l,o){if(t.required&&n===void 0){P8(t,n,a,l,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?oi[s](n)||l.push(Na(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&l.push(Na(o.messages.types[s],t.fullField,t.type))},fD=function(t,n,a,l,o){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(p?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&l.push(Na(o.messages[f].len,t.fullField,t.len)):s&&!u&&d<t.min?l.push(Na(o.messages[f].min,t.fullField,t.min)):u&&!s&&d>t.max?l.push(Na(o.messages[f].max,t.fullField,t.max)):s&&u&&(d<t.min||d>t.max)&&l.push(Na(o.messages[f].range,t.fullField,t.min,t.max))},Fr="enum",pD=function(t,n,a,l,o){t[Fr]=Array.isArray(t[Fr])?t[Fr]:[],t[Fr].indexOf(n)===-1&&l.push(Na(o.messages[Fr],t.fullField,t[Fr].join(", ")))},vD=function(t,n,a,l,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qt={required:P8,whitespace:uD,type:dD,range:fD,enum:pD,pattern:vD},hD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n,"string")&&!t.required)return a();Qt.required(t,n,l,r,o,"string"),Fn(n,"string")||(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o),Qt.pattern(t,n,l,r,o),t.whitespace===!0&&Qt.whitespace(t,n,l,r,o))}a(r)},mD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},gD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},yD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},bD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),Fn(n)||Qt.type(t,n,l,r,o)}a(r)},wD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},CD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},_D=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Qt.required(t,n,l,r,o,"array"),n!=null&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},SD=function(t,n,a,l,o){var Line truncated
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const j0="_Mousewheel",mm=function(e,t){if(e&&e.addEventListener){fy(e);const n=function(a){const l=nK(a);t&&Reflect.apply(t,this,[a,l])};e[j0]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},fy=e=>{var t;(t=e._Mousewheel)!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[j0].wheelHandler),e[j0]=null)},gm={beforeMount(e,t){mm(e,t.value)},unmounted(e){fy(e)},updated(e,t){t.value!==t.oldValue&&mm(e,t.value)}},aK=xe({...ny,datetimeRole:String,parsedValue:{type:Z(Object)}}),py=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(p=>{if(d[p]){let g;const v=d[p];switch(p){case"minute":g=v(f.hour(),s,c);break;case"second":g=v(f.hour(),f.minute(),s,c);break;default:g=v(s,c);break}if(g!=null&&g.length&&!g.includes(f[p]())){const m=u?0:g.length-1;f=f[p](g[m])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([r,s])=>{l[r]=s}}},Nf=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},vy=(e,t,n)=>({getHoursList:(r,s)=>$f(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>$f(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>$f(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),hy=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:o}=vy(e,t,n);return{getAvailableHours:(c,d)=>Nf(a(c,d)),getAvailableMinutes:(c,d,f)=>Nf(l(c,d,f)),getAvailableSeconds:(c,d,f,p)=>Nf(o(c,d,f,p))}},my=(e,t)=>{const n=L(e.parsedValue);return fe(()=>e.visible,a=>{const l=En(t.modelValue),o=En(t.valueOnClear);if(a&&l===o){n.value=o;return}a||(n.value=e.parsedValue)}),n},lK=xe({role:{type:String,required:!0},spinnerDate:{type:Z(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Z(String),default:""},...Kp}),oK=["onClick"],rK=["onMouseenter"];var sK=D({__name:"basic-time-spinner",props:lK,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:l,saveOnBlur:o}=Ie(Dl).props,r=t,s=ye("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=vy(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},g=L(),v={hours:L(),minutes:L(),seconds:L()},m=S(()=>n.showSeconds?om:om.slice(0,2)),h=S(()=>{const{spinnerDate:j}=n;return{hours:j.hour(),minutes:j.minute(),seconds:j.second()}}),y=S(()=>{const{hours:j,minutes:G}=i(h),{role:ee,spinnerDate:le}=n,ne=a?void 0:le;return{hours:u(ee,ne),minutes:c(j,ee,ne),seconds:d(j,G,ee,ne)}}),b=S(()=>{const{hours:j,minutes:G,seconds:ee}=i(h);return{hours:Of(j,23),minutes:Of(G,59),seconds:Of(ee,59)}}),C=Rl(j=>{f=!1,k(j)},200),_=j=>{if(!n.amPmMode)return"";const G=n.amPmMode==="A";let ee=j<12?" am":" pm";return G&&(ee=ee.toUpperCase()),ee},x=j=>{let G=[0,0];const ee=l||"HH:mm:ss",le=ee.indexOf("HH"),ne=ee.indexOf("mm"),se=ee.indexOf("ss");switch(j){case"hours":le!==-1&&(G=[le,le+2]);break;case"minutes":ne!==-1&&(G=[ne,ne+2]);break;case"seconds":se!==-1&&(G=[se,se+2]);break}const[J,de]=G;r("select-range",J,de),g.value=j},k=j=>{O(j,i(h)[j])},E=()=>{k("hours"),k("minutes"),k("seconds")},T=j=>j.querySelector(`.${s.namespace.value}-scrollbar__wrap`),O=(j,G)=>{if(n.arrowControl)return;const ee=i(v[j]);ee&&ee.$el&&(o||(p[j]=!0,xa(()=>{p[j]=!1})),T(ee.$el).scrollTop=Math.max(0,G*N(j)))},N=j=>{var ee;const G=(ee=i(v[j]))==null?void 0:ee.$el.querySelector("li");return G&&Number.parseFloat(Gl(G,"height"))||0},P=()=>{B(1)},A=()=>{B(-1)},B=j=>{g.value||x("hours");const G=g.value,ee=i(h)[G],le=q(G,ee,j,g.value==="hours"?24:60);W(G,le),O(G,le),Pe(()=>x(G))},q=(j,G,ee,le)=>{let ne=(G+ee+le)%le;const se=i(y)[j];for(;se[ne]&&ne!==G;)ne=(ne+ee+le)%le;return ne},W=(j,G)=>{if(i(y)[j][G])return;const{hours:ee,minutes:le,seconds:ne}=i(h);let se;switch(j){case"hours":se=n.spinnerDate.hour(G).minute(le).second(ne);break;case"minutes":se=n.spinnerDate.hour(ee).minute(G).second(ne);break;case"seconds":se=n.spinnerDate.hour(ee).minute(le).second(G);break}r(yt,se)},H=(j,{value:G,disabled:ee})=>{ee||(W(j,G),x(j),O(j,G))},V=j=>{if(!o&&p[j])return;const G=i(v[j]);G&&(f=!0,C(j),W(j,Math.min(Math.round((T(G.$el).scrollTop-(I(j)*.5-10)/N(j)+3)/N(j)),j==="hours"?23:59)))},I=j=>i(v[j]).$el.offsetHeight,F=()=>{const j=G=>{const ee=i(v[G]);ee&&ee.$el&&(T(ee.$el).onscroll=()=>{V(G)})};j("hours"),j("minutes"),j("seconds")};gt(()=>{Pe(()=>{!n.arrowControl&&F(),E(),n.role==="start"&&x("hours")})});const K=(j,G)=>{v[G].value=j??void 0};return r("set-option",[`${n.role}_scrollDown`,B]),r("set-option",[`${n.role}_emitSelectRange`,x]),fe(()=>n.spinnerDate,()=>{f||E()}),(j,G)=>(w(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":j.showSeconds}])},[j.arrowControl?re("v-if",!0):(w(!0),$(Ke,{key:0},_t(m.value,ee=>(w(),ue(i(sl),{key:ee,ref_for:!0,ref:le=>K(le,ee),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:le=>x(ee),onMousemove:le=>k(ee)},{default:ae(()=>[(w(!0),$(KLine truncated
You should set
width/height
to number when your layout is
horizontal/vertical
`);const c=Math.max(0,t*n-u),d=Math.min(c,o*n),f=Math.max(0,(o+1)*n-u);switch(r==="smart"&&(s>=f-u&&s<=d+u?r=Fa:r=xl),r){case Ki:return d;case"end":return f;case xl:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case Fa:default:return s>=f&&s<=d?s:s<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},o,r)=>{const s=o*n,u=ji(a)?l:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),HW="ElDynamicSizeList",Jr=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const s=l[o];r=s.offset+s.size}for(let s=o+1;s<=t;s++){const u=a(s);l[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return l[t]},FW=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?Iy(e,t,0,l,n):KW(e,t,Math.max(0,l),n)},Iy=(e,t,n,a,l)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),r=Jr(e,o,t).offset;if(r===l)return o;r<l?n=o+1:r>l&&(a=o-1)}return Math.max(0,n-1)},KW=(e,t,n,a)=>{const{total:l}=e;let o=1;for(;n<l&&Jr(e,n,t).offset<a;)n+=o,o*=2;return Iy(e,t,Math.floor(n/2),Math.min(n,l-1),a)},Em=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let l=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},WW=Py({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Jr(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Em,getOffset:(e,t,n,a,l)=>{const{height:o,layout:r,width:s}=e,u=ji(r)?s:o,c=Jr(e,t,l),d=Em(e,l),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=Fa:n=xl),n){case Ki:return f;case"end":return p;case xl:return Math.round(p+(f-p)/2);case Fa:default:return a>=p&&a<=f?a:a<p?p:f}},getStartIndexForOffset:(e,t,n)=>FW(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:o,layout:r,width:s}=e,u=ji(r)?s:l,c=Jr(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p<o-1&&f<d;)p++,f+=Jr(e,p,a).size;return p},initCache({estimatedItemSize:e=50},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,l=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),l&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&rn(HW,`
itemSize is required as function, but the given value was ${typeof e}
`)}}),jW=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let o=null,r=0,s=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return p||g};return{hasReachedEdge:u,onWheel:d=>{ll(o);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=p,d.preventDefault(),o=xa(()=>{l(r,s),r=0,s=0})}}},qW=(e,t,n,a,l,o,r)=>{const s=L(0),u=L(0);let c,d=0,f=0;const p=v=>{ll(c),s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,d=0,f=0},g=v=>{v.preventDefault(),ll(c),d+=s.value-v.touches[0].clientX,f+=u.value-v.touches[0].clientY,s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,c=xa(()=>{const m=a.value-i(o),h=l.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,m),scrollTop:Math.min(t.value.scrollTop+f,h)}),d=0,f=0})};return zt(e,"touchstart",p,{passive:!0}),zt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:p,handleTouchMove:g}},Vy=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:g,validateProps:v})=>D({name:e??"ElVirtualList",props:yr,emits:[Hc,Fc],setup(m,{emit:h,expose:y,slots:b}){const C=ye("vl");v(m);const _=mt(),x=L(p(m,_));g==null||g(_,x);const k=L(),E=L(),T=L(),O=L(),N=L({isScrolling:!1,scrollLeft:He(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:He(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Kc,yAxisScrollDir:Kc}),P=Ay(),A=S(()=>Number.parseInt(`${m.height}`,10)),B=S(()=>Number.parseInt(`${m.width}`,10)),q=S(()=>{const{totalColumn:we,totalRow:Ee,columnCache:be}=m,{isScrolling:Ne,xAxisScrollDir:ze,scrollLeft:Ze}=i(N);if(we===0||Ee===0)return[0,0,0,0];const et=a(m,Ze,i(x)),at=l(m,et,Ze,i(x)),nt=!Ne||ze==="backward"?Math.max(1,be):1,Nt=!Ne||ze==="forward"?Math.max(1,be):1;return[Math.max(0,et-nt),Math.max(0,Math.min(we-1,at+Nt)),et,at]}),W=S(()=>{const{totalColumn:we,totalRow:Ee,rowCache:be}=m,{isScrolling:Ne,yAxisScrollDir:ze,scrollTop:Ze}=i(N);if(we===0||Ee===0)return[0,0,0,0];const et=d(m,Ze,i(x)),at=f(m,et,Ze,i(x)),nt=!Ne||ze==="backward"?Math.max(1,be):1,Nt=!Ne||ze==="forward"?Math.max(1,be):1;return[Math.max(0,et-nt),Math.max(0,Math.min(Ee-1,at+Nt)),et,at]}),H=S(()=>o(m,i(x))),V=S(()=>r(m,i(x))),I=S(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:He(m.height)?`${m.height}px`:m.height,width:He(m.width)?`${m.width}px`:m.width},m.style??{}]),F=S(()=>{const we=`${i(V)}px`;return{height:`${i(H)}px`,pointerEvents:i(N).isScrolling?"none":void 0,width:we,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:we,totalRow:Ee}=m;if(we>0&&Ee>0){const[at,nt,Nt,Bt]=i(q),[$t,Ue,pt,me]=i(W);h(Hc,{columnCacheStart:at,columnCacheEnd:nt,rowCacheStart:$t,rowCacheEnd:Ue,columnVisibleStart:Nt,columnVisibleEnd:Bt,rowVisibleStart:pt,rowVisibleEnd:me})}const{scrollLeft:be,scrollTop:Ne,updateRequested:ze,xAxisScrollDir:Ze,yAxisScrollDir:et}=i(N);h(Fc,{xAxisScrollDir:Ze,scrollLeft:be,yAxisScrollDir:et,scrollTop:Ne,updateRequested:ze})},j=we=>{const{clientHeight:Ee,clientWidth:be,scrollHeight:Ne,scrollLeft:ze,scrollTop:Ze,scrollWidth:et}=we.currentTarget,at=i(N);if(at.scrollTop===Ze&&at.scrollLeft===ze)return;let nt=ze;if(xm(m.direction))switch(jc()){case Wi:nt=-ze;break;case Gp:nt=et-be-ze;break}N.value={...at,isScrolling:!0,scrollLeft:nt,scrollTop:Math.max(0,Math.min(Ze,Ne-Ee)),updateRequested:!0,xAxisScrollDir:ri(at.scrollLeft,nt),yAxisScrollDir:ri(at.scrollTop,Ze)},Pe(()=>z()),Y(),K()},G=(we,Ee)=>{const be=i(A),Ne=(H.value-be)/Ee*we;ne({scrollTop:Math.min(H.value-be,Ne)})},ee=(we,Ee)=>{const be=i(B),Ne=(V.value-be)/Ee*we;ne({scrollLeft:Math.min(V.value-be,Ne)})},{onWheel:le}=jW({atXStartEdge:S(()=>N.value.scrollLeft<=0),atXEndEdge:S(()=>N.value.scrollLeft>=V.value-i(B)),atYStartEdge:S(()=>N.value.scrollTop<=0),atYEndEdge:S(()=>N.value.scrollTop>=H.value-i(A))},(we,Ee)=>{var ze,Ze,et,at;(Ze=(ze=E.value)==null?void 0:ze.onMouseUp)==null||Ze.call(ze),(at=(et=T.value)==null?void 0:et.onMouseUp)==null||at.call(et);const be=i(B),Ne=i(A);ne({scrollLeft:Math.min(N.value.scrollLeft+we,V.value-be),scrollTop:Math.min(N.value.scrollTop+Ee,H.value-Ne)})});zt(k,"wheel",le,{passive:!1});const ne=({scrollLeft:we=N.value.scrollLeft,scrollTop:Ee=N.value.scrollTop})=>{we=Math.max(we,0),Ee=Math.max(Ee,0);const be=i(N);Ee===be.scrollTop&&we===be.scrollLeft||(N.value={...be,xAxisScrollDir:ri(be.scrollLeft,we),yAxisScrollDir:ri(be.scrollTop,Ee),scrollLeft:we,scrollTop:Ee,updateRequested:!0},Pe(()=>z()),Y(),K())},{touchStartX:se,touchStartY:J,handleTouchStart:de,handleTouchMove:ie}=qW(k,N,ne,V,H,B,A),U=(we=0,Ee=0,be=Fa)=>{const Ne=i(N);Ee=Math.max(0,Math.min(Ee,m.totalColumn-1)),we=Math.max(0,Math.min(we,m.total Line truncated
"columnWidth" must be passed as number,
instead ${typeof e} was given.
`),He(t)||rn(Mm,`
"columnWidth" must be passed as number,
instead ${typeof t} was given.
`)}}),{max:qc,min:Ly,floor:By}=Math,Tm="ElDynamicSizeGrid",YW={column:"columnWidth",row:"rowHeight"},e2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},ql=(e,t,n,a)=>{const[l,o,r]=[n[a],e[YW[a]],n[e2[a]]];if(t>r){let s=0;if(r>=0){const u=l[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=o(u);l[u]={offset:s,size:c},s+=c}n[e2[a]]=t}return l[t]},zy=(e,t,n,a,l,o)=>{for(;n<=a;){const r=n+By((a-n)/2),s=ql(e,r,t,o).offset;if(s===l)return r;s<l?n=r+1:a=r-1}return qc(0,n-1)},GW=(e,t,n,a,l)=>{const o=l==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&ql(e,n,t,l).offset<a;)n+=r,r*=2;return zy(e,t,By(n/2),Ly(n,o-1),a,l)},Om=(e,t,n,a)=>{const[l,o]=[t[a],t[e2[a]]];return(o>0?l[o].offset:0)>=n?zy(e,t,0,o,n,a):GW(e,t,qc(0,o),n,a)},Dy=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];l=r.offset+r.size}const o=(e-n-1)*t;return l+o},Hy=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},XW={column:Hy,row:Dy},$m=(e,t,n,a,l,o,r)=>{const[s,u]=[o==="row"?e.height:e.width,XW[o]],c=ql(e,t,l,o),d=qc(0,Ly(u(e,l)-s,c.offset)),f=qc(0,c.offset-s+r+c.size);switch(n==="smart"&&(a>=f-s&&a<=d+s?n=Fa:n=xl),n){case Ki:return d;case"end":return f;case xl:return Math.round(f+(d-f)/2);case Fa:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},ZW=Vy({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=ql(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=ql(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,o)=>$m(e,t,n,a,l,"column",o),getRowOffset:(e,t,n,a,l,o)=>$m(e,t,n,a,l,"row",o),getColumnStartIndexForOffset:(e,t,n)=>Om(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=ql(e,t,a,"column"),o=n+e.width;let r=l.offset+l.size,s=t;for(;s<e.totalColumn-1&&r<o;)s++,r+=ql(e,t,a,"column").size;return s},getEstimatedTotalHeight:Dy,getEstimatedTotalWidth:Hy,getRowStartIndexForOffset:(e,t,n)=>Om(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:o}=e,r=ql(e,t,a,"row"),s=n+o;let u=r.size+r.offset,c=t;for(;c<l-1&&u<s;)c++,u+=ql(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},s)=>{var u,c;s=Et(s)?!0:s,He(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(o,r)=>{n({columnIndex:o},r)},l=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{We(e)||rn(Tm,`
"columnWidth" must be passed as function,
instead ${typeof e} was given.
`),We(t)||rn(Tm,`
"rowHeight" must be passed as function,
instead ${typeof t} was given.
`)}}),Fy={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:An,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},Ky={[lt]:e=>Le(e)||He(e)||qt(e),change:e=>Le(e)||He(e)||qt(e)},zs=Symbol("checkboxGroupContextKey"),JW=xe({modelValue:{type:Z(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:An,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Z(Array)},props:{type:Z(Object),default:()=>Wy},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),QW={[lt]:e=>Ce(e),change:e=>Ce(e)},Wy={label:"label",value:"value",disabled:"disabled"},ej=({model:e,isChecked:t})=>{const n=Ie(zs,void 0),a=Ie(Vr,void 0),l=S(()=>{var s,u;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Et(o)&&e.value.length>=o&&!t.value||!Et(r)&&e.value.length<=r&&t.value});return{isDisabled:un(S(()=>{var o;return n===void 0?(a==null?void 0:a.disabled)??l.value:((o=n.disabled)==null?void 0:o.value)||l.value})),isLimitDisabled:l}},tj=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:o})=>{const r=Ie(zs,void 0),{formItem:s}=zn(),{emit:u}=mt();function c(v){return[!0,e.trueValue,e.trueLabel].includes(v)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(v,m){u(yt,c(v),m)}function f(v){if(n.value)return;const m=v.target;u(yt,c(m.checked),v)}async function p(v){n.value||!a.value&&!l.value&&o.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Pe(),d(t.value,v)))}const g=S(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(ft))}),{handleChange:f,onClickRoot:p}},nj=e=>{const t=L(!1),{emit:n,vnode:a}=mt(),l=Ie(zs,void 0),o=S(()=>Et(l)===!1),r=L(!1),s=S(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=S({get(){var c;return o.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;o.value&&Ce(c)?(r.value=((d=l==null?void 0:l.max)==null?void 0:d.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>u.value.length,r.value===!1&&((f=l==null?void 0:l.changeEvent)==null||f.call(l,c))):(n(lt,c),t.value=c)}});return{model:u,isGroup:o,isLimitExceeded:r}},aj=(e,t,{model:n})=>{const a=Ie(zs,void 0),l=L(!1),o=S(()=>Oa(e.value)?e.label:e.value),r=S(()=>{const s=n.value;return qt(s)?s:Ce(s)?ot(o.value)?s.map(Zt).some(u=>dn(u,o.value)):s.map(Zt).includes(o.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:$n(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:$n(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:S(()=>!!t.default||!Oa(o.value)),actualValue:o}},jy=(e,t)=>{const{formItem:n}=zn(),{model:a,isGroup:l,isLimitExceeded:o}=nj(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=aj(e,t,{model:a}),{isDisabled:p}=ej({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:v}=ka(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:m,onClickRoot:h}=tj(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:v});return(()=>{function b(){Ce(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),kl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>l.value&&Oa(e.value))),kl({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.trueLabel)),kl({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:v,isChecked:s,isDisabled:p,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:m,onClickRoot:h}},lj=["id","indeterminate","name","tabindex","disabled"];var oj=D({name:"ElCheckbox",__name:"checkbox",props:Fy,emits:Ky,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:l,isDisabled:o,isFocused:r,checkboxSize:s,hasOwnLabel:u,mode Line truncated
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),N[2]||(N[2]=M("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(w(),ue(i(De),{key:2,class:R(i(o).e("prefix"))},{default:ae(()=>[Q(i(Tr))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(Sj),{node:e.node},null,8,["node"]),re(" postfix "),p.value?re("v-if",!0):(w(),$(Ke,{key:3},[e.node.loading?(w(),ue(i(De),{key:0,class:R([i(o).is("loading"),i(o).e("postfix")])},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"])):(w(),ue(i(De),{key:1,class:R(["arrow-right",i(o).e("postfix")])},{default:ae(()=>[Q(i(Zn))]),_:1},8,["class"]))],64))],42,xj))}}),Nm=kj,Ej=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=mt(),l=ye("cascader-menu"),{t:o}=xt(),r=Gn();let s,u;const c=Ie(qd),d=L(),f=L(),p=S(()=>!n.nodes.length),g=S(()=>!c.initialLoaded),v=S(()=>`${r.value}-${n.index}`),m=()=>{var T,O,N,P;let E;if(c.expandingNode){const{level:A,pathNodes:B}=c.expandingNode;n.index<A?E=(T=B[n.index])==null?void 0:T.uid:n.index===A&&c.checkedNodes.length>0&&(E=(N=(O=c.checkedNodes[0])==null?void 0:O.pathNodes[n.index])==null?void 0:N.uid)}else c.checkedNodes.length>0&&n.index<c.checkedNodes[0].pathNodes.length&&(E=(P=c.checkedNodes[0].pathNodes[n.index])==null?void 0:P.uid);return E!==void 0?n.nodes.findIndex(A=>A.uid===E):-1},h=E=>E?n.nodes.findIndex(T=>`${v.value}-${T.uid}`===E):-1,y=E=>{var O;const T=wa(E,0,n.nodes.length-1);(O=f.value)==null||O.scrollToItem(T)},b=E=>{if(!n.nodes.length)return;const T=wa(E,0,n.nodes.length-1);y(T),Pe(()=>{var N;const O=(N=a.vnode.el)==null?void 0:N.querySelector(`#${v.value}-${n.nodes[T].uid}`);O&&rs(O)})},C=E=>{s=E.target},_=E=>{var T,O,N;if(!(!c.isHoverMenu||!s||!d.value))if(s.contains(E.target)){x();const P=a.vnode.el,{left:A}=P.getBoundingClientRect(),{offsetWidth:B,offsetHeight:q}=P,W=E.clientX-A,H=s.offsetTop,V=H+s.offsetHeight,I=n.virtualScroll?((O=(T=f.value)==null?void 0:T.states)==null?void 0:O.scrollOffset)||0:((N=P.querySelector(`.${l.e("wrap")}`))==null?void 0:N.scrollTop)||0;d.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${H} L${B} ${I} V${H} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${V} L${B} ${q+I} V${V} Z" />
`}else u||(u=window.setTimeout(k,c.config.hoverThreshold))},x=()=>{u&&(clearTimeout(u),u=void 0)},k=()=>{d.value&&(d.value.innerHTML="",x())};return t({getActiveNodeIndex:m,getNodeIndexById:h,scrollToItem:y,focusNodeAt:b,virtualListRef:f,get $el(){return a.vnode.el}}),(E,T)=>{var O;return e.virtualScroll?(w(),$("div",{key:v.value,class:R(i(l).b()),onMousemove:_,onMouseleave:k},[Q(i(jd),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(l).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(l).is("empty",p.value)}},{default:ae(({data:N,index:P,style:A})=>[(w(),ue(Nm,{key:N[P].uid,node:N[P],"menu-id":v.value,style:je(A),onExpand:C},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),g.value?(w(),$("div",{key:0,class:R(i(l).e("empty-text"))},[Q(i(De),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"]),bt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),$("div",{key:1,class:R(i(l).e("empty-text"))},[oe(E.$slots,"empty",{},()=>[bt(Se(i(o)("el.cascader.noData")),1)])],2)):(O=i(c))!=null&&O.isHoverMenu?(w(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(w(),$("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")],34)):(w(),ue(i(sl),{key:v.value,tag:"ul",role:"menu",class:R(i(l).b()),"wrap-class":i(l).e("wrap"),"view-class":[i(l).e("list"),i(l).is("empty",p.value)],onMousemove:_,onMouseleave:k},{default:ae(()=>{var N;return[(w(!0),$(Ke,null,_t(e.nodes,P=>(w(),ue(Nm,{key:P.uid,node:P,"menu-id":v.value,onExpand:C},null,8,["node","menu-id"]))),128)),g.value?(w(),$("div",{key:0,class:R(i(l).e("empty-text"))},[Q(i(De),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"]),bt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),$("div",{key:1,class:R(i(l).e("empty-text"))},[oe(E.$slots,"empty",{},()=>[bt(Se(i(o)("el.cascader.noData")),1)])],2)):(N=i(c))!=null&&N.isHoverMenu?(w(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(w(),$("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),Mj=Ej;let Tj=0;const Oj=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var t2=class n2{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=Tj++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:r,children:s}=n,u=t[s],c=Oj(this);this.level=l?0:a?a.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new n2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!va(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:o}=a;return(We(l)?l(t,this):!!t[l])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:o,leaf:r}=n,s=We(r)?r(t,this):t[r];return Et(s)?o&&!l?!1:!(Ce(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new n2(t,this.config,this);return Ce(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,o)=>l+(o.checked?1:o.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const a2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(a2(a.children,t))),n),[]);var Am=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new t2(a,this.config));this.nodes=n,this.allNodes=a2(n,!1),this.leafNodes=a2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new t2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.child Line truncated
M 50 50
m 0 ${_?"":"-"}${C}
a ${C} ${C} 0 1 1 0 ${_?"-":""}${C*2}
a ${C} ${C} 0 1 1 0 ${_?"":"-"}${C*2}
`}),u=S(()=>2*Math.PI*r.value),c=S(()=>n.type==="dashboard"?.75:1),d=S(()=>`${-1*u.value*(1-c.value)/2}px`),f=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=S(()=>{let C;return n.color?C=b(n.percentage):C=t[n.status]||t.default,C}),v=S(()=>n.status==="warning"?Cu:n.type==="line"?n.status==="success"?Dd:vl:n.status==="success"?Tr:Va),m=S(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),h=S(()=>n.format(n.percentage));function y(C){const _=100/C.length;return C.map((x,k)=>Le(x)?{color:x,percentage:(k+1)*_}:x).sort((x,k)=>x.percentage-k.percentage)}const b=C=>{var x;const{color:_}=n;if(We(_))return _(C);if(Le(_))return _;{const k=y(_);for(const E of k)if(E.percentage>C)return E.color;return(x=k[k.length-1])==null?void 0:x.color}};return(C,_)=>(w(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(w(),$("div",{key:0,class:R(i(a).b("bar"))},[M("div",{class:R(i(a).be("bar","outer")),style:je({height:`${e.strokeWidth}px`})},[M("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:je(l.value)},[(e.showText||C.$slots.default)&&e.textInside?(w(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(C.$slots,"default",{percentage:e.percentage},()=>[M("span",null,Se(h.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(w(),$("div",{key:1,class:R(i(a).b("circle")),style:je({height:`${e.width}px`,width:`${e.width}px`})},[(w(),$("svg",GJ,[M("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:je(f.value)},null,14,XJ),M("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:je(p.value)},null,14,ZJ)]))],6)),(e.showText||C.$slots.default)&&!e.textInside?(w(),$("div",{key:2,class:R(i(a).e("text")),style:je({fontSize:`${m.value}px`})},[oe(C.$slots,"default",{percentage:e.percentage},()=>[e.status?(w(),ue(i(De),{key:1},{default:ae(()=>[(w(),ue(dt(v.value)))]),_:1})):(w(),$("span",JJ,Se(h.value),1))])],6)):re("v-if",!0)],10,YJ))}}),eQ=QJ;const Zb=it(eQ),tQ=xe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Z([Array,Object]),default:()=>fn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Z([Array,Object]),default:()=>[li,li,li]},voidIcon:{type:Yt,default:()=>_8},disabledVoidIcon:{type:Yt,default:()=>li},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Z(Array),default:()=>fn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:An,clearable:Boolean,...ia(["ariaLabel"])}),nQ={[yt]:e=>He(e),[lt]:e=>He(e)},aQ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],lQ=["onMousemove","onClick"];var oQ=D({name:"ElRate",__name:"rate",props:tQ,emits:nQ,setup(e,{expose:t,emit:n}){function a(I,F){const K=G=>ot(G),j=F[Object.keys(F).map(G=>+G).filter(G=>{const ee=F[G];return K(ee)&&ee.excluded?I<G:I<=G}).sort((G,ee)=>G-ee)[0]];return K(j)&&j.value||j}const l=e,o=n,r=Ie(Vl,void 0),s=$n(),u=ye("rate"),{inputId:c,isLabeledByFormItem:d}=ka(l,{formItemContext:r}),f=L(wa(l.modelValue,0,l.max)),p=L(-1),g=L(!0),v=L([]),m=S(()=>v.value.map(I=>I.$el.clientWidth)),h=S(()=>[u.b(),u.m(s.value)]),y=un(),b=S(()=>u.cssVarBlock({"void-color":l.voidColor,"disabled-void-color":l.disabledVoidColor,"fill-color":k.value})),C=S(()=>{let I="";return l.showScore?I=l.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${l.modelValue}`:`${f.value}`):l.showText&&(I=l.texts[Math.ceil(f.value)-1]),I}),_=S(()=>l.modelValue*100-Math.floor(l.modelValue)*100),x=S(()=>Ce(l.colors)?{[l.lowThreshold]:l.colors[0],[l.highThreshold]:{value:l.colors[1],excluded:!0},[l.max]:l.colors[2]}:l.colors),k=S(()=>{const I=a(f.value,x.value);return ot(I)?"":I}),E=S(()=>{let I="";return y.value?I=`${_.value}%`:l.allowHalf&&(I="50%"),{color:k.value,width:I}}),T=S(()=>{let I=Ce(l.icons)?[...l.icons]:{...l.icons};return I=Ka(I),Ce(I)?{[l.lowThreshold]:I[0],[l.highThreshold]:{value:I[1],excluded:!0},[l.max]:I[2]}:I}),O=S(()=>a(l.modelValue,T.value)),N=S(()=>y.value?Le(l.d Line truncated
`||c==="\r")){r=u;continue}if(o.includes(c)){const d=r===-1?a:r;s={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},_oe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),o.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),v=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),m=v+Number.parseInt(u.lineHeight);g>m?s.lineHeight=`${g-v}px`:g===m?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[p]=u[p]}),Ad()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,l)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Soe=xe({...zp,options:{type:Z(Array),default:()=>[]},prefix:{type:Z([String,Array]),default:"@",validator:e=>Le(e)?e.length===1:e.every(t=>Le(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:Z([Boolean,Function]),default:()=>woe,validator:e=>e===!1?!0:We(e)},placement:{type:Z(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Z(Function)},modelValue:String,loading:Boolean,popperClass:jt.popperClass,popperStyle:jt.popperStyle,popperOptions:{type:Z(Object),default:()=>({})},props:{type:Z(Object),default:()=>Zw}}),xoe={[lt]:e=>Le(e),"whole-remove":(e,t)=>Le(e)&&Le(t),input:e=>Le(e),search:(e,t)=>Le(e)&&Le(t),select:(e,t)=>ot(e)&&Le(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Zw={value:"value",label:"label",disabled:"disabled"},koe=xe({options:{type:Z(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Eoe={select:e=>Le(e.value)},Moe=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Toe=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:koe,emits:Eoe,setup(e,{expose:t,emit:n}){const a=e,l=n,o=ye("mention"),{t:r}=xt(),s=L(-1),u=L(),c=L(),d=L(),f=(_,x)=>[o.be("dropdown","item"),o.is("hovering",s.value===x),o.is("disabled",_.disabled||a.disabled)],p=_=>{_.disabled||a.disabled||l("select",_)},g=_=>{s.value=_},v=S(()=>a.disabled||a.options.every(_=>_.disabled)),m=S(()=>a.options[s.value]),h=()=>{!m.value||m.value.disabled||a.disabled||l("select",m.value)},y=_=>{const{options:x}=a;if(x.length===0||v.value)return;_==="next"?(s.value++,s.value===x.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=x.length-1));const k=x[s.value];if(k.disabled){y(_);return}Pe(()=>b(k))},b=_=>{var T,O,N,P;const{options:x}=a,k=x.findIndex(A=>A.value===_.value),E=(T=c.value)==null?void 0:T[k];if(E){const A=(N=(O=d.value)==null?void 0:O.querySelector)==null?void 0:N.call(O,`.${o.be("dropdown","wrap")}`);A&&pp(A,E)}(P=u.value)==null||P.handleScroll()};return fe(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(_=>!_.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:h,hoverOption:m}),(_,x)=>(w(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(o).b("dropdown"))},[_.$slots.header?(w(),$("div",{key:0,class:R(i(o).be("dropdown","header"))},[oe(_.$slots,"header")],2)):re("v-if",!0),vt(Q(i(sl),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(o).be("dropdown","wrap"),"view-class":i(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(w(!0),$(Ke,null,_t(e.options,(k Line truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Zr=typeof document<"u";function r5(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vse(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&r5(e.default)}const on=Object.assign;function Yf(e,t){const n={};for(const a in t){const l=t[a];n[a]=il(l)?l.map(e):e(l)}return n}const Si=()=>{},il=Array.isArray;function kg(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const s5=/#/g,hse=/&/g,mse=/\//g,gse=/=/g,yse=/\?/g,i5=/\+/g,bse=/%5B/g,wse=/%5D/g,u5=/%5E/g,Cse=/%60/g,c5=/%7B/g,_se=/%7C/g,d5=/%7D/g,Sse=/%20/g;function Lv(e){return e==null?"":encodeURI(""+e).replace(_se,"|").replace(bse,"[").replace(wse,"]")}function xse(e){return Lv(e).replace(c5,"{").replace(d5,"}").replace(u5,"^")}function b2(e){return Lv(e).replace(i5,"%2B").replace(Sse,"+").replace(s5,"%23").replace(hse,"%26").replace(Cse,"`").replace(c5,"{").replace(d5,"}").replace(u5,"^")}function kse(e){return b2(e).replace(gse,"%3D")}function Ese(e){return Lv(e).replace(s5,"%23").replace(yse,"%3F")}function Mse(e){return Ese(e).replace(mse,"%2F")}function Zi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Tse=/\/$/,Ose=e=>e.replace(Tse,"");function Gf(e,t,n="/"){let a,l={},o="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),o=t.slice(u,s>0?s:t.length),l=e(o.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=Rse(a??t,n),{fullPath:a+o+r,path:a,query:l,hash:Zi(r)}}function $se(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Eg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Nse(e,t,n){const a=t.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&Ts(t.matched[a],n.matched[l])&&f5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ts(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function f5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ase(e[n],t[n]))return!1;return!0}function Ase(e,t){return il(e)?Mg(e,t):il(t)?Mg(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Mg(e,t){return il(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Rse(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),l=a[a.length-1];(l===".."||l===".")&&a.push("");let o=n.length-1,r,s;for(r=0;r<a.length;r++)if(s=a[r],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+a.slice(r).join("/")}const ko={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let w2=function(e){return e.pop="pop",e.push="push",e}({}),Xf=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Pse(e){if(!e)if(Zr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ose(e)}const Ise=/^[^#]+#/;function Vse(e,t){return e.replace(Ise,"#")+t}function Lse(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Jd=()=>({left:window.scrollX,top:window.scrollY});function Bse(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=Lse(l,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 Tg(e,t){return(history.state?history.state.position-t:-1)+e}const C2=new Map;function zse(e,t){C2.set(e,t)}function Dse(e){const t=C2.get(e);return C2.delete(e),t}function Hse(e){return typeof e=="string"||e&&typeof e=="object"}function p5(e){return typeof e=="string"||typeof e=="symbol"}let Nn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const v5=Symbol("");Nn.MATCHER_NOT_FOUND+"",Nn.NAVIGATION_GUARD_REDIRECT+"",Nn.NAVIGATION_ABORTED+"",Nn.NAVIGATION_CANCELLED+"",Nn.NAVIGATION_DUPLICATED+"";function Os(e,t){return on(new Error,{type:e,[v5]:!0},t)}function Kl(e,t){return e instanceof Error&&v5 in e&&(t==null||!!(e.type&t))}const Fse=["params","query","hash"];function Kse(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Fse)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Wse(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const l=n[a].replace(i5," "),o=l.indexOf("="),r=Zi(o<0?l:l.slice(0,o)),s=o<0?null:Zi(l.slice(o+1));if(r in t){let uLine truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Yse=()=>location.protocol+"//"+location.host;function h5(e,t){const{pathname:n,search:a,hash:l}=t,o=e.indexOf("#");if(o>-1){let r=l.includes(e.slice(o))?e.slice(o).length:1,s=l.slice(r);return s[0]!=="/"&&(s="/"+s),Eg(s,"")}return Eg(n,e)+a+l}function Gse(e,t,n,a){let l=[],o=[],r=null;const s=({state:p})=>{const g=h5(e,location),v=n.value,m=t.value;let h=0;if(p){if(n.value=g,t.value=p,r&&r===v){r=null;return}h=m?p.position-m.position:0}else a(g);l.forEach(y=>{y(n.value,v,{delta:h,type:w2.pop,direction:h?h>0?Xf.forward:Xf.back:Xf.unknown})})};function u(){r=n.value}function c(p){l.push(p);const g=()=>{const v=l.indexOf(p);v>-1&&l.splice(v,1)};return o.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(on({},p.state,{scroll:Jd()}),"")}}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function Ng(e,t,n,a=!1,l=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:l?Jd():null}}function Xse(e){const{history:t,location:n}=window,a={value:h5(e,n)},l={value:t.state};l.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:Yse()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),l.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function r(u,c){o(u,on({},t.state,Ng(l.value.back,u,l.value.forward,!0),c,{position:l.value.position}),!0),a.value=u}function s(u,c){const d=on({},l.value,t.state,{forward:u,scroll:Jd()});o(d.current,d,!0),o(u,on({},Ng(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:l,push:s,replace:r}}function Zse(e){e=Pse(e);const t=Xse(e),n=Gse(e,t.state,t.location,t.replace);function a(o,r=!0){r||n.pauseListeners(),history.go(o)}const l=on({location:"",base:e,go:a,createHref:Vse.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function Jse(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zse(e)}let fr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Dn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Dn||{});const Qse={type:fr.Static,value:""},eie=/[a-zA-Z0-9_]/;function tie(e){if(!e)return[[]];if(e==="/")return[[Qse]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=Dn.Static,a=n;const l=[];let o;function r(){o&&l.push(o),o=[]}let s=0,u,c="",d="";function f(){c&&(n===Dn.Static?o.push({type:fr.Static,value:c}):n===Dn.Param||n===Dn.ParamRegExp||n===Dn.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:fr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&n!==Dn.ParamRegExp){a=n,n=Dn.EscapeNext;continue}switch(n){case Dn.Static:u==="/"?(c&&f(),r()):u===":"?(f(),n=Dn.Param):p();break;case Dn.EscapeNext:p(),n=a;break;case Dn.Param:u==="("?n=Dn.ParamRegExp:eie.test(u)?p():(f(),n=Dn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case Dn.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=Dn.ParamRegExpEnd:d+=u;break;case Dn.ParamRegExpEnd:f(),n=Dn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===Dn.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),l}const Ag="[^/]+?",nie={sensitive:!1,strict:!1,start:!0,end:!0};var fa=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(fa||{});const aie=/[.+*?^${}()[\]/\\]/g;function lie(e,t){const n=on({},nie,t),a=[];let l=n.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[fa.Root];n.strict&&!c.length&&(l+="/");for(let f=0;f<c.length;f++){const p=c[f];let g=fa.Segment+(n.sensitive?fa.BonusCaseSensitive:0);if(p.type===fr.Static)f||(l+="/"),l+=p.value.replace(aie,"\\$&"),g+=fa.Static;else if(p.type===fr.ParLine truncated
+92
View File
@@ -0,0 +1,92 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-3-nemXkh.js","assets/user-dKBxTmfR.js","assets/index-C3lsw5-G.js","assets/Login-DexVXGmB.css","assets/base-BhyKBIh7.css","assets/el-input-FRZVk2Ev.css","assets/AgentLogin-Cpwx28qh.js","assets/AgentLogin-D9WJ8j9x.css","assets/el-link-CPQZ-olG.css","assets/el-checkbox-CzNtyWdF.css","assets/AgentRegister-BJJCJvyr.js","assets/AgentRegister-7UV8clUI.css","assets/MainLayout-CFCDFlw-.js","assets/MainLayout-NyI85wLD.css","assets/el-upload-DfG5YBrW.css","assets/el-dialog-BIfDN5q_.css","assets/el-avatar-DOlF0Z_P.css","assets/el-tag-1VV9QMa7.css","assets/el-tooltip-GF-yQkxY.css","assets/el-popper-Wf_ds9r7.css","assets/el-dropdown-item-BeIfAqTO.css","assets/Dashboard-kW8F3FDT.js","assets/Dashboard-CjXgCO-1.css","assets/el-col-BWEC13sA.css","assets/el-card-BAyktVMS.css","assets/Projects-I-cILuxQ.js","assets/useColumnSettings-BGE5jzFS.js","assets/Projects-BNg1nS_b.css","assets/el-loading-C-X_DDFa.css","assets/el-input-number-DExoAqKP.css","assets/el-table-column-DMM_I_SE.css","assets/el-switch-DpR9-s4E.css","assets/el-popover-Ciemdyvv.css","assets/Products-Bn-hUZPj.js","assets/Products-T7S207w9.css","assets/Cards-B1aMA7IO.js","assets/Cards-Dx3-rO2z.css","assets/el-date-picker-BsrAVvYx.css","assets/Users-_ygP_BlJ.js","assets/Users-BawBSfeg.css","assets/Agents-BSozL5mc.js","assets/Agents-CMih9NPH.css","assets/Orders-DWO_jGEJ.js","assets/Orders-Bz1sTx9n.css","assets/Logs-DGxyJWnQ.js","assets/Logs-DpLKjJre.css","assets/Authorizations-CkcNnuF9.js","assets/Authorizations-BMoXOSb9.css","assets/Coupons-Btgbvg2U.js","assets/Coupons-CFC82d0U.css","assets/Blacklist-ttPMIVQl.js","assets/Blacklist-u-Hq2DCx.css","assets/el-radio-group-iy_biC8N.css","assets/PaymentConfig-D1-vO0nQ.js","assets/PaymentConfig-CQKz3tlS.css","assets/System-C1-5ZQkv.js","assets/System-CJRhkwqa.css","assets/Shop-DyopcswI.js","assets/Shop-D8Vqyx3L.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();/**
* @vue/shared v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function S2(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const hn={},es=[],ft=()=>{},Hg=()=>!1,td=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nd=e=>e.startsWith("onUpdate:"),Bn=Object.assign,x2=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_5=Object.prototype.hasOwnProperty,Pt=(e,t)=>_5.call(e,t),Ce=Array.isArray,ts=e=>Ji(e)==="[object Map]",ad=e=>Ji(e)==="[object Set]",Ho=e=>Ji(e)==="[object Date]",We=e=>typeof e=="function",Le=e=>typeof e=="string",Pa=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Fo=e=>(ot(e)||We(e))&&We(e.then)&&We(e.catch),Fg=Object.prototype.toString,Ji=e=>Fg.call(e),S5=e=>Ji(e).slice(8,-1),xi=e=>Ji(e)==="[object Object]",ld=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ui=S2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),od=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},x5=/-\w/g,Un=od(e=>e.replace(x5,t=>t.slice(1).toUpperCase())),k5=/\B([A-Z])/g,uo=od(e=>e.replace(k5,"-$1").toLowerCase()),Qi=od(e=>e.charAt(0).toUpperCase()+e.slice(1)),pr=od(e=>e?`on${Qi(e)}`:""),_l=(e,t)=>!Object.is(e,t),Ju=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Kg=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},k2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E5=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let zv;const rd=()=>zv||(zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],l=Le(a)?$5(a):je(a);if(l)for(const o in l)t[o]=l[o]}return t}else if(Le(e)||ot(e))return e}const M5=/;(?![^(]*\))/g,T5=/:([^]+)/,O5=/\/\*[^]*?\*\//g;function $5(e){const t={};return e.replace(O5,"").split(M5).forEach(n=>{if(n){const a=n.split(T5);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Le(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const a=R(e[n]);a&&(t+=a+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Xl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Le(t)&&(e.class=R(t)),n&&(e.style=je(n)),e}const N5="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",A5=S2(N5);function Wg(e){return!!e||e===""}function R5(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=wr(e[a],t[a]);return n}function wr(e,t){if(e===t)return!0;let n=Ho(e),a=Ho(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Pa(e),a=Pa(t),n||a)return e===t;if(n=Ce(e),a=Ce(t),n||a)return n&&a?R5(e,t):!1;if(n=ot(e),a=ot(t),n||a){if(!n||!a)return!1;const l=Object.keys(e).length,o=Object.keys(t).length;if(l!==o)return!1;for(const r in e){const s=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(s&&!u||!s&&u||!wr(e[r],t[r]))return!1}}return String(e)===String(t)}function jg(e,t){return e.findIndex(n=>wr(n,t))}const qg=e=>!!(e&&e.__v_isRef===!0),Se=e=>Le(e)?e:e==null?"":Ce(e)||ot(e)&&(e.toString===Fg||!We(e.toString))?qg(e)?Se(e.value):JSON.stringify(e,Ug,2):String(e),Ug=(e,t)=>qg(t)?Ug(e,t.value):ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,l],o)=>(n[ef(a,o)+" =>"]=l,n),{})}:ad(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ef(n))}:Pa(t)?ef(t):ot(t)&&!Ce(t)&&!xi(t)?String(t):t,ef=(e,t="")=>{var n;return Pa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Hn;class Yg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Hn&&(Hn.active?(this.parent=Hn,this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Hn;try{return Hn=this,t()}finally{Hn=n}}}on(){++this._on===1&&(this.prevScope=Hn,Hn=this)}off(){if(this._on>0&&--this._on===0){if(Hn===this)Hn=this.prevScope;else{let t=Hn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(this.effects.length=0,n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function E2(e){return new Yg(e)}function sd(){return Hn}function M2(e,t=!1){Hn&&Hn.cleanups.push(e)}let bn;const tf=new WeakSet;class Gg{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Hn&&(Hn.active?Hn.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tf.has(this)&&(tf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zg(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dv(this),Jg(this);const t=bn,n=el;bn=this,el=!0;try{return this.fn()}finally{Qg(this),bn=t,el=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$2(t);this.deps=this.depsTail=void 0,Dv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jf(this)&&this.run()}get dirty(){return Jf(this)}}let Xg=0,ci,di;function Zg(e,t=!1){if(e.flags|=8,t){e.next=di,di=e;return}e.next=ci,ci=e}function T2(){Xg++}function O2(){if(--Xg>0)return;if(di){let t=di;for(di=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ci;){let t=ci;for(ci=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Jg(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qg(e){let t,n=e.depsTail,a=n;for(;a;){const l=a.prevDep;a.version===-1?(a===n&&(n=l),$2(a),P5(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=l}e.deps=t,e.depsTail=n}function Jf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(e4(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function e4(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ki)||(e.globalVersion=ki,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jf(e))))return;e.flags|=2;const t=e.dep,n=bn,a=el;bn=e,el=!0;try{Jg(e);const l=e.fn(e._value);(t.version===0||_l(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{bn=n,el=a,Qg(e),e.flags&=-3}}function $2(e,t=!1){const{dep:n,prevSub:a,nextSub:l}=e;if(a&&(a.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)$2(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function P5(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let el=!0;const t4=[];function to(){t4.push(el),el=!1}function no(){const e=t4.pop();el=e===void 0?!0:e}function Dv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=bn;bn=void 0;try{t()}finally{bn=n}}}let ki=0;class I5{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 N2{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(!bn||!el||bn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==bn)n=this.activeLink=new I5(bn,this),bn.deps?(n.prevDep=bn.depsTail,bn.depsTail.nextDep=n,bn.depsTail=n):bn.deps=bn.depsTail=n,n4(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=bn.depsTail,n.nextDep=void 0,bn.depsTail.nexLine truncated
* @vue/runtime-core v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function eu(e,t,n,a){try{return a?e(...a):e()}catch(l){pd(l,t,n)}}function ja(e,t,n,a){if(We(e)){const l=eu(e,t,n,a);return l&&Fo(l)&&l.catch(o=>{pd(o,t,n)}),l}if(Ce(e)){const l=[];for(let o=0;o<e.length;o++)l.push(ja(e[o],t,n,a));return l}}function pd(e,t,n,a=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||hn;if(t){let s=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}s=s.parent}if(o){to(),eu(o,null,10,[e,u,c]),no();return}}r9(e,n,l,a,r)}function r9(e,t,n,a=!0,l=!1){if(l)throw e;console.error(e)}const pa=[];let bl=-1;const ns=[];let Ao=null,Ur=0;const h4=Promise.resolve();let wc=null;function Pe(e){const t=wc||h4;return e?t.then(this?e.bind(this):e):t}function s9(e){let t=bl+1,n=pa.length;for(;t<n;){const a=t+n>>>1,l=pa[a],o=Mi(l);o<e||o===e&&l.flags&2?t=a+1:n=a}return t}function A2(e){if(!(e.flags&1)){const t=Mi(e),n=pa[pa.length-1];!n||!(e.flags&2)&&t>=Mi(n)?pa.push(e):pa.splice(s9(t),0,e),e.flags|=1,m4()}}function m4(){wc||(wc=h4.then(y4))}function i9(e){Ce(e)?ns.push(...e):Ao&&e.id===-1?Ao.splice(Ur+1,0,e):e.flags&1||(ns.push(e),e.flags|=1),m4()}function Fv(e,t,n=bl+1){for(;n<pa.length;n++){const a=pa[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;pa.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function g4(e){if(ns.length){const t=[...new Set(ns)].sort((n,a)=>Mi(n)-Mi(a));if(ns.length=0,Ao){Ao.push(...t);return}for(Ao=t,Ur=0;Ur<Ao.length;Ur++){const n=Ao[Ur];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ao=null,Ur=0}}const Mi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function y4(e){try{for(bl=0;bl<pa.length;bl++){const t=pa[bl];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),eu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bl<pa.length;bl++){const t=pa[bl];t&&(t.flags&=-2)}bl=-1,pa.length=0,g4(),wc=null,(pa.length||ns.length)&&y4()}}let Xn=null,b4=null;function Cc(e){const t=Xn;return Xn=e,b4=e&&e.type.__scopeId||null,t}function ae(e,t=Xn,n){if(!t||e._n)return e;const a=(...l)=>{a._d&&xc(-1);const o=Cc(t);let r;try{r=e(...l)}finally{Cc(o),a._d&&xc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function vt(e,t){if(Xn===null)return e;const n=yd(Xn),a=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,r,s,u=hn]=t[l];o&&(We(o)&&(o={mounted:o,updated:o}),o.deep&&Yl(r),a.push({dir:o,instance:n,value:r,oldValue:void 0,arg:s,modifiers:u}))}return e}function Xo(e,t,n,a){const l=e.dirs,o=t&&t.dirs;for(let r=0;r<l.length;r++){const s=l[r];o&&(s.oldValue=o[r].value);let u=s.dir[a];u&&(to(),ja(u,n,8,[e.el,s,e,t]),no())}}function wt(e,t){if(la){let n=la.provides;const a=la.parent&&la.parent.provides;a===n&&(n=la.provides=Object.create(a)),n[e]=t}}function Ie(e,t,n=!1){const a=mt();if(a||hr){let l=hr?hr._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&We(t)?t.call(a&&a.proxy):t}}function R2(){return!!(mt()||hr)}const u9=Symbol.for("v-scx"),c9=()=>Ie(u9);function sa(e,t){return P2(e,null,t)}function fe(e,t,n){return P2(e,t,n)}function P2(e,t,n=hn){const{immediate:a,deep:l,flush:o,once:r}=n,s=Bn({},n),u=t&&a||!t&&o!=="post";let c;if($i){if(o==="sync"){const g=c9();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=ft,g.resume=ft,g.pause=ft,g}}const d=la;s.call=(g,v,m)=>ja(g,d,v,m);let f=!1;o==="post"?s.scheduler=g=>{da(g,d&&d.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(g,v)=>{v?g():A2(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=o9(e,t,s);return $i&&(c?c.push(p):u&&p()),p}function d9(e,t,n){const a=this.proxy,l=Le(e)?e.includes(".")?w4(a,e):()=>a[e]:e.bind(a,a);let o;We(t)?o=t:(o=t.handler,n=t);const r=nu(this),s=P2(l,o.bind(a),n);return r(),s}function w4(e,t){const n=t.split(".");return()=>{let a=e;for(let l=0;l<n.length&&a;l++)a=a[n[l]];return a}}const Eo=new WeakMap,C4=Symbol("_vte"),_4=e=>e.__isTeleport,ar=e=>e&&(e.disabled||e.disabled===""),f9=e=>e&&(e.defer||e.defer===""),Kv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,t0=(e,t)=>{const n=e&&e.to;return Le(n)?t?t(n):null:n},p9={name:"Teleport",__isTeleport:!0,process(e,t,n,a,l,o,r,s,u,c){const{mc:d,pc:f,pbc:p,o:{insert:g,querySelector:v,createText:m,createComment:h,parentNode:y}}=c,b=ar(t.props);let{dynamicChildren:C}=t;const _=(E,T,O)=>{E.shapeFlag&16&&d(E.children,T,O,l,o,r,s,u)},x=(E=t)=>{const T=ar(E.props),O=E.target=t0(E.props,v),N=n0(O,E,m,g);O&&(r!=="svg"&&Kv(O)?r="svg":r!=="mathml"&&Wv(O)&&(r="mathml"),l&&l.isCE&&(l.ce._teleportTargets||(l.ce._teleportTargets=new Set)).add(O),T||(_(E,O,N),ti(E,!1)))},k=E=>{const T=()=>{if(Eo.get(E)===T){if(Eo.delete(E),ar(E.props)){const O=y(E.el)||n;_(E,O,E.anchor),ti(E,!0)}x(E)}};Eo.set(E,T),da(T,o)};if(e==null){const E=t.el=m(""),T=t.anchor=m("");if(g(E,n Line truncated
* @vue/runtime-dom v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let i0;const oh=typeof window<"u"&&window.trustedTypes;if(oh)try{i0=oh.createPolicy("vue",{createHTML:e=>e})}catch{}const t3=i0?e=>i0.createHTML(e):e=>e,iC="http://www.w3.org/2000/svg",uC="http://www.w3.org/1998/Math/MathML",Wl=typeof document<"u"?document:null,rh=Wl&&Wl.createElement("template"),cC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const l=t==="svg"?Wl.createElementNS(iC,e):t==="mathml"?Wl.createElementNS(uC,e):n?Wl.createElement(e,{is:n}):Wl.createElement(e);return e==="select"&&a&&a.multiple!=null&&l.setAttribute("multiple",a.multiple),l},createText:e=>Wl.createTextNode(e),createComment:e=>Wl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,l,o){const r=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{rh.innerHTML=t3(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const s=rh.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xo="transition",qs="animation",fs=Symbol("_vtc"),n3={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},a3=Bn({},x4,n3),dC=e=>(e.displayName="Transition",e.props=a3,e),Yn=dC((e,{slots:t})=>Ge(m9,l3(e),t)),Jo=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},sh=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function l3(e){const t={};for(const A in e)A in n3||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:a,duration:l,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=fC(l),m=v&&v[0],h=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:C,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:E=b,onAppearCancelled:T=C}=t,O=(A,B,q,W)=>{A._enterCancelled=W,Mo(A,B?d:s),Mo(A,B?c:r),q&&q()},N=(A,B)=>{A._isLeaving=!1,Mo(A,f),Mo(A,g),Mo(A,p),B&&B()},P=A=>(B,q)=>{const W=A?E:b,H=()=>O(B,A,q);Jo(W,[B,H]),ih(()=>{Mo(B,A?u:o),yl(B,A?d:s),sh(W)||uh(B,a,m,H)})};return Bn(t,{onBeforeEnter(A){Jo(y,[A]),yl(A,o),yl(A,r)},onBeforeAppear(A){Jo(k,[A]),yl(A,u),yl(A,c)},onEnter:P(!1),onAppear:P(!0),onLeave(A,B){A._isLeaving=!0;const q=()=>N(A,B);yl(A,f),A._enterCancelled?(yl(A,p),u0(A)):(u0(A),yl(A,p)),ih(()=>{A._isLeaving&&(Mo(A,f),yl(A,g),sh(_)||uh(A,a,h,q))}),Jo(_,[A,q])},onEnterCancelled(A){O(A,!1,void 0,!0),Jo(C,[A])},onAppearCancelled(A){O(A,!0,void 0,!0),Jo(T,[A])},onLeaveCancelled(A){N(A),Jo(x,[A])}})}function fC(e){if(e==null)return null;if(ot(e))return[sf(e.enter),sf(e.leave)];{const t=sf(e);return[t,t]}}function sf(e){return E5(e)}function yl(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fs]||(e[fs]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[fs];n&&(n.delete(t),n.size||(e[fs]=void 0))}function ih(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pC=0;function uh(e,t,n,a){const l=e._endId=++pC,o=()=>{l===e._endId&&a()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:s,propCount:u}=o3(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,p),o()},p=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},s+1),e.addEventListener(c,p)}function o3(e,t){const n=window.getComputedStyle(e),a=v=>(n[v]||"").split(", "),l=a(`${xo}Delay`),o=a(`${xo}Duration`),r=ch(l,o),s=a(`${qs}Delay`),u=a(`${qs}Duration`),c=ch(s,u);let d=null,f=0,p=0;t===xo?r>0&&(d=xo,f=r,p=o.length):t===qs?c>0&&(d=qs,f=c,p=u.length):(f=Math.max(r,c),d=f>0?r>c?xo:qs:null,p=d?d===xo?o.length:u.length:0);const g=d===xo&&/\b(?:transform|all)(?:,|$)/.test(a(`${xo}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function ch(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,a)=>dh(n)+dh(e[a])))}function dh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function u0(e){return(e?e.ownerDocument:document).body.offsetHeight}function vC(e,t,n){const a=e[fs];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ec=Symbol("_vod"),W2=Symbol("_vsh"),Rt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ec]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Us(e,t)},mounted(e,{value:t},{tra Line truncated
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let g3;const bd=e=>g3=e,y3=Symbol();function c0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var hi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(hi||(hi={}));function FC(){const e=E2(!0),t=e.run(()=>L({}));let n=[],a=[];const l=Ka({install(o){bd(l),l._a=o,o.provide(y3,l),o.config.globalProperties.$pinia=l,a.forEach(r=>n.push(r)),a=[]},use(o){return this._a?n.push(o):a.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}const b3=()=>{};function kh(e,t,n,a=b3){e.push(t);const l=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!n&&sd()&&M2(l),l}function Dr(e,...t){e.slice().forEach(n=>{n(...t)})}const KC=e=>e(),Eh=Symbol(),df=Symbol();function d0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],l=e[n];c0(l)&&c0(a)&&e.hasOwnProperty(n)&&!Xt(a)&&!Zl(a)?e[n]=d0(l,a):e[n]=a}return e}const WC=Symbol();function jC(e){return!c0(e)||!e.hasOwnProperty(WC)}const{assign:To}=Object;function qC(e){return!!(Xt(e)&&e.effect)}function UC(e,t,n,a){const{state:l,actions:o,getters:r}=t,s=n.state.value[e];let u;function c(){s||(n.state.value[e]=l?l():{});const d=Rn(n.state.value[e]);return To(d,o,Object.keys(r||{}).reduce((f,p)=>(f[p]=Ka(S(()=>{bd(n);const g=n._s.get(e);return r[p].call(g,g)})),f),{}))}return u=w3(e,c,t,n,a,!0),u}function w3(e,t,n={},a,l,o){let r;const s=To({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],g;const v=a.state.value[e];!o&&!v&&(a.state.value[e]={});let m;function h(T){let O;c=d=!1,typeof T=="function"?(T(a.state.value[e]),O={type:hi.patchFunction,storeId:e,events:g}):(d0(a.state.value[e],T),O={type:hi.patchObject,payload:T,storeId:e,events:g});const N=m=Symbol();Pe().then(()=>{m===N&&(c=!0)}),d=!0,Dr(f,O,a.state.value[e])}const y=o?function(){const{state:O}=n,N=O?O():{};this.$patch(P=>{To(P,N)})}:b3;function b(){r.stop(),f=[],p=[],a._s.delete(e)}const C=(T,O="")=>{if(Eh in T)return T[df]=O,T;const N=function(){bd(a);const P=Array.from(arguments),A=[],B=[];function q(V){A.push(V)}function W(V){B.push(V)}Dr(p,{args:P,name:N[df],store:x,after:q,onError:W});let H;try{H=T.apply(this&&this.$id===e?this:x,P)}catch(V){throw Dr(B,V),V}return H instanceof Promise?H.then(V=>(Dr(A,V),V)).catch(V=>(Dr(B,V),Promise.reject(V))):(Dr(A,H),H)};return N[Eh]=!0,N[df]=O,N},_={_p:a,$id:e,$onAction:kh.bind(null,p),$patch:h,$reset:y,$subscribe(T,O={}){const N=kh(f,T,O.detached,()=>P()),P=r.run(()=>fe(()=>a.state.value[e],A=>{(O.flush==="sync"?d:c)&&T({storeId:e,type:hi.direct,events:g},A)},To({},u,O)));return N},$dispose:b},x=Lt(_);a._s.set(e,x);const E=(a._a&&a._a.runWithContext||KC)(()=>a._e.run(()=>(r=E2()).run(()=>t({action:C}))));for(const T in E){const O=E[T];if(Xt(O)&&!qC(O)||Zl(O))o||(v&&jC(O)&&(Xt(O)?O.value=v[T]:d0(O,v[T])),a.state.value[e][T]=O);else if(typeof O=="function"){const N=C(O,T);E[T]=N,s.actions[T]=O}}return To(x,E),To(Zt(x),E),Object.defineProperty(x,"$state",{get:()=>a.state.value[e],set:T=>{h(O=>{To(O,T)})}}),a._p.forEach(T=>{To(x,r.run(()=>T({store:x,app:a._a,pinia:a,options:s})))}),v&&o&&n.hydrate&&n.hydrate(x.$state,v),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function xie(e,t,n){let a,l;const o=typeof t=="function";a=e,l=o?n:t;function r(s,u){const c=R2();return s=s||(c?Ie(y3,null):null),s&&bd(s),s=g3,s._s.has(a)||(o?w3(a,t,l,s):UC(a,l,s)),s._s.get(a)}return r.$id=a,r}const _e={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},YC=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ff=["sun","mon","tue","wed","thu","fri","sat"],lt="update:modelValue",yt="change",Mn="input",Mh=Symbol("INSTALLED_KEY"),cl=["","default","small","large"],Th=["left","center","right"];var C3=typeof global=="object"&&global&&global.Object===Object&&global,GC=typeof self=="object"&&self&&self.Object===Object&&self,dl=C3||GC||Function("return this")(),qa=dl.Symbol,_3=Object.prototype,XC=_3.hasOwnProperty,ZC=_3.toString,Ys=qa?qa.toStringTag:void 0;function JC(e){var t=XC.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var a=!0}catch{}var l=ZC.call(e);return a&&(t?e[Ys]=n:delete e[Ys]),l}var QC=Object.prototype,e_=QC.toString;function t_(e){return e_.call(e)}var n_="[object Null]",a_="[object Undefined]",Oh=qa?qa.toStringTag:void 0;function Ar(e){return e==null?e===void 0?a_:n_:Oh&&Oh in Object(e)?JC(e):t_(e)}function Al(e){return e!=null&&typeof e=="object"}var l_="[object Symbol]";function wd(e){return typeof e=="symbol"||Al(e)&&Ar(e)==l_}function j2(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n<a;)l[n]=t(e[n],n,e);return l}var ma=Array.isArray,$h=qa?qa.prototype:void 0,Nh=$h?$h.toString:void 0;functiLine truncated
For more detail, please visit: ${l}
`)},{immediate:!0})},GE='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',p6=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,r1=e=>typeof Element>"u"?!1:e instanceof Element,XE=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,s1=e=>Array.from(e.querySelectorAll(GE)).filter(t=>xr(t)&&XE(t)),xr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},nc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},v6=e=>!e.getAttribute("aria-owns"),h6=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n);return l[Array.prototype.indexOf.call(l,e)+t]||null},du=(e,t)=>{if(!e||!e.focus)return;let n=!1;r1(e)&&!xr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),r1(e)&&n&&e.removeAttribute("tabindex")},rs=e=>{e&&(du(e),!v6(e)&&e.click())},Ad=()=>Vt&&/firefox/i.test(window.navigator.userAgent),m6=()=>Vt&&/android/i.test(window.navigator.userAgent),cp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),bf=e=>Qi(e),ZE="utils/dom/style",g6=(e="")=>e.split(" ").filter(t=>!!t.trim()),El=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ha=(e,t)=>{!e||!t.trim()||e.classList.add(...g6(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...g6(t))},Gl=(e,t)=>{var a;if(!Vt||!e||!t||p6(e))return"";let n=Un(t);n==="float"&&(n="cssFloat");try{const l=e.style[n];if(l)return l;const o=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},y6=(e,t,n)=>{if(!(!e||!t))if(ot(t))s6(t).forEach(([a,l])=>y6(e,a,l));else{const a=Un(t);e.style[a]=n}};function pn(e,t="px"){if(!e&&e!==0)return"";if(He(e)||yE(e))return`${e}${t}`;if(Le(e))return e;Ft(ZE,"binding value must be a string or number")}const b6=(e,t,n,a)=>{const l={offsetX:0,offsetY:0},o=L(!1),r=(p,g)=>{if(e.value){const{offsetX:v,offsetY:m}=l,h=e.value.getBoundingClientRect(),y=Math.max(h.left,0),b=Math.max(h.top,0),C=h.width,_=h.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,E=-y+v,T=-b+m,O=x-y-C+v,N=k-b-(_<k?_:0)+m;a!=null&&a.value||(p=wa(p,E,O),g=wa(g,T,N)),l.offsetX=p,l.offsetY=g,e.value.style.transform=`translate(${pn(p)}, ${pn(g)})`}},s=p=>{const g=p.clientX,v=p.clientY,{offsetX:m,offsetY:h}=l,y=C=>{o.value||(o.value=!0),r(m+C.clientX-g,h+C.clientY-v)},b=()=>{o.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{l.offsetX=0,l.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:g}=l;r(p,g)};return gt(()=>{sa(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:o,resetPosition:d,updatePosition:f}};var JE={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday Line truncated
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})`);const n=dp();return u6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Yr=[];const C1=e=>{Gt(e)===_e.esc&&Yr.forEach(t=>t(e))},hT=e=>{gt(()=>{Yr.length===0&&document.addEventListener("keydown",C1),Vt&&Yr.push(e)}),Dt(()=>{Yr=Yr.filter(t=>t!==e),Yr.length===0&&Vt&&document.removeEventListener("keydown",C1)})},L6=()=>{const e=dp(),t=Sp(),n=S(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:S(()=>`#${n.value}`)}},mT=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},gT=()=>{const{id:e,selector:t}=L6();return md(()=>{Vt&&(document.body.querySelector(t.value)||mT(e.value))}),{id:e,selector:t}},yT=xe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),bT=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:o}=w1(),{registerTimeout:r,cancelTimeout:s}=w1();return{onOpen:(d,f=i(e))=>{o(()=>{a(d);const p=i(n);He(p)&&p>0&&r(()=>{l(d)},p)},f)},onClose:(d,f=i(t))=>{s(),o(()=>{l(d)},f)}}},B6=Symbol("elForwardRef"),wT=e=>{wt(B6,{setForwardRef:n=>{e.value=n}})},CT=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),_1={current:0},S1=L(0),z6=2e3,x1=Symbol("elZIndexContextKey"),D6=Symbol("zIndexContextKey"),vu=e=>{const t=mt()?Ie(x1,_1):_1,n=e||(mt()?Ie(D6,void 0):void 0),a=S(()=>{const r=i(n);return He(r)?r:z6}),l=S(()=>a.value+S1.value),o=()=>(t.current++,S1.value=t.current,l.value);return!Vt&&!Ie(x1)&&Ft("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:l,nextZIndex:o}},Cs=Math.min,gr=Math.max,Ac=Math.round,Vu=Math.floor,Tl=e=>({x:e,y:e}),_T={left:"right",right:"left",bottom:"top",top:"bottom"};function _0(e,t,n){return gr(e,Cs(t,n))}function hu(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function mu(e){return e.split("-")[1]}function H6(e){return e==="x"?"y":"x"}function xp(e){return e==="y"?"height":"width"}function Vo(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function kp(e){return H6(Vo(e))}function ST(e,t,n){n===void 0&&(n=!1);const a=mu(e),l=kp(e),o=xp(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=Rc(r)),[r,Rc(r)]}function xT(e){const t=Rc(e);return[S0(e),t,S0(t)]}function S0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const k1=["left","right"],E1=["right","left"],kT=["top","bottom"],ET=["bottom","top"];function MT(e,t,n){switch(e){case"top":case"bottom":return n?t?E1:k1:t?k1:E1;case"left":case"right":return t?kT:ET;default:return[]}}function TT(e,t,n,a){const l=mu(e);let o=MT(Er(e),n==="start",a);return l&&(o=o.map(r=>r+"-"+l),t&&(o=o.concat(o.map(S0)))),o}function Rc(e){const t=Er(e);return _T[t]+e.slice(t.length)}function OT(e){return{top:0,right:0,bottom:0,left:0,...e}}function F6(e){return typeof e!="number"?OT(e):{top:e,right:e,bottom:e,left:e}}function Pc(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function M1(e,t,n){let{reference:a,floating:l}=e;const o=Vo(t),r=kp(t),s=xp(r),u=Er(t),c=o==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,p=a[s]/2-l[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-l.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-l.width,y:f};break;default:g={x:a.x,y:a.y}}switch(mu(t)){case"start":g[r]-=p*(n&&c?-1:1);break;case"end":g[r]+=p*(n&&c?-1:1);break}return g}async function K6(e,t){var n;t===void 0&&(t={});const{x:a,y:l,platform:o,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=hu(t,e),v=F6(g),h=s[p?f==="floating"?"reference":"floating":f],y=Pc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(h)))==null||n?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),_=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},x=Pc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-x.top+v.top)/_.y,bottom:(x.bottom-y.bottom+v.bottom)/_.y,left:(y.left-x.left+v.left)/_.x,right:(x.right-y.right+v.right)/_.x}}const $T=50,NT=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:K6},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=M1(c,a,u),p=a,g=0;const v={};for(let m=0;m<o.length;m++){const h=o[m];if(!h)continue;const{name:y,fn:b}=h,{x:C,y:_,data:x,reset:k}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:l,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=_??f,v[y]={...v[y],...x},k&&g<$T&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:l}):k.rects),{x:d,y:f}=M1(c,p,u)),m=-1)}return{x:d,y:f,placement:p,strategy:l,middlewareData:v}},AT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:o,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=hu(e,t)||{};if(c==null)return{};const f=F6(d),p={x:n,y:a},g=kp(l),v=xp(g),m=await r.getDimensions(c),h=g==="y",y=h?"top":"left",b=h?"bottom":"right",C=h?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[g]-p[g]-o.floating[v],x=p[g]-o.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let E=k?k[C]:0;(!E||!await(r.isElement==null?void 0:r.isElement(k)))&&(E=s.floating[C]||o.floating[v]);const T=_/2-x/2,O=E/2-m[v]/2-1,N=Cs(f[y],O),P=Cs(f[b],O),A=N,B=E-m[v]-P,q=E/2-m[v]/2+T,W=_0(A,q,B),H=!u.arrow&&mu(l)!=null&&q!==W&&o.reference[v]/2-(q<A?N:P)-m[v]/2<0,V=H?q<A?q-A:q-B:0;return{[g]:p[g]+V,data:{[g]:W,centerOffset:q-W-V,...H&&{alignmentOffset:V}},reset:H}}}),RT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:l,middlewareData:o,rects:r,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=! Line truncated
(?:
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+a+":){5}(?::"+n+"|(?::"+a+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+a+":){4}(?:(?::"+a+"){0,1}:"+n+"|(?::"+a+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+a+":){3}(?:(?::"+a+"){0,2}:"+n+"|(?::"+a+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+a+":){2}(?:(?::"+a+"){0,3}:"+n+"|(?::"+a+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+a+":){1}(?:(?::"+a+"){0,4}:"+n+"|(?::"+a+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+a+"){0,5}:"+n+"|(?::"+a+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+l+"$"),u=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+l+t(_)+")","g")};u.v4=function(C){return C&&C.exact?r:new RegExp(""+t(C)+n+t(C),"g")},u.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+l+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+g+v+m+")"+h+y;return Bu=new RegExp("(?:^"+b+"$)","i"),Bu},D1={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oi={integer:function(t){return oi.number(t)&&parseInt(t,10)===t},float:function(t){return oi.number(t)&&!oi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!oi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(D1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cD())},hex:function(t){return typeof t=="string"&&!!t.match(D1.hex)}},dD=function(t,n,a,l,o){if(t.required&&n===void 0){P8(t,n,a,l,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?oi[s](n)||l.push(Na(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&l.push(Na(o.messages.types[s],t.fullField,t.type))},fD=function(t,n,a,l,o){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(p?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&l.push(Na(o.messages[f].len,t.fullField,t.len)):s&&!u&&d<t.min?l.push(Na(o.messages[f].min,t.fullField,t.min)):u&&!s&&d>t.max?l.push(Na(o.messages[f].max,t.fullField,t.max)):s&&u&&(d<t.min||d>t.max)&&l.push(Na(o.messages[f].range,t.fullField,t.min,t.max))},Fr="enum",pD=function(t,n,a,l,o){t[Fr]=Array.isArray(t[Fr])?t[Fr]:[],t[Fr].indexOf(n)===-1&&l.push(Na(o.messages[Fr],t.fullField,t[Fr].join(", ")))},vD=function(t,n,a,l,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qt={required:P8,whitespace:uD,type:dD,range:fD,enum:pD,pattern:vD},hD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n,"string")&&!t.required)return a();Qt.required(t,n,l,r,o,"string"),Fn(n,"string")||(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o),Qt.pattern(t,n,l,r,o),t.whitespace===!0&&Qt.whitespace(t,n,l,r,o))}a(r)},mD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},gD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},yD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},bD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),Fn(n)||Qt.type(t,n,l,r,o)}a(r)},wD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},CD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},_D=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Qt.required(t,n,l,r,o,"array"),n!=null&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},SD=function(t,n,a,l,o){var Line truncated
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const j0="_Mousewheel",mm=function(e,t){if(e&&e.addEventListener){fy(e);const n=function(a){const l=nK(a);t&&Reflect.apply(t,this,[a,l])};e[j0]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},fy=e=>{var t;(t=e._Mousewheel)!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[j0].wheelHandler),e[j0]=null)},gm={beforeMount(e,t){mm(e,t.value)},unmounted(e){fy(e)},updated(e,t){t.value!==t.oldValue&&mm(e,t.value)}},aK=xe({...ny,datetimeRole:String,parsedValue:{type:Z(Object)}}),py=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(p=>{if(d[p]){let g;const v=d[p];switch(p){case"minute":g=v(f.hour(),s,c);break;case"second":g=v(f.hour(),f.minute(),s,c);break;default:g=v(s,c);break}if(g!=null&&g.length&&!g.includes(f[p]())){const m=u?0:g.length-1;f=f[p](g[m])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([r,s])=>{l[r]=s}}},Nf=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},vy=(e,t,n)=>({getHoursList:(r,s)=>$f(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>$f(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>$f(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),hy=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:o}=vy(e,t,n);return{getAvailableHours:(c,d)=>Nf(a(c,d)),getAvailableMinutes:(c,d,f)=>Nf(l(c,d,f)),getAvailableSeconds:(c,d,f,p)=>Nf(o(c,d,f,p))}},my=(e,t)=>{const n=L(e.parsedValue);return fe(()=>e.visible,a=>{const l=En(t.modelValue),o=En(t.valueOnClear);if(a&&l===o){n.value=o;return}a||(n.value=e.parsedValue)}),n},lK=xe({role:{type:String,required:!0},spinnerDate:{type:Z(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Z(String),default:""},...Kp}),oK=["onClick"],rK=["onMouseenter"];var sK=D({__name:"basic-time-spinner",props:lK,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:l,saveOnBlur:o}=Ie(Dl).props,r=t,s=ye("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=vy(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},g=L(),v={hours:L(),minutes:L(),seconds:L()},m=S(()=>n.showSeconds?om:om.slice(0,2)),h=S(()=>{const{spinnerDate:j}=n;return{hours:j.hour(),minutes:j.minute(),seconds:j.second()}}),y=S(()=>{const{hours:j,minutes:G}=i(h),{role:ee,spinnerDate:le}=n,ne=a?void 0:le;return{hours:u(ee,ne),minutes:c(j,ee,ne),seconds:d(j,G,ee,ne)}}),b=S(()=>{const{hours:j,minutes:G,seconds:ee}=i(h);return{hours:Of(j,23),minutes:Of(G,59),seconds:Of(ee,59)}}),C=Rl(j=>{f=!1,k(j)},200),_=j=>{if(!n.amPmMode)return"";const G=n.amPmMode==="A";let ee=j<12?" am":" pm";return G&&(ee=ee.toUpperCase()),ee},x=j=>{let G=[0,0];const ee=l||"HH:mm:ss",le=ee.indexOf("HH"),ne=ee.indexOf("mm"),se=ee.indexOf("ss");switch(j){case"hours":le!==-1&&(G=[le,le+2]);break;case"minutes":ne!==-1&&(G=[ne,ne+2]);break;case"seconds":se!==-1&&(G=[se,se+2]);break}const[J,de]=G;r("select-range",J,de),g.value=j},k=j=>{O(j,i(h)[j])},E=()=>{k("hours"),k("minutes"),k("seconds")},T=j=>j.querySelector(`.${s.namespace.value}-scrollbar__wrap`),O=(j,G)=>{if(n.arrowControl)return;const ee=i(v[j]);ee&&ee.$el&&(o||(p[j]=!0,xa(()=>{p[j]=!1})),T(ee.$el).scrollTop=Math.max(0,G*N(j)))},N=j=>{var ee;const G=(ee=i(v[j]))==null?void 0:ee.$el.querySelector("li");return G&&Number.parseFloat(Gl(G,"height"))||0},P=()=>{B(1)},A=()=>{B(-1)},B=j=>{g.value||x("hours");const G=g.value,ee=i(h)[G],le=q(G,ee,j,g.value==="hours"?24:60);W(G,le),O(G,le),Pe(()=>x(G))},q=(j,G,ee,le)=>{let ne=(G+ee+le)%le;const se=i(y)[j];for(;se[ne]&&ne!==G;)ne=(ne+ee+le)%le;return ne},W=(j,G)=>{if(i(y)[j][G])return;const{hours:ee,minutes:le,seconds:ne}=i(h);let se;switch(j){case"hours":se=n.spinnerDate.hour(G).minute(le).second(ne);break;case"minutes":se=n.spinnerDate.hour(ee).minute(G).second(ne);break;case"seconds":se=n.spinnerDate.hour(ee).minute(le).second(G);break}r(yt,se)},H=(j,{value:G,disabled:ee})=>{ee||(W(j,G),x(j),O(j,G))},V=j=>{if(!o&&p[j])return;const G=i(v[j]);G&&(f=!0,C(j),W(j,Math.min(Math.round((T(G.$el).scrollTop-(I(j)*.5-10)/N(j)+3)/N(j)),j==="hours"?23:59)))},I=j=>i(v[j]).$el.offsetHeight,F=()=>{const j=G=>{const ee=i(v[G]);ee&&ee.$el&&(T(ee.$el).onscroll=()=>{V(G)})};j("hours"),j("minutes"),j("seconds")};gt(()=>{Pe(()=>{!n.arrowControl&&F(),E(),n.role==="start"&&x("hours")})});const K=(j,G)=>{v[G].value=j??void 0};return r("set-option",[`${n.role}_scrollDown`,B]),r("set-option",[`${n.role}_emitSelectRange`,x]),fe(()=>n.spinnerDate,()=>{f||E()}),(j,G)=>(w(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":j.showSeconds}])},[j.arrowControl?re("v-if",!0):(w(!0),$(Ke,{key:0},_t(m.value,ee=>(w(),ue(i(sl),{key:ee,ref_for:!0,ref:le=>K(le,ee),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:le=>x(ee),onMousemove:le=>k(ee)},{default:ae(()=>[(w(!0),$(KLine truncated
You should set
width/height
to number when your layout is
horizontal/vertical
`);const c=Math.max(0,t*n-u),d=Math.min(c,o*n),f=Math.max(0,(o+1)*n-u);switch(r==="smart"&&(s>=f-u&&s<=d+u?r=Fa:r=xl),r){case Ki:return d;case"end":return f;case xl:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case Fa:default:return s>=f&&s<=d?s:s<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},o,r)=>{const s=o*n,u=ji(a)?l:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),HW="ElDynamicSizeList",Jr=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const s=l[o];r=s.offset+s.size}for(let s=o+1;s<=t;s++){const u=a(s);l[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return l[t]},FW=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?Iy(e,t,0,l,n):KW(e,t,Math.max(0,l),n)},Iy=(e,t,n,a,l)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),r=Jr(e,o,t).offset;if(r===l)return o;r<l?n=o+1:r>l&&(a=o-1)}return Math.max(0,n-1)},KW=(e,t,n,a)=>{const{total:l}=e;let o=1;for(;n<l&&Jr(e,n,t).offset<a;)n+=o,o*=2;return Iy(e,t,Math.floor(n/2),Math.min(n,l-1),a)},Em=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let l=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},WW=Py({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Jr(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Em,getOffset:(e,t,n,a,l)=>{const{height:o,layout:r,width:s}=e,u=ji(r)?s:o,c=Jr(e,t,l),d=Em(e,l),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=Fa:n=xl),n){case Ki:return f;case"end":return p;case xl:return Math.round(p+(f-p)/2);case Fa:default:return a>=p&&a<=f?a:a<p?p:f}},getStartIndexForOffset:(e,t,n)=>FW(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:o,layout:r,width:s}=e,u=ji(r)?s:l,c=Jr(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p<o-1&&f<d;)p++,f+=Jr(e,p,a).size;return p},initCache({estimatedItemSize:e=50},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,l=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),l&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&rn(HW,`
itemSize is required as function, but the given value was ${typeof e}
`)}}),jW=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let o=null,r=0,s=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return p||g};return{hasReachedEdge:u,onWheel:d=>{ll(o);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=p,d.preventDefault(),o=xa(()=>{l(r,s),r=0,s=0})}}},qW=(e,t,n,a,l,o,r)=>{const s=L(0),u=L(0);let c,d=0,f=0;const p=v=>{ll(c),s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,d=0,f=0},g=v=>{v.preventDefault(),ll(c),d+=s.value-v.touches[0].clientX,f+=u.value-v.touches[0].clientY,s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,c=xa(()=>{const m=a.value-i(o),h=l.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,m),scrollTop:Math.min(t.value.scrollTop+f,h)}),d=0,f=0})};return zt(e,"touchstart",p,{passive:!0}),zt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:p,handleTouchMove:g}},Vy=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:g,validateProps:v})=>D({name:e??"ElVirtualList",props:yr,emits:[Hc,Fc],setup(m,{emit:h,expose:y,slots:b}){const C=ye("vl");v(m);const _=mt(),x=L(p(m,_));g==null||g(_,x);const k=L(),E=L(),T=L(),O=L(),N=L({isScrolling:!1,scrollLeft:He(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:He(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Kc,yAxisScrollDir:Kc}),P=Ay(),A=S(()=>Number.parseInt(`${m.height}`,10)),B=S(()=>Number.parseInt(`${m.width}`,10)),q=S(()=>{const{totalColumn:we,totalRow:Ee,columnCache:be}=m,{isScrolling:Ne,xAxisScrollDir:ze,scrollLeft:Ze}=i(N);if(we===0||Ee===0)return[0,0,0,0];const et=a(m,Ze,i(x)),at=l(m,et,Ze,i(x)),nt=!Ne||ze==="backward"?Math.max(1,be):1,Nt=!Ne||ze==="forward"?Math.max(1,be):1;return[Math.max(0,et-nt),Math.max(0,Math.min(we-1,at+Nt)),et,at]}),W=S(()=>{const{totalColumn:we,totalRow:Ee,rowCache:be}=m,{isScrolling:Ne,yAxisScrollDir:ze,scrollTop:Ze}=i(N);if(we===0||Ee===0)return[0,0,0,0];const et=d(m,Ze,i(x)),at=f(m,et,Ze,i(x)),nt=!Ne||ze==="backward"?Math.max(1,be):1,Nt=!Ne||ze==="forward"?Math.max(1,be):1;return[Math.max(0,et-nt),Math.max(0,Math.min(Ee-1,at+Nt)),et,at]}),H=S(()=>o(m,i(x))),V=S(()=>r(m,i(x))),I=S(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:He(m.height)?`${m.height}px`:m.height,width:He(m.width)?`${m.width}px`:m.width},m.style??{}]),F=S(()=>{const we=`${i(V)}px`;return{height:`${i(H)}px`,pointerEvents:i(N).isScrolling?"none":void 0,width:we,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:we,totalRow:Ee}=m;if(we>0&&Ee>0){const[at,nt,Nt,Bt]=i(q),[$t,Ue,pt,me]=i(W);h(Hc,{columnCacheStart:at,columnCacheEnd:nt,rowCacheStart:$t,rowCacheEnd:Ue,columnVisibleStart:Nt,columnVisibleEnd:Bt,rowVisibleStart:pt,rowVisibleEnd:me})}const{scrollLeft:be,scrollTop:Ne,updateRequested:ze,xAxisScrollDir:Ze,yAxisScrollDir:et}=i(N);h(Fc,{xAxisScrollDir:Ze,scrollLeft:be,yAxisScrollDir:et,scrollTop:Ne,updateRequested:ze})},j=we=>{const{clientHeight:Ee,clientWidth:be,scrollHeight:Ne,scrollLeft:ze,scrollTop:Ze,scrollWidth:et}=we.currentTarget,at=i(N);if(at.scrollTop===Ze&&at.scrollLeft===ze)return;let nt=ze;if(xm(m.direction))switch(jc()){case Wi:nt=-ze;break;case Gp:nt=et-be-ze;break}N.value={...at,isScrolling:!0,scrollLeft:nt,scrollTop:Math.max(0,Math.min(Ze,Ne-Ee)),updateRequested:!0,xAxisScrollDir:ri(at.scrollLeft,nt),yAxisScrollDir:ri(at.scrollTop,Ze)},Pe(()=>z()),Y(),K()},G=(we,Ee)=>{const be=i(A),Ne=(H.value-be)/Ee*we;ne({scrollTop:Math.min(H.value-be,Ne)})},ee=(we,Ee)=>{const be=i(B),Ne=(V.value-be)/Ee*we;ne({scrollLeft:Math.min(V.value-be,Ne)})},{onWheel:le}=jW({atXStartEdge:S(()=>N.value.scrollLeft<=0),atXEndEdge:S(()=>N.value.scrollLeft>=V.value-i(B)),atYStartEdge:S(()=>N.value.scrollTop<=0),atYEndEdge:S(()=>N.value.scrollTop>=H.value-i(A))},(we,Ee)=>{var ze,Ze,et,at;(Ze=(ze=E.value)==null?void 0:ze.onMouseUp)==null||Ze.call(ze),(at=(et=T.value)==null?void 0:et.onMouseUp)==null||at.call(et);const be=i(B),Ne=i(A);ne({scrollLeft:Math.min(N.value.scrollLeft+we,V.value-be),scrollTop:Math.min(N.value.scrollTop+Ee,H.value-Ne)})});zt(k,"wheel",le,{passive:!1});const ne=({scrollLeft:we=N.value.scrollLeft,scrollTop:Ee=N.value.scrollTop})=>{we=Math.max(we,0),Ee=Math.max(Ee,0);const be=i(N);Ee===be.scrollTop&&we===be.scrollLeft||(N.value={...be,xAxisScrollDir:ri(be.scrollLeft,we),yAxisScrollDir:ri(be.scrollTop,Ee),scrollLeft:we,scrollTop:Ee,updateRequested:!0},Pe(()=>z()),Y(),K())},{touchStartX:se,touchStartY:J,handleTouchStart:de,handleTouchMove:ie}=qW(k,N,ne,V,H,B,A),U=(we=0,Ee=0,be=Fa)=>{const Ne=i(N);Ee=Math.max(0,Math.min(Ee,m.totalColumn-1)),we=Math.max(0,Math.min(we,m.total Line truncated
"columnWidth" must be passed as number,
instead ${typeof e} was given.
`),He(t)||rn(Mm,`
"columnWidth" must be passed as number,
instead ${typeof t} was given.
`)}}),{max:qc,min:Ly,floor:By}=Math,Tm="ElDynamicSizeGrid",YW={column:"columnWidth",row:"rowHeight"},e2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},ql=(e,t,n,a)=>{const[l,o,r]=[n[a],e[YW[a]],n[e2[a]]];if(t>r){let s=0;if(r>=0){const u=l[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=o(u);l[u]={offset:s,size:c},s+=c}n[e2[a]]=t}return l[t]},zy=(e,t,n,a,l,o)=>{for(;n<=a;){const r=n+By((a-n)/2),s=ql(e,r,t,o).offset;if(s===l)return r;s<l?n=r+1:a=r-1}return qc(0,n-1)},GW=(e,t,n,a,l)=>{const o=l==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&ql(e,n,t,l).offset<a;)n+=r,r*=2;return zy(e,t,By(n/2),Ly(n,o-1),a,l)},Om=(e,t,n,a)=>{const[l,o]=[t[a],t[e2[a]]];return(o>0?l[o].offset:0)>=n?zy(e,t,0,o,n,a):GW(e,t,qc(0,o),n,a)},Dy=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];l=r.offset+r.size}const o=(e-n-1)*t;return l+o},Hy=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},XW={column:Hy,row:Dy},$m=(e,t,n,a,l,o,r)=>{const[s,u]=[o==="row"?e.height:e.width,XW[o]],c=ql(e,t,l,o),d=qc(0,Ly(u(e,l)-s,c.offset)),f=qc(0,c.offset-s+r+c.size);switch(n==="smart"&&(a>=f-s&&a<=d+s?n=Fa:n=xl),n){case Ki:return d;case"end":return f;case xl:return Math.round(f+(d-f)/2);case Fa:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},ZW=Vy({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=ql(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=ql(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,o)=>$m(e,t,n,a,l,"column",o),getRowOffset:(e,t,n,a,l,o)=>$m(e,t,n,a,l,"row",o),getColumnStartIndexForOffset:(e,t,n)=>Om(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=ql(e,t,a,"column"),o=n+e.width;let r=l.offset+l.size,s=t;for(;s<e.totalColumn-1&&r<o;)s++,r+=ql(e,t,a,"column").size;return s},getEstimatedTotalHeight:Dy,getEstimatedTotalWidth:Hy,getRowStartIndexForOffset:(e,t,n)=>Om(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:o}=e,r=ql(e,t,a,"row"),s=n+o;let u=r.size+r.offset,c=t;for(;c<l-1&&u<s;)c++,u+=ql(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},s)=>{var u,c;s=Et(s)?!0:s,He(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(o,r)=>{n({columnIndex:o},r)},l=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{We(e)||rn(Tm,`
"columnWidth" must be passed as function,
instead ${typeof e} was given.
`),We(t)||rn(Tm,`
"rowHeight" must be passed as function,
instead ${typeof t} was given.
`)}}),Fy={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:An,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},Ky={[lt]:e=>Le(e)||He(e)||qt(e),change:e=>Le(e)||He(e)||qt(e)},zs=Symbol("checkboxGroupContextKey"),JW=xe({modelValue:{type:Z(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:An,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Z(Array)},props:{type:Z(Object),default:()=>Wy},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),QW={[lt]:e=>Ce(e),change:e=>Ce(e)},Wy={label:"label",value:"value",disabled:"disabled"},ej=({model:e,isChecked:t})=>{const n=Ie(zs,void 0),a=Ie(Vr,void 0),l=S(()=>{var s,u;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Et(o)&&e.value.length>=o&&!t.value||!Et(r)&&e.value.length<=r&&t.value});return{isDisabled:un(S(()=>{var o;return n===void 0?(a==null?void 0:a.disabled)??l.value:((o=n.disabled)==null?void 0:o.value)||l.value})),isLimitDisabled:l}},tj=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:o})=>{const r=Ie(zs,void 0),{formItem:s}=zn(),{emit:u}=mt();function c(v){return[!0,e.trueValue,e.trueLabel].includes(v)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(v,m){u(yt,c(v),m)}function f(v){if(n.value)return;const m=v.target;u(yt,c(m.checked),v)}async function p(v){n.value||!a.value&&!l.value&&o.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Pe(),d(t.value,v)))}const g=S(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(ft))}),{handleChange:f,onClickRoot:p}},nj=e=>{const t=L(!1),{emit:n,vnode:a}=mt(),l=Ie(zs,void 0),o=S(()=>Et(l)===!1),r=L(!1),s=S(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=S({get(){var c;return o.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;o.value&&Ce(c)?(r.value=((d=l==null?void 0:l.max)==null?void 0:d.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>u.value.length,r.value===!1&&((f=l==null?void 0:l.changeEvent)==null||f.call(l,c))):(n(lt,c),t.value=c)}});return{model:u,isGroup:o,isLimitExceeded:r}},aj=(e,t,{model:n})=>{const a=Ie(zs,void 0),l=L(!1),o=S(()=>Oa(e.value)?e.label:e.value),r=S(()=>{const s=n.value;return qt(s)?s:Ce(s)?ot(o.value)?s.map(Zt).some(u=>dn(u,o.value)):s.map(Zt).includes(o.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:$n(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:$n(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:S(()=>!!t.default||!Oa(o.value)),actualValue:o}},jy=(e,t)=>{const{formItem:n}=zn(),{model:a,isGroup:l,isLimitExceeded:o}=nj(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=aj(e,t,{model:a}),{isDisabled:p}=ej({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:v}=ka(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:m,onClickRoot:h}=tj(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:v});return(()=>{function b(){Ce(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),kl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>l.value&&Oa(e.value))),kl({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.trueLabel)),kl({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:v,isChecked:s,isDisabled:p,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:m,onClickRoot:h}},lj=["id","indeterminate","name","tabindex","disabled"];var oj=D({name:"ElCheckbox",__name:"checkbox",props:Fy,emits:Ky,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:l,isDisabled:o,isFocused:r,checkboxSize:s,hasOwnLabel:u,mode Line truncated
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),N[2]||(N[2]=M("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(w(),ue(i(De),{key:2,class:R(i(o).e("prefix"))},{default:ae(()=>[Q(i(Tr))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(Sj),{node:e.node},null,8,["node"]),re(" postfix "),p.value?re("v-if",!0):(w(),$(Ke,{key:3},[e.node.loading?(w(),ue(i(De),{key:0,class:R([i(o).is("loading"),i(o).e("postfix")])},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"])):(w(),ue(i(De),{key:1,class:R(["arrow-right",i(o).e("postfix")])},{default:ae(()=>[Q(i(Zn))]),_:1},8,["class"]))],64))],42,xj))}}),Nm=kj,Ej=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=mt(),l=ye("cascader-menu"),{t:o}=xt(),r=Gn();let s,u;const c=Ie(qd),d=L(),f=L(),p=S(()=>!n.nodes.length),g=S(()=>!c.initialLoaded),v=S(()=>`${r.value}-${n.index}`),m=()=>{var T,O,N,P;let E;if(c.expandingNode){const{level:A,pathNodes:B}=c.expandingNode;n.index<A?E=(T=B[n.index])==null?void 0:T.uid:n.index===A&&c.checkedNodes.length>0&&(E=(N=(O=c.checkedNodes[0])==null?void 0:O.pathNodes[n.index])==null?void 0:N.uid)}else c.checkedNodes.length>0&&n.index<c.checkedNodes[0].pathNodes.length&&(E=(P=c.checkedNodes[0].pathNodes[n.index])==null?void 0:P.uid);return E!==void 0?n.nodes.findIndex(A=>A.uid===E):-1},h=E=>E?n.nodes.findIndex(T=>`${v.value}-${T.uid}`===E):-1,y=E=>{var O;const T=wa(E,0,n.nodes.length-1);(O=f.value)==null||O.scrollToItem(T)},b=E=>{if(!n.nodes.length)return;const T=wa(E,0,n.nodes.length-1);y(T),Pe(()=>{var N;const O=(N=a.vnode.el)==null?void 0:N.querySelector(`#${v.value}-${n.nodes[T].uid}`);O&&rs(O)})},C=E=>{s=E.target},_=E=>{var T,O,N;if(!(!c.isHoverMenu||!s||!d.value))if(s.contains(E.target)){x();const P=a.vnode.el,{left:A}=P.getBoundingClientRect(),{offsetWidth:B,offsetHeight:q}=P,W=E.clientX-A,H=s.offsetTop,V=H+s.offsetHeight,I=n.virtualScroll?((O=(T=f.value)==null?void 0:T.states)==null?void 0:O.scrollOffset)||0:((N=P.querySelector(`.${l.e("wrap")}`))==null?void 0:N.scrollTop)||0;d.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${H} L${B} ${I} V${H} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${V} L${B} ${q+I} V${V} Z" />
`}else u||(u=window.setTimeout(k,c.config.hoverThreshold))},x=()=>{u&&(clearTimeout(u),u=void 0)},k=()=>{d.value&&(d.value.innerHTML="",x())};return t({getActiveNodeIndex:m,getNodeIndexById:h,scrollToItem:y,focusNodeAt:b,virtualListRef:f,get $el(){return a.vnode.el}}),(E,T)=>{var O;return e.virtualScroll?(w(),$("div",{key:v.value,class:R(i(l).b()),onMousemove:_,onMouseleave:k},[Q(i(jd),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(l).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(l).is("empty",p.value)}},{default:ae(({data:N,index:P,style:A})=>[(w(),ue(Nm,{key:N[P].uid,node:N[P],"menu-id":v.value,style:je(A),onExpand:C},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),g.value?(w(),$("div",{key:0,class:R(i(l).e("empty-text"))},[Q(i(De),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"]),bt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),$("div",{key:1,class:R(i(l).e("empty-text"))},[oe(E.$slots,"empty",{},()=>[bt(Se(i(o)("el.cascader.noData")),1)])],2)):(O=i(c))!=null&&O.isHoverMenu?(w(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(w(),$("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")],34)):(w(),ue(i(sl),{key:v.value,tag:"ul",role:"menu",class:R(i(l).b()),"wrap-class":i(l).e("wrap"),"view-class":[i(l).e("list"),i(l).is("empty",p.value)],onMousemove:_,onMouseleave:k},{default:ae(()=>{var N;return[(w(!0),$(Ke,null,_t(e.nodes,P=>(w(),ue(Nm,{key:P.uid,node:P,"menu-id":v.value,onExpand:C},null,8,["node","menu-id"]))),128)),g.value?(w(),$("div",{key:0,class:R(i(l).e("empty-text"))},[Q(i(De),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"]),bt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),$("div",{key:1,class:R(i(l).e("empty-text"))},[oe(E.$slots,"empty",{},()=>[bt(Se(i(o)("el.cascader.noData")),1)])],2)):(N=i(c))!=null&&N.isHoverMenu?(w(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(w(),$("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),Mj=Ej;let Tj=0;const Oj=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var t2=class n2{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=Tj++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:r,children:s}=n,u=t[s],c=Oj(this);this.level=l?0:a?a.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new n2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!va(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:o}=a;return(We(l)?l(t,this):!!t[l])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:o,leaf:r}=n,s=We(r)?r(t,this):t[r];return Et(s)?o&&!l?!1:!(Ce(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new n2(t,this.config,this);return Ce(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,o)=>l+(o.checked?1:o.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const a2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(a2(a.children,t))),n),[]);var Am=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new t2(a,this.config));this.nodes=n,this.allNodes=a2(n,!1),this.leafNodes=a2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new t2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.child Line truncated
M 50 50
m 0 ${_?"":"-"}${C}
a ${C} ${C} 0 1 1 0 ${_?"-":""}${C*2}
a ${C} ${C} 0 1 1 0 ${_?"":"-"}${C*2}
`}),u=S(()=>2*Math.PI*r.value),c=S(()=>n.type==="dashboard"?.75:1),d=S(()=>`${-1*u.value*(1-c.value)/2}px`),f=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=S(()=>{let C;return n.color?C=b(n.percentage):C=t[n.status]||t.default,C}),v=S(()=>n.status==="warning"?Cu:n.type==="line"?n.status==="success"?Dd:vl:n.status==="success"?Tr:Va),m=S(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),h=S(()=>n.format(n.percentage));function y(C){const _=100/C.length;return C.map((x,k)=>Le(x)?{color:x,percentage:(k+1)*_}:x).sort((x,k)=>x.percentage-k.percentage)}const b=C=>{var x;const{color:_}=n;if(We(_))return _(C);if(Le(_))return _;{const k=y(_);for(const E of k)if(E.percentage>C)return E.color;return(x=k[k.length-1])==null?void 0:x.color}};return(C,_)=>(w(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(w(),$("div",{key:0,class:R(i(a).b("bar"))},[M("div",{class:R(i(a).be("bar","outer")),style:je({height:`${e.strokeWidth}px`})},[M("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:je(l.value)},[(e.showText||C.$slots.default)&&e.textInside?(w(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(C.$slots,"default",{percentage:e.percentage},()=>[M("span",null,Se(h.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(w(),$("div",{key:1,class:R(i(a).b("circle")),style:je({height:`${e.width}px`,width:`${e.width}px`})},[(w(),$("svg",GJ,[M("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:je(f.value)},null,14,XJ),M("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:je(p.value)},null,14,ZJ)]))],6)),(e.showText||C.$slots.default)&&!e.textInside?(w(),$("div",{key:2,class:R(i(a).e("text")),style:je({fontSize:`${m.value}px`})},[oe(C.$slots,"default",{percentage:e.percentage},()=>[e.status?(w(),ue(i(De),{key:1},{default:ae(()=>[(w(),ue(dt(v.value)))]),_:1})):(w(),$("span",JJ,Se(h.value),1))])],6)):re("v-if",!0)],10,YJ))}}),eQ=QJ;const Zb=it(eQ),tQ=xe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Z([Array,Object]),default:()=>fn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Z([Array,Object]),default:()=>[li,li,li]},voidIcon:{type:Yt,default:()=>_8},disabledVoidIcon:{type:Yt,default:()=>li},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Z(Array),default:()=>fn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:An,clearable:Boolean,...ia(["ariaLabel"])}),nQ={[yt]:e=>He(e),[lt]:e=>He(e)},aQ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],lQ=["onMousemove","onClick"];var oQ=D({name:"ElRate",__name:"rate",props:tQ,emits:nQ,setup(e,{expose:t,emit:n}){function a(I,F){const K=G=>ot(G),j=F[Object.keys(F).map(G=>+G).filter(G=>{const ee=F[G];return K(ee)&&ee.excluded?I<G:I<=G}).sort((G,ee)=>G-ee)[0]];return K(j)&&j.value||j}const l=e,o=n,r=Ie(Vl,void 0),s=$n(),u=ye("rate"),{inputId:c,isLabeledByFormItem:d}=ka(l,{formItemContext:r}),f=L(wa(l.modelValue,0,l.max)),p=L(-1),g=L(!0),v=L([]),m=S(()=>v.value.map(I=>I.$el.clientWidth)),h=S(()=>[u.b(),u.m(s.value)]),y=un(),b=S(()=>u.cssVarBlock({"void-color":l.voidColor,"disabled-void-color":l.disabledVoidColor,"fill-color":k.value})),C=S(()=>{let I="";return l.showScore?I=l.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${l.modelValue}`:`${f.value}`):l.showText&&(I=l.texts[Math.ceil(f.value)-1]),I}),_=S(()=>l.modelValue*100-Math.floor(l.modelValue)*100),x=S(()=>Ce(l.colors)?{[l.lowThreshold]:l.colors[0],[l.highThreshold]:{value:l.colors[1],excluded:!0},[l.max]:l.colors[2]}:l.colors),k=S(()=>{const I=a(f.value,x.value);return ot(I)?"":I}),E=S(()=>{let I="";return y.value?I=`${_.value}%`:l.allowHalf&&(I="50%"),{color:k.value,width:I}}),T=S(()=>{let I=Ce(l.icons)?[...l.icons]:{...l.icons};return I=Ka(I),Ce(I)?{[l.lowThreshold]:I[0],[l.highThreshold]:{value:I[1],excluded:!0},[l.max]:I[2]}:I}),O=S(()=>a(l.modelValue,T.value)),N=S(()=>y.value?Le(l.d Line truncated
`||c==="\r")){r=u;continue}if(o.includes(c)){const d=r===-1?a:r;s={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},_oe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),o.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),v=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),m=v+Number.parseInt(u.lineHeight);g>m?s.lineHeight=`${g-v}px`:g===m?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[p]=u[p]}),Ad()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,l)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Soe=xe({...zp,options:{type:Z(Array),default:()=>[]},prefix:{type:Z([String,Array]),default:"@",validator:e=>Le(e)?e.length===1:e.every(t=>Le(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:Z([Boolean,Function]),default:()=>woe,validator:e=>e===!1?!0:We(e)},placement:{type:Z(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Z(Function)},modelValue:String,loading:Boolean,popperClass:jt.popperClass,popperStyle:jt.popperStyle,popperOptions:{type:Z(Object),default:()=>({})},props:{type:Z(Object),default:()=>Zw}}),xoe={[lt]:e=>Le(e),"whole-remove":(e,t)=>Le(e)&&Le(t),input:e=>Le(e),search:(e,t)=>Le(e)&&Le(t),select:(e,t)=>ot(e)&&Le(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Zw={value:"value",label:"label",disabled:"disabled"},koe=xe({options:{type:Z(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Eoe={select:e=>Le(e.value)},Moe=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Toe=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:koe,emits:Eoe,setup(e,{expose:t,emit:n}){const a=e,l=n,o=ye("mention"),{t:r}=xt(),s=L(-1),u=L(),c=L(),d=L(),f=(_,x)=>[o.be("dropdown","item"),o.is("hovering",s.value===x),o.is("disabled",_.disabled||a.disabled)],p=_=>{_.disabled||a.disabled||l("select",_)},g=_=>{s.value=_},v=S(()=>a.disabled||a.options.every(_=>_.disabled)),m=S(()=>a.options[s.value]),h=()=>{!m.value||m.value.disabled||a.disabled||l("select",m.value)},y=_=>{const{options:x}=a;if(x.length===0||v.value)return;_==="next"?(s.value++,s.value===x.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=x.length-1));const k=x[s.value];if(k.disabled){y(_);return}Pe(()=>b(k))},b=_=>{var T,O,N,P;const{options:x}=a,k=x.findIndex(A=>A.value===_.value),E=(T=c.value)==null?void 0:T[k];if(E){const A=(N=(O=d.value)==null?void 0:O.querySelector)==null?void 0:N.call(O,`.${o.be("dropdown","wrap")}`);A&&pp(A,E)}(P=u.value)==null||P.handleScroll()};return fe(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(_=>!_.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:h,hoverOption:m}),(_,x)=>(w(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(o).b("dropdown"))},[_.$slots.header?(w(),$("div",{key:0,class:R(i(o).be("dropdown","header"))},[oe(_.$slots,"header")],2)):re("v-if",!0),vt(Q(i(sl),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(o).be("dropdown","wrap"),"view-class":i(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(w(!0),$(Ke,null,_t(e.options,(k Line truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Zr=typeof document<"u";function r5(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vse(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&r5(e.default)}const on=Object.assign;function Yf(e,t){const n={};for(const a in t){const l=t[a];n[a]=il(l)?l.map(e):e(l)}return n}const Si=()=>{},il=Array.isArray;function kg(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const s5=/#/g,hse=/&/g,mse=/\//g,gse=/=/g,yse=/\?/g,i5=/\+/g,bse=/%5B/g,wse=/%5D/g,u5=/%5E/g,Cse=/%60/g,c5=/%7B/g,_se=/%7C/g,d5=/%7D/g,Sse=/%20/g;function Lv(e){return e==null?"":encodeURI(""+e).replace(_se,"|").replace(bse,"[").replace(wse,"]")}function xse(e){return Lv(e).replace(c5,"{").replace(d5,"}").replace(u5,"^")}function b2(e){return Lv(e).replace(i5,"%2B").replace(Sse,"+").replace(s5,"%23").replace(hse,"%26").replace(Cse,"`").replace(c5,"{").replace(d5,"}").replace(u5,"^")}function kse(e){return b2(e).replace(gse,"%3D")}function Ese(e){return Lv(e).replace(s5,"%23").replace(yse,"%3F")}function Mse(e){return Ese(e).replace(mse,"%2F")}function Zi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Tse=/\/$/,Ose=e=>e.replace(Tse,"");function Gf(e,t,n="/"){let a,l={},o="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),o=t.slice(u,s>0?s:t.length),l=e(o.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=Rse(a??t,n),{fullPath:a+o+r,path:a,query:l,hash:Zi(r)}}function $se(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Eg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Nse(e,t,n){const a=t.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&Ts(t.matched[a],n.matched[l])&&f5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ts(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function f5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ase(e[n],t[n]))return!1;return!0}function Ase(e,t){return il(e)?Mg(e,t):il(t)?Mg(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Mg(e,t){return il(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Rse(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),l=a[a.length-1];(l===".."||l===".")&&a.push("");let o=n.length-1,r,s;for(r=0;r<a.length;r++)if(s=a[r],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+a.slice(r).join("/")}const ko={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let w2=function(e){return e.pop="pop",e.push="push",e}({}),Xf=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Pse(e){if(!e)if(Zr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ose(e)}const Ise=/^[^#]+#/;function Vse(e,t){return e.replace(Ise,"#")+t}function Lse(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Jd=()=>({left:window.scrollX,top:window.scrollY});function Bse(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=Lse(l,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 Tg(e,t){return(history.state?history.state.position-t:-1)+e}const C2=new Map;function zse(e,t){C2.set(e,t)}function Dse(e){const t=C2.get(e);return C2.delete(e),t}function Hse(e){return typeof e=="string"||e&&typeof e=="object"}function p5(e){return typeof e=="string"||typeof e=="symbol"}let Nn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const v5=Symbol("");Nn.MATCHER_NOT_FOUND+"",Nn.NAVIGATION_GUARD_REDIRECT+"",Nn.NAVIGATION_ABORTED+"",Nn.NAVIGATION_CANCELLED+"",Nn.NAVIGATION_DUPLICATED+"";function Os(e,t){return on(new Error,{type:e,[v5]:!0},t)}function Kl(e,t){return e instanceof Error&&v5 in e&&(t==null||!!(e.type&t))}const Fse=["params","query","hash"];function Kse(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Fse)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Wse(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const l=n[a].replace(i5," "),o=l.indexOf("="),r=Zi(o<0?l:l.slice(0,o)),s=o<0?null:Zi(l.slice(o+1));if(r in t){let uLine truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Yse=()=>location.protocol+"//"+location.host;function h5(e,t){const{pathname:n,search:a,hash:l}=t,o=e.indexOf("#");if(o>-1){let r=l.includes(e.slice(o))?e.slice(o).length:1,s=l.slice(r);return s[0]!=="/"&&(s="/"+s),Eg(s,"")}return Eg(n,e)+a+l}function Gse(e,t,n,a){let l=[],o=[],r=null;const s=({state:p})=>{const g=h5(e,location),v=n.value,m=t.value;let h=0;if(p){if(n.value=g,t.value=p,r&&r===v){r=null;return}h=m?p.position-m.position:0}else a(g);l.forEach(y=>{y(n.value,v,{delta:h,type:w2.pop,direction:h?h>0?Xf.forward:Xf.back:Xf.unknown})})};function u(){r=n.value}function c(p){l.push(p);const g=()=>{const v=l.indexOf(p);v>-1&&l.splice(v,1)};return o.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(on({},p.state,{scroll:Jd()}),"")}}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function Ng(e,t,n,a=!1,l=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:l?Jd():null}}function Xse(e){const{history:t,location:n}=window,a={value:h5(e,n)},l={value:t.state};l.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:Yse()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),l.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function r(u,c){o(u,on({},t.state,Ng(l.value.back,u,l.value.forward,!0),c,{position:l.value.position}),!0),a.value=u}function s(u,c){const d=on({},l.value,t.state,{forward:u,scroll:Jd()});o(d.current,d,!0),o(u,on({},Ng(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:l,push:s,replace:r}}function Zse(e){e=Pse(e);const t=Xse(e),n=Gse(e,t.state,t.location,t.replace);function a(o,r=!0){r||n.pauseListeners(),history.go(o)}const l=on({location:"",base:e,go:a,createHref:Vse.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function Jse(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zse(e)}let fr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Dn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Dn||{});const Qse={type:fr.Static,value:""},eie=/[a-zA-Z0-9_]/;function tie(e){if(!e)return[[]];if(e==="/")return[[Qse]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=Dn.Static,a=n;const l=[];let o;function r(){o&&l.push(o),o=[]}let s=0,u,c="",d="";function f(){c&&(n===Dn.Static?o.push({type:fr.Static,value:c}):n===Dn.Param||n===Dn.ParamRegExp||n===Dn.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:fr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&n!==Dn.ParamRegExp){a=n,n=Dn.EscapeNext;continue}switch(n){case Dn.Static:u==="/"?(c&&f(),r()):u===":"?(f(),n=Dn.Param):p();break;case Dn.EscapeNext:p(),n=a;break;case Dn.Param:u==="("?n=Dn.ParamRegExp:eie.test(u)?p():(f(),n=Dn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case Dn.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=Dn.ParamRegExpEnd:d+=u;break;case Dn.ParamRegExpEnd:f(),n=Dn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===Dn.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),l}const Ag="[^/]+?",nie={sensitive:!1,strict:!1,start:!0,end:!0};var fa=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(fa||{});const aie=/[.+*?^${}()[\]/\\]/g;function lie(e,t){const n=on({},nie,t),a=[];let l=n.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[fa.Root];n.strict&&!c.length&&(l+="/");for(let f=0;f<c.length;f++){const p=c[f];let g=fa.Segment+(n.sensitive?fa.BonusCaseSensitive:0);if(p.type===fr.Static)f||(l+="/"),l+=p.value.replace(aie,"\\$&"),g+=fa.Static;else if(p.type===fr.ParLine truncated
+9
View File
@@ -0,0 +1,9 @@
import{k as Ge,b9 as Qe}from"./index-Bn3no55S.js";function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vt}=Object.prototype,{getPrototypeOf:Z}=Object,{iterator:ae,toStringTag:yt}=Symbol,be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ie=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),be(n,t))return!0;n=Z(n)}return!1},Jt=(e,t)=>e!=null&&ie(e,t)?e[t]:void 0,Ie=(e=>t=>{const n=Vt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>Ie(t)===e),ge=e=>t=>typeof t===e,{isArray:K}=Array,Y=ge("undefined");function ee(e){return e!==null&&!Y(e)&&e.constructor!==null&&!Y(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wt=F("ArrayBuffer");function vt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wt(e.buffer),t}const Wt=ge("string"),L=ge("function"),bt=ge("number"),te=e=>e!==null&&typeof e=="object",Kt=e=>e===!0||e===!1,me=e=>{if(!te(e))return!1;const t=Z(e);return(t===null||t===Object.prototype||Z(t)===null)&&!ie(e,yt)&&!ie(e,ae)},Xt=e=>{if(!te(e)||ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gt=F("Date"),Qt=F("File"),Zt=e=>!!(e&&typeof e.uri<"u"),Yt=e=>e&&typeof e.getParts<"u",en=F("Blob"),tn=F("FileList"),nn=e=>te(e)&&L(e.pipe);function rn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ze=rn(),Ye=typeof Ze.FormData<"u"?Ze.FormData:void 0,sn=e=>{if(!e)return!1;if(Ye&&e instanceof Ye)return!0;const t=Z(e);if(!t||t===Object.prototype||!L(e.append))return!1;const n=Ie(e);return n==="formdata"||n==="object"&&L(e.toString)&&e.toString()==="[object FormData]"},on=F("URLSearchParams"),[an,cn,ln,un]=["ReadableStream","Request","Response","Headers"].map(F),fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ce(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),K(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ee(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let c;for(r=0;r<a;r++)c=o[r],t.call(null,e[c],c,e)}}function Et(e,t){if(ee(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const v=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rt=e=>!Y(e)&&e!==v;function Le(...e){const{caseless:t,skipUndefined:n}=Rt(this)&&this||{},r={},s=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&Et(r,a)||a,l=be(r,c)?r[c]:void 0;me(l)&&me(o)?r[c]=Le(l,o):me(o)?r[c]=Le({},o):K(o)?r[c]=o.slice():(!n||!Y(o))&&(r[c]=o)};for(let o=0,a=e.length;o<a;o++){const c=e[o];if(!c||ee(c)||(ce(c,s),typeof c!="object"||K(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let f=0;f<l.length;f++){const u=l[f];On.call(c,u)&&s(c[u],u)}}return r}const dn=(e,t,n,{allOwnKeys:r}={})=>(ce(t,(s,o)=>{n&&L(s)?Object.defineProperty(e,o,{__proto__:null,value:mt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},mn=(e,t,n,r)=>{let s,o,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yn=(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},wn=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!bt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z(Uint8Array)),En=(e,t)=>{const r=(e&&e[ae]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Rn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gn=F("HTMLFormElement"),Sn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:On}=Object.prototype,An=F("RegExp"),gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ce(n,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(r[o]=a||s)}),Object.defineProperties(e,r)},_n=e=>{gt(e,(t,n)=>{if(L(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(L(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"Line truncated
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&Bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function jn(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const kn=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),qn=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function je(e,t){return i.isArray(e)?e.map(n=>je(n,t)):jn(String(e).replace(t,""))}const Hn=e=>je(e,kn),Mn=e=>je(e,qn);function At(e){const t=Object.create(null);return i.forEach(e.toJSON(),(n,r)=>{t[r]=Mn(n)}),t}const et=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:i.isArray(e)?e.map(ye):Hn(String(e))}function zn(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 $n=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xe(e,t,n,r,s){if(i.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!i.isString(t)){if(i.isString(r))return t.indexOf(r)!==-1;if(i.isRegExp(r))return r.test(t)}}function Vn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jn(e,t){const n=i.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,a){return this[r].call(this,t,s,o,a)},configurable:!0})})}let D=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,f){const u=oe(l);if(!u)return;const p=i.findKey(s,u);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||l]=ye(c))}const a=(c,l)=>i.forEach(c,(f,u)=>o(f,u,l));if(i.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(i.isString(t)&&(t=t.trim())&&!$n(t))a(In(t),n);else if(i.isObject(t)&&i.isSafeIterable(t)){let c=Object.create(null),l,f;for(const u of t){if(!i.isArray(u))throw new TypeError("Object iterator must return a key-value pair");f=u[0],i.hasOwnProp(c,f)?(l=c[f],c[f]=i.isArray(l)?[...l,u[1]]:[l,u[1]]):c[f]=u[1]}a(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=oe(t),t){const r=i.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return zn(s);if(i.isFunction(n))return n.call(this,s,r);if(i.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oe(t),t){const r=i.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(a){if(a=oe(a),a){const c=i.findKey(r,a);c&&(!n||xe(r,r[c],c,n))&&(delete r[c],s=!0)}}return i.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||xe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return i.forEach(this,(s,o)=>{const a=i.findKey(r,o);if(a){n[a]=ye(s),delete n[o];return}const c=t?Vn(o):String(o).trim();c!==o&&delete n[o],n[c]=ye(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return i.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&i.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(s=>r.set(s)),r}static accessor(t){const r=(this[et]=this[et]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=oe(a);r[c]||(Jn(s,a),r[c]=!0)}return i.isArray(t)?t.forEach(o):o(t),this}};D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});i.freezeMethods(D);const vn="[REDACTED ****]";function Wn(e){if(i.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(i.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Kn(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||i.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof D&&(o=o.toJSON()),r.push(o);let a;if(i.isArray(o))a=[],o.forEach((c,l)=>{const f=s(c);i.isUndefined(f)||(a[l]=f)});else{if(!i.isPlainObject(o)&&Wn(o))return r.pop(),o;a=Object.create(null);for(const[c,l]of Object.entries(o)){const f=n.has(c.toLowerCase())?vn:s(l);i.isUndefined(f)||(a[c]=f)}}return r.pop(),a};return s(e)}let h=class _t extends Error{static from(t,n,r,s,o,a){const c=new _t(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&i.hasOwnProp(t,"redact")?t.redact:void 0,r=i.isArray(n)&&n.length>0?Kn(t,n):i.toJSONObject(t);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:r,code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ECONNREFUSED="ECONNREFUSED";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";h.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Xn=null,Tt=100;function Ue(e){return i.isPlainObject(e)||i.isArray(e)}function Ct(e){return i.endsWith(e,"[]")?e.slice(0,-2):e}function Pe(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ct(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Gn(e){return i.isArray(e)&&!e.some(Ue)}const Qn=i.toFlatObject(i,{},null,function(t){return/^is[A-Z]/.test(t)});function Se(e,t,n){if(!i.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=i.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,E){return!i.isUndefined(E[y])});const r=n.metaTokens,s=n.visitor||S,o=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?Tt:n.maxDepth,f=c&&i.isSpecCompliantForm(t),u=[];if(!i.isFunction(s))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(i.isDate(d))return d.toISOString();if(i.isBoolean(d))return d.toString();if(!f&&i.isBlob(d))throw new h("Blob is not supported. Use a Buffer instead.");return i.isArrayBuffer(d)||i.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function w(d){if(d>l)throw new h("Object is too deeply nested ("+d+" levels). Max depth: "+l,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(d,y){if(l===1/0)return JSON.stringify(d);const E=[];return JSON.stringify(d,function(P,_){if(!i.isObject(_))return _;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push(_),w(y+E.length-1),_})}function S(d,y,E){let g=d;if(i.isReactNative(t)&&i.isReactNativeBlob(d))return t.append(Pe(E,y,o),p(d)),!1;if(d&&!E&&typeof d=="object"){if(i.endsWith(y,"{}"))y=r?y:y.slice(0,-2),d=b(d,1);else if(i.isArray(d)&&Gn(d)||(i.isFileList(d)||i.endsWith(y,"[]"))&&(g=i.toArray(d)))return y=Ct(y),g.forEach(function(_,q){!(i.isUndefined(_)||_===null)&&t.append(a===!0?Pe([y],q,o):a===null?y:y+"[]",p(_))}),!1}return Ue(d)?!0:(t.append(Pe(E,y,o),p(d)),!1)}const O=Object.assign(Qn,{defaultVisitor:S,convertValue:p,isVisitable:Ue});function m(d,y,E=0){if(!i.isUndefined(d)){if(w(E),u.indexOf(d)!==-1)throw new Error("Circular reference detected in "+y.join("."));u.push(d),i.forEach(d,function(P,_){(!(i.isUndefined(P)||P===null)&&s.call(t,P,i.isString(_)?_.trim():_,y,O))===!0&&m(P,y?y.concat(_):[_],E+1)}),u.pop()}}if(!i.isObject(e))throw new TypeErr Line truncated
`+a.map(dt).join(`
`):" "+dt(a[0]):"as no adapter specified";throw new h("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const jt={getAdapter:kr,adapters:ze};function De(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ue(null,e)}function pt(e){return De(e),e.headers=D.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jt.getAdapter(e.adapter||le.adapter,e)(e).then(function(r){De(e),e.response=r;try{r.data=Ne.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=D.from(r.headers),r},function(r){if(!Lt(r)&&(De(e),r&&r.response)){e.response=r.response;try{r.response.data=Ne.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=D.from(r.response.headers)}return Promise.reject(r)})}const Oe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ht={};Oe.transitional=function(t,n,r){function s(o,a){return"[Axios v"+Me+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,c)=>{if(t===!1)throw new h(s(a," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!ht[a]&&(ht[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,c):!0}};Oe.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function qr(e,t,n){if(typeof e!="object")throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const c=e[o],l=c===void 0||a(c,o,e);if(l!==!0)throw new h("option "+o+" must be "+l,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+o,h.ERR_BAD_OPTION)}}const we={assertOptions:qr,validators:Oe},N=we.validators;let W=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nt,response:new nt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const a=s.stack.indexOf(`
`);return a===-1?"":s.stack.slice(a+1)})();try{if(!r.stack)r.stack=o;else if(o){const a=o.indexOf(`
`),c=a===-1?-1:o.indexOf(`
`,a+1),l=c===-1?"":o.slice(c+1);String(r.stack).endsWith(l)||(r.stack+=`
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=X(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&we.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean),advertiseZstdAcceptEncoding:N.transitional(N.boolean),validateStatusUndefinedResolves:N.transitional(N.boolean)},!1),s!=null&&(i.isFunction(s)?n.paramsSerializer={serialize:s}:we.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),we.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&i.merge(o.common,o[n.method]);o&&i.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete o[S]}),n.headers=D.concat(a,o);const c=[];let l=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(n)===!1)return;l=l&&O.synchronous;const m=n.transitional||qe;m&&m.legacyInterceptorReqResOrdering?c.unshift(O.fulfilled,O.rejected):c.push(O.fulfilled,O.rejected)});const f=[];this.interceptors.response.forEach(function(O){f.push(O.fulfilled,O.rejected)});let u,p=0,w;if(!l){const S=[pt.bind(this),void 0];for(S.unshift(...c),S.push(...f),w=S.length,u=Promise.resolve(n);p<w;)u=u.then(S[p++],S[p++]);return u}w=c.length;let b=n;for(;p<w;){const S=c[p++],O=c[p++];try{b=S(b)}catch(m){O.call(this,m);break}}try{u=pt.call(this,b)}catch(S){return Promise.reject(S)}for(p=0,w=f.length;p<w;)u=u.then(f[p++],f[p++]);return u}getUri(t){t=X(this.defaults,t);const n=Ft(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Pt(n,t.params,t.paramsSerializer)}};i.forEach(["delete","get","head","options"],function(t){W.prototype[t]=function(n,r){return this.request(X(r||{},{method:t,url:n,data:r&&i.hasOwnProp(r,"data")?r.data:void 0}))}});i.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,a,c){return this.request(X(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}W.prototype[t]=n(),t!=="query"&&(W.prototype[t+"Form"]=n(!0))});let Hr=class kt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{r.subscribe(c),o=c}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,c){r.reason||(r.reason=new ue(o,a,c),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 kt(function(s){t=s}),cancel:t}}};function Mr(e){return function(n){return e.apply(null,n)}}function zr(e){return i.isObject(e)&&e.isAxiosError===!0}const Be={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Be).forEach(([e,t])=>{Be[t]=e});function qt(e){const t=new W(e),n=mt(W.prototype.request,t);return i.extend(n,W.prototype,t,{allOwnKeys:!0}),i.extend(n,t,null,{allOwnKeys:!0} Line truncated
+9
View File
@@ -0,0 +1,9 @@
import{k as Ge,b9 as Qe}from"./index-B5xNuf83.js";function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vt}=Object.prototype,{getPrototypeOf:Z}=Object,{iterator:ae,toStringTag:yt}=Symbol,be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ie=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),be(n,t))return!0;n=Z(n)}return!1},Jt=(e,t)=>e!=null&&ie(e,t)?e[t]:void 0,Ie=(e=>t=>{const n=Vt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>Ie(t)===e),ge=e=>t=>typeof t===e,{isArray:K}=Array,Y=ge("undefined");function ee(e){return e!==null&&!Y(e)&&e.constructor!==null&&!Y(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wt=F("ArrayBuffer");function vt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wt(e.buffer),t}const Wt=ge("string"),L=ge("function"),bt=ge("number"),te=e=>e!==null&&typeof e=="object",Kt=e=>e===!0||e===!1,me=e=>{if(!te(e))return!1;const t=Z(e);return(t===null||t===Object.prototype||Z(t)===null)&&!ie(e,yt)&&!ie(e,ae)},Xt=e=>{if(!te(e)||ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gt=F("Date"),Qt=F("File"),Zt=e=>!!(e&&typeof e.uri<"u"),Yt=e=>e&&typeof e.getParts<"u",en=F("Blob"),tn=F("FileList"),nn=e=>te(e)&&L(e.pipe);function rn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ze=rn(),Ye=typeof Ze.FormData<"u"?Ze.FormData:void 0,sn=e=>{if(!e)return!1;if(Ye&&e instanceof Ye)return!0;const t=Z(e);if(!t||t===Object.prototype||!L(e.append))return!1;const n=Ie(e);return n==="formdata"||n==="object"&&L(e.toString)&&e.toString()==="[object FormData]"},on=F("URLSearchParams"),[an,cn,ln,un]=["ReadableStream","Request","Response","Headers"].map(F),fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ce(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),K(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ee(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let c;for(r=0;r<a;r++)c=o[r],t.call(null,e[c],c,e)}}function Et(e,t){if(ee(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const v=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rt=e=>!Y(e)&&e!==v;function Le(...e){const{caseless:t,skipUndefined:n}=Rt(this)&&this||{},r={},s=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&Et(r,a)||a,l=be(r,c)?r[c]:void 0;me(l)&&me(o)?r[c]=Le(l,o):me(o)?r[c]=Le({},o):K(o)?r[c]=o.slice():(!n||!Y(o))&&(r[c]=o)};for(let o=0,a=e.length;o<a;o++){const c=e[o];if(!c||ee(c)||(ce(c,s),typeof c!="object"||K(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let f=0;f<l.length;f++){const u=l[f];On.call(c,u)&&s(c[u],u)}}return r}const dn=(e,t,n,{allOwnKeys:r}={})=>(ce(t,(s,o)=>{n&&L(s)?Object.defineProperty(e,o,{__proto__:null,value:mt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},mn=(e,t,n,r)=>{let s,o,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yn=(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},wn=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!bt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z(Uint8Array)),En=(e,t)=>{const r=(e&&e[ae]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Rn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gn=F("HTMLFormElement"),Sn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:On}=Object.prototype,An=F("RegExp"),gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ce(n,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(r[o]=a||s)}),Object.defineProperties(e,r)},_n=e=>{gt(e,(t,n)=>{if(L(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(L(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"Line truncated
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&Bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function jn(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const kn=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),qn=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function je(e,t){return i.isArray(e)?e.map(n=>je(n,t)):jn(String(e).replace(t,""))}const Hn=e=>je(e,kn),Mn=e=>je(e,qn);function At(e){const t=Object.create(null);return i.forEach(e.toJSON(),(n,r)=>{t[r]=Mn(n)}),t}const et=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:i.isArray(e)?e.map(ye):Hn(String(e))}function zn(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 $n=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xe(e,t,n,r,s){if(i.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!i.isString(t)){if(i.isString(r))return t.indexOf(r)!==-1;if(i.isRegExp(r))return r.test(t)}}function Vn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jn(e,t){const n=i.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,a){return this[r].call(this,t,s,o,a)},configurable:!0})})}let D=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,f){const u=oe(l);if(!u)return;const p=i.findKey(s,u);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||l]=ye(c))}const a=(c,l)=>i.forEach(c,(f,u)=>o(f,u,l));if(i.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(i.isString(t)&&(t=t.trim())&&!$n(t))a(In(t),n);else if(i.isObject(t)&&i.isSafeIterable(t)){let c=Object.create(null),l,f;for(const u of t){if(!i.isArray(u))throw new TypeError("Object iterator must return a key-value pair");f=u[0],i.hasOwnProp(c,f)?(l=c[f],c[f]=i.isArray(l)?[...l,u[1]]:[l,u[1]]):c[f]=u[1]}a(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=oe(t),t){const r=i.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return zn(s);if(i.isFunction(n))return n.call(this,s,r);if(i.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oe(t),t){const r=i.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(a){if(a=oe(a),a){const c=i.findKey(r,a);c&&(!n||xe(r,r[c],c,n))&&(delete r[c],s=!0)}}return i.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||xe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return i.forEach(this,(s,o)=>{const a=i.findKey(r,o);if(a){n[a]=ye(s),delete n[o];return}const c=t?Vn(o):String(o).trim();c!==o&&delete n[o],n[c]=ye(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return i.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&i.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(s=>r.set(s)),r}static accessor(t){const r=(this[et]=this[et]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=oe(a);r[c]||(Jn(s,a),r[c]=!0)}return i.isArray(t)?t.forEach(o):o(t),this}};D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});i.freezeMethods(D);const vn="[REDACTED ****]";function Wn(e){if(i.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(i.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Kn(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||i.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof D&&(o=o.toJSON()),r.push(o);let a;if(i.isArray(o))a=[],o.forEach((c,l)=>{const f=s(c);i.isUndefined(f)||(a[l]=f)});else{if(!i.isPlainObject(o)&&Wn(o))return r.pop(),o;a=Object.create(null);for(const[c,l]of Object.entries(o)){const f=n.has(c.toLowerCase())?vn:s(l);i.isUndefined(f)||(a[c]=f)}}return r.pop(),a};return s(e)}let h=class _t extends Error{static from(t,n,r,s,o,a){const c=new _t(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&i.hasOwnProp(t,"redact")?t.redact:void 0,r=i.isArray(n)&&n.length>0?Kn(t,n):i.toJSONObject(t);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:r,code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ECONNREFUSED="ECONNREFUSED";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";h.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Xn=null,Tt=100;function Ue(e){return i.isPlainObject(e)||i.isArray(e)}function Ct(e){return i.endsWith(e,"[]")?e.slice(0,-2):e}function Pe(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ct(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Gn(e){return i.isArray(e)&&!e.some(Ue)}const Qn=i.toFlatObject(i,{},null,function(t){return/^is[A-Z]/.test(t)});function Se(e,t,n){if(!i.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=i.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,E){return!i.isUndefined(E[y])});const r=n.metaTokens,s=n.visitor||S,o=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?Tt:n.maxDepth,f=c&&i.isSpecCompliantForm(t),u=[];if(!i.isFunction(s))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(i.isDate(d))return d.toISOString();if(i.isBoolean(d))return d.toString();if(!f&&i.isBlob(d))throw new h("Blob is not supported. Use a Buffer instead.");return i.isArrayBuffer(d)||i.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function w(d){if(d>l)throw new h("Object is too deeply nested ("+d+" levels). Max depth: "+l,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(d,y){if(l===1/0)return JSON.stringify(d);const E=[];return JSON.stringify(d,function(P,_){if(!i.isObject(_))return _;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push(_),w(y+E.length-1),_})}function S(d,y,E){let g=d;if(i.isReactNative(t)&&i.isReactNativeBlob(d))return t.append(Pe(E,y,o),p(d)),!1;if(d&&!E&&typeof d=="object"){if(i.endsWith(y,"{}"))y=r?y:y.slice(0,-2),d=b(d,1);else if(i.isArray(d)&&Gn(d)||(i.isFileList(d)||i.endsWith(y,"[]"))&&(g=i.toArray(d)))return y=Ct(y),g.forEach(function(_,q){!(i.isUndefined(_)||_===null)&&t.append(a===!0?Pe([y],q,o):a===null?y:y+"[]",p(_))}),!1}return Ue(d)?!0:(t.append(Pe(E,y,o),p(d)),!1)}const O=Object.assign(Qn,{defaultVisitor:S,convertValue:p,isVisitable:Ue});function m(d,y,E=0){if(!i.isUndefined(d)){if(w(E),u.indexOf(d)!==-1)throw new Error("Circular reference detected in "+y.join("."));u.push(d),i.forEach(d,function(P,_){(!(i.isUndefined(P)||P===null)&&s.call(t,P,i.isString(_)?_.trim():_,y,O))===!0&&m(P,y?y.concat(_):[_],E+1)}),u.pop()}}if(!i.isObject(e))throw new TypeErr Line truncated
`+a.map(dt).join(`
`):" "+dt(a[0]):"as no adapter specified";throw new h("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const jt={getAdapter:kr,adapters:ze};function De(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ue(null,e)}function pt(e){return De(e),e.headers=D.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jt.getAdapter(e.adapter||le.adapter,e)(e).then(function(r){De(e),e.response=r;try{r.data=Ne.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=D.from(r.headers),r},function(r){if(!Lt(r)&&(De(e),r&&r.response)){e.response=r.response;try{r.response.data=Ne.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=D.from(r.response.headers)}return Promise.reject(r)})}const Oe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ht={};Oe.transitional=function(t,n,r){function s(o,a){return"[Axios v"+Me+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,c)=>{if(t===!1)throw new h(s(a," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!ht[a]&&(ht[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,c):!0}};Oe.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function qr(e,t,n){if(typeof e!="object")throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const c=e[o],l=c===void 0||a(c,o,e);if(l!==!0)throw new h("option "+o+" must be "+l,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+o,h.ERR_BAD_OPTION)}}const we={assertOptions:qr,validators:Oe},N=we.validators;let W=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nt,response:new nt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const a=s.stack.indexOf(`
`);return a===-1?"":s.stack.slice(a+1)})();try{if(!r.stack)r.stack=o;else if(o){const a=o.indexOf(`
`),c=a===-1?-1:o.indexOf(`
`,a+1),l=c===-1?"":o.slice(c+1);String(r.stack).endsWith(l)||(r.stack+=`
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=X(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&we.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean),advertiseZstdAcceptEncoding:N.transitional(N.boolean),validateStatusUndefinedResolves:N.transitional(N.boolean)},!1),s!=null&&(i.isFunction(s)?n.paramsSerializer={serialize:s}:we.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),we.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&i.merge(o.common,o[n.method]);o&&i.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete o[S]}),n.headers=D.concat(a,o);const c=[];let l=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(n)===!1)return;l=l&&O.synchronous;const m=n.transitional||qe;m&&m.legacyInterceptorReqResOrdering?c.unshift(O.fulfilled,O.rejected):c.push(O.fulfilled,O.rejected)});const f=[];this.interceptors.response.forEach(function(O){f.push(O.fulfilled,O.rejected)});let u,p=0,w;if(!l){const S=[pt.bind(this),void 0];for(S.unshift(...c),S.push(...f),w=S.length,u=Promise.resolve(n);p<w;)u=u.then(S[p++],S[p++]);return u}w=c.length;let b=n;for(;p<w;){const S=c[p++],O=c[p++];try{b=S(b)}catch(m){O.call(this,m);break}}try{u=pt.call(this,b)}catch(S){return Promise.reject(S)}for(p=0,w=f.length;p<w;)u=u.then(f[p++],f[p++]);return u}getUri(t){t=X(this.defaults,t);const n=Ft(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Pt(n,t.params,t.paramsSerializer)}};i.forEach(["delete","get","head","options"],function(t){W.prototype[t]=function(n,r){return this.request(X(r||{},{method:t,url:n,data:r&&i.hasOwnProp(r,"data")?r.data:void 0}))}});i.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,a,c){return this.request(X(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}W.prototype[t]=n(),t!=="query"&&(W.prototype[t+"Form"]=n(!0))});let Hr=class kt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{r.subscribe(c),o=c}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,c){r.reason||(r.reason=new ue(o,a,c),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 kt(function(s){t=s}),cancel:t}}};function Mr(e){return function(n){return e.apply(null,n)}}function zr(e){return i.isObject(e)&&e.isAxiosError===!0}const Be={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Be).forEach(([e,t])=>{Be[t]=e});function qt(e){const t=new W(e),n=mt(W.prototype.request,t);return i.extend(n,W.prototype,t,{allOwnKeys:!0}),i.extend(n,t,null,{allOwnKeys:!0} Line truncated
+92
View File
@@ -0,0 +1,92 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-ToDzlIxF.js","assets/user-iqLWbJfU.js","assets/index-CxGbf_5w.js","assets/Login-DexVXGmB.css","assets/base-BhyKBIh7.css","assets/el-input-FRZVk2Ev.css","assets/AgentLogin-CqNVLjV0.js","assets/AgentLogin-D9WJ8j9x.css","assets/el-link-CPQZ-olG.css","assets/el-checkbox-CzNtyWdF.css","assets/AgentRegister-BkW-oiLA.js","assets/AgentRegister-7UV8clUI.css","assets/MainLayout-CBMJRBHu.js","assets/MainLayout-NyI85wLD.css","assets/el-upload-DfG5YBrW.css","assets/el-dialog-BIfDN5q_.css","assets/el-avatar-DOlF0Z_P.css","assets/el-tag-1VV9QMa7.css","assets/el-tooltip-GF-yQkxY.css","assets/el-popper-Wf_ds9r7.css","assets/el-dropdown-item-BeIfAqTO.css","assets/Dashboard-CeLR61Ie.js","assets/Dashboard-CjXgCO-1.css","assets/el-col-BWEC13sA.css","assets/el-card-BAyktVMS.css","assets/Projects-7A4VNCDz.js","assets/useColumnSettings-Nw4I78Sz.js","assets/Projects-BNg1nS_b.css","assets/el-loading-C-X_DDFa.css","assets/el-input-number-DExoAqKP.css","assets/el-table-column-DMM_I_SE.css","assets/el-switch-DpR9-s4E.css","assets/el-popover-Ciemdyvv.css","assets/Products-Ddk0T4za.js","assets/Products-T7S207w9.css","assets/Cards-CgdfDr18.js","assets/Cards-Dx3-rO2z.css","assets/el-date-picker-BsrAVvYx.css","assets/Users-DQufoxfP.js","assets/Users-BawBSfeg.css","assets/Agents-gsSCGvub.js","assets/Agents-CMih9NPH.css","assets/Orders-DyhCdKAK.js","assets/Orders-Bz1sTx9n.css","assets/Logs-Bo-8usQI.js","assets/Logs-DpLKjJre.css","assets/Authorizations-45zIzTLY.js","assets/Authorizations-DimkH2I3.css","assets/Coupons-Bd_Tkq-F.js","assets/Coupons-CFC82d0U.css","assets/Blacklist-BAVXgZp2.js","assets/Blacklist-u-Hq2DCx.css","assets/el-radio-group-iy_biC8N.css","assets/PaymentConfig-BDcSfgyW.js","assets/PaymentConfig-CQKz3tlS.css","assets/System-C4BSCuYC.js","assets/System-CcULoynz.css","assets/Shop-seXb0nNc.js","assets/Shop-D8Vqyx3L.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();/**
* @vue/shared v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function S2(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const hn={},es=[],ft=()=>{},Hg=()=>!1,td=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nd=e=>e.startsWith("onUpdate:"),Bn=Object.assign,x2=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_5=Object.prototype.hasOwnProperty,Pt=(e,t)=>_5.call(e,t),Ce=Array.isArray,ts=e=>Ji(e)==="[object Map]",ad=e=>Ji(e)==="[object Set]",Ho=e=>Ji(e)==="[object Date]",We=e=>typeof e=="function",Le=e=>typeof e=="string",Pa=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Fo=e=>(ot(e)||We(e))&&We(e.then)&&We(e.catch),Fg=Object.prototype.toString,Ji=e=>Fg.call(e),S5=e=>Ji(e).slice(8,-1),xi=e=>Ji(e)==="[object Object]",ld=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ui=S2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),od=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},x5=/-\w/g,Un=od(e=>e.replace(x5,t=>t.slice(1).toUpperCase())),k5=/\B([A-Z])/g,uo=od(e=>e.replace(k5,"-$1").toLowerCase()),Qi=od(e=>e.charAt(0).toUpperCase()+e.slice(1)),pr=od(e=>e?`on${Qi(e)}`:""),_l=(e,t)=>!Object.is(e,t),Ju=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Kg=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},k2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},E5=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let zv;const rd=()=>zv||(zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],l=Le(a)?$5(a):je(a);if(l)for(const o in l)t[o]=l[o]}return t}else if(Le(e)||ot(e))return e}const M5=/;(?![^(]*\))/g,T5=/:([^]+)/,O5=/\/\*[^]*?\*\//g;function $5(e){const t={};return e.replace(O5,"").split(M5).forEach(n=>{if(n){const a=n.split(T5);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Le(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const a=R(e[n]);a&&(t+=a+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Xl(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Le(t)&&(e.class=R(t)),n&&(e.style=je(n)),e}const N5="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",A5=S2(N5);function Wg(e){return!!e||e===""}function R5(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=wr(e[a],t[a]);return n}function wr(e,t){if(e===t)return!0;let n=Ho(e),a=Ho(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Pa(e),a=Pa(t),n||a)return e===t;if(n=Ce(e),a=Ce(t),n||a)return n&&a?R5(e,t):!1;if(n=ot(e),a=ot(t),n||a){if(!n||!a)return!1;const l=Object.keys(e).length,o=Object.keys(t).length;if(l!==o)return!1;for(const r in e){const s=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(s&&!u||!s&&u||!wr(e[r],t[r]))return!1}}return String(e)===String(t)}function jg(e,t){return e.findIndex(n=>wr(n,t))}const qg=e=>!!(e&&e.__v_isRef===!0),Se=e=>Le(e)?e:e==null?"":Ce(e)||ot(e)&&(e.toString===Fg||!We(e.toString))?qg(e)?Se(e.value):JSON.stringify(e,Ug,2):String(e),Ug=(e,t)=>qg(t)?Ug(e,t.value):ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,l],o)=>(n[ef(a,o)+" =>"]=l,n),{})}:ad(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ef(n))}:Pa(t)?ef(t):ot(t)&&!Ce(t)&&!xi(t)?String(t):t,ef=(e,t="")=>{var n;return Pa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Hn;class Yg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Hn&&(Hn.active?(this.parent=Hn,this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Hn;try{return Hn=this,t()}finally{Hn=n}}}on(){++this._on===1&&(this.prevScope=Hn,Hn=this)}off(){if(this._on>0&&--this._on===0){if(Hn===this)Hn=this.prevScope;else{let t=Hn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(this.effects.length=0,n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function E2(e){return new Yg(e)}function sd(){return Hn}function M2(e,t=!1){Hn&&Hn.cleanups.push(e)}let bn;const tf=new WeakSet;class Gg{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Hn&&(Hn.active?Hn.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,tf.has(this)&&(tf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zg(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dv(this),Jg(this);const t=bn,n=el;bn=this,el=!0;try{return this.fn()}finally{Qg(this),bn=t,el=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$2(t);this.deps=this.depsTail=void 0,Dv(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?tf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jf(this)&&this.run()}get dirty(){return Jf(this)}}let Xg=0,ci,di;function Zg(e,t=!1){if(e.flags|=8,t){e.next=di,di=e;return}e.next=ci,ci=e}function T2(){Xg++}function O2(){if(--Xg>0)return;if(di){let t=di;for(di=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ci;){let t=ci;for(ci=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Jg(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qg(e){let t,n=e.depsTail,a=n;for(;a;){const l=a.prevDep;a.version===-1?(a===n&&(n=l),$2(a),P5(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=l}e.deps=t,e.depsTail=n}function Jf(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(e4(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function e4(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ki)||(e.globalVersion=ki,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jf(e))))return;e.flags|=2;const t=e.dep,n=bn,a=el;bn=e,el=!0;try{Jg(e);const l=e.fn(e._value);(t.version===0||_l(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{bn=n,el=a,Qg(e),e.flags&=-3}}function $2(e,t=!1){const{dep:n,prevSub:a,nextSub:l}=e;if(a&&(a.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)$2(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function P5(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let el=!0;const t4=[];function to(){t4.push(el),el=!1}function no(){const e=t4.pop();el=e===void 0?!0:e}function Dv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=bn;bn=void 0;try{t()}finally{bn=n}}}let ki=0;class I5{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 N2{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(!bn||!el||bn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==bn)n=this.activeLink=new I5(bn,this),bn.deps?(n.prevDep=bn.depsTail,bn.depsTail.nextDep=n,bn.depsTail=n):bn.deps=bn.depsTail=n,n4(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=bn.depsTail,n.nextDep=void 0,bn.depsTail.nexLine truncated
* @vue/runtime-core v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function eu(e,t,n,a){try{return a?e(...a):e()}catch(l){pd(l,t,n)}}function ja(e,t,n,a){if(We(e)){const l=eu(e,t,n,a);return l&&Fo(l)&&l.catch(o=>{pd(o,t,n)}),l}if(Ce(e)){const l=[];for(let o=0;o<e.length;o++)l.push(ja(e[o],t,n,a));return l}}function pd(e,t,n,a=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||hn;if(t){let s=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}s=s.parent}if(o){to(),eu(o,null,10,[e,u,c]),no();return}}r9(e,n,l,a,r)}function r9(e,t,n,a=!0,l=!1){if(l)throw e;console.error(e)}const pa=[];let bl=-1;const ns=[];let Ao=null,Ur=0;const h4=Promise.resolve();let wc=null;function Pe(e){const t=wc||h4;return e?t.then(this?e.bind(this):e):t}function s9(e){let t=bl+1,n=pa.length;for(;t<n;){const a=t+n>>>1,l=pa[a],o=Mi(l);o<e||o===e&&l.flags&2?t=a+1:n=a}return t}function A2(e){if(!(e.flags&1)){const t=Mi(e),n=pa[pa.length-1];!n||!(e.flags&2)&&t>=Mi(n)?pa.push(e):pa.splice(s9(t),0,e),e.flags|=1,m4()}}function m4(){wc||(wc=h4.then(y4))}function i9(e){Ce(e)?ns.push(...e):Ao&&e.id===-1?Ao.splice(Ur+1,0,e):e.flags&1||(ns.push(e),e.flags|=1),m4()}function Fv(e,t,n=bl+1){for(;n<pa.length;n++){const a=pa[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;pa.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function g4(e){if(ns.length){const t=[...new Set(ns)].sort((n,a)=>Mi(n)-Mi(a));if(ns.length=0,Ao){Ao.push(...t);return}for(Ao=t,Ur=0;Ur<Ao.length;Ur++){const n=Ao[Ur];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ao=null,Ur=0}}const Mi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function y4(e){try{for(bl=0;bl<pa.length;bl++){const t=pa[bl];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),eu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;bl<pa.length;bl++){const t=pa[bl];t&&(t.flags&=-2)}bl=-1,pa.length=0,g4(),wc=null,(pa.length||ns.length)&&y4()}}let Xn=null,b4=null;function Cc(e){const t=Xn;return Xn=e,b4=e&&e.type.__scopeId||null,t}function ae(e,t=Xn,n){if(!t||e._n)return e;const a=(...l)=>{a._d&&xc(-1);const o=Cc(t);let r;try{r=e(...l)}finally{Cc(o),a._d&&xc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function vt(e,t){if(Xn===null)return e;const n=yd(Xn),a=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,r,s,u=hn]=t[l];o&&(We(o)&&(o={mounted:o,updated:o}),o.deep&&Yl(r),a.push({dir:o,instance:n,value:r,oldValue:void 0,arg:s,modifiers:u}))}return e}function Xo(e,t,n,a){const l=e.dirs,o=t&&t.dirs;for(let r=0;r<l.length;r++){const s=l[r];o&&(s.oldValue=o[r].value);let u=s.dir[a];u&&(to(),ja(u,n,8,[e.el,s,e,t]),no())}}function wt(e,t){if(la){let n=la.provides;const a=la.parent&&la.parent.provides;a===n&&(n=la.provides=Object.create(a)),n[e]=t}}function Ie(e,t,n=!1){const a=mt();if(a||hr){let l=hr?hr._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&We(t)?t.call(a&&a.proxy):t}}function R2(){return!!(mt()||hr)}const u9=Symbol.for("v-scx"),c9=()=>Ie(u9);function sa(e,t){return P2(e,null,t)}function fe(e,t,n){return P2(e,t,n)}function P2(e,t,n=hn){const{immediate:a,deep:l,flush:o,once:r}=n,s=Bn({},n),u=t&&a||!t&&o!=="post";let c;if($i){if(o==="sync"){const g=c9();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=ft,g.resume=ft,g.pause=ft,g}}const d=la;s.call=(g,v,m)=>ja(g,d,v,m);let f=!1;o==="post"?s.scheduler=g=>{da(g,d&&d.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(g,v)=>{v?g():A2(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=o9(e,t,s);return $i&&(c?c.push(p):u&&p()),p}function d9(e,t,n){const a=this.proxy,l=Le(e)?e.includes(".")?w4(a,e):()=>a[e]:e.bind(a,a);let o;We(t)?o=t:(o=t.handler,n=t);const r=nu(this),s=P2(l,o.bind(a),n);return r(),s}function w4(e,t){const n=t.split(".");return()=>{let a=e;for(let l=0;l<n.length&&a;l++)a=a[n[l]];return a}}const Eo=new WeakMap,C4=Symbol("_vte"),_4=e=>e.__isTeleport,ar=e=>e&&(e.disabled||e.disabled===""),f9=e=>e&&(e.defer||e.defer===""),Kv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,t0=(e,t)=>{const n=e&&e.to;return Le(n)?t?t(n):null:n},p9={name:"Teleport",__isTeleport:!0,process(e,t,n,a,l,o,r,s,u,c){const{mc:d,pc:f,pbc:p,o:{insert:g,querySelector:v,createText:m,createComment:h,parentNode:y}}=c,b=ar(t.props);let{dynamicChildren:C}=t;const _=(E,T,O)=>{E.shapeFlag&16&&d(E.children,T,O,l,o,r,s,u)},x=(E=t)=>{const T=ar(E.props),O=E.target=t0(E.props,v),N=n0(O,E,m,g);O&&(r!=="svg"&&Kv(O)?r="svg":r!=="mathml"&&Wv(O)&&(r="mathml"),l&&l.isCE&&(l.ce._teleportTargets||(l.ce._teleportTargets=new Set)).add(O),T||(_(E,O,N),ti(E,!1)))},k=E=>{const T=()=>{if(Eo.get(E)===T){if(Eo.delete(E),ar(E.props)){const O=y(E.el)||n;_(E,O,E.anchor),ti(E,!0)}x(E)}};Eo.set(E,T),da(T,o)};if(e==null){const E=t.el=m(""),T=t.anchor=m("");if(g(E,n Line truncated
* @vue/runtime-dom v3.5.38
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let i0;const oh=typeof window<"u"&&window.trustedTypes;if(oh)try{i0=oh.createPolicy("vue",{createHTML:e=>e})}catch{}const t3=i0?e=>i0.createHTML(e):e=>e,iC="http://www.w3.org/2000/svg",uC="http://www.w3.org/1998/Math/MathML",Wl=typeof document<"u"?document:null,rh=Wl&&Wl.createElement("template"),cC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const l=t==="svg"?Wl.createElementNS(iC,e):t==="mathml"?Wl.createElementNS(uC,e):n?Wl.createElement(e,{is:n}):Wl.createElement(e);return e==="select"&&a&&a.multiple!=null&&l.setAttribute("multiple",a.multiple),l},createText:e=>Wl.createTextNode(e),createComment:e=>Wl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,l,o){const r=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{rh.innerHTML=t3(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const s=rh.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xo="transition",qs="animation",fs=Symbol("_vtc"),n3={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},a3=Bn({},x4,n3),dC=e=>(e.displayName="Transition",e.props=a3,e),Yn=dC((e,{slots:t})=>Ge(m9,l3(e),t)),Jo=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},sh=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function l3(e){const t={};for(const A in e)A in n3||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:a,duration:l,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=fC(l),m=v&&v[0],h=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:C,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:E=b,onAppearCancelled:T=C}=t,O=(A,B,q,W)=>{A._enterCancelled=W,Mo(A,B?d:s),Mo(A,B?c:r),q&&q()},N=(A,B)=>{A._isLeaving=!1,Mo(A,f),Mo(A,g),Mo(A,p),B&&B()},P=A=>(B,q)=>{const W=A?E:b,H=()=>O(B,A,q);Jo(W,[B,H]),ih(()=>{Mo(B,A?u:o),yl(B,A?d:s),sh(W)||uh(B,a,m,H)})};return Bn(t,{onBeforeEnter(A){Jo(y,[A]),yl(A,o),yl(A,r)},onBeforeAppear(A){Jo(k,[A]),yl(A,u),yl(A,c)},onEnter:P(!1),onAppear:P(!0),onLeave(A,B){A._isLeaving=!0;const q=()=>N(A,B);yl(A,f),A._enterCancelled?(yl(A,p),u0(A)):(u0(A),yl(A,p)),ih(()=>{A._isLeaving&&(Mo(A,f),yl(A,g),sh(_)||uh(A,a,h,q))}),Jo(_,[A,q])},onEnterCancelled(A){O(A,!1,void 0,!0),Jo(C,[A])},onAppearCancelled(A){O(A,!0,void 0,!0),Jo(T,[A])},onLeaveCancelled(A){N(A),Jo(x,[A])}})}function fC(e){if(e==null)return null;if(ot(e))return[sf(e.enter),sf(e.leave)];{const t=sf(e);return[t,t]}}function sf(e){return E5(e)}function yl(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fs]||(e[fs]=new Set)).add(t)}function Mo(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[fs];n&&(n.delete(t),n.size||(e[fs]=void 0))}function ih(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pC=0;function uh(e,t,n,a){const l=e._endId=++pC,o=()=>{l===e._endId&&a()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:s,propCount:u}=o3(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,p),o()},p=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},s+1),e.addEventListener(c,p)}function o3(e,t){const n=window.getComputedStyle(e),a=v=>(n[v]||"").split(", "),l=a(`${xo}Delay`),o=a(`${xo}Duration`),r=ch(l,o),s=a(`${qs}Delay`),u=a(`${qs}Duration`),c=ch(s,u);let d=null,f=0,p=0;t===xo?r>0&&(d=xo,f=r,p=o.length):t===qs?c>0&&(d=qs,f=c,p=u.length):(f=Math.max(r,c),d=f>0?r>c?xo:qs:null,p=d?d===xo?o.length:u.length:0);const g=d===xo&&/\b(?:transform|all)(?:,|$)/.test(a(`${xo}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:g}}function ch(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,a)=>dh(n)+dh(e[a])))}function dh(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function u0(e){return(e?e.ownerDocument:document).body.offsetHeight}function vC(e,t,n){const a=e[fs];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ec=Symbol("_vod"),W2=Symbol("_vsh"),Rt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ec]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Us(e,t)},mounted(e,{value:t},{tra Line truncated
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let g3;const bd=e=>g3=e,y3=Symbol();function c0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var hi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(hi||(hi={}));function FC(){const e=E2(!0),t=e.run(()=>L({}));let n=[],a=[];const l=Ka({install(o){bd(l),l._a=o,o.provide(y3,l),o.config.globalProperties.$pinia=l,a.forEach(r=>n.push(r)),a=[]},use(o){return this._a?n.push(o):a.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}const b3=()=>{};function kh(e,t,n,a=b3){e.push(t);const l=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!n&&sd()&&M2(l),l}function Dr(e,...t){e.slice().forEach(n=>{n(...t)})}const KC=e=>e(),Eh=Symbol(),df=Symbol();function d0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],l=e[n];c0(l)&&c0(a)&&e.hasOwnProperty(n)&&!Xt(a)&&!Zl(a)?e[n]=d0(l,a):e[n]=a}return e}const WC=Symbol();function jC(e){return!c0(e)||!e.hasOwnProperty(WC)}const{assign:To}=Object;function qC(e){return!!(Xt(e)&&e.effect)}function UC(e,t,n,a){const{state:l,actions:o,getters:r}=t,s=n.state.value[e];let u;function c(){s||(n.state.value[e]=l?l():{});const d=Rn(n.state.value[e]);return To(d,o,Object.keys(r||{}).reduce((f,p)=>(f[p]=Ka(S(()=>{bd(n);const g=n._s.get(e);return r[p].call(g,g)})),f),{}))}return u=w3(e,c,t,n,a,!0),u}function w3(e,t,n={},a,l,o){let r;const s=To({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],g;const v=a.state.value[e];!o&&!v&&(a.state.value[e]={});let m;function h(T){let O;c=d=!1,typeof T=="function"?(T(a.state.value[e]),O={type:hi.patchFunction,storeId:e,events:g}):(d0(a.state.value[e],T),O={type:hi.patchObject,payload:T,storeId:e,events:g});const N=m=Symbol();Pe().then(()=>{m===N&&(c=!0)}),d=!0,Dr(f,O,a.state.value[e])}const y=o?function(){const{state:O}=n,N=O?O():{};this.$patch(P=>{To(P,N)})}:b3;function b(){r.stop(),f=[],p=[],a._s.delete(e)}const C=(T,O="")=>{if(Eh in T)return T[df]=O,T;const N=function(){bd(a);const P=Array.from(arguments),A=[],B=[];function q(V){A.push(V)}function W(V){B.push(V)}Dr(p,{args:P,name:N[df],store:x,after:q,onError:W});let H;try{H=T.apply(this&&this.$id===e?this:x,P)}catch(V){throw Dr(B,V),V}return H instanceof Promise?H.then(V=>(Dr(A,V),V)).catch(V=>(Dr(B,V),Promise.reject(V))):(Dr(A,H),H)};return N[Eh]=!0,N[df]=O,N},_={_p:a,$id:e,$onAction:kh.bind(null,p),$patch:h,$reset:y,$subscribe(T,O={}){const N=kh(f,T,O.detached,()=>P()),P=r.run(()=>fe(()=>a.state.value[e],A=>{(O.flush==="sync"?d:c)&&T({storeId:e,type:hi.direct,events:g},A)},To({},u,O)));return N},$dispose:b},x=Lt(_);a._s.set(e,x);const E=(a._a&&a._a.runWithContext||KC)(()=>a._e.run(()=>(r=E2()).run(()=>t({action:C}))));for(const T in E){const O=E[T];if(Xt(O)&&!qC(O)||Zl(O))o||(v&&jC(O)&&(Xt(O)?O.value=v[T]:d0(O,v[T])),a.state.value[e][T]=O);else if(typeof O=="function"){const N=C(O,T);E[T]=N,s.actions[T]=O}}return To(x,E),To(Zt(x),E),Object.defineProperty(x,"$state",{get:()=>a.state.value[e],set:T=>{h(O=>{To(O,T)})}}),a._p.forEach(T=>{To(x,r.run(()=>T({store:x,app:a._a,pinia:a,options:s})))}),v&&o&&n.hydrate&&n.hydrate(x.$state,v),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function xie(e,t,n){let a,l;const o=typeof t=="function";a=e,l=o?n:t;function r(s,u){const c=R2();return s=s||(c?Ie(y3,null):null),s&&bd(s),s=g3,s._s.has(a)||(o?w3(a,t,l,s):UC(a,l,s)),s._s.get(a)}return r.$id=a,r}const _e={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},YC=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ff=["sun","mon","tue","wed","thu","fri","sat"],lt="update:modelValue",yt="change",Mn="input",Mh=Symbol("INSTALLED_KEY"),cl=["","default","small","large"],Th=["left","center","right"];var C3=typeof global=="object"&&global&&global.Object===Object&&global,GC=typeof self=="object"&&self&&self.Object===Object&&self,dl=C3||GC||Function("return this")(),qa=dl.Symbol,_3=Object.prototype,XC=_3.hasOwnProperty,ZC=_3.toString,Ys=qa?qa.toStringTag:void 0;function JC(e){var t=XC.call(e,Ys),n=e[Ys];try{e[Ys]=void 0;var a=!0}catch{}var l=ZC.call(e);return a&&(t?e[Ys]=n:delete e[Ys]),l}var QC=Object.prototype,e_=QC.toString;function t_(e){return e_.call(e)}var n_="[object Null]",a_="[object Undefined]",Oh=qa?qa.toStringTag:void 0;function Ar(e){return e==null?e===void 0?a_:n_:Oh&&Oh in Object(e)?JC(e):t_(e)}function Al(e){return e!=null&&typeof e=="object"}var l_="[object Symbol]";function wd(e){return typeof e=="symbol"||Al(e)&&Ar(e)==l_}function j2(e,t){for(var n=-1,a=e==null?0:e.length,l=Array(a);++n<a;)l[n]=t(e[n],n,e);return l}var ma=Array.isArray,$h=qa?qa.prototype:void 0,Nh=$h?$h.toString:void 0;functiLine truncated
For more detail, please visit: ${l}
`)},{immediate:!0})},GE='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',p6=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,r1=e=>typeof Element>"u"?!1:e instanceof Element,XE=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,s1=e=>Array.from(e.querySelectorAll(GE)).filter(t=>xr(t)&&XE(t)),xr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},nc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},v6=e=>!e.getAttribute("aria-owns"),h6=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n);return l[Array.prototype.indexOf.call(l,e)+t]||null},du=(e,t)=>{if(!e||!e.focus)return;let n=!1;r1(e)&&!xr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),r1(e)&&n&&e.removeAttribute("tabindex")},rs=e=>{e&&(du(e),!v6(e)&&e.click())},Ad=()=>Vt&&/firefox/i.test(window.navigator.userAgent),m6=()=>Vt&&/android/i.test(window.navigator.userAgent),cp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),bf=e=>Qi(e),ZE="utils/dom/style",g6=(e="")=>e.split(" ").filter(t=>!!t.trim()),El=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ha=(e,t)=>{!e||!t.trim()||e.classList.add(...g6(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...g6(t))},Gl=(e,t)=>{var a;if(!Vt||!e||!t||p6(e))return"";let n=Un(t);n==="float"&&(n="cssFloat");try{const l=e.style[n];if(l)return l;const o=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},y6=(e,t,n)=>{if(!(!e||!t))if(ot(t))s6(t).forEach(([a,l])=>y6(e,a,l));else{const a=Un(t);e.style[a]=n}};function pn(e,t="px"){if(!e&&e!==0)return"";if(He(e)||yE(e))return`${e}${t}`;if(Le(e))return e;Ft(ZE,"binding value must be a string or number")}const b6=(e,t,n,a)=>{const l={offsetX:0,offsetY:0},o=L(!1),r=(p,g)=>{if(e.value){const{offsetX:v,offsetY:m}=l,h=e.value.getBoundingClientRect(),y=Math.max(h.left,0),b=Math.max(h.top,0),C=h.width,_=h.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,E=-y+v,T=-b+m,O=x-y-C+v,N=k-b-(_<k?_:0)+m;a!=null&&a.value||(p=wa(p,E,O),g=wa(g,T,N)),l.offsetX=p,l.offsetY=g,e.value.style.transform=`translate(${pn(p)}, ${pn(g)})`}},s=p=>{const g=p.clientX,v=p.clientY,{offsetX:m,offsetY:h}=l,y=C=>{o.value||(o.value=!0),r(m+C.clientX-g,h+C.clientY-v)},b=()=>{o.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{l.offsetX=0,l.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:g}=l;r(p,g)};return gt(()=>{sa(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:o,resetPosition:d,updatePosition:f}};var JE={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday Line truncated
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})`);const n=dp();return u6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Yr=[];const C1=e=>{Gt(e)===_e.esc&&Yr.forEach(t=>t(e))},hT=e=>{gt(()=>{Yr.length===0&&document.addEventListener("keydown",C1),Vt&&Yr.push(e)}),Dt(()=>{Yr=Yr.filter(t=>t!==e),Yr.length===0&&Vt&&document.removeEventListener("keydown",C1)})},L6=()=>{const e=dp(),t=Sp(),n=S(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:S(()=>`#${n.value}`)}},mT=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},gT=()=>{const{id:e,selector:t}=L6();return md(()=>{Vt&&(document.body.querySelector(t.value)||mT(e.value))}),{id:e,selector:t}},yT=xe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),bT=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:o}=w1(),{registerTimeout:r,cancelTimeout:s}=w1();return{onOpen:(d,f=i(e))=>{o(()=>{a(d);const p=i(n);He(p)&&p>0&&r(()=>{l(d)},p)},f)},onClose:(d,f=i(t))=>{s(),o(()=>{l(d)},f)}}},B6=Symbol("elForwardRef"),wT=e=>{wt(B6,{setForwardRef:n=>{e.value=n}})},CT=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),_1={current:0},S1=L(0),z6=2e3,x1=Symbol("elZIndexContextKey"),D6=Symbol("zIndexContextKey"),vu=e=>{const t=mt()?Ie(x1,_1):_1,n=e||(mt()?Ie(D6,void 0):void 0),a=S(()=>{const r=i(n);return He(r)?r:z6}),l=S(()=>a.value+S1.value),o=()=>(t.current++,S1.value=t.current,l.value);return!Vt&&!Ie(x1)&&Ft("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:l,nextZIndex:o}},Cs=Math.min,gr=Math.max,Ac=Math.round,Vu=Math.floor,Tl=e=>({x:e,y:e}),_T={left:"right",right:"left",bottom:"top",top:"bottom"};function _0(e,t,n){return gr(e,Cs(t,n))}function hu(e,t){return typeof e=="function"?e(t):e}function Er(e){return e.split("-")[0]}function mu(e){return e.split("-")[1]}function H6(e){return e==="x"?"y":"x"}function xp(e){return e==="y"?"height":"width"}function Vo(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function kp(e){return H6(Vo(e))}function ST(e,t,n){n===void 0&&(n=!1);const a=mu(e),l=kp(e),o=xp(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=Rc(r)),[r,Rc(r)]}function xT(e){const t=Rc(e);return[S0(e),t,S0(t)]}function S0(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const k1=["left","right"],E1=["right","left"],kT=["top","bottom"],ET=["bottom","top"];function MT(e,t,n){switch(e){case"top":case"bottom":return n?t?E1:k1:t?k1:E1;case"left":case"right":return t?kT:ET;default:return[]}}function TT(e,t,n,a){const l=mu(e);let o=MT(Er(e),n==="start",a);return l&&(o=o.map(r=>r+"-"+l),t&&(o=o.concat(o.map(S0)))),o}function Rc(e){const t=Er(e);return _T[t]+e.slice(t.length)}function OT(e){return{top:0,right:0,bottom:0,left:0,...e}}function F6(e){return typeof e!="number"?OT(e):{top:e,right:e,bottom:e,left:e}}function Pc(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function M1(e,t,n){let{reference:a,floating:l}=e;const o=Vo(t),r=kp(t),s=xp(r),u=Er(t),c=o==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,p=a[s]/2-l[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-l.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-l.width,y:f};break;default:g={x:a.x,y:a.y}}switch(mu(t)){case"start":g[r]-=p*(n&&c?-1:1);break;case"end":g[r]+=p*(n&&c?-1:1);break}return g}async function K6(e,t){var n;t===void 0&&(t={});const{x:a,y:l,platform:o,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=hu(t,e),v=F6(g),h=s[p?f==="floating"?"reference":"floating":f],y=Pc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(h)))==null||n?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),_=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},x=Pc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-x.top+v.top)/_.y,bottom:(x.bottom-y.bottom+v.bottom)/_.y,left:(y.left-x.left+v.left)/_.x,right:(x.right-y.right+v.right)/_.x}}const $T=50,NT=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:K6},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=M1(c,a,u),p=a,g=0;const v={};for(let m=0;m<o.length;m++){const h=o[m];if(!h)continue;const{name:y,fn:b}=h,{x:C,y:_,data:x,reset:k}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:l,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=_??f,v[y]={...v[y],...x},k&&g<$T&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:l}):k.rects),{x:d,y:f}=M1(c,p,u)),m=-1)}return{x:d,y:f,placement:p,strategy:l,middlewareData:v}},AT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:o,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=hu(e,t)||{};if(c==null)return{};const f=F6(d),p={x:n,y:a},g=kp(l),v=xp(g),m=await r.getDimensions(c),h=g==="y",y=h?"top":"left",b=h?"bottom":"right",C=h?"clientHeight":"clientWidth",_=o.reference[v]+o.reference[g]-p[g]-o.floating[v],x=p[g]-o.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let E=k?k[C]:0;(!E||!await(r.isElement==null?void 0:r.isElement(k)))&&(E=s.floating[C]||o.floating[v]);const T=_/2-x/2,O=E/2-m[v]/2-1,N=Cs(f[y],O),P=Cs(f[b],O),A=N,B=E-m[v]-P,q=E/2-m[v]/2+T,W=_0(A,q,B),H=!u.arrow&&mu(l)!=null&&q!==W&&o.reference[v]/2-(q<A?N:P)-m[v]/2<0,V=H?q<A?q-A:q-B:0;return{[g]:p[g]+V,data:{[g]:W,centerOffset:q-W-V,...H&&{alignmentOffset:V}},reset:H}}}),RT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:l,middlewareData:o,rects:r,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=! Line truncated
(?:
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+a+":){5}(?::"+n+"|(?::"+a+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+a+":){4}(?:(?::"+a+"){0,1}:"+n+"|(?::"+a+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+a+":){3}(?:(?::"+a+"){0,2}:"+n+"|(?::"+a+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+a+":){2}(?:(?::"+a+"){0,3}:"+n+"|(?::"+a+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+a+":){1}(?:(?::"+a+"){0,4}:"+n+"|(?::"+a+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+a+"){0,5}:"+n+"|(?::"+a+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+l+"$"),u=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+l+t(_)+")","g")};u.v4=function(C){return C&&C.exact?r:new RegExp(""+t(C)+n+t(C),"g")},u.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+l+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+g+v+m+")"+h+y;return Bu=new RegExp("(?:^"+b+"$)","i"),Bu},D1={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},oi={integer:function(t){return oi.number(t)&&parseInt(t,10)===t},float:function(t){return oi.number(t)&&!oi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!oi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(D1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cD())},hex:function(t){return typeof t=="string"&&!!t.match(D1.hex)}},dD=function(t,n,a,l,o){if(t.required&&n===void 0){P8(t,n,a,l,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?oi[s](n)||l.push(Na(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&l.push(Na(o.messages.types[s],t.fullField,t.type))},fD=function(t,n,a,l,o){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(p?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&l.push(Na(o.messages[f].len,t.fullField,t.len)):s&&!u&&d<t.min?l.push(Na(o.messages[f].min,t.fullField,t.min)):u&&!s&&d>t.max?l.push(Na(o.messages[f].max,t.fullField,t.max)):s&&u&&(d<t.min||d>t.max)&&l.push(Na(o.messages[f].range,t.fullField,t.min,t.max))},Fr="enum",pD=function(t,n,a,l,o){t[Fr]=Array.isArray(t[Fr])?t[Fr]:[],t[Fr].indexOf(n)===-1&&l.push(Na(o.messages[Fr],t.fullField,t[Fr].join(", ")))},vD=function(t,n,a,l,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qt={required:P8,whitespace:uD,type:dD,range:fD,enum:pD,pattern:vD},hD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n,"string")&&!t.required)return a();Qt.required(t,n,l,r,o,"string"),Fn(n,"string")||(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o),Qt.pattern(t,n,l,r,o),t.whitespace===!0&&Qt.whitespace(t,n,l,r,o))}a(r)},mD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},gD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},yD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},bD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),Fn(n)||Qt.type(t,n,l,r,o)}a(r)},wD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},CD=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(Fn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},_D=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Qt.required(t,n,l,r,o,"array"),n!=null&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},SD=function(t,n,a,l,o){var Line truncated
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const j0="_Mousewheel",mm=function(e,t){if(e&&e.addEventListener){fy(e);const n=function(a){const l=nK(a);t&&Reflect.apply(t,this,[a,l])};e[j0]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},fy=e=>{var t;(t=e._Mousewheel)!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[j0].wheelHandler),e[j0]=null)},gm={beforeMount(e,t){mm(e,t.value)},unmounted(e){fy(e)},updated(e,t){t.value!==t.oldValue&&mm(e,t.value)}},aK=xe({...ny,datetimeRole:String,parsedValue:{type:Z(Object)}}),py=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(p=>{if(d[p]){let g;const v=d[p];switch(p){case"minute":g=v(f.hour(),s,c);break;case"second":g=v(f.hour(),f.minute(),s,c);break;default:g=v(s,c);break}if(g!=null&&g.length&&!g.includes(f[p]())){const m=u?0:g.length-1;f=f[p](g[m])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([r,s])=>{l[r]=s}}},Nf=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},vy=(e,t,n)=>({getHoursList:(r,s)=>$f(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>$f(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>$f(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),hy=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:o}=vy(e,t,n);return{getAvailableHours:(c,d)=>Nf(a(c,d)),getAvailableMinutes:(c,d,f)=>Nf(l(c,d,f)),getAvailableSeconds:(c,d,f,p)=>Nf(o(c,d,f,p))}},my=(e,t)=>{const n=L(e.parsedValue);return fe(()=>e.visible,a=>{const l=En(t.modelValue),o=En(t.valueOnClear);if(a&&l===o){n.value=o;return}a||(n.value=e.parsedValue)}),n},lK=xe({role:{type:String,required:!0},spinnerDate:{type:Z(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Z(String),default:""},...Kp}),oK=["onClick"],rK=["onMouseenter"];var sK=D({__name:"basic-time-spinner",props:lK,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:l,saveOnBlur:o}=Ie(Dl).props,r=t,s=ye("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=vy(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},g=L(),v={hours:L(),minutes:L(),seconds:L()},m=S(()=>n.showSeconds?om:om.slice(0,2)),h=S(()=>{const{spinnerDate:j}=n;return{hours:j.hour(),minutes:j.minute(),seconds:j.second()}}),y=S(()=>{const{hours:j,minutes:G}=i(h),{role:ee,spinnerDate:le}=n,ne=a?void 0:le;return{hours:u(ee,ne),minutes:c(j,ee,ne),seconds:d(j,G,ee,ne)}}),b=S(()=>{const{hours:j,minutes:G,seconds:ee}=i(h);return{hours:Of(j,23),minutes:Of(G,59),seconds:Of(ee,59)}}),C=Rl(j=>{f=!1,k(j)},200),_=j=>{if(!n.amPmMode)return"";const G=n.amPmMode==="A";let ee=j<12?" am":" pm";return G&&(ee=ee.toUpperCase()),ee},x=j=>{let G=[0,0];const ee=l||"HH:mm:ss",le=ee.indexOf("HH"),ne=ee.indexOf("mm"),se=ee.indexOf("ss");switch(j){case"hours":le!==-1&&(G=[le,le+2]);break;case"minutes":ne!==-1&&(G=[ne,ne+2]);break;case"seconds":se!==-1&&(G=[se,se+2]);break}const[J,de]=G;r("select-range",J,de),g.value=j},k=j=>{O(j,i(h)[j])},E=()=>{k("hours"),k("minutes"),k("seconds")},T=j=>j.querySelector(`.${s.namespace.value}-scrollbar__wrap`),O=(j,G)=>{if(n.arrowControl)return;const ee=i(v[j]);ee&&ee.$el&&(o||(p[j]=!0,xa(()=>{p[j]=!1})),T(ee.$el).scrollTop=Math.max(0,G*N(j)))},N=j=>{var ee;const G=(ee=i(v[j]))==null?void 0:ee.$el.querySelector("li");return G&&Number.parseFloat(Gl(G,"height"))||0},P=()=>{B(1)},A=()=>{B(-1)},B=j=>{g.value||x("hours");const G=g.value,ee=i(h)[G],le=q(G,ee,j,g.value==="hours"?24:60);W(G,le),O(G,le),Pe(()=>x(G))},q=(j,G,ee,le)=>{let ne=(G+ee+le)%le;const se=i(y)[j];for(;se[ne]&&ne!==G;)ne=(ne+ee+le)%le;return ne},W=(j,G)=>{if(i(y)[j][G])return;const{hours:ee,minutes:le,seconds:ne}=i(h);let se;switch(j){case"hours":se=n.spinnerDate.hour(G).minute(le).second(ne);break;case"minutes":se=n.spinnerDate.hour(ee).minute(G).second(ne);break;case"seconds":se=n.spinnerDate.hour(ee).minute(le).second(G);break}r(yt,se)},H=(j,{value:G,disabled:ee})=>{ee||(W(j,G),x(j),O(j,G))},V=j=>{if(!o&&p[j])return;const G=i(v[j]);G&&(f=!0,C(j),W(j,Math.min(Math.round((T(G.$el).scrollTop-(I(j)*.5-10)/N(j)+3)/N(j)),j==="hours"?23:59)))},I=j=>i(v[j]).$el.offsetHeight,F=()=>{const j=G=>{const ee=i(v[G]);ee&&ee.$el&&(T(ee.$el).onscroll=()=>{V(G)})};j("hours"),j("minutes"),j("seconds")};gt(()=>{Pe(()=>{!n.arrowControl&&F(),E(),n.role==="start"&&x("hours")})});const K=(j,G)=>{v[G].value=j??void 0};return r("set-option",[`${n.role}_scrollDown`,B]),r("set-option",[`${n.role}_emitSelectRange`,x]),fe(()=>n.spinnerDate,()=>{f||E()}),(j,G)=>(w(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":j.showSeconds}])},[j.arrowControl?re("v-if",!0):(w(!0),$(Ke,{key:0},_t(m.value,ee=>(w(),ue(i(sl),{key:ee,ref_for:!0,ref:le=>K(le,ee),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:le=>x(ee),onMousemove:le=>k(ee)},{default:ae(()=>[(w(!0),$(KLine truncated
You should set
width/height
to number when your layout is
horizontal/vertical
`);const c=Math.max(0,t*n-u),d=Math.min(c,o*n),f=Math.max(0,(o+1)*n-u);switch(r==="smart"&&(s>=f-u&&s<=d+u?r=Fa:r=xl),r){case Ki:return d;case"end":return f;case xl:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case Fa:default:return s>=f&&s<=d?s:s<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},o,r)=>{const s=o*n,u=ji(a)?l:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),HW="ElDynamicSizeList",Jr=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const s=l[o];r=s.offset+s.size}for(let s=o+1;s<=t;s++){const u=a(s);l[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return l[t]},FW=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?Iy(e,t,0,l,n):KW(e,t,Math.max(0,l),n)},Iy=(e,t,n,a,l)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),r=Jr(e,o,t).offset;if(r===l)return o;r<l?n=o+1:r>l&&(a=o-1)}return Math.max(0,n-1)},KW=(e,t,n,a)=>{const{total:l}=e;let o=1;for(;n<l&&Jr(e,n,t).offset<a;)n+=o,o*=2;return Iy(e,t,Math.floor(n/2),Math.min(n,l-1),a)},Em=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let l=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},WW=Py({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Jr(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Em,getOffset:(e,t,n,a,l)=>{const{height:o,layout:r,width:s}=e,u=ji(r)?s:o,c=Jr(e,t,l),d=Em(e,l),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=Fa:n=xl),n){case Ki:return f;case"end":return p;case xl:return Math.round(p+(f-p)/2);case Fa:default:return a>=p&&a<=f?a:a<p?p:f}},getStartIndexForOffset:(e,t,n)=>FW(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:o,layout:r,width:s}=e,u=ji(r)?s:l,c=Jr(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p<o-1&&f<d;)p++,f+=Jr(e,p,a).size;return p},initCache({estimatedItemSize:e=50},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,l=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),l&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&rn(HW,`
itemSize is required as function, but the given value was ${typeof e}
`)}}),jW=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let o=null,r=0,s=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return p||g};return{hasReachedEdge:u,onWheel:d=>{ll(o);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=p,d.preventDefault(),o=xa(()=>{l(r,s),r=0,s=0})}}},qW=(e,t,n,a,l,o,r)=>{const s=L(0),u=L(0);let c,d=0,f=0;const p=v=>{ll(c),s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,d=0,f=0},g=v=>{v.preventDefault(),ll(c),d+=s.value-v.touches[0].clientX,f+=u.value-v.touches[0].clientY,s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,c=xa(()=>{const m=a.value-i(o),h=l.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,m),scrollTop:Math.min(t.value.scrollTop+f,h)}),d=0,f=0})};return zt(e,"touchstart",p,{passive:!0}),zt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:p,handleTouchMove:g}},Vy=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:g,validateProps:v})=>D({name:e??"ElVirtualList",props:yr,emits:[Hc,Fc],setup(m,{emit:h,expose:y,slots:b}){const C=ye("vl");v(m);const _=mt(),x=L(p(m,_));g==null||g(_,x);const k=L(),E=L(),T=L(),O=L(),N=L({isScrolling:!1,scrollLeft:He(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:He(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Kc,yAxisScrollDir:Kc}),P=Ay(),A=S(()=>Number.parseInt(`${m.height}`,10)),B=S(()=>Number.parseInt(`${m.width}`,10)),q=S(()=>{const{totalColumn:we,totalRow:Ee,columnCache:be}=m,{isScrolling:Ne,xAxisScrollDir:ze,scrollLeft:Ze}=i(N);if(we===0||Ee===0)return[0,0,0,0];const et=a(m,Ze,i(x)),at=l(m,et,Ze,i(x)),nt=!Ne||ze==="backward"?Math.max(1,be):1,Nt=!Ne||ze==="forward"?Math.max(1,be):1;return[Math.max(0,et-nt),Math.max(0,Math.min(we-1,at+Nt)),et,at]}),W=S(()=>{const{totalColumn:we,totalRow:Ee,rowCache:be}=m,{isScrolling:Ne,yAxisScrollDir:ze,scrollTop:Ze}=i(N);if(we===0||Ee===0)return[0,0,0,0];const et=d(m,Ze,i(x)),at=f(m,et,Ze,i(x)),nt=!Ne||ze==="backward"?Math.max(1,be):1,Nt=!Ne||ze==="forward"?Math.max(1,be):1;return[Math.max(0,et-nt),Math.max(0,Math.min(Ee-1,at+Nt)),et,at]}),H=S(()=>o(m,i(x))),V=S(()=>r(m,i(x))),I=S(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:He(m.height)?`${m.height}px`:m.height,width:He(m.width)?`${m.width}px`:m.width},m.style??{}]),F=S(()=>{const we=`${i(V)}px`;return{height:`${i(H)}px`,pointerEvents:i(N).isScrolling?"none":void 0,width:we,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:we,totalRow:Ee}=m;if(we>0&&Ee>0){const[at,nt,Nt,Bt]=i(q),[$t,Ue,pt,me]=i(W);h(Hc,{columnCacheStart:at,columnCacheEnd:nt,rowCacheStart:$t,rowCacheEnd:Ue,columnVisibleStart:Nt,columnVisibleEnd:Bt,rowVisibleStart:pt,rowVisibleEnd:me})}const{scrollLeft:be,scrollTop:Ne,updateRequested:ze,xAxisScrollDir:Ze,yAxisScrollDir:et}=i(N);h(Fc,{xAxisScrollDir:Ze,scrollLeft:be,yAxisScrollDir:et,scrollTop:Ne,updateRequested:ze})},j=we=>{const{clientHeight:Ee,clientWidth:be,scrollHeight:Ne,scrollLeft:ze,scrollTop:Ze,scrollWidth:et}=we.currentTarget,at=i(N);if(at.scrollTop===Ze&&at.scrollLeft===ze)return;let nt=ze;if(xm(m.direction))switch(jc()){case Wi:nt=-ze;break;case Gp:nt=et-be-ze;break}N.value={...at,isScrolling:!0,scrollLeft:nt,scrollTop:Math.max(0,Math.min(Ze,Ne-Ee)),updateRequested:!0,xAxisScrollDir:ri(at.scrollLeft,nt),yAxisScrollDir:ri(at.scrollTop,Ze)},Pe(()=>z()),Y(),K()},G=(we,Ee)=>{const be=i(A),Ne=(H.value-be)/Ee*we;ne({scrollTop:Math.min(H.value-be,Ne)})},ee=(we,Ee)=>{const be=i(B),Ne=(V.value-be)/Ee*we;ne({scrollLeft:Math.min(V.value-be,Ne)})},{onWheel:le}=jW({atXStartEdge:S(()=>N.value.scrollLeft<=0),atXEndEdge:S(()=>N.value.scrollLeft>=V.value-i(B)),atYStartEdge:S(()=>N.value.scrollTop<=0),atYEndEdge:S(()=>N.value.scrollTop>=H.value-i(A))},(we,Ee)=>{var ze,Ze,et,at;(Ze=(ze=E.value)==null?void 0:ze.onMouseUp)==null||Ze.call(ze),(at=(et=T.value)==null?void 0:et.onMouseUp)==null||at.call(et);const be=i(B),Ne=i(A);ne({scrollLeft:Math.min(N.value.scrollLeft+we,V.value-be),scrollTop:Math.min(N.value.scrollTop+Ee,H.value-Ne)})});zt(k,"wheel",le,{passive:!1});const ne=({scrollLeft:we=N.value.scrollLeft,scrollTop:Ee=N.value.scrollTop})=>{we=Math.max(we,0),Ee=Math.max(Ee,0);const be=i(N);Ee===be.scrollTop&&we===be.scrollLeft||(N.value={...be,xAxisScrollDir:ri(be.scrollLeft,we),yAxisScrollDir:ri(be.scrollTop,Ee),scrollLeft:we,scrollTop:Ee,updateRequested:!0},Pe(()=>z()),Y(),K())},{touchStartX:se,touchStartY:J,handleTouchStart:de,handleTouchMove:ie}=qW(k,N,ne,V,H,B,A),U=(we=0,Ee=0,be=Fa)=>{const Ne=i(N);Ee=Math.max(0,Math.min(Ee,m.totalColumn-1)),we=Math.max(0,Math.min(we,m.total Line truncated
"columnWidth" must be passed as number,
instead ${typeof e} was given.
`),He(t)||rn(Mm,`
"columnWidth" must be passed as number,
instead ${typeof t} was given.
`)}}),{max:qc,min:Ly,floor:By}=Math,Tm="ElDynamicSizeGrid",YW={column:"columnWidth",row:"rowHeight"},e2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},ql=(e,t,n,a)=>{const[l,o,r]=[n[a],e[YW[a]],n[e2[a]]];if(t>r){let s=0;if(r>=0){const u=l[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=o(u);l[u]={offset:s,size:c},s+=c}n[e2[a]]=t}return l[t]},zy=(e,t,n,a,l,o)=>{for(;n<=a;){const r=n+By((a-n)/2),s=ql(e,r,t,o).offset;if(s===l)return r;s<l?n=r+1:a=r-1}return qc(0,n-1)},GW=(e,t,n,a,l)=>{const o=l==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&ql(e,n,t,l).offset<a;)n+=r,r*=2;return zy(e,t,By(n/2),Ly(n,o-1),a,l)},Om=(e,t,n,a)=>{const[l,o]=[t[a],t[e2[a]]];return(o>0?l[o].offset:0)>=n?zy(e,t,0,o,n,a):GW(e,t,qc(0,o),n,a)},Dy=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];l=r.offset+r.size}const o=(e-n-1)*t;return l+o},Hy=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},XW={column:Hy,row:Dy},$m=(e,t,n,a,l,o,r)=>{const[s,u]=[o==="row"?e.height:e.width,XW[o]],c=ql(e,t,l,o),d=qc(0,Ly(u(e,l)-s,c.offset)),f=qc(0,c.offset-s+r+c.size);switch(n==="smart"&&(a>=f-s&&a<=d+s?n=Fa:n=xl),n){case Ki:return d;case"end":return f;case xl:return Math.round(f+(d-f)/2);case Fa:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},ZW=Vy({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=ql(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=ql(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,o)=>$m(e,t,n,a,l,"column",o),getRowOffset:(e,t,n,a,l,o)=>$m(e,t,n,a,l,"row",o),getColumnStartIndexForOffset:(e,t,n)=>Om(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=ql(e,t,a,"column"),o=n+e.width;let r=l.offset+l.size,s=t;for(;s<e.totalColumn-1&&r<o;)s++,r+=ql(e,t,a,"column").size;return s},getEstimatedTotalHeight:Dy,getEstimatedTotalWidth:Hy,getRowStartIndexForOffset:(e,t,n)=>Om(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:o}=e,r=ql(e,t,a,"row"),s=n+o;let u=r.size+r.offset,c=t;for(;c<l-1&&u<s;)c++,u+=ql(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},s)=>{var u,c;s=Et(s)?!0:s,He(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(o,r)=>{n({columnIndex:o},r)},l=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{We(e)||rn(Tm,`
"columnWidth" must be passed as function,
instead ${typeof e} was given.
`),We(t)||rn(Tm,`
"rowHeight" must be passed as function,
instead ${typeof t} was given.
`)}}),Fy={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:An,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},Ky={[lt]:e=>Le(e)||He(e)||qt(e),change:e=>Le(e)||He(e)||qt(e)},zs=Symbol("checkboxGroupContextKey"),JW=xe({modelValue:{type:Z(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:An,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:Z(Array)},props:{type:Z(Object),default:()=>Wy},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),QW={[lt]:e=>Ce(e),change:e=>Ce(e)},Wy={label:"label",value:"value",disabled:"disabled"},ej=({model:e,isChecked:t})=>{const n=Ie(zs,void 0),a=Ie(Vr,void 0),l=S(()=>{var s,u;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Et(o)&&e.value.length>=o&&!t.value||!Et(r)&&e.value.length<=r&&t.value});return{isDisabled:un(S(()=>{var o;return n===void 0?(a==null?void 0:a.disabled)??l.value:((o=n.disabled)==null?void 0:o.value)||l.value})),isLimitDisabled:l}},tj=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:o})=>{const r=Ie(zs,void 0),{formItem:s}=zn(),{emit:u}=mt();function c(v){return[!0,e.trueValue,e.trueLabel].includes(v)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(v,m){u(yt,c(v),m)}function f(v){if(n.value)return;const m=v.target;u(yt,c(m.checked),v)}async function p(v){n.value||!a.value&&!l.value&&o.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Pe(),d(t.value,v)))}const g=S(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(ft))}),{handleChange:f,onClickRoot:p}},nj=e=>{const t=L(!1),{emit:n,vnode:a}=mt(),l=Ie(zs,void 0),o=S(()=>Et(l)===!1),r=L(!1),s=S(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=S({get(){var c;return o.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;o.value&&Ce(c)?(r.value=((d=l==null?void 0:l.max)==null?void 0:d.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>u.value.length,r.value===!1&&((f=l==null?void 0:l.changeEvent)==null||f.call(l,c))):(n(lt,c),t.value=c)}});return{model:u,isGroup:o,isLimitExceeded:r}},aj=(e,t,{model:n})=>{const a=Ie(zs,void 0),l=L(!1),o=S(()=>Oa(e.value)?e.label:e.value),r=S(()=>{const s=n.value;return qt(s)?s:Ce(s)?ot(o.value)?s.map(Zt).some(u=>dn(u,o.value)):s.map(Zt).includes(o.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:$n(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:$n(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:S(()=>!!t.default||!Oa(o.value)),actualValue:o}},jy=(e,t)=>{const{formItem:n}=zn(),{model:a,isGroup:l,isLimitExceeded:o}=nj(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=aj(e,t,{model:a}),{isDisabled:p}=ej({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:v}=ka(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:m,onClickRoot:h}=tj(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:v});return(()=>{function b(){Ce(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),kl({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>l.value&&Oa(e.value))),kl({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.trueLabel)),kl({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:v,isChecked:s,isDisabled:p,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:m,onClickRoot:h}},lj=["id","indeterminate","name","tabindex","disabled"];var oj=D({name:"ElCheckbox",__name:"checkbox",props:Fy,emits:Ky,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:l,isDisabled:o,isFocused:r,checkboxSize:s,hasOwnLabel:u,mode Line truncated
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),N[2]||(N[2]=M("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(w(),ue(i(De),{key:2,class:R(i(o).e("prefix"))},{default:ae(()=>[Q(i(Tr))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(Sj),{node:e.node},null,8,["node"]),re(" postfix "),p.value?re("v-if",!0):(w(),$(Ke,{key:3},[e.node.loading?(w(),ue(i(De),{key:0,class:R([i(o).is("loading"),i(o).e("postfix")])},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"])):(w(),ue(i(De),{key:1,class:R(["arrow-right",i(o).e("postfix")])},{default:ae(()=>[Q(i(Zn))]),_:1},8,["class"]))],64))],42,xj))}}),Nm=kj,Ej=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=mt(),l=ye("cascader-menu"),{t:o}=xt(),r=Gn();let s,u;const c=Ie(qd),d=L(),f=L(),p=S(()=>!n.nodes.length),g=S(()=>!c.initialLoaded),v=S(()=>`${r.value}-${n.index}`),m=()=>{var T,O,N,P;let E;if(c.expandingNode){const{level:A,pathNodes:B}=c.expandingNode;n.index<A?E=(T=B[n.index])==null?void 0:T.uid:n.index===A&&c.checkedNodes.length>0&&(E=(N=(O=c.checkedNodes[0])==null?void 0:O.pathNodes[n.index])==null?void 0:N.uid)}else c.checkedNodes.length>0&&n.index<c.checkedNodes[0].pathNodes.length&&(E=(P=c.checkedNodes[0].pathNodes[n.index])==null?void 0:P.uid);return E!==void 0?n.nodes.findIndex(A=>A.uid===E):-1},h=E=>E?n.nodes.findIndex(T=>`${v.value}-${T.uid}`===E):-1,y=E=>{var O;const T=wa(E,0,n.nodes.length-1);(O=f.value)==null||O.scrollToItem(T)},b=E=>{if(!n.nodes.length)return;const T=wa(E,0,n.nodes.length-1);y(T),Pe(()=>{var N;const O=(N=a.vnode.el)==null?void 0:N.querySelector(`#${v.value}-${n.nodes[T].uid}`);O&&rs(O)})},C=E=>{s=E.target},_=E=>{var T,O,N;if(!(!c.isHoverMenu||!s||!d.value))if(s.contains(E.target)){x();const P=a.vnode.el,{left:A}=P.getBoundingClientRect(),{offsetWidth:B,offsetHeight:q}=P,W=E.clientX-A,H=s.offsetTop,V=H+s.offsetHeight,I=n.virtualScroll?((O=(T=f.value)==null?void 0:T.states)==null?void 0:O.scrollOffset)||0:((N=P.querySelector(`.${l.e("wrap")}`))==null?void 0:N.scrollTop)||0;d.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${H} L${B} ${I} V${H} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${V} L${B} ${q+I} V${V} Z" />
`}else u||(u=window.setTimeout(k,c.config.hoverThreshold))},x=()=>{u&&(clearTimeout(u),u=void 0)},k=()=>{d.value&&(d.value.innerHTML="",x())};return t({getActiveNodeIndex:m,getNodeIndexById:h,scrollToItem:y,focusNodeAt:b,virtualListRef:f,get $el(){return a.vnode.el}}),(E,T)=>{var O;return e.virtualScroll?(w(),$("div",{key:v.value,class:R(i(l).b()),onMousemove:_,onMouseleave:k},[Q(i(jd),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(l).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(l).is("empty",p.value)}},{default:ae(({data:N,index:P,style:A})=>[(w(),ue(Nm,{key:N[P].uid,node:N[P],"menu-id":v.value,style:je(A),onExpand:C},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),g.value?(w(),$("div",{key:0,class:R(i(l).e("empty-text"))},[Q(i(De),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"]),bt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),$("div",{key:1,class:R(i(l).e("empty-text"))},[oe(E.$slots,"empty",{},()=>[bt(Se(i(o)("el.cascader.noData")),1)])],2)):(O=i(c))!=null&&O.isHoverMenu?(w(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(w(),$("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")],34)):(w(),ue(i(sl),{key:v.value,tag:"ul",role:"menu",class:R(i(l).b()),"wrap-class":i(l).e("wrap"),"view-class":[i(l).e("list"),i(l).is("empty",p.value)],onMousemove:_,onMouseleave:k},{default:ae(()=>{var N;return[(w(!0),$(Ke,null,_t(e.nodes,P=>(w(),ue(Nm,{key:P.uid,node:P,"menu-id":v.value,onExpand:C},null,8,["node","menu-id"]))),128)),g.value?(w(),$("div",{key:0,class:R(i(l).e("empty-text"))},[Q(i(De),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Q(i(Ga))]),_:1},8,["class"]),bt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),$("div",{key:1,class:R(i(l).e("empty-text"))},[oe(E.$slots,"empty",{},()=>[bt(Se(i(o)("el.cascader.noData")),1)])],2)):(N=i(c))!=null&&N.isHoverMenu?(w(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(w(),$("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),Mj=Ej;let Tj=0;const Oj=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var t2=class n2{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=Tj++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:r,children:s}=n,u=t[s],c=Oj(this);this.level=l?0:a?a.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new n2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!va(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:o}=a;return(We(l)?l(t,this):!!t[l])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:o,leaf:r}=n,s=We(r)?r(t,this):t[r];return Et(s)?o&&!l?!1:!(Ce(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new n2(t,this.config,this);return Ce(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,o)=>l+(o.checked?1:o.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const a2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(a2(a.children,t))),n),[]);var Am=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new t2(a,this.config));this.nodes=n,this.allNodes=a2(n,!1),this.leafNodes=a2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new t2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.child Line truncated
M 50 50
m 0 ${_?"":"-"}${C}
a ${C} ${C} 0 1 1 0 ${_?"-":""}${C*2}
a ${C} ${C} 0 1 1 0 ${_?"":"-"}${C*2}
`}),u=S(()=>2*Math.PI*r.value),c=S(()=>n.type==="dashboard"?.75:1),d=S(()=>`${-1*u.value*(1-c.value)/2}px`),f=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=S(()=>{let C;return n.color?C=b(n.percentage):C=t[n.status]||t.default,C}),v=S(()=>n.status==="warning"?Cu:n.type==="line"?n.status==="success"?Dd:vl:n.status==="success"?Tr:Va),m=S(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),h=S(()=>n.format(n.percentage));function y(C){const _=100/C.length;return C.map((x,k)=>Le(x)?{color:x,percentage:(k+1)*_}:x).sort((x,k)=>x.percentage-k.percentage)}const b=C=>{var x;const{color:_}=n;if(We(_))return _(C);if(Le(_))return _;{const k=y(_);for(const E of k)if(E.percentage>C)return E.color;return(x=k[k.length-1])==null?void 0:x.color}};return(C,_)=>(w(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(w(),$("div",{key:0,class:R(i(a).b("bar"))},[M("div",{class:R(i(a).be("bar","outer")),style:je({height:`${e.strokeWidth}px`})},[M("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:je(l.value)},[(e.showText||C.$slots.default)&&e.textInside?(w(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(C.$slots,"default",{percentage:e.percentage},()=>[M("span",null,Se(h.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(w(),$("div",{key:1,class:R(i(a).b("circle")),style:je({height:`${e.width}px`,width:`${e.width}px`})},[(w(),$("svg",GJ,[M("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:je(f.value)},null,14,XJ),M("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:je(p.value)},null,14,ZJ)]))],6)),(e.showText||C.$slots.default)&&!e.textInside?(w(),$("div",{key:2,class:R(i(a).e("text")),style:je({fontSize:`${m.value}px`})},[oe(C.$slots,"default",{percentage:e.percentage},()=>[e.status?(w(),ue(i(De),{key:1},{default:ae(()=>[(w(),ue(dt(v.value)))]),_:1})):(w(),$("span",JJ,Se(h.value),1))])],6)):re("v-if",!0)],10,YJ))}}),eQ=QJ;const Zb=it(eQ),tQ=xe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Z([Array,Object]),default:()=>fn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Z([Array,Object]),default:()=>[li,li,li]},voidIcon:{type:Yt,default:()=>_8},disabledVoidIcon:{type:Yt,default:()=>li},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Z(Array),default:()=>fn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:An,clearable:Boolean,...ia(["ariaLabel"])}),nQ={[yt]:e=>He(e),[lt]:e=>He(e)},aQ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],lQ=["onMousemove","onClick"];var oQ=D({name:"ElRate",__name:"rate",props:tQ,emits:nQ,setup(e,{expose:t,emit:n}){function a(I,F){const K=G=>ot(G),j=F[Object.keys(F).map(G=>+G).filter(G=>{const ee=F[G];return K(ee)&&ee.excluded?I<G:I<=G}).sort((G,ee)=>G-ee)[0]];return K(j)&&j.value||j}const l=e,o=n,r=Ie(Vl,void 0),s=$n(),u=ye("rate"),{inputId:c,isLabeledByFormItem:d}=ka(l,{formItemContext:r}),f=L(wa(l.modelValue,0,l.max)),p=L(-1),g=L(!0),v=L([]),m=S(()=>v.value.map(I=>I.$el.clientWidth)),h=S(()=>[u.b(),u.m(s.value)]),y=un(),b=S(()=>u.cssVarBlock({"void-color":l.voidColor,"disabled-void-color":l.disabledVoidColor,"fill-color":k.value})),C=S(()=>{let I="";return l.showScore?I=l.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${l.modelValue}`:`${f.value}`):l.showText&&(I=l.texts[Math.ceil(f.value)-1]),I}),_=S(()=>l.modelValue*100-Math.floor(l.modelValue)*100),x=S(()=>Ce(l.colors)?{[l.lowThreshold]:l.colors[0],[l.highThreshold]:{value:l.colors[1],excluded:!0},[l.max]:l.colors[2]}:l.colors),k=S(()=>{const I=a(f.value,x.value);return ot(I)?"":I}),E=S(()=>{let I="";return y.value?I=`${_.value}%`:l.allowHalf&&(I="50%"),{color:k.value,width:I}}),T=S(()=>{let I=Ce(l.icons)?[...l.icons]:{...l.icons};return I=Ka(I),Ce(I)?{[l.lowThreshold]:I[0],[l.highThreshold]:{value:I[1],excluded:!0},[l.max]:I[2]}:I}),O=S(()=>a(l.modelValue,T.value)),N=S(()=>y.value?Le(l.d Line truncated
`||c==="\r")){r=u;continue}if(o.includes(c)){const d=r===-1?a:r;s={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},_oe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),o.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),v=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),m=v+Number.parseInt(u.lineHeight);g>m?s.lineHeight=`${g-v}px`:g===m?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[p]=u[p]}),Ad()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,l)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Soe=xe({...zp,options:{type:Z(Array),default:()=>[]},prefix:{type:Z([String,Array]),default:"@",validator:e=>Le(e)?e.length===1:e.every(t=>Le(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:Z([Boolean,Function]),default:()=>woe,validator:e=>e===!1?!0:We(e)},placement:{type:Z(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Z(Function)},modelValue:String,loading:Boolean,popperClass:jt.popperClass,popperStyle:jt.popperStyle,popperOptions:{type:Z(Object),default:()=>({})},props:{type:Z(Object),default:()=>Zw}}),xoe={[lt]:e=>Le(e),"whole-remove":(e,t)=>Le(e)&&Le(t),input:e=>Le(e),search:(e,t)=>Le(e)&&Le(t),select:(e,t)=>ot(e)&&Le(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Zw={value:"value",label:"label",disabled:"disabled"},koe=xe({options:{type:Z(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Eoe={select:e=>Le(e.value)},Moe=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Toe=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:koe,emits:Eoe,setup(e,{expose:t,emit:n}){const a=e,l=n,o=ye("mention"),{t:r}=xt(),s=L(-1),u=L(),c=L(),d=L(),f=(_,x)=>[o.be("dropdown","item"),o.is("hovering",s.value===x),o.is("disabled",_.disabled||a.disabled)],p=_=>{_.disabled||a.disabled||l("select",_)},g=_=>{s.value=_},v=S(()=>a.disabled||a.options.every(_=>_.disabled)),m=S(()=>a.options[s.value]),h=()=>{!m.value||m.value.disabled||a.disabled||l("select",m.value)},y=_=>{const{options:x}=a;if(x.length===0||v.value)return;_==="next"?(s.value++,s.value===x.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=x.length-1));const k=x[s.value];if(k.disabled){y(_);return}Pe(()=>b(k))},b=_=>{var T,O,N,P;const{options:x}=a,k=x.findIndex(A=>A.value===_.value),E=(T=c.value)==null?void 0:T[k];if(E){const A=(N=(O=d.value)==null?void 0:O.querySelector)==null?void 0:N.call(O,`.${o.be("dropdown","wrap")}`);A&&pp(A,E)}(P=u.value)==null||P.handleScroll()};return fe(()=>a.options,()=>{v.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(_=>!_.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:h,hoverOption:m}),(_,x)=>(w(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(o).b("dropdown"))},[_.$slots.header?(w(),$("div",{key:0,class:R(i(o).be("dropdown","header"))},[oe(_.$slots,"header")],2)):re("v-if",!0),vt(Q(i(sl),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(o).be("dropdown","wrap"),"view-class":i(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(w(!0),$(Ke,null,_t(e.options,(k Line truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Zr=typeof document<"u";function r5(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vse(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&r5(e.default)}const on=Object.assign;function Yf(e,t){const n={};for(const a in t){const l=t[a];n[a]=il(l)?l.map(e):e(l)}return n}const Si=()=>{},il=Array.isArray;function kg(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const s5=/#/g,hse=/&/g,mse=/\//g,gse=/=/g,yse=/\?/g,i5=/\+/g,bse=/%5B/g,wse=/%5D/g,u5=/%5E/g,Cse=/%60/g,c5=/%7B/g,_se=/%7C/g,d5=/%7D/g,Sse=/%20/g;function Lv(e){return e==null?"":encodeURI(""+e).replace(_se,"|").replace(bse,"[").replace(wse,"]")}function xse(e){return Lv(e).replace(c5,"{").replace(d5,"}").replace(u5,"^")}function b2(e){return Lv(e).replace(i5,"%2B").replace(Sse,"+").replace(s5,"%23").replace(hse,"%26").replace(Cse,"`").replace(c5,"{").replace(d5,"}").replace(u5,"^")}function kse(e){return b2(e).replace(gse,"%3D")}function Ese(e){return Lv(e).replace(s5,"%23").replace(yse,"%3F")}function Mse(e){return Ese(e).replace(mse,"%2F")}function Zi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Tse=/\/$/,Ose=e=>e.replace(Tse,"");function Gf(e,t,n="/"){let a,l={},o="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),o=t.slice(u,s>0?s:t.length),l=e(o.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=Rse(a??t,n),{fullPath:a+o+r,path:a,query:l,hash:Zi(r)}}function $se(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Eg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Nse(e,t,n){const a=t.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&Ts(t.matched[a],n.matched[l])&&f5(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ts(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function f5(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ase(e[n],t[n]))return!1;return!0}function Ase(e,t){return il(e)?Mg(e,t):il(t)?Mg(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Mg(e,t){return il(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Rse(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),l=a[a.length-1];(l===".."||l===".")&&a.push("");let o=n.length-1,r,s;for(r=0;r<a.length;r++)if(s=a[r],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+a.slice(r).join("/")}const ko={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let w2=function(e){return e.pop="pop",e.push="push",e}({}),Xf=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Pse(e){if(!e)if(Zr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ose(e)}const Ise=/^[^#]+#/;function Vse(e,t){return e.replace(Ise,"#")+t}function Lse(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Jd=()=>({left:window.scrollX,top:window.scrollY});function Bse(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=Lse(l,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 Tg(e,t){return(history.state?history.state.position-t:-1)+e}const C2=new Map;function zse(e,t){C2.set(e,t)}function Dse(e){const t=C2.get(e);return C2.delete(e),t}function Hse(e){return typeof e=="string"||e&&typeof e=="object"}function p5(e){return typeof e=="string"||typeof e=="symbol"}let Nn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const v5=Symbol("");Nn.MATCHER_NOT_FOUND+"",Nn.NAVIGATION_GUARD_REDIRECT+"",Nn.NAVIGATION_ABORTED+"",Nn.NAVIGATION_CANCELLED+"",Nn.NAVIGATION_DUPLICATED+"";function Os(e,t){return on(new Error,{type:e,[v5]:!0},t)}function Kl(e,t){return e instanceof Error&&v5 in e&&(t==null||!!(e.type&t))}const Fse=["params","query","hash"];function Kse(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Fse)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Wse(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const l=n[a].replace(i5," "),o=l.indexOf("="),r=Zi(o<0?l:l.slice(0,o)),s=o<0?null:Zi(l.slice(o+1));if(r in t){let uLine truncated
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Yse=()=>location.protocol+"//"+location.host;function h5(e,t){const{pathname:n,search:a,hash:l}=t,o=e.indexOf("#");if(o>-1){let r=l.includes(e.slice(o))?e.slice(o).length:1,s=l.slice(r);return s[0]!=="/"&&(s="/"+s),Eg(s,"")}return Eg(n,e)+a+l}function Gse(e,t,n,a){let l=[],o=[],r=null;const s=({state:p})=>{const g=h5(e,location),v=n.value,m=t.value;let h=0;if(p){if(n.value=g,t.value=p,r&&r===v){r=null;return}h=m?p.position-m.position:0}else a(g);l.forEach(y=>{y(n.value,v,{delta:h,type:w2.pop,direction:h?h>0?Xf.forward:Xf.back:Xf.unknown})})};function u(){r=n.value}function c(p){l.push(p);const g=()=>{const v=l.indexOf(p);v>-1&&l.splice(v,1)};return o.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(on({},p.state,{scroll:Jd()}),"")}}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function Ng(e,t,n,a=!1,l=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:l?Jd():null}}function Xse(e){const{history:t,location:n}=window,a={value:h5(e,n)},l={value:t.state};l.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:Yse()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),l.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function r(u,c){o(u,on({},t.state,Ng(l.value.back,u,l.value.forward,!0),c,{position:l.value.position}),!0),a.value=u}function s(u,c){const d=on({},l.value,t.state,{forward:u,scroll:Jd()});o(d.current,d,!0),o(u,on({},Ng(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:l,push:s,replace:r}}function Zse(e){e=Pse(e);const t=Xse(e),n=Gse(e,t.state,t.location,t.replace);function a(o,r=!0){r||n.pauseListeners(),history.go(o)}const l=on({location:"",base:e,go:a,createHref:Vse.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function Jse(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zse(e)}let fr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Dn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Dn||{});const Qse={type:fr.Static,value:""},eie=/[a-zA-Z0-9_]/;function tie(e){if(!e)return[[]];if(e==="/")return[[Qse]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=Dn.Static,a=n;const l=[];let o;function r(){o&&l.push(o),o=[]}let s=0,u,c="",d="";function f(){c&&(n===Dn.Static?o.push({type:fr.Static,value:c}):n===Dn.Param||n===Dn.ParamRegExp||n===Dn.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:fr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&n!==Dn.ParamRegExp){a=n,n=Dn.EscapeNext;continue}switch(n){case Dn.Static:u==="/"?(c&&f(),r()):u===":"?(f(),n=Dn.Param):p();break;case Dn.EscapeNext:p(),n=a;break;case Dn.Param:u==="("?n=Dn.ParamRegExp:eie.test(u)?p():(f(),n=Dn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case Dn.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=Dn.ParamRegExpEnd:d+=u;break;case Dn.ParamRegExpEnd:f(),n=Dn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===Dn.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),l}const Ag="[^/]+?",nie={sensitive:!1,strict:!1,start:!0,end:!0};var fa=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(fa||{});const aie=/[.+*?^${}()[\]/\\]/g;function lie(e,t){const n=on({},nie,t),a=[];let l=n.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[fa.Root];n.strict&&!c.length&&(l+="/");for(let f=0;f<c.length;f++){const p=c[f];let g=fa.Segment+(n.sensitive?fa.BonusCaseSensitive:0);if(p.type===fr.Static)f||(l+="/"),l+=p.value.replace(aie,"\\$&"),g+=fa.Static;else if(p.type===fr.ParLine truncated
+9
View File
@@ -0,0 +1,9 @@
import{k as Ge,b9 as Qe}from"./index-CZJEDzxI.js";function mt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vt}=Object.prototype,{getPrototypeOf:Z}=Object,{iterator:ae,toStringTag:yt}=Symbol,be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ie=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),be(n,t))return!0;n=Z(n)}return!1},Jt=(e,t)=>e!=null&&ie(e,t)?e[t]:void 0,Ie=(e=>t=>{const n=Vt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>Ie(t)===e),ge=e=>t=>typeof t===e,{isArray:K}=Array,Y=ge("undefined");function ee(e){return e!==null&&!Y(e)&&e.constructor!==null&&!Y(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wt=F("ArrayBuffer");function vt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wt(e.buffer),t}const Wt=ge("string"),L=ge("function"),bt=ge("number"),te=e=>e!==null&&typeof e=="object",Kt=e=>e===!0||e===!1,me=e=>{if(!te(e))return!1;const t=Z(e);return(t===null||t===Object.prototype||Z(t)===null)&&!ie(e,yt)&&!ie(e,ae)},Xt=e=>{if(!te(e)||ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gt=F("Date"),Qt=F("File"),Zt=e=>!!(e&&typeof e.uri<"u"),Yt=e=>e&&typeof e.getParts<"u",en=F("Blob"),tn=F("FileList"),nn=e=>te(e)&&L(e.pipe);function rn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ze=rn(),Ye=typeof Ze.FormData<"u"?Ze.FormData:void 0,sn=e=>{if(!e)return!1;if(Ye&&e instanceof Ye)return!0;const t=Z(e);if(!t||t===Object.prototype||!L(e.append))return!1;const n=Ie(e);return n==="formdata"||n==="object"&&L(e.toString)&&e.toString()==="[object FormData]"},on=F("URLSearchParams"),[an,cn,ln,un]=["ReadableStream","Request","Response","Headers"].map(F),fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ce(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),K(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ee(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let c;for(r=0;r<a;r++)c=o[r],t.call(null,e[c],c,e)}}function Et(e,t){if(ee(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const v=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rt=e=>!Y(e)&&e!==v;function Le(...e){const{caseless:t,skipUndefined:n}=Rt(this)&&this||{},r={},s=(o,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=t&&typeof a=="string"&&Et(r,a)||a,l=be(r,c)?r[c]:void 0;me(l)&&me(o)?r[c]=Le(l,o):me(o)?r[c]=Le({},o):K(o)?r[c]=o.slice():(!n||!Y(o))&&(r[c]=o)};for(let o=0,a=e.length;o<a;o++){const c=e[o];if(!c||ee(c)||(ce(c,s),typeof c!="object"||K(c)))continue;const l=Object.getOwnPropertySymbols(c);for(let f=0;f<l.length;f++){const u=l[f];On.call(c,u)&&s(c[u],u)}}return r}const dn=(e,t,n,{allOwnKeys:r}={})=>(ce(t,(s,o)=>{n&&L(s)?Object.defineProperty(e,o,{__proto__:null,value:mt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},mn=(e,t,n,r)=>{let s,o,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yn=(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},wn=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!bt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z(Uint8Array)),En=(e,t)=>{const r=(e&&e[ae]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Rn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gn=F("HTMLFormElement"),Sn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:On}=Object.prototype,An=F("RegExp"),gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ce(n,(s,o)=>{let a;(a=t(s,o,e))!==!1&&(r[o]=a||s)}),Object.defineProperties(e,r)},_n=e=>{gt(e,(t,n)=>{if(L(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(L(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"Line truncated
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&Bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function jn(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const kn=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),qn=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function je(e,t){return i.isArray(e)?e.map(n=>je(n,t)):jn(String(e).replace(t,""))}const Hn=e=>je(e,kn),Mn=e=>je(e,qn);function At(e){const t=Object.create(null);return i.forEach(e.toJSON(),(n,r)=>{t[r]=Mn(n)}),t}const et=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:i.isArray(e)?e.map(ye):Hn(String(e))}function zn(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 $n=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xe(e,t,n,r,s){if(i.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!i.isString(t)){if(i.isString(r))return t.indexOf(r)!==-1;if(i.isRegExp(r))return r.test(t)}}function Vn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jn(e,t){const n=i.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,a){return this[r].call(this,t,s,o,a)},configurable:!0})})}let D=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,f){const u=oe(l);if(!u)return;const p=i.findKey(s,u);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||l]=ye(c))}const a=(c,l)=>i.forEach(c,(f,u)=>o(f,u,l));if(i.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(i.isString(t)&&(t=t.trim())&&!$n(t))a(In(t),n);else if(i.isObject(t)&&i.isSafeIterable(t)){let c=Object.create(null),l,f;for(const u of t){if(!i.isArray(u))throw new TypeError("Object iterator must return a key-value pair");f=u[0],i.hasOwnProp(c,f)?(l=c[f],c[f]=i.isArray(l)?[...l,u[1]]:[l,u[1]]):c[f]=u[1]}a(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=oe(t),t){const r=i.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return zn(s);if(i.isFunction(n))return n.call(this,s,r);if(i.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oe(t),t){const r=i.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(a){if(a=oe(a),a){const c=i.findKey(r,a);c&&(!n||xe(r,r[c],c,n))&&(delete r[c],s=!0)}}return i.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||xe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return i.forEach(this,(s,o)=>{const a=i.findKey(r,o);if(a){n[a]=ye(s),delete n[o];return}const c=t?Vn(o):String(o).trim();c!==o&&delete n[o],n[c]=ye(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return i.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&i.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(s=>r.set(s)),r}static accessor(t){const r=(this[et]=this[et]={accessors:{}}).accessors,s=this.prototype;function o(a){const c=oe(a);r[c]||(Jn(s,a),r[c]=!0)}return i.isArray(t)?t.forEach(o):o(t),this}};D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});i.freezeMethods(D);const vn="[REDACTED ****]";function Wn(e){if(i.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(i.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Kn(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||i.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof D&&(o=o.toJSON()),r.push(o);let a;if(i.isArray(o))a=[],o.forEach((c,l)=>{const f=s(c);i.isUndefined(f)||(a[l]=f)});else{if(!i.isPlainObject(o)&&Wn(o))return r.pop(),o;a=Object.create(null);for(const[c,l]of Object.entries(o)){const f=n.has(c.toLowerCase())?vn:s(l);i.isUndefined(f)||(a[c]=f)}}return r.pop(),a};return s(e)}let h=class _t extends Error{static from(t,n,r,s,o,a){const c=new _t(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),a&&Object.assign(c,a),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&i.hasOwnProp(t,"redact")?t.redact:void 0,r=i.isArray(n)&&n.length>0?Kn(t,n):i.toJSONObject(t);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:r,code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ECONNREFUSED="ECONNREFUSED";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";h.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Xn=null,Tt=100;function Ue(e){return i.isPlainObject(e)||i.isArray(e)}function Ct(e){return i.endsWith(e,"[]")?e.slice(0,-2):e}function Pe(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ct(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Gn(e){return i.isArray(e)&&!e.some(Ue)}const Qn=i.toFlatObject(i,{},null,function(t){return/^is[A-Z]/.test(t)});function Se(e,t,n){if(!i.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=i.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,E){return!i.isUndefined(E[y])});const r=n.metaTokens,s=n.visitor||S,o=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?Tt:n.maxDepth,f=c&&i.isSpecCompliantForm(t),u=[];if(!i.isFunction(s))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(i.isDate(d))return d.toISOString();if(i.isBoolean(d))return d.toString();if(!f&&i.isBlob(d))throw new h("Blob is not supported. Use a Buffer instead.");return i.isArrayBuffer(d)||i.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function w(d){if(d>l)throw new h("Object is too deeply nested ("+d+" levels). Max depth: "+l,h.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(d,y){if(l===1/0)return JSON.stringify(d);const E=[];return JSON.stringify(d,function(P,_){if(!i.isObject(_))return _;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push(_),w(y+E.length-1),_})}function S(d,y,E){let g=d;if(i.isReactNative(t)&&i.isReactNativeBlob(d))return t.append(Pe(E,y,o),p(d)),!1;if(d&&!E&&typeof d=="object"){if(i.endsWith(y,"{}"))y=r?y:y.slice(0,-2),d=b(d,1);else if(i.isArray(d)&&Gn(d)||(i.isFileList(d)||i.endsWith(y,"[]"))&&(g=i.toArray(d)))return y=Ct(y),g.forEach(function(_,q){!(i.isUndefined(_)||_===null)&&t.append(a===!0?Pe([y],q,o):a===null?y:y+"[]",p(_))}),!1}return Ue(d)?!0:(t.append(Pe(E,y,o),p(d)),!1)}const O=Object.assign(Qn,{defaultVisitor:S,convertValue:p,isVisitable:Ue});function m(d,y,E=0){if(!i.isUndefined(d)){if(w(E),u.indexOf(d)!==-1)throw new Error("Circular reference detected in "+y.join("."));u.push(d),i.forEach(d,function(P,_){(!(i.isUndefined(P)||P===null)&&s.call(t,P,i.isString(_)?_.trim():_,y,O))===!0&&m(P,y?y.concat(_):[_],E+1)}),u.pop()}}if(!i.isObject(e))throw new TypeErr Line truncated
`+a.map(dt).join(`
`):" "+dt(a[0]):"as no adapter specified";throw new h("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const jt={getAdapter:kr,adapters:ze};function De(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ue(null,e)}function pt(e){return De(e),e.headers=D.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jt.getAdapter(e.adapter||le.adapter,e)(e).then(function(r){De(e),e.response=r;try{r.data=Ne.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=D.from(r.headers),r},function(r){if(!Lt(r)&&(De(e),r&&r.response)){e.response=r.response;try{r.response.data=Ne.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=D.from(r.response.headers)}return Promise.reject(r)})}const Oe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Oe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ht={};Oe.transitional=function(t,n,r){function s(o,a){return"[Axios v"+Me+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,c)=>{if(t===!1)throw new h(s(a," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!ht[a]&&(ht[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,c):!0}};Oe.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function qr(e,t,n){if(typeof e!="object")throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){const c=e[o],l=c===void 0||a(c,o,e);if(l!==!0)throw new h("option "+o+" must be "+l,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+o,h.ERR_BAD_OPTION)}}const we={assertOptions:qr,validators:Oe},N=we.validators;let W=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nt,response:new nt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const a=s.stack.indexOf(`
`);return a===-1?"":s.stack.slice(a+1)})();try{if(!r.stack)r.stack=o;else if(o){const a=o.indexOf(`
`),c=a===-1?-1:o.indexOf(`
`,a+1),l=c===-1?"":o.slice(c+1);String(r.stack).endsWith(l)||(r.stack+=`
`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=X(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&we.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean),advertiseZstdAcceptEncoding:N.transitional(N.boolean),validateStatusUndefinedResolves:N.transitional(N.boolean)},!1),s!=null&&(i.isFunction(s)?n.paramsSerializer={serialize:s}:we.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),we.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&i.merge(o.common,o[n.method]);o&&i.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete o[S]}),n.headers=D.concat(a,o);const c=[];let l=!0;this.interceptors.request.forEach(function(O){if(typeof O.runWhen=="function"&&O.runWhen(n)===!1)return;l=l&&O.synchronous;const m=n.transitional||qe;m&&m.legacyInterceptorReqResOrdering?c.unshift(O.fulfilled,O.rejected):c.push(O.fulfilled,O.rejected)});const f=[];this.interceptors.response.forEach(function(O){f.push(O.fulfilled,O.rejected)});let u,p=0,w;if(!l){const S=[pt.bind(this),void 0];for(S.unshift(...c),S.push(...f),w=S.length,u=Promise.resolve(n);p<w;)u=u.then(S[p++],S[p++]);return u}w=c.length;let b=n;for(;p<w;){const S=c[p++],O=c[p++];try{b=S(b)}catch(m){O.call(this,m);break}}try{u=pt.call(this,b)}catch(S){return Promise.reject(S)}for(p=0,w=f.length;p<w;)u=u.then(f[p++],f[p++]);return u}getUri(t){t=X(this.defaults,t);const n=Ft(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Pt(n,t.params,t.paramsSerializer)}};i.forEach(["delete","get","head","options"],function(t){W.prototype[t]=function(n,r){return this.request(X(r||{},{method:t,url:n,data:r&&i.hasOwnProp(r,"data")?r.data:void 0}))}});i.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,a,c){return this.request(X(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}W.prototype[t]=n(),t!=="query"&&(W.prototype[t+"Form"]=n(!0))});let Hr=class kt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(c=>{r.subscribe(c),o=c}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,c){r.reason||(r.reason=new ue(o,a,c),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 kt(function(s){t=s}),cancel:t}}};function Mr(e){return function(n){return e.apply(null,n)}}function zr(e){return i.isObject(e)&&e.isAxiosError===!0}const Be={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Be).forEach(([e,t])=>{Be[t]=e});function qt(e){const t=new W(e),n=mt(W.prototype.request,t);return i.extend(n,W.prototype,t,{allOwnKeys:!0}),i.extend(n,t,null,{allOwnKeys:!0} Line truncated
@@ -0,0 +1 @@
import{r as j}from"./index-C3lsw5-G.js";import{j as x,m as L,F as U,l as s,D as _}from"./index-Bn3no55S.js";function N(p){const{apiUrl:l,statsUrl:r=null,defaultFilters:c={},defaultPageSize:h=20,fetchParams:d=null,processData:t=null,onError:o=null}=p,u=s([]),a=s(!1),v=s(1),b=s(h),w=s(0),C=s(null),z=s([]),f=s({prop:"",order:""}),g=x({...c}),E=s(500);function y(){const e={page:v.value,page_size:b.value,...g};return f.value.prop&&(e.sort_by=f.value.prop,e.sort_order=f.value.order==="ascending"?"asc":"desc"),d&&Object.assign(e,d()),Object.keys(e).forEach(n=>{(e[n]===""||e[n]===null||e[n]===void 0)&&delete e[n]}),e}async function i(){a.value=!0;try{const e=await j.get(l,{params:y()});let n=e.data.list||[];t&&(n=n.map(t)),u.value=n,w.value=e.data.total||0}catch(e){console.error(`获取列表失败: ${l}`,e),o&&o(e)}finally{a.value=!1}}async function S(){if(r)try{const e=await j.get(r);C.value=e.data}catch(e){console.error("获取统计数据失败:",e)}}function D(){i(),S()}function F(e){z.value=e}function H({prop:e,order:n}){f.value={prop:e,order:n},i()}function M(e){b.value=e,v.value=1,i()}function O(){v.value=1,i()}function P(){Object.keys(g).forEach(e=>{g[e]=c[e]!==void 0?c[e]:""}),O()}function m(){const e=window.innerHeight;E.value=Math.max(300,e-450)}return L(()=>{m(),window.addEventListener("resize",m),i(),S()}),U(()=>{window.removeEventListener("resize",m)}),{list:u,loading:a,page:v,pageSize:b,total:w,stats:C,selectedRows:z,sortParams:f,filters:g,tableMaxHeight:E,fetchData:i,fetchStats:S,refreshData:D,handleSelectionChange:F,handleSortChange:H,handleSizeChange:M,handleFilterChange:O,resetFilters:P,calculateTableHeight:m}}function q(p,l){const r=s(l.map(t=>({...t,visible:t.visible!==!1})));function c(){localStorage.setItem(p,JSON.stringify(r.value))}function h(){const t=localStorage.getItem(p);if(t)try{const o=JSON.parse(t),u=new Map(o.map(a=>[a.prop,a.visible]));r.value=l.map(a=>({...a,visible:u.has(a.prop)?u.get(a.prop):a.visible!==!1}))}catch(o){console.error("加载列设置失败:",o)}}const d=_(()=>{const t={};return r.value.forEach(o=>{t[o.prop]=o.visible}),t});return h(),{columnOptions:r,visibleColumns:d,saveColumnSettings:c}}export{q as a,N as u};
@@ -0,0 +1 @@
import{r as j}from"./index-C7doSj3W.js";import{j as x,m as L,F as U,l as s,D as _}from"./index-B5xNuf83.js";function N(p){const{apiUrl:l,statsUrl:r=null,defaultFilters:c={},defaultPageSize:h=20,fetchParams:d=null,processData:t=null,onError:o=null}=p,u=s([]),a=s(!1),v=s(1),b=s(h),w=s(0),C=s(null),z=s([]),f=s({prop:"",order:""}),g=x({...c}),E=s(500);function y(){const e={page:v.value,page_size:b.value,...g};return f.value.prop&&(e.sort_by=f.value.prop,e.sort_order=f.value.order==="ascending"?"asc":"desc"),d&&Object.assign(e,d()),Object.keys(e).forEach(n=>{(e[n]===""||e[n]===null||e[n]===void 0)&&delete e[n]}),e}async function i(){a.value=!0;try{const e=await j.get(l,{params:y()});let n=e.data.list||[];t&&(n=n.map(t)),u.value=n,w.value=e.data.total||0}catch(e){console.error(`获取列表失败: ${l}`,e),o&&o(e)}finally{a.value=!1}}async function S(){if(r)try{const e=await j.get(r);C.value=e.data}catch(e){console.error("获取统计数据失败:",e)}}function D(){i(),S()}function F(e){z.value=e}function H({prop:e,order:n}){f.value={prop:e,order:n},i()}function M(e){b.value=e,v.value=1,i()}function O(){v.value=1,i()}function P(){Object.keys(g).forEach(e=>{g[e]=c[e]!==void 0?c[e]:""}),O()}function m(){const e=window.innerHeight;E.value=Math.max(300,e-450)}return L(()=>{m(),window.addEventListener("resize",m),i(),S()}),U(()=>{window.removeEventListener("resize",m)}),{list:u,loading:a,page:v,pageSize:b,total:w,stats:C,selectedRows:z,sortParams:f,filters:g,tableMaxHeight:E,fetchData:i,fetchStats:S,refreshData:D,handleSelectionChange:F,handleSortChange:H,handleSizeChange:M,handleFilterChange:O,resetFilters:P,calculateTableHeight:m}}function q(p,l){const r=s(l.map(t=>({...t,visible:t.visible!==!1})));function c(){localStorage.setItem(p,JSON.stringify(r.value))}function h(){const t=localStorage.getItem(p);if(t)try{const o=JSON.parse(t),u=new Map(o.map(a=>[a.prop,a.visible]));r.value=l.map(a=>({...a,visible:u.has(a.prop)?u.get(a.prop):a.visible!==!1}))}catch(o){console.error("加载列设置失败:",o)}}const d=_(()=>{const t={};return r.value.forEach(o=>{t[o.prop]=o.visible}),t});return h(),{columnOptions:r,visibleColumns:d,saveColumnSettings:c}}export{q as a,N as u};
@@ -0,0 +1 @@
import{r as j}from"./index-CxGbf_5w.js";import{j as x,m as L,F as U,l as s,D as _}from"./index-CZJEDzxI.js";function N(p){const{apiUrl:l,statsUrl:r=null,defaultFilters:c={},defaultPageSize:h=20,fetchParams:d=null,processData:t=null,onError:o=null}=p,u=s([]),a=s(!1),v=s(1),b=s(h),w=s(0),C=s(null),z=s([]),f=s({prop:"",order:""}),g=x({...c}),E=s(500);function y(){const e={page:v.value,page_size:b.value,...g};return f.value.prop&&(e.sort_by=f.value.prop,e.sort_order=f.value.order==="ascending"?"asc":"desc"),d&&Object.assign(e,d()),Object.keys(e).forEach(n=>{(e[n]===""||e[n]===null||e[n]===void 0)&&delete e[n]}),e}async function i(){a.value=!0;try{const e=await j.get(l,{params:y()});let n=e.data.list||[];t&&(n=n.map(t)),u.value=n,w.value=e.data.total||0}catch(e){console.error(`获取列表失败: ${l}`,e),o&&o(e)}finally{a.value=!1}}async function S(){if(r)try{const e=await j.get(r);C.value=e.data}catch(e){console.error("获取统计数据失败:",e)}}function D(){i(),S()}function F(e){z.value=e}function H({prop:e,order:n}){f.value={prop:e,order:n},i()}function M(e){b.value=e,v.value=1,i()}function O(){v.value=1,i()}function P(){Object.keys(g).forEach(e=>{g[e]=c[e]!==void 0?c[e]:""}),O()}function m(){const e=window.innerHeight;E.value=Math.max(300,e-450)}return L(()=>{m(),window.addEventListener("resize",m),i(),S()}),U(()=>{window.removeEventListener("resize",m)}),{list:u,loading:a,page:v,pageSize:b,total:w,stats:C,selectedRows:z,sortParams:f,filters:g,tableMaxHeight:E,fetchData:i,fetchStats:S,refreshData:D,handleSelectionChange:F,handleSortChange:H,handleSizeChange:M,handleFilterChange:O,resetFilters:P,calculateTableHeight:m}}function q(p,l){const r=s(l.map(t=>({...t,visible:t.visible!==!1})));function c(){localStorage.setItem(p,JSON.stringify(r.value))}function h(){const t=localStorage.getItem(p);if(t)try{const o=JSON.parse(t),u=new Map(o.map(a=>[a.prop,a.visible]));r.value=l.map(a=>({...a,visible:u.has(a.prop)?u.get(a.prop):a.visible!==!1}))}catch(o){console.error("加载列设置失败:",o)}}const d=_(()=>{const t={};return r.value.forEach(o=>{t[o.prop]=o.visible}),t});return h(),{columnOptions:r,visibleColumns:d,saveColumnSettings:c}}export{q as a,N as u};
+1
View File
@@ -0,0 +1 @@
import{b3 as m,l as r}from"./index-B5xNuf83.js";import{r as n}from"./index-C7doSj3W.js";const k=m("user",()=>{const a=r(null),o=r(localStorage.getItem("access_token")||"");async function s(t,u,g="admin"){const i=g==="agent"?"/auth/agent-login":"/auth/admin-login",e=await n.post(i,{username:t,password:u});return a.value=e.data.user,o.value=e.data.token.access_token,localStorage.setItem("access_token",e.data.token.access_token),localStorage.setItem("refresh_token",e.data.token.refresh_token),localStorage.setItem("user_role",e.data.user.role),e}async function l(){const t=await n.get("/auth/me");return a.value=t.data,localStorage.setItem("user_role",t.data.role),t}function c(){a.value=null,o.value="",localStorage.clear()}return{user:a,token:o,login:s,fetchUser:l,logout:c}});export{k as u};
+1
View File
@@ -0,0 +1 @@
import{b3 as m,l as r}from"./index-Bn3no55S.js";import{r as n}from"./index-C3lsw5-G.js";const k=m("user",()=>{const a=r(null),o=r(localStorage.getItem("access_token")||"");async function s(t,u,g="admin"){const i=g==="agent"?"/auth/agent-login":"/auth/admin-login",e=await n.post(i,{username:t,password:u});return a.value=e.data.user,o.value=e.data.token.access_token,localStorage.setItem("access_token",e.data.token.access_token),localStorage.setItem("refresh_token",e.data.token.refresh_token),localStorage.setItem("user_role",e.data.user.role),e}async function l(){const t=await n.get("/auth/me");return a.value=t.data,localStorage.setItem("user_role",t.data.role),t}function c(){a.value=null,o.value="",localStorage.clear()}return{user:a,token:o,login:s,fetchUser:l,logout:c}});export{k as u};
+1
View File
@@ -0,0 +1 @@
import{b3 as m,l as r}from"./index-CZJEDzxI.js";import{r as n}from"./index-CxGbf_5w.js";const k=m("user",()=>{const a=r(null),o=r(localStorage.getItem("access_token")||"");async function s(t,u,g="admin"){const i=g==="agent"?"/auth/agent-login":"/auth/admin-login",e=await n.post(i,{username:t,password:u});return a.value=e.data.user,o.value=e.data.token.access_token,localStorage.setItem("access_token",e.data.token.access_token),localStorage.setItem("refresh_token",e.data.token.refresh_token),localStorage.setItem("user_role",e.data.user.role),e}async function l(){const t=await n.get("/auth/me");return a.value=t.data,localStorage.setItem("user_role",t.data.role),t}function c(){a.value=null,o.value="",localStorage.clear()}return{user:a,token:o,login:s,fetchUser:l,logout:c}});export{k as u};
+1 -1
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CardAuth 授权管理系统</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<script type="module" crossorigin src="/assets/index-DyfK1iyO.js"></script>
<script type="module" crossorigin src="/assets/index-CZJEDzxI.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-am-fEaC-.css">
</head>
<body>
+11
View File
@@ -15,6 +15,7 @@ use App\Controllers\SystemController;
use App\Controllers\AuthorizationController;
use App\Controllers\CouponController;
use App\Controllers\BlacklistController;
use App\Controllers\NotificationController;
use App\Middleware\AuthMiddleware;
use App\Middleware\RateLimitMiddleware;
use App\Middleware\ApiKeyMiddleware;
@@ -55,6 +56,10 @@ $router->group('api/public', function ($router) {
$router->post('coupons/validate', [CouponController::class, 'validate']);
}, [new RateLimitMiddleware(30, 60, 'public')]);
// SMTP 定时通知 (cron 调用,无需认证)
$router->get('api/cron/notify-expiring', [NotificationController::class, 'notifyExpiring']);
$router->post('api/cron/notify-expiring', [NotificationController::class, 'notifyExpiring']);
// 授权验证 (API Key认证)
$router->group('api/public/verify', function ($router) {
$router->post('', [PublicController::class, 'verify']);
@@ -146,6 +151,11 @@ $router->group('api', function ($router) {
$router->get('system/configs', [SystemController::class, 'getConfigs']);
$router->post('system/configs', [SystemController::class, 'saveConfigs']);
$router->post('system/test-payment', [SystemController::class, 'testPayment']);
// SMTP 邮件
$router->get('system/smtp-config', [NotificationController::class, 'getSmtpConfig']);
$router->post('system/smtp-config', [NotificationController::class, 'saveSmtpConfig']);
$router->post('system/test-smtp', [NotificationController::class, 'testSmtp']);
$router->post('system/notify-expiring', [NotificationController::class, 'notifyExpiring']);
// 授权管理
$router->get('authorizations', [AuthorizationController::class, 'list']);
@@ -153,6 +163,7 @@ $router->group('api', function ($router) {
$router->get('authorizations/export', [AuthorizationController::class, 'export']);
$router->get('authorizations/{id}', [AuthorizationController::class, 'detail']);
$router->post('authorizations', [AuthorizationController::class, 'create']);
$router->put('authorizations/{id}', [AuthorizationController::class, 'update']);
$router->put('authorizations/{id}/revoke', [AuthorizationController::class, 'revoke']);
$router->delete('authorizations/{id}', [AuthorizationController::class, 'delete']);
$router->post('authorizations/batch-delete', [AuthorizationController::class, 'batchDelete']);
+7
View File
@@ -39,6 +39,13 @@ const authorizationApi = {
return request.put(`/authorizations/${id}/revoke`, { reason })
},
/**
* 更新授权
*/
update(id, data) {
return request.put(`/authorizations/${id}`, data)
},
/**
* 删除授权
*/
+60 -2
View File
@@ -78,9 +78,10 @@
<el-table-column prop="status" label="状态" width="100" align="center" sortable="custom" v-if="visibleColumns.status"><template #default="{ row }"><span v-if="row.status==='active' && !row.is_expired" class="status-pill status-active">有效</span><span v-else-if="row.is_expired" class="status-pill status-expired">已过期</span><span v-else-if="row.status==='revoked'" class="status-pill status-revoked">已撤销</span><span v-else class="status-pill status-unknown">{{ row.status }}</span></template></el-table-column>
<el-table-column prop="expire_time" label="过期时间" width="180" sortable="custom" v-if="visibleColumns.expire_time"><template #default="{ row }"><span v-if="row.duration_days==0" class="text-success">永久有效</span><span v-else :class="{'text-danger':row.is_expired}">{{ row.expire_time || '-' }}</span></template></el-table-column>
<el-table-column prop="authorized_at" label="授权时间" width="180" sortable="custom" v-if="visibleColumns.authorized_at" />
<el-table-column label="操作" width="180" fixed="right" align="center">
<el-table-column label="操作" width="210" fixed="right" align="center">
<template #default="{ row }">
<el-button size="small" type="primary" link :icon="View" @click="showDetail(row)">详情</el-button>
<el-button size="small" type="primary" link :icon="Edit" @click="showEditDialog(row)">编辑</el-button>
<el-button v-if="row.status==='active'" size="small" type="danger" link @click="handleRevoke(row)">撤销</el-button>
<el-button size="small" type="danger" link plain @click="handleDelete(row.id)">删除</el-button>
</template>
@@ -120,6 +121,24 @@
<template #footer><el-button @click="createDialogVisible = false">取消</el-button><el-button type="primary" :loading="createLoading" @click="submitCreate">确认授权</el-button></template>
</el-dialog>
<!-- 编辑授权弹窗 -->
<el-dialog v-model="editDialogVisible" title="编辑授权" width="480px" :close-on-click-modal="false" destroy-on-close>
<el-form ref="editFormRef" :model="editForm" :rules="editRules" label-width="110px" v-if="editForm.id">
<el-form-item label="机器人QQ" prop="bot_qq"><el-input v-model="editForm.bot_qq" placeholder="5-15位数字" maxlength="15" /></el-form-item>
<el-form-item label="联系人QQ" prop="contact_qq"><el-input v-model="editForm.contact_qq" placeholder="5-15位数字" maxlength="15" /></el-form-item>
<el-form-item label="联系人名称"><el-input v-model="editForm.contact_name" placeholder="联系人称呼" maxlength="50" /></el-form-item>
<el-form-item label="有效天数" prop="duration_days">
<el-input-number v-model="editForm.duration_days" :min="0" :max="36500" />
<span class="form-tip" style="font-size:12px;color:#909399;margin-left:10px">0=永久</span>
</el-form-item>
<el-form-item label="过期时间">
<el-date-picker v-model="editForm.expire_time" type="datetime" placeholder="留空按有效天数计算" value-format="YYYY-MM-DD HH:mm:ss" :disabled-date="disabledDate" style="width:100%" :clearable="false" />
</el-form-item>
<el-form-item label="备注"><el-input v-model="editForm.remark" type="textarea" :rows="2" placeholder="选填" maxlength="255" show-word-limit /></el-form-item>
</el-form>
<template #footer><el-button @click="editDialogVisible = false">取消</el-button><el-button type="primary" :loading="editLoading" @click="submitEdit">保存修改</el-button></template>
</el-dialog>
<!-- 详情弹窗 -->
<el-dialog v-model="detailDialogVisible" width="520px" destroy-on-close :show-close="false">
<template #header="{ close }">
@@ -180,7 +199,7 @@ import { useColumnSettings } from '@/composables/useColumnSettings'
import authorizationApi from '@/api/authorization'
import request from '@/api'
import { useUserStore } from '@/stores/user'
import { Plus, Delete, Download, Search, Refresh, Filter, Setting, View, ArrowDown, Lock, CircleCheck, CircleClose, Timer } from '@element-plus/icons-vue'
import { Plus, Delete, Download, Search, Refresh, Filter, Setting, View, Edit, ArrowDown, Lock, CircleCheck, CircleClose, Timer } from '@element-plus/icons-vue'
const userStore = useUserStore()
const user = computed(() => userStore.user)
@@ -285,6 +304,45 @@ async function showDetail(row) {
} catch {}
}
// 编辑
const editDialogVisible = ref(false)
const editLoading = ref(false)
const editFormRef = ref(null)
const editForm = reactive({ id: null, bot_qq: '', contact_qq: '', contact_name: '', duration_days: 30, expire_time: '', remark: '' })
const editRules = {
bot_qq: [{ required: true, message: '请输入机器人QQ', trigger: 'blur' }, { pattern: /^\d{5,15}$/, message: '请输入5-15位数字', trigger: 'blur' }],
contact_qq: [{ required: true, message: '请输入联系人QQ', trigger: 'blur' }, { pattern: /^\d{5,15}$/, message: '请输入5-15位数字', trigger: 'blur' }]
}
function disabledDate(time) { return time.getTime() < Date.now() - 86400000 }
function showEditDialog(row) {
editForm.id = row.id
editForm.bot_qq = row.bot_qq || ''
editForm.contact_qq = row.contact_qq || ''
editForm.contact_name = row.contact_name || ''
editForm.duration_days = row.duration_days ?? 30
editForm.expire_time = row.expire_time || ''
editForm.remark = row.remark || ''
editDialogVisible.value = true
}
async function submitEdit() {
const valid = await editFormRef.value.validate().catch(() => false)
if (!valid) return
editLoading.value = true
try {
await authorizationApi.update(editForm.id, {
bot_qq: editForm.bot_qq,
contact_qq: editForm.contact_qq,
contact_name: editForm.contact_name,
duration_days: editForm.duration_days,
expire_time: editForm.expire_time,
remark: editForm.remark
})
ElMessage.success('授权更新成功')
editDialogVisible.value = false
fetchData(); fetchStats()
} finally { editLoading.value = false }
}
// 撤销
const revokeDialogVisible = ref(false)
const revokeLoading = ref(false)
+179 -209
View File
@@ -14,6 +14,7 @@
</el-col>
</el-row>
<!-- 近7天订单趋势 -->
<el-row :gutter="10" style="margin-top:12px" v-if="data && data.order_trend">
<el-col :span="24">
<el-card shadow="hover" class="chart-card">
@@ -27,7 +28,48 @@
</div>
</div>
</template>
<div ref="chartRef" :style="{ height: isMobile ? '200px' : '260px' }"></div>
<div ref="chart7Ref" :style="{ height: isMobile ? '200px' : '260px' }"></div>
</el-card>
</el-col>
</el-row>
<!-- 近30天收入 + 授权趋势 -->
<el-row :gutter="10" style="margin-top:12px" v-if="data">
<el-col :xs="24" :md="12">
<el-card shadow="hover" class="chart-card" v-if="data.revenue_trend_30">
<template #header>
<div class="chart-header">
<span class="chart-header-title"><el-icon><Money /></el-icon> 近30天收入趋势</span>
<span class="chart-header-meta">总收入 <b>¥{{ rev30Total }}</b></span>
</div>
</template>
<div ref="rev30Ref" :style="{ height: isMobile ? '200px' : '240px' }"></div>
</el-card>
</el-col>
<el-col :xs="24" :md="12">
<el-card shadow="hover" class="chart-card" v-if="data.auth_trend_30">
<template #header>
<div class="chart-header">
<span class="chart-header-title"><el-icon><UserFilled /></el-icon> 近30天新增授权</span>
<span class="chart-header-meta">总新增 <b>{{ auth30Total }}</b></span>
</div>
</template>
<div ref="auth30Ref" :style="{ height: isMobile ? '200px' : '240px' }"></div>
</el-card>
</el-col>
</el-row>
<!-- 套餐销售占比 -->
<el-row :gutter="10" style="margin-top:12px" v-if="data && data.package_distribution && data.package_distribution.length">
<el-col :span="24">
<el-card shadow="hover" class="chart-card">
<template #header>
<div class="chart-header">
<span class="chart-header-title"><el-icon><PieChart /></el-icon> 套餐销售占比</span>
<span class="chart-header-meta">按已支付订单金额</span>
</div>
</template>
<div ref="pieRef" :style="{ height: isMobile ? '220px' : '280px' }"></div>
</el-card>
</el-col>
</el-row>
@@ -35,7 +77,7 @@
</template>
<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue'
import { ref, computed, onMounted, onUnmounted, nextTick } from 'vue'
import { useUserStore } from '@/stores/user'
import request from '@/api'
import * as echarts from 'echarts'
@@ -43,26 +85,19 @@ import * as echarts from 'echarts'
const userStore = useUserStore()
const user = computed(() => userStore.user)
const data = ref(null)
const chartRef = ref(null)
const chart7Ref = ref(null)
const rev30Ref = ref(null)
const auth30Ref = ref(null)
const pieRef = ref(null)
const isMobile = ref(window.innerWidth < 768)
function handleResize() {
isMobile.value = window.innerWidth < 768
}
function handleResize() { isMobile.value = window.innerWidth < 768 }
const iconMap = {
'项目总数': 'FolderOpened',
'卡密总数': 'Tickets',
'总订单': 'Document',
'总收入': 'Money',
'今日收入': 'Coin',
'用户总数': 'UserFilled',
'已使用卡密': 'CircleCheck',
'代理总数': 'Avatar',
'可用额度': 'Wallet',
'卡密总数': 'Tickets',
'今日生成': 'TrendCharts',
'项目总数': 'FolderOpened', '卡密总数': 'Tickets', '总订单': 'Document',
'总收入': 'Money', '今日收入': 'Coin', '用户总数': 'UserFilled',
'已使用卡密': 'CircleCheck', '代理总数': 'Avatar', '可用额度': 'Wallet',
'今日生成': 'TrendCharts', '即将过期': 'WarningFilled',
}
const statCards = computed(() => {
@@ -84,6 +119,10 @@ const statCards = computed(() => {
{ label: '卡密总数', value: d.total_authorized || 0, color: '#67C23A' },
{ label: '今日生成', value: d.today_authorized || 0, color: '#E6A23C' },
]
// 如果有即将过期数据,插入第一行
if (d.expiring_soon !== undefined && d.expiring_soon > 0) {
cards.unshift({ label: '即将过期', value: d.expiring_soon + ' 个', color: '#F56C6C' })
}
return cards.map(c => ({ ...c, icon: iconMap[c.label] || 'Odometer' }))
})
@@ -91,225 +130,156 @@ const trendSummary = computed(() => {
const trend = data.value?.order_trend || []
const orders = trend.reduce((s, t) => s + (t.count || 0), 0)
const amount = trend.reduce((s, t) => s + (parseFloat(t.amount) || 0), 0)
return {
total_orders: orders,
total_amount: amount.toFixed(2)
}
return { total_orders: orders, total_amount: amount.toFixed(2) }
})
const rev30Total = computed(() => {
const tr = data.value?.revenue_trend_30 || []
const total = tr.reduce((s, t) => s + (parseFloat(t.amount) || 0), 0)
return '¥' + total.toFixed(2)
})
const auth30Total = computed(() => {
const tr = data.value?.auth_trend_30 || []
return tr.reduce((s, t) => s + (t.count || 0), 0)
})
let chart7Instance = null, rev30Instance = null, auth30Instance = null, pieInstance = null
onMounted(async () => {
window.addEventListener('resize', handleResize)
try {
const res = await request.get('/dashboard')
data.value = res.data
if (data.value?.order_trend) {
renderChart()
}
await nextTick()
if (data.value?.order_trend) render7DayChart()
if (data.value?.revenue_trend_30) renderRev30Chart()
if (data.value?.auth_trend_30) renderAuth30Chart()
if (data.value?.package_distribution) renderPieChart()
} catch (e) { /* handled */ }
})
onUnmounted(() => {
window.removeEventListener('resize', handleResize)
chart7Instance?.dispose()
rev30Instance?.dispose()
auth30Instance?.dispose()
pieInstance?.dispose()
})
function renderChart() {
if (!chartRef.value) return
const chart = echarts.init(chartRef.value)
const trend = data.value.order_trend
const dates = trend.map(t => t.date)
const counts = trend.map(t => t.count || 0)
const amounts = trend.map(t => parseFloat(t.amount) || 0)
function makeBarLineChart(domRef, dates, counts, amounts, countName, amountName) {
const el = domRef.value
if (!el) return
const chart = echarts.init(el)
const hasData = amounts.some(v => v > 0)
chart.setOption({
tooltip: {
trigger: 'axis',
axisPointer: { type: 'cross', crossStyle: { color: '#999' } },
axisPointer: { type: 'cross' },
backgroundColor: 'rgba(255,255,255,0.96)',
borderColor: '#e2e8f0',
borderWidth: 1,
borderColor: '#e2e8f0', borderWidth: 1,
textStyle: { color: '#333', fontSize: 12 },
formatter: (params) => {
const bar = params[0], line = params[1]
return `
<div style="font-weight:600;margin-bottom:4px;font-size:13px">${bar.axisValue}</div>
<div style="display:flex;align-items:center;gap:6px;margin:3px 0">
<span style="display:inline-block;width:8px;height:8px;border-radius:2px;background:${bar.color};flex-shrink:0"></span>
<span>订单数:<b>${bar.value}</b> 单</span>
</div>
<div style="display:flex;align-items:center;gap:6px;margin:3px 0">
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${line.color};flex-shrink:0"></span>
<span>金额:<b>¥${line.value.toFixed(2)}</b></span>
</div>
`
}
},
legend: {
data: ['订单数', '金额'],
bottom: 0,
textStyle: { fontSize: 11, color: '#94a3b8' },
itemWidth: 12,
itemHeight: 8,
itemGap: 20
},
legend: { data: [countName, amountName], bottom: 0, textStyle: { fontSize: 11, color: '#94a3b8' }, itemWidth: 12, itemHeight: 8, itemGap: 20 },
grid: { left: '3%', right: '4%', top: 8, bottom: 30, containLabel: true },
xAxis: {
type: 'category',
data: dates,
axisLine: { lineStyle: { color: '#e2e8f0' } },
axisTick: { show: false },
axisLabel: { fontSize: 10, color: '#94a3b8' }
},
xAxis: { type: 'category', data: dates, axisLine: { lineStyle: { color: '#e2e8f0' } }, axisTick: { show: false }, axisLabel: { fontSize: 10, color: '#94a3b8' } },
yAxis: [
{
type: 'value',
min: 0,
name: '单',
nameTextStyle: { fontSize: 10, color: '#94a3b8', padding: [0, 0, 0, 0] },
axisLabel: { fontSize: 10, color: '#94a3b8' },
splitLine: { lineStyle: { color: '#f1f5f9', type: 'dashed' } },
axisLine: { show: false },
axisTick: { show: false }
},
{
type: 'value',
min: 0,
name: '元',
nameTextStyle: { fontSize: 10, color: '#94a3b8', padding: [0, 0, 0, 0] },
axisLabel: { fontSize: 10, color: '#94a3b8' },
splitLine: { show: false },
axisLine: { show: false },
axisTick: { show: false }
}
{ type: 'value', min: 0, name: countName, nameTextStyle: { fontSize: 10, color: '#94a3b8' }, axisLabel: { fontSize: 10, color: '#94a3b8' }, splitLine: { lineStyle: { color: '#f1f5f9', type: 'dashed' } }, axisLine: { show: false }, axisTick: { show: false } },
{ type: 'value', min: 0, name: amountName, nameTextStyle: { fontSize: 10, color: '#94a3b8' }, axisLabel: { fontSize: 10, color: '#94a3b8' }, splitLine: { show: false }, axisLine: { show: false }, axisTick: { show: false } },
],
series: [
{
name: '订单数',
type: 'bar',
data: counts,
barWidth: 16,
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: '#6366f1' },
{ offset: 1, color: '#a5b4fc' }
]),
borderRadius: [6, 6, 0, 0],
borderColor: 'transparent'
},
emphasis: {
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: '#4f46e5' },
{ offset: 1, color: '#818cf8' }
])
}
}
},
{
name: '金额',
type: 'line',
yAxisIndex: 1,
smooth: hasData,
data: amounts,
symbol: 'circle',
symbolSize: 6,
showSymbol: false,
itemStyle: { color: '#f59e0b' },
lineStyle: { width: 2, color: '#f59e0b' },
areaStyle: hasData ? {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: 'rgba(245,158,11,0.18)' },
{ offset: 1, color: 'rgba(245,158,11,0.01)' }
])
} : undefined,
emphasis: {
focus: 'series',
itemStyle: { borderWidth: 2, borderColor: '#fff' }
}
}
{ name: countName, type: 'bar', data: counts, barWidth: 16, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#6366f1' }, { offset: 1, color: '#a5b4fc' }]), borderRadius: [6, 6, 0, 0] } },
{ name: amountName, type: 'line', yAxisIndex: 1, smooth: hasData, data: amounts, symbol: 'circle', symbolSize: 6, showSymbol: false, itemStyle: { color: '#f59e0b' }, lineStyle: { width: 2, color: '#f59e0b' }, areaStyle: hasData ? { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: 'rgba(245,158,11,0.18)' }, { offset: 1, color: 'rgba(245,158,11,0.01)' }]) } : undefined },
]
})
window.addEventListener('resize', () => chart.resize())
return chart
}
function render7DayChart() {
chart7Instance?.dispose()
const trend = data.value.order_trend
chart7Instance = makeBarLineChart(chart7Ref,
trend.map(t => t.date),
trend.map(t => t.count || 0),
trend.map(t => parseFloat(t.amount) || 0),
'订单数', '金额'
)
}
function renderRev30Chart() {
rev30Instance?.dispose()
const trend = data.value.revenue_trend_30
const dates = trend.map(t => t.date)
const amounts = trend.map(t => parseFloat(t.amount) || 0)
const el = rev30Ref.value
if (!el) return
rev30Instance = echarts.init(el)
rev30Instance.setOption({
tooltip: { trigger: 'axis', backgroundColor: 'rgba(255,255,255,0.96)', borderColor: '#e2e8f0', borderWidth: 1, textStyle: { color: '#333', fontSize: 12 } },
grid: { left: '3%', right: '4%', top: 8, bottom: 20, containLabel: true },
xAxis: { type: 'category', data: dates, axisLine: { lineStyle: { color: '#e2e8f0' } }, axisTick: { show: false }, axisLabel: { fontSize: 10, color: '#94a3b8', rotate: dates.length > 15 ? 45 : 0 } },
yAxis: { type: 'value', min: 0, axisLabel: { fontSize: 10, color: '#94a3b8' }, splitLine: { lineStyle: { color: '#f1f5f9', type: 'dashed' } } },
series: [{
type: 'bar', data: amounts, barWidth: 12,
itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#22c55e' }, { offset: 1, color: '#86efac' }]), borderRadius: [4, 4, 0, 0] }
}]
})
}
function renderAuth30Chart() {
auth30Instance?.dispose()
const trend = data.value.auth_trend_30
const dates = trend.map(t => t.date)
const counts = trend.map(t => t.count || 0)
const el = auth30Ref.value
if (!el) return
auth30Instance = echarts.init(el)
auth30Instance.setOption({
tooltip: { trigger: 'axis', backgroundColor: 'rgba(255,255,255,0.96)', borderColor: '#e2e8f0', borderWidth: 1, textStyle: { color: '#333', fontSize: 12 } },
grid: { left: '3%', right: '4%', top: 8, bottom: 20, containLabel: true },
xAxis: { type: 'category', data: dates, axisLine: { lineStyle: { color: '#e2e8f0' } }, axisTick: { show: false }, axisLabel: { fontSize: 10, color: '#94a3b8', rotate: dates.length > 15 ? 45 : 0 } },
yAxis: { type: 'value', min: 0, axisLabel: { fontSize: 10, color: '#94a3b8' }, splitLine: { lineStyle: { color: '#f1f5f9', type: 'dashed' } } },
series: [{
type: 'line', smooth: true, data: counts, symbol: 'circle', symbolSize: 4,
itemStyle: { color: '#3b82f6' }, lineStyle: { width: 2, color: '#3b82f6' },
areaStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: 'rgba(59,130,246,0.2)' }, { offset: 1, color: 'rgba(59,130,246,0.01)' }]) }
}]
})
}
function renderPieChart() {
pieInstance?.dispose()
const pieData = data.value.package_distribution
const el = pieRef.value
if (!el) return
pieInstance = echarts.init(el)
pieInstance.setOption({
tooltip: { trigger: 'item', backgroundColor: 'rgba(255,255,255,0.96)', borderColor: '#e2e8f0', borderWidth: 1, textStyle: { color: '#333', fontSize: 12 }, formatter: '{b}: ¥{c} ({d}%)' },
legend: { bottom: 0, textStyle: { fontSize: 11, color: '#94a3b8' }, itemWidth: 10, itemHeight: 10 },
series: [{
type: 'pie', radius: ['50%', '75%'], center: ['50%', '45%'], avoidLabelOverlap: false,
itemStyle: { borderRadius: 6, borderColor: '#fff', borderWidth: 3 },
label: { show: false },
emphasis: { label: { show: true, fontSize: 13, fontWeight: 'bold' } },
data: pieData.map(p => ({ name: p.name, value: parseFloat(p.amount) || 0 })),
color: ['#3b82f6', '#22c55e', '#f59e0b', '#ef4444', '#8b5cf6', '#ec4899', '#06b6d4', '#6366f1']
}]
})
}
</script>
<style scoped>
.stat-card {
border-radius: 8px;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
margin-bottom: 6px;
border: 1px solid #f0f0f0;
overflow: hidden;
}
.stat-card :deep(.el-card__body) {
padding: 10px 12px;
display: flex;
align-items: center;
gap: 10px;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
border-color: #e0e0e0;
}
.stat-icon {
width: 34px;
height: 34px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.stat-info {
flex: 1;
min-width: 0;
}
.stat-value {
font-size: 18px;
font-weight: 700;
color: #1e293b;
line-height: 1.2;
font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.stat-label {
color: #94a3b8;
font-size: 11px;
margin-top: 1px;
white-space: nowrap;
}
.chart-card {
border-radius: 8px;
}
.chart-card :deep(.el-card__body) {
padding: 12px 14px;
}
.chart-card :deep(.el-card__header) {
padding: 10px 14px;
}
.chart-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.chart-header-title {
font-size: 13px;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
}
.chart-header-meta {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: #94a3b8;
}
.chart-header-meta b {
color: #475569;
}
.chart-meta-divider {
color: #e2e8f0;
}
</style>
.stat-card { border-radius:8px; transition:all .25s; margin-bottom:6px; border:1px solid #f0f0f0; overflow:hidden; }
.stat-card :deep(.el-card__body) { padding:10px 12px; display:flex; align-items:center; gap:10px; }
.stat-card:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(0,0,0,.08)!important; border-color:#e0e0e0; }
.stat-icon { width:34px; height:34px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stat-info { flex:1; min-width:0; }
.stat-value { font-size:18px; font-weight:700; color:#1e293b; line-height:1.2; }
.stat-label { color:#94a3b8; font-size:11px; margin-top:1px; white-space:nowrap; }
.chart-card { border-radius:8px; }
.chart-card :deep(.el-card__body) { padding:12px 14px; }
.chart-card :deep(.el-card__header) { padding:10px 14px; }
.chart-header { display:flex; align-items:center; justify-content:space-between; }
.chart-header-title { font-size:13px; font-weight:600; display:flex; align-items:center; gap:4px; }
.chart-header-meta { display:flex; align-items:center; gap:8px; font-size:11px; color:#94a3b8; }
.chart-header-meta b { color:#475569; }
.chart-meta-divider { color:#e2e8f0; }
</style>
+140 -3
View File
@@ -79,6 +79,61 @@
</el-form>
</el-card>
</el-tab-pane>
<!-- SMTP 邮件配置 -->
<el-tab-pane name="smtp" label="SMTP邮件配置">
<template #label>
<span><el-icon><Message /></el-icon> SMTP邮件配置</span>
</template>
<el-card shadow="never" class="config-card" v-loading="smtpLoading">
<template #header>
<div class="card-header">
<span>SMTP 邮件服务器</span>
<el-switch v-model="smtpForm.smtp_enabled" active-text="启用" inactive-text="禁用" :active-value="'1'" :inactive-value="'0'" inline-prompt style="--el-switch-on-color:#22c55e" />
</div>
</template>
<el-form ref="smtpFormRef" :model="smtpForm" label-width="140px" label-position="right">
<el-form-item label="SMTP 服务器" prop="smtp_host">
<el-input v-model="smtpForm.smtp_host" placeholder="如 smtp.qq.com" />
</el-form-item>
<el-form-item label="端口" prop="smtp_port">
<el-input-number v-model="smtpForm.smtp_port" :min="1" :max="65535" />
<span class="form-tip">SSL 通常 465,TLS 通常 587</span>
</el-form-item>
<el-form-item label="加密方式" prop="smtp_encryption">
<el-radio-group v-model="smtpForm.smtp_encryption">
<el-radio value="ssl">SSL</el-radio>
<el-radio value="tls">TLS</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="用户名" prop="smtp_user">
<el-input v-model="smtpForm.smtp_user" placeholder="如 123456@qq.com" />
</el-form-item>
<el-form-item label="密码" prop="smtp_pass">
<el-input v-model="smtpForm.smtp_pass" type="password" show-password placeholder="QQ邮箱需使用授权码" />
</el-form-item>
<el-form-item label="发件人邮箱" prop="smtp_from_email">
<el-input v-model="smtpForm.smtp_from_email" placeholder="留空则使用用户名" />
</el-form-item>
<el-form-item label="发件人名称" prop="smtp_from_name">
<el-input v-model="smtpForm.smtp_from_name" placeholder="CardAuth" maxlength="50" />
</el-form-item>
<el-form-item label="提前提醒天数" prop="smtp_expire_days">
<el-input-number v-model="smtpForm.smtp_expire_days" :min="1" :max="30" />
<span class="form-tip">授权到期前 N 天发送邮件到联系人 QQ 邮箱</span>
</el-form-item>
<el-form-item>
<el-button type="primary" :loading="smtpSubmitting" @click="handleSaveSmtp" :icon="Check">保存配置</el-button>
<el-button @click="fetchSmtpConfig" :icon="RefreshRight">重置</el-button>
<el-popconfirm title="将向此地址发送测试邮件" @confirm="handleTestSmtp">
<template #reference>
<el-button :loading="smtpTesting" :icon="Promotion">发送测试邮件</el-button>
</template>
</el-popconfirm>
</el-form-item>
</el-form>
</el-card>
</el-tab-pane>
</el-tabs>
</div>
</template>
@@ -86,7 +141,7 @@
<script setup>
import { ref, reactive, computed, onMounted } from 'vue'
import { ElMessage } from 'element-plus'
import { OfficeBuilding, User, Check, RefreshRight } from '@element-plus/icons-vue'
import { OfficeBuilding, User, Check, RefreshRight, Message, Promotion } from '@element-plus/icons-vue'
import { useUserStore } from '@/stores/user'
import request from '@/api'
@@ -134,6 +189,7 @@ const roleText = computed(() => {
onMounted(() => {
fetchSiteConfig()
fetchProfile()
fetchSmtpConfig()
})
async function fetchSiteConfig() {
@@ -214,19 +270,100 @@ async function handleSaveProfile() {
finally { profileSubmitting.value = false }
})
}
// ========== SMTP 配置 ==========
const smtpFormRef = ref(null)
const smtpLoading = ref(false)
const smtpSubmitting = ref(false)
const smtpTesting = ref(false)
const smtpForm = ref({
smtp_host: '',
smtp_port: 465,
smtp_user: '',
smtp_pass: '',
smtp_encryption: 'ssl',
smtp_from_email: '',
smtp_from_name: 'CardAuth',
smtp_enabled: '0',
smtp_expire_days: 7,
})
async function fetchSmtpConfig() {
smtpLoading.value = true
try {
const res = await request.get('/system/smtp-config')
const data = res.data || {}
smtpForm.value.smtp_host = data.smtp_host || ''
smtpForm.value.smtp_port = parseInt(data.smtp_port || '465', 10)
smtpForm.value.smtp_user = data.smtp_user || ''
smtpForm.value.smtp_pass = data.smtp_pass || ''
smtpForm.value.smtp_encryption = data.smtp_encryption || 'ssl'
smtpForm.value.smtp_from_email = data.smtp_from_email || ''
smtpForm.value.smtp_from_name = data.smtp_from_name || 'CardAuth'
smtpForm.value.smtp_enabled = data.smtp_enabled || '0'
smtpForm.value.smtp_expire_days = parseInt(data.smtp_expire_days || '7', 10)
} catch (e) { /* */ }
finally { smtpLoading.value = false }
}
async function handleSaveSmtp() {
smtpSubmitting.value = true
try {
await request.post('/system/smtp-config', smtpForm.value)
ElMessage.success('SMTP 配置保存成功')
} catch (e) { /* */ }
finally { smtpSubmitting.value = false }
}
async function handleTestSmtp() {
smtpTesting.value = true
try {
const adminEmail = user.value?.email || smtpForm.value.smtp_user
if (!adminEmail) {
ElMessage.warning('请先完善当前管理员邮箱,或填写 SMTP 用户名')
return
}
await request.post('/system/test-smtp', { test_email: adminEmail })
ElMessage.success('测试邮件发送成功,请检查收件箱')
} catch (e) { /* */ }
finally { smtpTesting.value = false }
}
</script>
<style scoped>
.page-container {
max-width: 900px;
}
.system-tabs :deep(.el-tabs__content) {
padding: 0;
.system-tabs :deep(.el-tabs__content) { padding:0; }
/* Tab 切换动画 */
.system-tabs :deep(.el-tab-pane) {
animation: tabFadeIn .35s cubic-bezier(.4,0,.2,1);
}
@keyframes tabFadeIn {
from { opacity:0; transform:translateY(10px); }
to { opacity:1; transform:translateY(0); }
}
/* 导航条激活指示器过渡 */
.system-tabs :deep(.el-tabs__active-bar) {
transition: transform .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1) !important;
}
/* 标签项 hover 过渡 */
.system-tabs :deep(.el-tabs__item) {
transition: color .25s ease !important;
}
.system-tabs :deep(.el-tabs__item:hover) {
color: #409eff;
}
.config-card {
border-radius: 8px;
margin-top: -1px;
}
.config-card:deep(.el-card__body) {
transition: padding .3s ease;
}
.card-header {
display: flex;
justify-content: space-between;