diff --git a/app/Http/Controllers/V1/Guest/CommController.php b/app/Http/Controllers/V1/Guest/CommController.php index 07414d5..9f47ae8 100644 --- a/app/Http/Controllers/V1/Guest/CommController.php +++ b/app/Http/Controllers/V1/Guest/CommController.php @@ -18,11 +18,17 @@ class CommController extends Controller 'email_whitelist_suffix' => (int) admin_setting('email_whitelist_enable', 0) ? Helper::getEmailSuffix() : 0, - 'is_recaptcha' => (int) admin_setting('recaptcha_enable', 0) ? 1 : 0, + 'is_captcha' => (int) admin_setting('captcha_enable', 0) ? 1 : 0, + 'captcha_type' => admin_setting('captcha_type', 'recaptcha'), 'recaptcha_site_key' => admin_setting('recaptcha_site_key'), + 'recaptcha_v3_site_key' => admin_setting('recaptcha_v3_site_key'), + 'recaptcha_v3_score_threshold' => admin_setting('recaptcha_v3_score_threshold', 0.5), + 'turnstile_site_key' => admin_setting('turnstile_site_key'), 'app_description' => admin_setting('app_description'), 'app_url' => admin_setting('app_url'), 'logo' => admin_setting('logo'), + // 保持向后兼容 + 'is_recaptcha' => (int) admin_setting('captcha_enable', 0) ? 1 : 0, ]; return $this->success($data); } diff --git a/app/Http/Controllers/V1/Passport/AuthController.php b/app/Http/Controllers/V1/Passport/AuthController.php index 4bea6a6..5464426 100644 --- a/app/Http/Controllers/V1/Passport/AuthController.php +++ b/app/Http/Controllers/V1/Passport/AuthController.php @@ -40,7 +40,7 @@ class AuthController extends Controller ]); [$success, $result] = $this->mailLinkService->handleMailLink( - $params['email'], + $params['email'], $request->input('redirect') ); @@ -92,39 +92,39 @@ class AuthController extends Controller // 处理直接通过token重定向 if ($token = $request->input('token')) { $redirect = '/#/login?verify=' . $token . '&redirect=' . ($request->input('redirect', 'dashboard')); - + return redirect()->to( admin_setting('app_url') - ? admin_setting('app_url') . $redirect - : url($redirect) + ? admin_setting('app_url') . $redirect + : url($redirect) ); } // 处理通过验证码登录 if ($verify = $request->input('verify')) { $userId = $this->mailLinkService->handleTokenLogin($verify); - + if (!$userId) { return response()->json([ 'message' => __('Token error') ], 400); } - + $user = \App\Models\User::find($userId); - + if (!$user) { return response()->json([ 'message' => __('User not found') ], 400); } - + $authService = new AuthService($user); - + return response()->json([ 'data' => $authService->generateAuthData() ]); } - + return response()->json([ 'message' => __('Invalid request') ], 400); @@ -136,7 +136,7 @@ class AuthController extends Controller public function getQuickLoginUrl(Request $request) { $authorization = $request->input('auth_data') ?? $request->header('authorization'); - + if (!$authorization) { return response()->json([ 'message' => ResponseEnum::CLIENT_HTTP_UNAUTHORIZED @@ -144,14 +144,14 @@ class AuthController extends Controller } $user = AuthService::findUserByBearerToken($authorization); - + if (!$user) { return response()->json([ 'message' => ResponseEnum::CLIENT_HTTP_UNAUTHORIZED_EXPIRED ], 401); } - - $url = $this->mailLinkService->getQuickLoginUrl($user, $request->input('redirect')); + + $url = $this->loginService->generateQuickLoginUrl($user, $request->input('redirect')); return $this->success($url); } diff --git a/app/Http/Controllers/V1/Passport/CommController.php b/app/Http/Controllers/V1/Passport/CommController.php index 82c2553..65365d8 100644 --- a/app/Http/Controllers/V1/Passport/CommController.php +++ b/app/Http/Controllers/V1/Passport/CommController.php @@ -7,23 +7,22 @@ use App\Http\Requests\Passport\CommSendEmailVerify; use App\Jobs\SendEmailJob; use App\Models\InviteCode; use App\Models\User; +use App\Services\CaptchaService; use App\Utils\CacheKey; use App\Utils\Helper; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; -use ReCaptcha\ReCaptcha; class CommController extends Controller { public function sendEmailVerify(CommSendEmailVerify $request) { - if ((int) admin_setting('recaptcha_enable', 0)) { - $recaptcha = new ReCaptcha(admin_setting('recaptcha_key')); - $recaptchaResp = $recaptcha->verify($request->input('recaptcha_data')); - if (!$recaptchaResp->isSuccess()) { - return $this->fail([400, __('Invalid code is incorrect')]); - } + // 验证人机验证码 + $captchaService = app(CaptchaService::class); + [$captchaValid, $captchaError] = $captchaService->verify($request); + if (!$captchaValid) { + return $this->fail($captchaError); } $email = $request->input('email'); diff --git a/app/Http/Controllers/V1/User/UserController.php b/app/Http/Controllers/V1/User/UserController.php index 39aa278..0f15689 100755 --- a/app/Http/Controllers/V1/User/UserController.php +++ b/app/Http/Controllers/V1/User/UserController.php @@ -10,6 +10,7 @@ use App\Models\Order; use App\Models\Plan; use App\Models\Ticket; use App\Models\User; +use App\Services\Auth\LoginService; use App\Services\AuthService; use App\Services\UserService; use App\Utils\CacheKey; @@ -19,6 +20,14 @@ use Illuminate\Support\Facades\Cache; class UserController extends Controller { + protected $loginService; + + public function __construct( + LoginService $loginService + ) { + $this->loginService = $loginService; + } + public function getActiveSession(Request $request) { $user = User::find($request->user()->id); @@ -205,15 +214,7 @@ class UserController extends Controller return $this->fail([400, __('The user does not exist')]); } - $code = Helper::guid(); - $key = CacheKey::get('TEMP_TOKEN', $code); - Cache::put($key, $user->id, 60); - $redirect = '/#/login?verify=' . $code . '&redirect=' . ($request->input('redirect') ? $request->input('redirect') : 'dashboard'); - if (admin_setting('app_url')) { - $url = admin_setting('app_url') . $redirect; - } else { - $url = url($redirect); - } + $url = $this->loginService->generateQuickLoginUrl($user, $request->input('redirect')); return $this->success($url); } } diff --git a/app/Http/Controllers/V2/Admin/ConfigController.php b/app/Http/Controllers/V2/Admin/ConfigController.php index 5f246fa..4ea2176 100644 --- a/app/Http/Controllers/V2/Admin/ConfigController.php +++ b/app/Http/Controllers/V2/Admin/ConfigController.php @@ -85,15 +85,15 @@ class ConfigController extends Controller public function fetch(Request $request) { $key = $request->input('key'); - + // 构建配置数据映射 $configMappings = $this->getConfigMappings(); - + // 如果请求特定分组,直接返回 if ($key && isset($configMappings[$key])) { return $this->success([$key => $configMappings[$key]]); } - + return $this->success($configMappings); } @@ -190,15 +190,23 @@ class ConfigController extends Controller 'email_whitelist_enable' => (bool) admin_setting('email_whitelist_enable', 0), 'email_whitelist_suffix' => admin_setting('email_whitelist_suffix', Dict::EMAIL_WHITELIST_SUFFIX_DEFAULT), 'email_gmail_limit_enable' => (bool) admin_setting('email_gmail_limit_enable', 0), - 'recaptcha_enable' => (bool) admin_setting('recaptcha_enable', 0), + 'captcha_enable' => (bool) admin_setting('captcha_enable', 0), + 'captcha_type' => admin_setting('captcha_type', 'recaptcha'), 'recaptcha_key' => admin_setting('recaptcha_key', ''), 'recaptcha_site_key' => admin_setting('recaptcha_site_key', ''), + 'recaptcha_v3_secret_key' => admin_setting('recaptcha_v3_secret_key', ''), + 'recaptcha_v3_site_key' => admin_setting('recaptcha_v3_site_key', ''), + 'recaptcha_v3_score_threshold' => admin_setting('recaptcha_v3_score_threshold', 0.5), + 'turnstile_secret_key' => admin_setting('turnstile_secret_key', ''), + 'turnstile_site_key' => admin_setting('turnstile_site_key', ''), 'register_limit_by_ip_enable' => (bool) admin_setting('register_limit_by_ip_enable', 0), 'register_limit_count' => admin_setting('register_limit_count', 3), 'register_limit_expire' => admin_setting('register_limit_expire', 60), 'password_limit_enable' => (bool) admin_setting('password_limit_enable', 1), 'password_limit_count' => admin_setting('password_limit_count', 5), - 'password_limit_expire' => admin_setting('password_limit_expire', 60) + 'password_limit_expire' => admin_setting('password_limit_expire', 60), + // 保持向后兼容 + 'recaptcha_enable' => (bool) admin_setting('captcha_enable', 0) ], 'subscribe_template' => [ 'subscribe_template_singbox' => $this->formatTemplateContent( @@ -225,7 +233,7 @@ class ConfigController extends Controller } admin_setting([$k => $v]); } - + return $this->success(true); } @@ -240,23 +248,23 @@ class ConfigController extends Controller { return match ($format) { 'json' => match (true) { - is_array($content) => json_encode( - value: $content, - flags: JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES - ), - - is_string($content) && str($content)->isJson() => rescue( - callback: fn() => json_encode( - value: json_decode($content, associative: true, flags: JSON_THROW_ON_ERROR), + is_array($content) => json_encode( + value: $content, flags: JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ), - rescue: $content, - report: false - ), - - default => str($content)->toString() - }, - + + is_string($content) && str($content)->isJson() => rescue( + callback: fn() => json_encode( + value: json_decode($content, associative: true, flags: JSON_THROW_ON_ERROR), + flags: JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + ), + rescue: $content, + report: false + ), + + default => str($content)->toString() + }, + default => str($content)->toString() }; } diff --git a/app/Http/Requests/Admin/ConfigSave.php b/app/Http/Requests/Admin/ConfigSave.php index 276303f..98a1952 100755 --- a/app/Http/Requests/Admin/ConfigSave.php +++ b/app/Http/Requests/Admin/ConfigSave.php @@ -82,9 +82,16 @@ class ConfigSave extends FormRequest 'email_whitelist_enable' => 'boolean', 'email_whitelist_suffix' => 'nullable|array', 'email_gmail_limit_enable' => 'boolean', + 'captcha_enable' => 'boolean', + 'captcha_type' => 'in:recaptcha,turnstile,recaptcha-v3', 'recaptcha_enable' => 'boolean', 'recaptcha_key' => '', 'recaptcha_site_key' => '', + 'recaptcha_v3_secret_key' => '', + 'recaptcha_v3_site_key' => '', + 'recaptcha_v3_score_threshold' => 'numeric|min:0|max:1', + 'turnstile_secret_key' => '', + 'turnstile_site_key' => '', 'email_verify' => 'bool', 'safe_mode_enable' => 'boolean', 'register_limit_by_ip_enable' => 'boolean', @@ -124,7 +131,11 @@ class ConfigSave extends FormRequest 'telegram_discuss_link.url' => 'Telegram群组地址必须为URL格式,必须携带http(s)://', 'logo.url' => 'LOGO URL格式不正确,必须携带https(s)://', 'secure_path.min' => '后台路径长度最小为8位', - 'secure_path.regex' => '后台路径只能为字母或数字' + 'secure_path.regex' => '后台路径只能为字母或数字', + 'captcha_type.in' => '人机验证类型只能选择 recaptcha、turnstile 或 recaptcha-v3', + 'recaptcha_v3_score_threshold.numeric' => 'reCAPTCHA v3 分数阈值必须为数字', + 'recaptcha_v3_score_threshold.min' => 'reCAPTCHA v3 分数阈值不能小于0', + 'recaptcha_v3_score_threshold.max' => 'reCAPTCHA v3 分数阈值不能大于1' ]; } } diff --git a/app/Services/Auth/LoginService.php b/app/Services/Auth/LoginService.php index 8538d1e..1799d2a 100644 --- a/app/Services/Auth/LoginService.php +++ b/app/Services/Auth/LoginService.php @@ -19,12 +19,18 @@ class LoginService public function login(string $email, string $password): array { // 检查密码错误限制 - if ((int)admin_setting('password_limit_enable', true)) { - $passwordErrorCount = (int)Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email), 0); - if ($passwordErrorCount >= (int)admin_setting('password_limit_count', 5)) { - return [false, [429, __('There are too many password errors, please try again after :minute minutes.', [ - 'minute' => admin_setting('password_limit_expire', 60) - ])]]; + if ((int) admin_setting('password_limit_enable', true)) { + $passwordErrorCount = (int) Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email), 0); + if ($passwordErrorCount >= (int) admin_setting('password_limit_count', 5)) { + return [ + false, + [ + 429, + __('There are too many password errors, please try again after :minute minutes.', [ + 'minute' => admin_setting('password_limit_expire', 60) + ]) + ] + ]; } } @@ -35,19 +41,21 @@ class LoginService } // 验证密码 - if (!Helper::multiPasswordVerify( - $user->password_algo, - $user->password_salt, - $password, - $user->password) + if ( + !Helper::multiPasswordVerify( + $user->password_algo, + $user->password_salt, + $password, + $user->password + ) ) { // 增加密码错误计数 - if ((int)admin_setting('password_limit_enable', true)) { - $passwordErrorCount = (int)Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email), 0); + if ((int) admin_setting('password_limit_enable', true)) { + $passwordErrorCount = (int) Cache::get(CacheKey::get('PASSWORD_ERROR_LIMIT', $email), 0); Cache::put( CacheKey::get('PASSWORD_ERROR_LIMIT', $email), - (int)$passwordErrorCount + 1, - 60 * (int)admin_setting('password_limit_expire', 60) + (int) $passwordErrorCount + 1, + 60 * (int) admin_setting('password_limit_expire', 60) ); } return [false, [400, __('Incorrect email or password')]]; @@ -77,13 +85,13 @@ class LoginService { // 检查重置请求限制 $forgetRequestLimitKey = CacheKey::get('FORGET_REQUEST_LIMIT', $email); - $forgetRequestLimit = (int)Cache::get($forgetRequestLimitKey); + $forgetRequestLimit = (int) Cache::get($forgetRequestLimitKey); if ($forgetRequestLimit >= 3) { return [false, [429, __('Reset failed, Please try again later')]]; } // 验证邮箱验证码 - if ((string)Cache::get(CacheKey::get('EMAIL_VERIFY_CODE', $email)) !== (string)$emailCode) { + if ((string) Cache::get(CacheKey::get('EMAIL_VERIFY_CODE', $email)) !== (string) $emailCode) { Cache::put($forgetRequestLimitKey, $forgetRequestLimit ? $forgetRequestLimit + 1 : 1, 300); return [false, [400, __('Incorrect email verification code')]]; } @@ -98,14 +106,44 @@ class LoginService $user->password = password_hash($password, PASSWORD_DEFAULT); $user->password_algo = NULL; $user->password_salt = NULL; - + if (!$user->save()) { return [false, [500, __('Reset failed')]]; } // 清除邮箱验证码 Cache::forget(CacheKey::get('EMAIL_VERIFY_CODE', $email)); - + return [true, true]; } -} \ No newline at end of file + + + /** + * 生成临时登录令牌和快速登录URL + * + * @param User $user 用户对象 + * @param string $redirect 重定向路径 + * @return string|null 快速登录URL + */ + public function generateQuickLoginUrl(User $user, string $redirect = 'dashboard'): ?string + { + if (!$user || !$user->exists) { + return null; + } + + $code = Helper::guid(); + $key = CacheKey::get('TEMP_TOKEN', $code); + + Cache::put($key, $user->id, 60); + + $loginRedirect = '/#/login?verify=' . $code . '&redirect=' . $redirect; + + if (admin_setting('app_url')) { + $url = admin_setting('app_url') . $loginRedirect; + } else { + $url = url($loginRedirect); + } + + return $url; + } +} \ No newline at end of file diff --git a/app/Services/Auth/MailLinkService.php b/app/Services/Auth/MailLinkService.php index 653df7a..e2351e0 100644 --- a/app/Services/Auth/MailLinkService.php +++ b/app/Services/Auth/MailLinkService.php @@ -19,7 +19,7 @@ class MailLinkService */ public function handleMailLink(string $email, ?string $redirect = null): array { - if (!(int)admin_setting('login_with_mail_link_enable')) { + if (!(int) admin_setting('login_with_mail_link_enable')) { return [false, [404, null]]; } @@ -72,28 +72,6 @@ class MailLinkService ]); } - /** - * 获取快速登录URL - * - * @param User $user 用户对象 - * @param string|null $redirect 重定向地址 - * @return string 登录URL - */ - public function getQuickLoginUrl(User $user, ?string $redirect = null): string - { - $code = Helper::guid(); - $key = CacheKey::get('TEMP_TOKEN', $code); - Cache::put($key, $user->id, 60); - - $redirectUrl = '/#/login?verify=' . $code . '&redirect=' . ($redirect ? $redirect : 'dashboard'); - - if (admin_setting('app_url')) { - return admin_setting('app_url') . $redirectUrl; - } else { - return url($redirectUrl); - } - } - /** * 处理Token登录 * @@ -104,19 +82,19 @@ class MailLinkService { $key = CacheKey::get('TEMP_TOKEN', $token); $userId = Cache::get($key); - + if (!$userId) { return null; } - + $user = User::find($userId); - + if (!$user || $user->banned) { return null; } - + Cache::forget($key); - + return $userId; } -} \ No newline at end of file +} \ No newline at end of file diff --git a/app/Services/Auth/RegisterService.php b/app/Services/Auth/RegisterService.php index 9956b49..e61cabf 100644 --- a/app/Services/Auth/RegisterService.php +++ b/app/Services/Auth/RegisterService.php @@ -5,12 +5,12 @@ namespace App\Services\Auth; use App\Models\InviteCode; use App\Models\Plan; use App\Models\User; +use App\Services\CaptchaService; use App\Utils\CacheKey; use App\Utils\Dict; use App\Utils\Helper; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; -use ReCaptcha\ReCaptcha; class RegisterService { @@ -23,36 +23,42 @@ class RegisterService public function validateRegister(Request $request): array { // 检查IP注册限制 - if ((int)admin_setting('register_limit_by_ip_enable', 0)) { + if ((int) admin_setting('register_limit_by_ip_enable', 0)) { $registerCountByIP = Cache::get(CacheKey::get('REGISTER_IP_RATE_LIMIT', $request->ip())) ?? 0; - if ((int)$registerCountByIP >= (int)admin_setting('register_limit_count', 3)) { - return [false, [429, __('Register frequently, please try again after :minute minute', [ - 'minute' => admin_setting('register_limit_expire', 60) - ])]]; + if ((int) $registerCountByIP >= (int) admin_setting('register_limit_count', 3)) { + return [ + false, + [ + 429, + __('Register frequently, please try again after :minute minute', [ + 'minute' => admin_setting('register_limit_expire', 60) + ]) + ] + ]; } } // 检查验证码 - if ((int)admin_setting('recaptcha_enable', 0)) { - $recaptcha = new ReCaptcha(admin_setting('recaptcha_key')); - $recaptchaResp = $recaptcha->verify($request->input('recaptcha_data')); - if (!$recaptchaResp->isSuccess()) { - return [false, [400, __('Invalid code is incorrect')]]; - } + $captchaService = app(CaptchaService::class); + [$captchaValid, $captchaError] = $captchaService->verify($request); + if (!$captchaValid) { + return [false, $captchaError]; } // 检查邮箱白名单 - if ((int)admin_setting('email_whitelist_enable', 0)) { - if (!Helper::emailSuffixVerify( - $request->input('email'), - admin_setting('email_whitelist_suffix', Dict::EMAIL_WHITELIST_SUFFIX_DEFAULT)) + if ((int) admin_setting('email_whitelist_enable', 0)) { + if ( + !Helper::emailSuffixVerify( + $request->input('email'), + admin_setting('email_whitelist_suffix', Dict::EMAIL_WHITELIST_SUFFIX_DEFAULT) + ) ) { return [false, [400, __('Email suffix is not in the Whitelist')]]; } } // 检查Gmail限制 - if ((int)admin_setting('email_gmail_limit_enable', 0)) { + if ((int) admin_setting('email_gmail_limit_enable', 0)) { $prefix = explode('@', $request->input('email'))[0]; if (strpos($prefix, '.') !== false || strpos($prefix, '+') !== false) { return [false, [400, __('Gmail alias is not supported')]]; @@ -60,23 +66,23 @@ class RegisterService } // 检查是否关闭注册 - if ((int)admin_setting('stop_register', 0)) { + if ((int) admin_setting('stop_register', 0)) { return [false, [400, __('Registration has closed')]]; } // 检查邀请码要求 - if ((int)admin_setting('invite_force', 0)) { + if ((int) admin_setting('invite_force', 0)) { if (empty($request->input('invite_code'))) { return [false, [422, __('You must use the invitation code to register')]]; } } // 检查邮箱验证 - if ((int)admin_setting('email_verify', 0)) { + if ((int) admin_setting('email_verify', 0)) { if (empty($request->input('email_code'))) { return [false, [422, __('Email verification code cannot be empty')]]; } - if ((string)Cache::get(CacheKey::get('EMAIL_VERIFY_CODE', $request->input('email'))) !== (string)$request->input('email_code')) { + if ((string) Cache::get(CacheKey::get('EMAIL_VERIFY_CODE', $request->input('email'))) !== (string) $request->input('email_code')) { return [false, [400, __('Incorrect email verification code')]]; } } @@ -109,15 +115,15 @@ class RegisterService ->first(); if (!$inviteCodeModel) { - if ((int)admin_setting('invite_force', 0)) { + if ((int) admin_setting('invite_force', 0)) { return [false, [400, __('Invalid invitation code')]]; } return [true, null]; } $user->invite_user_id = $inviteCodeModel->user_id ? $inviteCodeModel->user_id : null; - - if (!(int)admin_setting('invite_never_expire', 0)) { + + if (!(int) admin_setting('invite_never_expire', 0)) { $inviteCodeModel->status = true; $inviteCodeModel->save(); } @@ -133,7 +139,7 @@ class RegisterService */ public function handleTryOut(User $user): void { - if ((int)admin_setting('try_out_plan_id', 0)) { + if ((int) admin_setting('try_out_plan_id', 0)) { $plan = Plan::find(admin_setting('try_out_plan_id')); if ($plan) { $user->transfer_enable = $plan->transfer_enable * 1073741824; @@ -186,7 +192,7 @@ class RegisterService } // 清除邮箱验证码 - if ((int)admin_setting('email_verify', 0)) { + if ((int) admin_setting('email_verify', 0)) { Cache::forget(CacheKey::get('EMAIL_VERIFY_CODE', $email)); } @@ -195,15 +201,15 @@ class RegisterService $user->save(); // 更新IP注册计数 - if ((int)admin_setting('register_limit_by_ip_enable', 0)) { + if ((int) admin_setting('register_limit_by_ip_enable', 0)) { $registerCountByIP = Cache::get(CacheKey::get('REGISTER_IP_RATE_LIMIT', $request->ip())) ?? 0; Cache::put( CacheKey::get('REGISTER_IP_RATE_LIMIT', $request->ip()), - (int)$registerCountByIP + 1, - (int)admin_setting('register_limit_expire', 60) * 60 + (int) $registerCountByIP + 1, + (int) admin_setting('register_limit_expire', 60) * 60 ); } return [true, $user]; } -} \ No newline at end of file +} \ No newline at end of file diff --git a/app/Services/CaptchaService.php b/app/Services/CaptchaService.php new file mode 100644 index 0000000..faf79c2 --- /dev/null +++ b/app/Services/CaptchaService.php @@ -0,0 +1,112 @@ + $this->verifyTurnstile($request), + 'recaptcha-v3' => $this->verifyRecaptchaV3($request), + 'recaptcha' => $this->verifyRecaptcha($request), + default => [false, [400, __('Invalid captcha type')]] + }; + } + + /** + * 验证 Cloudflare Turnstile + * + * @param Request $request + * @return array + */ + private function verifyTurnstile(Request $request): array + { + $turnstileToken = $request->input('turnstile_token'); + if (!$turnstileToken) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + $response = Http::post('https://challenges.cloudflare.com/turnstile/v0/siteverify', [ + 'secret' => admin_setting('turnstile_secret_key'), + 'response' => $turnstileToken, + 'remoteip' => $request->ip() + ]); + + $result = $response->json(); + if (!$result['success']) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + return [true, null]; + } + + /** + * 验证 Google reCAPTCHA v3 + * + * @param Request $request + * @return array + */ + private function verifyRecaptchaV3(Request $request): array + { + $recaptchaV3Token = $request->input('recaptcha_v3_token'); + if (!$recaptchaV3Token) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + $recaptcha = new ReCaptcha(admin_setting('recaptcha_v3_secret_key')); + $recaptchaResp = $recaptcha->verify($recaptchaV3Token, $request->ip()); + + if (!$recaptchaResp->isSuccess()) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + // 检查分数阈值(如果有的话) + $score = $recaptchaResp->getScore(); + $threshold = admin_setting('recaptcha_v3_score_threshold', 0.5); + if ($score !== null && $score < $threshold) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + return [true, null]; + } + + /** + * 验证 Google reCAPTCHA v2 + * + * @param Request $request + * @return array + */ + private function verifyRecaptcha(Request $request): array + { + $recaptchaData = $request->input('recaptcha_data'); + if (!$recaptchaData) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + $recaptcha = new ReCaptcha(admin_setting('recaptcha_key')); + $recaptchaResp = $recaptcha->verify($recaptchaData); + + if (!$recaptchaResp->isSuccess()) { + return [false, [400, __('Invalid code is incorrect')]]; + } + + return [true, null]; + } +} \ No newline at end of file diff --git a/public/assets/admin/assets/index.js b/public/assets/admin/assets/index.js index 09fd908..c0d2125 100644 --- a/public/assets/admin/assets/index.js +++ b/public/assets/admin/assets/index.js @@ -1,20 +1,20 @@ -import{r as m,j as e,t as Oi,c as zi,I as Jt,a as it,S as yn,u as qs,b as $i,d as Nn,R as wr,e as Cr,f as Ai,F as qi,C as Hi,L as Sr,T as kr,g as Tr,h as Ui,i as Ki,k as Bi,l as Gi,m as q,z as x,n as I,o as we,p as Ce,q as ne,s as Ds,v as ke,w as Wi,x as Yi,O as _n,y as Ji,A as Qi,B as Xi,D as Zi,E as eo,G as so,Q as to,H as ao,J as no,K as ro,P as lo,M as io,N as oo,U as co,V as mo,W as Dr,X as Lr,Y as Pa,Z as Ra,_ as wn,$ as ms,a0 as Ea,a1 as Fa,a2 as Pr,a3 as Rr,a4 as Er,a5 as Cn,a6 as Fr,a7 as uo,a8 as Ir,a9 as Vr,aa as Mr,ab as Or,ac as ot,ad as zr,ae as xo,af as $r,ag as Ar,ah as ho,ai as go,aj as fo,ak as po,al as jo,am as vo,an as bo,ao as yo,ap as No,aq as _o,ar as qr,as as wo,at as Co,au as Ys,av as Hr,aw as So,ax as ko,ay as Ur,az as Sn,aA as To,aB as Do,aC as Xn,aD as Lo,aE as Kr,aF as Po,aG as Br,aH as Ro,aI as Eo,aJ as Fo,aK as Io,aL as Vo,aM as Mo,aN as Gr,aO as Oo,aP as zo,aQ as $o,aR as es,aS as Ao,aT as kn,aU as qo,aV as Ho,aW as Wr,aX as Yr,aY as Jr,aZ as Uo,a_ as Ko,a$ as Bo,b0 as Qr,b1 as Go,b2 as Tn,b3 as Xr,b4 as Wo,b5 as Zr,b6 as Yo,b7 as el,b8 as Jo,b9 as sl,ba as tl,bb as Qo,bc as Xo,bd as al,be as Zo,bf as ec,bg as nl,bh as sc,bi as rl,bj as tc,bk as ac,bl as Cs,bm as Le,bn as ks,bo as nc,bp as rc,bq as lc,br as ic,bs as oc,bt as cc,bu as Zn,bv as er,bw as dc,bx as mc,by as Dn,bz as uc,bA as xc,bB as va,bC as Ct,bD as ba,bE as hc,bF as ll,bG as gc,bH as fc,bI as il,bJ as pc,bK as jc,bL as sr,bM as un,bN as xn,bO as vc,bP as bc,bQ as ol,bR as yc,bS as Nc,bT as _c,bU as ya,bV as hn,bW as ss,bX as Na,bY as wc,bZ as Za,b_ as Cc,b$ as tr,c0 as ds,c1 as Ht,c2 as Ut,c3 as gn,c4 as cl,c5 as ts,c6 as us,c7 as dl,c8 as ml,c9 as Sc,ca as kc,cb as Tc,cc as Dc,cd as Lc,ce as ul,cf as Pc,cg as Rc,ch as Be,ci as ar,cj as Ec,ck as xl,cl as hl,cm as gl,cn as fl,co as pl,cp as jl,cq as Fc,cr as Ic,cs as Vc,ct as Ia,cu as ct,cv as bs,cw as ys,cx as Mc,cy as Oc,cz as zc,cA as $c,cB as _a,cC as Ac,cD as qc,cE as Hc,cF as Uc,cG as fn,cH as Ln,cI as Pn,cJ as Kc,cK as Es,cL as Fs,cM as Va,cN as Bc,cO as wa,cP as Gc,cQ as nr,cR as vl,cS as rr,cT as Ca,cU as Wc,cV as Yc,cW as Jc,cX as Qc,cY as Xc,cZ as bl,c_ as Zc,c$ as ed,d0 as yl,d1 as pn,d2 as Nl,d3 as sd,d4 as jn,d5 as _l,d6 as td,d7 as Kt,d8 as Rn,d9 as ad,da as nd,db as lr,dc as wl,dd as rd,de as ld,df as id,dg as ir,dh as od,di as cd}from"./vendor.js";import"./index.js";var Ng=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _g(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function dd(s){if(s.__esModule)return s;var n=s.default;if(typeof n=="function"){var t=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var a=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return s[r]}})}),t}const md={theme:"system",setTheme:()=>null},Cl=m.createContext(md);function ud({children:s,defaultTheme:n="system",storageKey:t="vite-ui-theme",...r}){const[a,i]=m.useState(()=>localStorage.getItem(t)||n);m.useEffect(()=>{const d=window.document.documentElement;if(d.classList.remove("light","dark"),a==="system"){const u=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";d.classList.add(u);return}d.classList.add(a)},[a]);const l={theme:a,setTheme:d=>{localStorage.setItem(t,d),i(d)}};return e.jsx(Cl.Provider,{...r,value:l,children:s})}const xd=()=>{const s=m.useContext(Cl);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},hd=function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"}(),gd=function(s,n){return new URL(s,n).href},or={},ye=function(n,t,r){let a=Promise.resolve();if(t&&t.length>0){const l=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),u=d?.nonce||d?.getAttribute("nonce");a=Promise.allSettled(t.map(o=>{if(o=gd(o,r),o in or)return;or[o]=!0;const c=o.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!r)for(let C=l.length-1;C>=0;C--){const f=l[C];if(f.href===o&&(!c||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${h}`))return;const T=document.createElement("link");if(T.rel=c?"stylesheet":hd,c||(T.as="script"),T.crossOrigin="",T.href=o,u&&T.setAttribute("nonce",u),document.head.appendChild(T),c)return new Promise((C,f)=>{T.addEventListener("load",C),T.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(l){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l}return a.then(l=>{for(const d of l||[])d.status==="rejected"&&i(d.reason);return n().catch(i)})};function y(...s){return Oi(zi(s))}const Dt=it("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),L=m.forwardRef(({className:s,variant:n,size:t,asChild:r=!1,children:a,disabled:i,loading:l=!1,leftSection:d,rightSection:u,...o},c)=>{const h=r?yn:"button";return e.jsxs(h,{className:y(Dt({variant:n,size:t,className:s})),disabled:l||i,ref:c,...o,children:[(d&&l||!d&&!u&&l)&&e.jsx(Jt,{className:"mr-2 h-4 w-4 animate-spin"}),!l&&d&&e.jsx("div",{className:"mr-2",children:d}),a,!l&&u&&e.jsx("div",{className:"ml-2",children:u}),u&&l&&e.jsx(Jt,{className:"ml-2 h-4 w-4 animate-spin"})]})});L.displayName="Button";function gt({className:s,minimal:n=!1}){const t=qs(),r=$i(),a=r?.message||r?.statusText||"Unknown error occurred";return e.jsx("div",{className:y("h-svh w-full",s),children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[!n&&e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"500"}),e.jsxs("span",{className:"font-medium",children:["Oops! Something went wrong ",":')"]}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["We apologize for the inconvenience. ",e.jsx("br",{}),a]}),!n&&e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(L,{variant:"outline",onClick:()=>t(-1),children:"Go Back"}),e.jsx(L,{onClick:()=>t("/"),children:"Back to Home"})]})]})})}function cr(){const s=qs();return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"404"}),e.jsx("span",{className:"font-medium",children:"Oops! Page Not Found!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["It seems like the page you're looking for ",e.jsx("br",{}),"does not exist or might have been removed."]}),e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(L,{variant:"outline",onClick:()=>s(-1),children:"Go Back"}),e.jsx(L,{onClick:()=>s("/"),children:"Back to Home"})]})]})})}function fd(){return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"503"}),e.jsx("span",{className:"font-medium",children:"Website is under maintenance!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["The site is not available at the moment. ",e.jsx("br",{}),"We'll be back online shortly."]}),e.jsx("div",{className:"mt-6 flex gap-4",children:e.jsx(L,{variant:"outline",children:"Learn more"})})]})})}function pd(s){return typeof s>"u"}function jd(s){return s===null}function vd(s){return jd(s)||pd(s)}class bd{storage;prefixKey;constructor(n){this.storage=n.storage,this.prefixKey=n.prefixKey}getKey(n){return`${this.prefixKey}${n}`.toUpperCase()}set(n,t,r=null){const a=JSON.stringify({value:t,time:Date.now(),expire:r!==null?new Date().getTime()+r*1e3:null});this.storage.setItem(this.getKey(n),a)}get(n,t=null){const r=this.storage.getItem(this.getKey(n));if(!r)return{value:t,time:0};try{const a=JSON.parse(r),{value:i,time:l,expire:d}=a;return vd(d)||d>new Date().getTime()?{value:i,time:l}:(this.remove(n),{value:t,time:0})}catch{return this.remove(n),{value:t,time:0}}}remove(n){this.storage.removeItem(this.getKey(n))}clear(){this.storage.clear()}}function Sl({prefixKey:s="",storage:n=sessionStorage}){return new bd({prefixKey:s,storage:n})}const kl="Xboard_",yd=function(s={}){return Sl({prefixKey:s.prefixKey||"",storage:localStorage})},Nd=function(s={}){return Sl({prefixKey:s.prefixKey||"",storage:sessionStorage})},En=yd({prefixKey:kl});Nd({prefixKey:kl});const Tl="access_token";function Qt(){return En.get(Tl)}function Dl(){En.remove(Tl)}const dr=["/sign-in","/sign-in-2","/sign-up","/forgot-password","/otp"];function _d({children:s}){const n=qs(),t=Nn(),r=Qt();return m.useEffect(()=>{if(!r.value&&!dr.includes(t.pathname)){const a=encodeURIComponent(t.pathname+t.search);n(`/sign-in?redirect=${a}`)}},[r.value,t.pathname,t.search,n]),dr.includes(t.pathname)||r.value?e.jsx(e.Fragment,{children:s}):null}const Te=m.forwardRef(({className:s,orientation:n="horizontal",decorative:t=!0,...r},a)=>e.jsx(wr,{ref:a,decorative:t,orientation:n,className:y("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...r}));Te.displayName=wr.displayName;const wd=it("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ae=m.forwardRef(({className:s,...n},t)=>e.jsx(Cr,{ref:t,className:y(wd(),s),...n}));Ae.displayName=Cr.displayName;const Se=qi,Ll=m.createContext({}),v=({...s})=>e.jsx(Ll.Provider,{value:{name:s.name},children:e.jsx(Hi,{...s})}),Ma=()=>{const s=m.useContext(Ll),n=m.useContext(Pl),{getFieldState:t,formState:r}=Ai(),a=t(s.name,r);if(!s)throw new Error("useFormField should be used within ");const{id:i}=n;return{id:i,name:s.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},Pl=m.createContext({}),p=m.forwardRef(({className:s,...n},t)=>{const r=m.useId();return e.jsx(Pl.Provider,{value:{id:r},children:e.jsx("div",{ref:t,className:y("space-y-2",s),...n})})});p.displayName="FormItem";const j=m.forwardRef(({className:s,...n},t)=>{const{error:r,formItemId:a}=Ma();return e.jsx(Ae,{ref:t,className:y(r&&"text-destructive",s),htmlFor:a,...n})});j.displayName="FormLabel";const N=m.forwardRef(({...s},n)=>{const{error:t,formItemId:r,formDescriptionId:a,formMessageId:i}=Ma();return e.jsx(yn,{ref:n,id:r,"aria-describedby":t?`${a} ${i}`:`${a}`,"aria-invalid":!!t,...s})});N.displayName="FormControl";const z=m.forwardRef(({className:s,...n},t)=>{const{formDescriptionId:r}=Ma();return e.jsx("p",{ref:t,id:r,className:y("text-[0.8rem] text-muted-foreground",s),...n})});z.displayName="FormDescription";const P=m.forwardRef(({className:s,children:n,...t},r)=>{const{error:a,formMessageId:i}=Ma(),l=a?String(a?.message):n;return l?e.jsx("p",{ref:r,id:i,className:y("text-[0.8rem] font-medium text-destructive",s),...t,children:l}):null});P.displayName="FormMessage";const Lt=Ui,dt=m.forwardRef(({className:s,...n},t)=>e.jsx(Sr,{ref:t,className:y("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s),...n}));dt.displayName=Sr.displayName;const Xe=m.forwardRef(({className:s,...n},t)=>e.jsx(kr,{ref:t,className:y("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s),...n}));Xe.displayName=kr.displayName;const Ts=m.forwardRef(({className:s,...n},t)=>e.jsx(Tr,{ref:t,className:y("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...n}));Ts.displayName=Tr.displayName;function xe(s=void 0,n="YYYY-MM-DD HH:mm:ss"){return s==null?"":(Math.floor(s).toString().length===10&&(s=s*1e3),Ki(s).format(n))}function Cd(s=void 0,n="YYYY-MM-DD"){return xe(s,n)}function yt(s){const n=typeof s=="string"?parseFloat(s):s;return isNaN(n)?"0.00":n.toFixed(2)}function Ms(s,n=!0){if(s==null)return n?"¥0.00":"0.00";const t=typeof s=="string"?parseFloat(s):s;if(isNaN(t))return n?"¥0.00":"0.00";const a=(t/100).toFixed(2).replace(/\.?0+$/,i=>i.includes(".")?".00":i);return n?`¥${a}`:a}function Sa(s){return new Promise(n=>{try{const t=document.createElement("button");t.style.position="fixed",t.style.left="-9999px",t.style.opacity="0",t.setAttribute("data-clipboard-text",s),document.body.appendChild(t);const r=new Bi(t);r.on("success",()=>{r.destroy(),document.body.removeChild(t),n(!0)}),r.on("error",a=>{console.error("Clipboard.js failed:",a),r.destroy(),document.body.removeChild(t),n(!1)}),t.click()}catch(t){console.error("copyToClipboard failed:",t),n(!1)}})}function Oe(s){const n=s/1024,t=n/1024,r=t/1024,a=r/1024;return a>=1?yt(a)+" TB":r>=1?yt(r)+" GB":t>=1?yt(t)+" MB":yt(n)+" KB"}const mr="i18nextLng";function Sd(){return console.log(localStorage.getItem(mr)),localStorage.getItem(mr)}function Rl(){Dl();const s=window.location.pathname,n=s&&!["/404","/sign-in"].includes(s),t=new URL(window.location.href),a=`${t.pathname.split("/")[1]?`/${t.pathname.split("/")[1]}`:""}#/sign-in`;window.location.href=a+(n?`?redirect=${s}`:"")}const kd=["/passport/auth/login","/passport/auth/token2Login","/passport/auth/register","/guest/comm/config","/passport/comm/sendEmailVerify","/passport/auth/forget"];function Td(){const s=window.settings?.base_url||"/";return s.endsWith("/")?s+"api/v2":s+"/api/v2"}const Nt=Gi.create({baseURL:Td(),timeout:12e3,headers:{"Content-Type":"application/json"}});Nt.interceptors.request.use(s=>{s.method?.toLowerCase()==="get"&&(s.params={...s.params,t:Date.now()});const n=Qt();if(!kd.includes(s.url?.split("?")[0]||"")){if(!n.value)return Rl(),Promise.reject({code:-1,message:"未登录"});s.headers.Authorization=n.value}return s.headers["Content-Language"]=Sd()||"zh-CN",s},s=>Promise.reject(s));Nt.interceptors.response.use(s=>s?.data||{code:-1,message:"未知错误"},s=>{const n=s.response?.status,t=s.response?.data?.message;return(n===401||n===403)&&Rl(),q.error(t||{401:"登录已过期",403:"没有权限",404:"资源或接口不存在"}[n]||"未知异常"),Promise.reject(s.response?.data||{data:null,code:-1,message:"未知错误"})});const M={get:(s,n)=>Nt.get(s,n),post:(s,n,t)=>Nt.post(s,n,t),put:(s,n,t)=>Nt.put(s,n,t),delete:(s,n)=>Nt.delete(s,n)},Dd="access_token";function Ld(s){En.set(Dd,s)}const et=window?.settings?.secure_path,ka={getStats:()=>M.get(et+"/monitor/api/stats"),getOverride:()=>M.get(et+"/stat/getOverride"),getOrderStat:s=>M.get(et+"/stat/getOrder",{params:s}),getStatsData:()=>M.get(et+"/stat/getStats"),getNodeTrafficData:s=>M.get(et+"/stat/getTrafficRank",{params:s}),getServerLastRank:()=>M.get(et+"/stat/getServerLastRank"),getServerYesterdayRank:()=>M.get(et+"/stat/getServerYesterdayRank")},Ft=window?.settings?.secure_path,Bt={getList:()=>M.get(Ft+"/theme/getThemes"),getConfig:s=>M.post(Ft+"/theme/getThemeConfig",{name:s}),updateConfig:(s,n)=>M.post(Ft+"/theme/saveThemeConfig",{name:s,config:n}),upload:s=>{const n=new FormData;return n.append("file",s),M.post(Ft+"/theme/upload",n,{headers:{"Content-Type":"multipart/form-data"}})},drop:s=>M.post(Ft+"/theme/delete",{name:s})},ft=window?.settings?.secure_path,at={getList:()=>M.get(ft+"/server/manage/getNodes"),save:s=>M.post(ft+"/server/manage/save",s),drop:s=>M.post(ft+"/server/manage/drop",s),copy:s=>M.post(ft+"/server/manage/copy",s),update:s=>M.post(ft+"/server/manage/update",s),sort:s=>M.post(ft+"/server/manage/sort",s)},en=window?.settings?.secure_path,mt={getList:()=>M.get(en+"/server/group/fetch"),save:s=>M.post(en+"/server/group/save",s),drop:s=>M.post(en+"/server/group/drop",s)},sn=window?.settings?.secure_path,Oa={getList:()=>M.get(sn+"/server/route/fetch"),save:s=>M.post(sn+"/server/route/save",s),drop:s=>M.post(sn+"/server/route/drop",s)},st=window?.settings?.secure_path,nt={getList:()=>M.get(st+"/payment/fetch"),getMethodList:()=>M.get(st+"/payment/getPaymentMethods"),getMethodForm:s=>M.post(st+"/payment/getPaymentForm",s),save:s=>M.post(st+"/payment/save",s),drop:s=>M.post(st+"/payment/drop",s),updateStatus:s=>M.post(st+"/payment/show",s),sort:s=>M.post(st+"/payment/sort",s)},It=window?.settings?.secure_path,Xt={getList:()=>M.get(`${It}/notice/fetch`),save:s=>M.post(`${It}/notice/save`,s),drop:s=>M.post(`${It}/notice/drop`,{id:s}),updateStatus:s=>M.post(`${It}/notice/show`,{id:s}),sort:s=>M.post(`${It}/notice/sort`,{ids:s})},pt=window?.settings?.secure_path,St={getList:()=>M.get(pt+"/knowledge/fetch"),getInfo:s=>M.get(pt+"/knowledge/fetch?id="+s),save:s=>M.post(pt+"/knowledge/save",s),drop:s=>M.post(pt+"/knowledge/drop",s),updateStatus:s=>M.post(pt+"/knowledge/show",s),sort:s=>M.post(pt+"/knowledge/sort",s)},Vt=window?.settings?.secure_path,gs={getList:()=>M.get(Vt+"/plan/fetch"),save:s=>M.post(Vt+"/plan/save",s),update:s=>M.post(Vt+"/plan/update",s),drop:s=>M.post(Vt+"/plan/drop",s),sort:s=>M.post(Vt+"/plan/sort",{ids:s})},jt=window?.settings?.secure_path,tt={getList:s=>M.post(jt+"/order/fetch",s),getInfo:s=>M.post(jt+"/order/detail",s),markPaid:s=>M.post(jt+"/order/paid",s),makeCancel:s=>M.post(jt+"/order/cancel",s),update:s=>M.post(jt+"/order/update",s),assign:s=>M.post(jt+"/order/assign",s)},la=window?.settings?.secure_path,Ta={getList:s=>M.post(la+"/coupon/fetch",s),save:s=>M.post(la+"/coupon/generate",s),drop:s=>M.post(la+"/coupon/drop",s),update:s=>M.post(la+"/coupon/update",s)},ls=window?.settings?.secure_path,Ps={getList:s=>M.post(`${ls}/user/fetch`,s),update:s=>M.post(`${ls}/user/update`,s),resetSecret:s=>M.post(`${ls}/user/resetSecret`,{id:s}),generate:s=>s.download_csv?M.post(`${ls}/user/generate`,s,{responseType:"blob"}):M.post(`${ls}/user/generate`,s),getStats:s=>M.post(`${ls}/stat/getStatUser`,s),destroy:s=>M.post(`${ls}/user/destroy`,{id:s}),sendMail:s=>M.post(`${ls}/user/sendMail`,s),dumpCSV:s=>M.post(`${ls}/user/dumpCSV`,s,{responseType:"blob"}),batchBan:s=>M.post(`${ls}/user/ban`,s)},Zt={getLogs:s=>M.get(`${ls}/traffic-reset/logs`,{params:s}),getStats:s=>M.get(`${ls}/traffic-reset/stats`,{params:s}),resetUser:s=>M.post(`${ls}/traffic-reset/reset-user`,s),getUserHistory:(s,n)=>M.get(`${ls}/traffic-reset/user/${s}/history`,{params:n})},ia=window?.settings?.secure_path,_t={getList:s=>M.post(ia+"/ticket/fetch",s),getInfo:s=>M.get(ia+"/ticket/fetch?id= "+s),reply:s=>M.post(ia+"/ticket/reply",s),close:s=>M.post(ia+"/ticket/close",{id:s})},Ue=window?.settings?.secure_path,he={getSettings:(s="")=>M.get(Ue+"/config/fetch?key="+s),saveSettings:s=>M.post(Ue+"/config/save",s),getEmailTemplate:()=>M.get(Ue+"/config/getEmailTemplate"),sendTestMail:()=>M.post(Ue+"/config/testSendMail"),setTelegramWebhook:()=>M.post(Ue+"/config/setTelegramWebhook"),updateSystemConfig:s=>M.post(Ue+"/config/save",s),getSystemStatus:()=>M.get(`${Ue}/system/getSystemStatus`),getQueueStats:()=>M.get(`${Ue}/system/getQueueStats`),getQueueWorkload:()=>M.get(`${Ue}/system/getQueueWorkload`),getQueueMasters:()=>M.get(`${Ue}/system/getQueueMasters`),getHorizonFailedJobs:s=>M.get(`${Ue}/system/getHorizonFailedJobs`,{params:s}),getSystemLog:s=>M.get(`${Ue}/system/getSystemLog`,{params:s}),getLogFiles:()=>M.get(`${Ue}/log/files`),getLogContent:s=>M.get(`${Ue}/log/fetch`,{params:s}),getLogClearStats:s=>M.get(`${Ue}/system/getLogClearStats`,{params:s}),clearSystemLog:s=>M.post(`${Ue}/system/clearSystemLog`,s)},Vs=window?.settings?.secure_path,Os={getPluginList:()=>M.get(`${Vs}/plugin/getPlugins`),uploadPlugin:s=>{const n=new FormData;return n.append("file",s),M.post(`${Vs}/plugin/upload`,n,{headers:{"Content-Type":"multipart/form-data"}})},deletePlugin:s=>M.post(`${Vs}/plugin/delete`,{code:s}),installPlugin:s=>M.post(`${Vs}/plugin/install`,{code:s}),uninstallPlugin:s=>M.post(`${Vs}/plugin/uninstall`,{code:s}),enablePlugin:s=>M.post(`${Vs}/plugin/enable`,{code:s}),disablePlugin:s=>M.post(`${Vs}/plugin/disable`,{code:s}),getPluginConfig:s=>M.get(`${Vs}/plugin/config`,{params:{code:s}}),updatePluginConfig:(s,n)=>M.post(`${Vs}/plugin/config`,{code:s,config:n})};window?.settings?.secure_path;const Pd=x.object({subscribe_template_singbox:x.string().optional().default(""),subscribe_template_clash:x.string().optional().default(""),subscribe_template_clashmeta:x.string().optional().default(""),subscribe_template_stash:x.string().optional().default(""),subscribe_template_surge:x.string().optional().default(""),subscribe_template_surfboard:x.string().optional().default("")}),ur=[{key:"singbox",label:"Sing-box",language:"json"},{key:"clash",label:"Clash",language:"yaml"},{key:"clashmeta",label:"Clash Meta",language:"yaml"},{key:"stash",label:"Stash",language:"yaml"},{key:"surge",label:"Surge",language:"ini"},{key:"surfboard",label:"Surfboard",language:"ini"}],xr={subscribe_template_singbox:"",subscribe_template_clash:"",subscribe_template_clashmeta:"",subscribe_template_stash:"",subscribe_template_surge:"",subscribe_template_surfboard:""};function Rd(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),[a,i]=m.useState("singbox"),l=we({resolver:Ce(Pd),defaultValues:xr,mode:"onChange"}),{data:d,isLoading:u}=ne({queryKey:["settings","client"],queryFn:()=>he.getSettings("subscribe_template")}),{mutateAsync:o}=Ds({mutationFn:he.saveSettings,onSuccess:()=>{q.success(s("common.autoSaved"))},onError:T=>{console.error("保存失败:",T),q.error(s("common.saveFailed"))}});m.useEffect(()=>{if(d?.data?.subscribe_template){const T=d.data.subscribe_template;Object.entries(T).forEach(([C,f])=>{if(C in xr){const _=typeof f=="string"?f:"";l.setValue(C,_)}}),r.current=l.getValues()}},[d,l]);const c=m.useCallback(ke.debounce(async T=>{if(!r.current||!ke.isEqual(T,r.current)){t(!0);try{await o(T),r.current=T}catch(C){console.error("保存设置失败:",C)}finally{t(!1)}}},1500),[o]),h=m.useCallback(()=>{const T=l.getValues();c(T)},[l,c]),S=m.useCallback((T,C)=>e.jsx(v,{control:l.control,name:T,render:({field:f})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s(`subscribe_template.${T.replace("subscribe_template_","")}.title`)}),e.jsx(N,{children:e.jsx(Wi,{height:"500px",defaultLanguage:C,value:f.value||"",onChange:_=>{f.onChange(_||""),h()},options:{minimap:{enabled:!1},fontSize:14,wordWrap:"on",scrollBeyondLastLine:!1,automaticLayout:!0}})}),e.jsx(z,{children:s(`subscribe_template.${T.replace("subscribe_template_","")}.description`)}),e.jsx(P,{})]})}),[l.control,s,h]);return u?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.loading")})}):e.jsx(Se,{...l,children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Lt,{value:a,onValueChange:i,className:"w-full",children:[e.jsx(dt,{className:"",children:ur.map(({key:T,label:C})=>e.jsx(Xe,{value:T,className:"text-xs",children:C},T))}),ur.map(({key:T,language:C})=>e.jsx(Ts,{value:T,className:"mt-4",children:S(`subscribe_template_${T}`,C)},T))]}),n&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-blue-500"}),s("common.saving")]})]})})}function Ed(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe_template.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe_template.description")})]}),e.jsx(Te,{}),e.jsx(Rd,{})]})}const Fd=()=>e.jsx(_d,{children:e.jsx(_n,{})}),Id=Yi([{path:"/sign-in",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Xd);return{default:s}},void 0,import.meta.url)).default})},{element:e.jsx(Fd,{}),children:[{path:"/",lazy:async()=>({Component:(await ye(()=>Promise.resolve().then(()=>im),void 0,import.meta.url)).default}),errorElement:e.jsx(gt,{}),children:[{index:!0,lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>km);return{default:s}},void 0,import.meta.url)).default})},{path:"config",errorElement:e.jsx(gt,{}),children:[{path:"system",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Pm);return{default:s}},void 0,import.meta.url)).default}),children:[{index:!0,lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Im);return{default:s}},void 0,import.meta.url)).default})},{path:"safe",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>$m);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Km);return{default:s}},void 0,import.meta.url)).default})},{path:"invite",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Jm);return{default:s}},void 0,import.meta.url)).default})},{path:"frontend",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>su);return{default:s}},void 0,import.meta.url)).default})},{path:"server",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>lu);return{default:s}},void 0,import.meta.url)).default})},{path:"email",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>mu);return{default:s}},void 0,import.meta.url)).default})},{path:"telegram",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>fu);return{default:s}},void 0,import.meta.url)).default})},{path:"APP",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>yu);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe-template",element:e.jsx(Ed,{})}]},{path:"payment",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Tu);return{default:s}},void 0,import.meta.url)).default})},{path:"plugin",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Pu);return{default:s}},void 0,import.meta.url)).default})},{path:"theme",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Iu);return{default:s}},void 0,import.meta.url)).default})},{path:"notice",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>qu);return{default:s}},void 0,import.meta.url)).default})},{path:"knowledge",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Ju);return{default:s}},void 0,import.meta.url)).default})}]},{path:"server",errorElement:e.jsx(gt,{}),children:[{path:"manage",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Sx);return{default:s}},void 0,import.meta.url)).default})},{path:"group",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Px);return{default:s}},void 0,import.meta.url)).default})},{path:"route",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Mx);return{default:s}},void 0,import.meta.url)).default})}]},{path:"finance",errorElement:e.jsx(gt,{}),children:[{path:"plan",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Bx);return{default:s}},void 0,import.meta.url)).default})},{path:"order",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>lh);return{default:s}},void 0,import.meta.url)).default})},{path:"coupon",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>fh);return{default:s}},void 0,import.meta.url)).default})}]},{path:"user",errorElement:e.jsx(gt,{}),children:[{path:"manage",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Bh);return{default:s}},void 0,import.meta.url)).default})},{path:"ticket",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>ug);return{default:s}},void 0,import.meta.url)).default})},{path:"traffic-reset-logs",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>jg);return{default:s}},void 0,import.meta.url)).default})}]}]}]},{path:"/500",Component:gt},{path:"/404",Component:cr},{path:"/503",Component:fd},{path:"*",Component:cr}]);function Vd(){return M.get("/user/info")}const tn={token:Qt()?.value||"",userInfo:null,isLoggedIn:!!Qt()?.value,loading:!1,error:null},Gt=Ji("user/fetchUserInfo",async()=>(await Vd()).data,{condition:(s,{getState:n})=>{const{user:t}=n();return!!t.token&&!t.loading}}),El=Qi({name:"user",initialState:tn,reducers:{setToken(s,n){s.token=n.payload,s.isLoggedIn=!!n.payload},resetUserState:()=>tn},extraReducers:s=>{s.addCase(Gt.pending,n=>{n.loading=!0,n.error=null}).addCase(Gt.fulfilled,(n,t)=>{n.loading=!1,n.userInfo=t.payload,n.error=null}).addCase(Gt.rejected,(n,t)=>{if(n.loading=!1,n.error=t.error.message||"Failed to fetch user info",!n.token)return tn})}}),{setToken:Md,resetUserState:Od}=El.actions,zd=s=>s.user.userInfo,$d=El.reducer,Fl=Xi({reducer:{user:$d}});Qt()?.value&&Fl.dispatch(Gt());Zi.use(eo).use(so).init({resources:{"en-US":window.XBOARD_TRANSLATIONS?.["en-US"]||{},"zh-CN":window.XBOARD_TRANSLATIONS?.["zh-CN"]||{},"ko-KR":window.XBOARD_TRANSLATIONS?.["ko-KR"]||{}},fallbackLng:"zh-CN",supportedLngs:["en-US","zh-CN","ko-KR"],detection:{order:["querystring","localStorage","navigator"],lookupQuerystring:"lang",lookupLocalStorage:"i18nextLng",caches:["localStorage"]},interpolation:{escapeValue:!1}});const Ad=new to;ao.createRoot(document.getElementById("root")).render(e.jsx(no.StrictMode,{children:e.jsx(ro,{client:Ad,children:e.jsx(lo,{store:Fl,children:e.jsxs(ud,{defaultTheme:"light",storageKey:"vite-ui-theme",children:[e.jsx(io,{router:Id}),e.jsx(oo,{richColors:!0,position:"top-right"})]})})})}));const Re=m.forwardRef(({className:s,...n},t)=>e.jsx("div",{ref:t,className:y("rounded-xl border bg-card text-card-foreground shadow",s),...n}));Re.displayName="Card";const Fe=m.forwardRef(({className:s,...n},t)=>e.jsx("div",{ref:t,className:y("flex flex-col space-y-1.5 p-6",s),...n}));Fe.displayName="CardHeader";const Ge=m.forwardRef(({className:s,...n},t)=>e.jsx("h3",{ref:t,className:y("font-semibold leading-none tracking-tight",s),...n}));Ge.displayName="CardTitle";const zs=m.forwardRef(({className:s,...n},t)=>e.jsx("p",{ref:t,className:y("text-sm text-muted-foreground",s),...n}));zs.displayName="CardDescription";const Ie=m.forwardRef(({className:s,...n},t)=>e.jsx("div",{ref:t,className:y("p-6 pt-0",s),...n}));Ie.displayName="CardContent";const qd=m.forwardRef(({className:s,...n},t)=>e.jsx("div",{ref:t,className:y("flex items-center p-6 pt-0",s),...n}));qd.displayName="CardFooter";const D=m.forwardRef(({className:s,type:n,...t},r)=>e.jsx("input",{type:n,className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:r,...t}));D.displayName="Input";const Il=m.forwardRef(({className:s,...n},t)=>{const[r,a]=m.useState(!1);return e.jsxs("div",{className:"relative rounded-md",children:[e.jsx("input",{type:r?"text":"password",className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...n}),e.jsx(L,{type:"button",size:"icon",variant:"ghost",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground",onClick:()=>a(i=>!i),children:r?e.jsx(co,{size:18}):e.jsx(mo,{size:18})})]})});Il.displayName="PasswordInput";const Hd=s=>M.post("/passport/auth/login",s);function Ud({className:s,onForgotPassword:n,...t}){const r=qs(),a=Dr(),{t:i}=I("auth"),l=x.object({email:x.string().min(1,{message:i("signIn.validation.emailRequired")}),password:x.string().min(1,{message:i("signIn.validation.passwordRequired")}).min(7,{message:i("signIn.validation.passwordLength")})}),d=we({resolver:Ce(l),defaultValues:{email:"",password:""}});async function u(o){try{const{data:c}=await Hd(o);Ld(c.auth_data),a(Md(c.auth_data)),await a(Gt()).unwrap(),r("/")}catch(c){console.error("Login failed:",c),c.response?.data?.message&&d.setError("root",{message:c.response.data.message})}}return e.jsx("div",{className:y("grid gap-6",s),...t,children:e.jsx(Se,{...d,children:e.jsx("form",{onSubmit:d.handleSubmit(u),className:"space-y-4",children:e.jsxs("div",{className:"space-y-4",children:[d.formState.errors.root&&e.jsx("div",{className:"text-sm text-destructive",children:d.formState.errors.root.message}),e.jsx(v,{control:d.control,name:"email",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:i("signIn.email")}),e.jsx(N,{children:e.jsx(D,{placeholder:i("signIn.emailPlaceholder"),autoComplete:"email",...o})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"password",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:i("signIn.password")}),e.jsx(N,{children:e.jsx(Il,{placeholder:i("signIn.passwordPlaceholder"),autoComplete:"current-password",...o})}),e.jsx(P,{})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(L,{variant:"link",type:"button",className:"px-0 text-sm font-normal text-muted-foreground hover:text-primary",onClick:n,children:i("signIn.forgotPassword")})}),e.jsx(L,{className:"w-full",size:"lg",loading:d.formState.isSubmitting,children:i("signIn.submit")})]})})})})}const ge=Lr,as=Pr,Kd=Rr,Gs=wn,Vl=m.forwardRef(({className:s,...n},t)=>e.jsx(Pa,{ref:t,className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...n}));Vl.displayName=Pa.displayName;const ue=m.forwardRef(({className:s,children:n,...t},r)=>e.jsxs(Kd,{children:[e.jsx(Vl,{}),e.jsxs(Ra,{ref:r,className:y("max-h-[95%] overflow-auto fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...t,children:[n,e.jsxs(wn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(ms,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=Ra.displayName;const be=({className:s,...n})=>e.jsx("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",s),...n});be.displayName="DialogHeader";const Pe=({className:s,...n})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...n});Pe.displayName="DialogFooter";const fe=m.forwardRef(({className:s,...n},t)=>e.jsx(Ea,{ref:t,className:y("text-lg font-semibold leading-none tracking-tight",s),...n}));fe.displayName=Ea.displayName;const Ve=m.forwardRef(({className:s,...n},t)=>e.jsx(Fa,{ref:t,className:y("text-sm text-muted-foreground",s),...n}));Ve.displayName=Fa.displayName;const kt=it("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),G=m.forwardRef(({className:s,variant:n,size:t,asChild:r=!1,...a},i)=>{const l=r?yn:"button";return e.jsx(l,{className:y(kt({variant:n,size:t,className:s})),ref:i,...a})});G.displayName="Button";const $s=ho,As=go,Bd=fo,Gd=m.forwardRef(({className:s,inset:n,children:t,...r},a)=>e.jsxs(Er,{ref:a,className:y("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",s),...r,children:[t,e.jsx(Cn,{className:"ml-auto h-4 w-4"})]}));Gd.displayName=Er.displayName;const Wd=m.forwardRef(({className:s,...n},t)=>e.jsx(Fr,{ref:t,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...n}));Wd.displayName=Fr.displayName;const Rs=m.forwardRef(({className:s,sideOffset:n=4,...t},r)=>e.jsx(uo,{children:e.jsx(Ir,{ref:r,sideOffset:n,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t})}));Rs.displayName=Ir.displayName;const _e=m.forwardRef(({className:s,inset:n,...t},r)=>e.jsx(Vr,{ref:r,className:y("relative flex cursor-default cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",s),...t}));_e.displayName=Vr.displayName;const Yd=m.forwardRef(({className:s,children:n,checked:t,...r},a)=>e.jsxs(Mr,{ref:a,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:t,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Or,{children:e.jsx(ot,{className:"h-4 w-4"})})}),n]}));Yd.displayName=Mr.displayName;const Jd=m.forwardRef(({className:s,children:n,...t},r)=>e.jsxs(zr,{ref:r,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Or,{children:e.jsx(xo,{className:"h-4 w-4 fill-current"})})}),n]}));Jd.displayName=zr.displayName;const Fn=m.forwardRef(({className:s,inset:n,...t},r)=>e.jsx($r,{ref:r,className:y("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",s),...t}));Fn.displayName=$r.displayName;const rt=m.forwardRef(({className:s,...n},t)=>e.jsx(Ar,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",s),...n}));rt.displayName=Ar.displayName;const vn=({className:s,...n})=>e.jsx("span",{className:y("ml-auto text-xs tracking-widest opacity-60",s),...n});vn.displayName="DropdownMenuShortcut";const an=[{code:"en-US",name:"English",flag:po,shortName:"EN"},{code:"zh-CN",name:"中文",flag:jo,shortName:"CN"}];function Ml(){const{i18n:s}=I(),n=a=>{s.changeLanguage(a)},t=an.find(a=>a.code===s.language)||an[1],r=t.flag;return e.jsxs($s,{children:[e.jsx(As,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",children:[e.jsx(r,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:"text-sm font-medium",children:t.shortName})]})}),e.jsx(Rs,{align:"end",className:"w-[120px]",children:an.map(a=>{const i=a.flag,l=a.code===s.language;return e.jsxs(_e,{onClick:()=>n(a.code),className:y("flex items-center gap-2 px-2 py-1.5 cursor-pointer",l&&"bg-accent"),children:[e.jsx(i,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:y("text-sm",l&&"font-medium"),children:a.name})]},a.code)})})]})}function Qd(){const[s,n]=m.useState(!1),{t}=I("auth"),r=t("signIn.resetPassword.command");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"container relative flex min-h-svh flex-col items-center justify-center bg-primary-foreground px-4 py-8 lg:max-w-none lg:px-0",children:[e.jsx("div",{className:"absolute right-4 top-4 md:right-8 md:top-8",children:e.jsx(Ml,{})}),e.jsxs("div",{className:"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px] md:w-[420px] lg:p-8",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold sm:text-3xl",children:window?.settings?.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:window?.settings?.description})]}),e.jsxs(Re,{className:"p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-left",children:[e.jsx("h1",{className:"text-xl font-semibold tracking-tight sm:text-2xl",children:t("signIn.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("signIn.description")})]}),e.jsx(Ud,{onForgotPassword:()=>n(!0)})]})]})]}),e.jsx(ge,{open:s,onOpenChange:n,children:e.jsx(ue,{className:"max-w-[90vw] sm:max-w-lg",children:e.jsxs(be,{children:[e.jsx(fe,{children:t("signIn.resetPassword.title")}),e.jsx(Ve,{children:t("signIn.resetPassword.description")}),e.jsx("div",{className:"mt-4",children:e.jsxs("div",{className:"relative",children:[e.jsx("pre",{className:"max-w-full overflow-x-auto rounded-md bg-secondary p-4 pr-12 text-sm",children:r}),e.jsx(G,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-8 w-8 hover:bg-secondary-foreground/10",onClick:()=>Sa(r).then(()=>{q.success(t("common:copy.success"))}),children:e.jsx(vo,{className:"h-4 w-4"})})]})})]})})})]})}const Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Qd},Symbol.toStringTag,{value:"Module"})),ze=m.forwardRef(({className:s,fadedBelow:n=!1,fixedHeight:t=!1,...r},a)=>e.jsx("div",{ref:a,className:y("relative flex h-full w-full flex-col",n&&"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_hsl(var(--background))_70%)] after:md:block",t&&"md:h-svh",s),...r}));ze.displayName="Layout";const $e=m.forwardRef(({className:s,...n},t)=>e.jsx("div",{ref:t,className:y("flex h-[var(--header-height)] flex-none items-center gap-4 bg-background p-4 md:px-8",s),...n}));$e.displayName="LayoutHeader";const He=m.forwardRef(({className:s,fixedHeight:n,...t},r)=>e.jsx("div",{ref:r,className:y("flex-1 overflow-hidden px-4 py-6 md:px-8",n&&"h-[calc(100%-var(--header-height))]",s),...t}));He.displayName="LayoutBody";const Ol=bo,zl=yo,$l=No,pe=_o,de=wo,me=Co,oe=m.forwardRef(({className:s,sideOffset:n=4,...t},r)=>e.jsx(qr,{ref:r,sideOffset:n,className:y("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t}));oe.displayName=qr.displayName;function za(){const{pathname:s}=Nn();return{checkActiveNav:t=>{if(t==="/"&&s==="/")return!0;const r=t.replace(/^\//,""),a=s.replace(/^\//,"");return r?a.startsWith(r):!1}}}function Al({key:s,defaultValue:n}){const[t,r]=m.useState(()=>{const a=localStorage.getItem(s);return a!==null?JSON.parse(a):n});return m.useEffect(()=>{localStorage.setItem(s,JSON.stringify(t))},[t,s]),[t,r]}function Zd(){const[s,n]=Al({key:"collapsed-sidebar-items",defaultValue:[]}),t=a=>!s.includes(a);return{isExpanded:t,toggleItem:a=>{t(a)?n([...s,a]):n(s.filter(i=>i!==a))}}}function em({links:s,isCollapsed:n,className:t,closeNav:r}){const{t:a}=I(),i=({sub:l,...d})=>{const u=`${a(d.title)}-${d.href}`;return n&&l?m.createElement(am,{...d,sub:l,key:u,closeNav:r}):n?m.createElement(tm,{...d,key:u,closeNav:r}):l?m.createElement(sm,{...d,sub:l,key:u,closeNav:r}):m.createElement(ql,{...d,key:u,closeNav:r})};return e.jsx("div",{"data-collapsed":n,className:y("group border-b bg-background py-2 transition-[max-height,padding] duration-500 data-[collapsed=true]:py-2 md:border-none",t),children:e.jsx(pe,{delayDuration:0,children:e.jsx("nav",{className:"grid gap-1 group-[[data-collapsed=true]]:justify-center group-[[data-collapsed=true]]:px-2",children:s.map(i)})})})}function ql({title:s,icon:n,label:t,href:r,closeNav:a,subLink:i=!1}){const{checkActiveNav:l}=za(),{t:d}=I();return e.jsxs(Ys,{to:r,onClick:a,className:y(Dt({variant:l(r)?"secondary":"ghost",size:"sm"}),"h-12 justify-start text-wrap rounded-none px-6",i&&"h-10 w-full border-l border-l-slate-500 px-2"),"aria-current":l(r)?"page":void 0,children:[e.jsx("div",{className:"mr-2",children:n}),d(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:d(t)})]})}function sm({title:s,icon:n,label:t,sub:r,closeNav:a}){const{checkActiveNav:i}=za(),{isExpanded:l,toggleItem:d}=Zd(),{t:u}=I(),o=!!r?.find(S=>i(S.href)),c=u(s),h=l(c)||o;return e.jsxs(Ol,{open:h,onOpenChange:()=>d(c),children:[e.jsxs(zl,{className:y(Dt({variant:o?"secondary":"ghost",size:"sm"}),"group h-12 w-full justify-start rounded-none px-6"),children:[e.jsx("div",{className:"mr-2",children:n}),u(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:u(t)}),e.jsx("span",{className:y('ml-auto transition-all group-data-[state="open"]:-rotate-180'),children:e.jsx(Hr,{stroke:1})})]}),e.jsx($l,{className:"collapsibleDropdown",asChild:!0,children:e.jsx("ul",{children:r.map(S=>e.jsx("li",{className:"my-1 ml-8",children:e.jsx(ql,{...S,subLink:!0,closeNav:a})},u(S.title)))})})]})}function tm({title:s,icon:n,label:t,href:r,closeNav:a}){const{checkActiveNav:i}=za(),{t:l}=I();return e.jsxs(de,{delayDuration:0,children:[e.jsx(me,{asChild:!0,children:e.jsxs(Ys,{to:r,onClick:a,className:y(Dt({variant:i(r)?"secondary":"ghost",size:"icon"}),"h-12 w-12"),children:[n,e.jsx("span",{className:"sr-only",children:l(s)})]})}),e.jsxs(oe,{side:"right",className:"flex items-center gap-4",children:[l(s),t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:l(t)})]})]})}function am({title:s,icon:n,label:t,sub:r,closeNav:a}){const{checkActiveNav:i}=za(),{t:l}=I(),d=!!r?.find(u=>i(u.href));return e.jsxs($s,{children:[e.jsxs(de,{delayDuration:0,children:[e.jsx(me,{asChild:!0,children:e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:d?"secondary":"ghost",size:"icon",className:"h-12 w-12",children:n})})}),e.jsxs(oe,{side:"right",className:"flex items-center gap-4",children:[l(s)," ",t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:l(t)}),e.jsx(Hr,{size:18,className:"-rotate-90 text-muted-foreground"})]})]}),e.jsxs(Rs,{side:"right",align:"start",sideOffset:4,children:[e.jsxs(Fn,{children:[l(s)," ",t?`(${l(t)})`:""]}),e.jsx(rt,{}),r.map(({title:u,icon:o,label:c,href:h})=>e.jsx(_e,{asChild:!0,children:e.jsxs(Ys,{to:h,onClick:a,className:`${i(h)?"bg-secondary":""}`,children:[o," ",e.jsx("span",{className:"ml-2 max-w-52 text-wrap",children:l(u)}),c&&e.jsx("span",{className:"ml-auto text-xs",children:l(c)})]})},`${l(u)}-${h}`))]})]})}const Hl=[{title:"nav:dashboard",label:"",href:"/",icon:e.jsx(So,{size:18})},{title:"nav:systemManagement",label:"",href:"",icon:e.jsx(ko,{size:18}),sub:[{title:"nav:systemConfig",label:"",href:"/config/system",icon:e.jsx(Ur,{size:18})},{title:"nav:pluginManagement",label:"",href:"/config/plugin",icon:e.jsx(Sn,{size:18})},{title:"nav:themeConfig",label:"",href:"/config/theme",icon:e.jsx(To,{size:18})},{title:"nav:noticeManagement",label:"",href:"/config/notice",icon:e.jsx(Do,{size:18})},{title:"nav:paymentConfig",label:"",href:"/config/payment",icon:e.jsx(Xn,{size:18})},{title:"nav:knowledgeManagement",label:"",href:"/config/knowledge",icon:e.jsx(Lo,{size:18})}]},{title:"nav:nodeManagement",label:"",href:"",icon:e.jsx(Kr,{size:18}),sub:[{title:"nav:nodeManagement",label:"",href:"/server/manage",icon:e.jsx(Po,{size:18})},{title:"nav:permissionGroupManagement",label:"",href:"/server/group",icon:e.jsx(Br,{size:18})},{title:"nav:routeManagement",label:"",href:"/server/route",icon:e.jsx(Ro,{size:18})}]},{title:"nav:subscriptionManagement",label:"",href:"",icon:e.jsx(Eo,{size:18}),sub:[{title:"nav:planManagement",label:"",href:"/finance/plan",icon:e.jsx(Fo,{size:18})},{title:"nav:orderManagement",label:"",href:"/finance/order",icon:e.jsx(Xn,{size:18})},{title:"nav:couponManagement",label:"",href:"/finance/coupon",icon:e.jsx(Io,{size:18})}]},{title:"nav:userManagement",label:"",href:"",icon:e.jsx(Vo,{size:18}),sub:[{title:"nav:userManagement",label:"",href:"/user/manage",icon:e.jsx(Mo,{size:18})},{title:"nav:ticketManagement",label:"",href:"/user/ticket",icon:e.jsx(Gr,{size:18})}]}];function nm({className:s,isCollapsed:n,setIsCollapsed:t}){const[r,a]=m.useState(!1),{t:i}=I();return m.useEffect(()=>{r?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[r]),e.jsxs("aside",{className:y(`fixed left-0 right-0 top-0 z-50 flex h-auto flex-col border-r-2 border-r-muted transition-[width] md:bottom-0 md:right-auto md:h-svh ${n?"md:w-14":"md:w-64"}`,s),children:[e.jsx("div",{onClick:()=>a(!1),className:`absolute inset-0 transition-[opacity] delay-100 duration-700 ${r?"h-svh opacity-50":"h-0 opacity-0"} w-full bg-black md:hidden`}),e.jsxs(ze,{className:`flex h-full flex-col ${r?"h-[100vh] md:h-full":""}`,children:[e.jsxs($e,{className:"sticky top-0 justify-between px-4 py-3 shadow md:px-4",children:[e.jsxs("div",{className:`flex items-center ${n?"":"gap-2"}`,children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",className:`transition-all ${n?"h-6 w-6":"h-8 w-8"}`,children:[e.jsx("rect",{width:"256",height:"256",fill:"none"}),e.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("span",{className:"sr-only",children:"Website Name"})]}),e.jsx("div",{className:`flex flex-col justify-end truncate ${n?"invisible w-0":"visible w-auto"}`,children:e.jsx("span",{className:"font-medium",children:window?.settings?.title})})]}),e.jsx(L,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":i("common:toggleNavigation"),"aria-controls":"sidebar-menu","aria-expanded":r,onClick:()=>a(l=>!l),children:r?e.jsx(Oo,{}):e.jsx(zo,{})})]}),e.jsx(em,{id:"sidebar-menu",className:y("flex-1 overflow-auto overscroll-contain",r?"block":"hidden md:block","md:py-2"),closeNav:()=>a(!1),isCollapsed:n,links:Hl}),e.jsx("div",{className:y("border-t border-border/50 bg-background","px-4 py-2.5 text-xs text-muted-foreground",r?"block":"hidden md:block",n?"text-center":"text-left"),children:e.jsxs("div",{className:y("flex items-center gap-1.5",n?"justify-center":"justify-start"),children:[e.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),e.jsxs("span",{className:y("whitespace-nowrap tracking-wide","transition-opacity duration-200",n&&"md:opacity-0"),children:["v",window?.settings?.version]})]})}),e.jsx(L,{onClick:()=>t(l=>!l),size:"icon",variant:"outline",className:"absolute -right-5 top-1/2 hidden rounded-full md:inline-flex","aria-label":i("common:toggleSidebar"),children:e.jsx($o,{stroke:1.5,className:`h-5 w-5 ${n?"rotate-180":""}`})})]})]})}function rm(){const[s,n]=Al({key:"collapsed-sidebar",defaultValue:!1});return m.useEffect(()=>{const t=()=>{n(window.innerWidth<768?!1:s)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[s,n]),[s,n]}function lm(){const[s,n]=rm();return e.jsxs("div",{className:"relative h-full overflow-hidden bg-background",children:[e.jsx(nm,{isCollapsed:s,setIsCollapsed:n}),e.jsx("main",{id:"content",className:`overflow-x-hidden pt-16 transition-[margin] md:overflow-y-hidden md:pt-0 ${s?"md:ml-14":"md:ml-64"} h-full`,children:e.jsx(_n,{})})]})}const im=Object.freeze(Object.defineProperty({__proto__:null,default:lm},Symbol.toStringTag,{value:"Module"})),Js=m.forwardRef(({className:s,...n},t)=>e.jsx(es,{ref:t,className:y("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...n}));Js.displayName=es.displayName;const om=({children:s,...n})=>e.jsx(ge,{...n,children:e.jsx(ue,{className:"overflow-hidden p-0",children:e.jsx(Js,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})}),ut=m.forwardRef(({className:s,...n},t)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(Ao,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(es.Input,{ref:t,className:y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...n})]}));ut.displayName=es.Input.displayName;const Qs=m.forwardRef(({className:s,...n},t)=>e.jsx(es.List,{ref:t,className:y("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...n}));Qs.displayName=es.List.displayName;const xt=m.forwardRef((s,n)=>e.jsx(es.Empty,{ref:n,className:"py-6 text-center text-sm",...s}));xt.displayName=es.Empty.displayName;const fs=m.forwardRef(({className:s,...n},t)=>e.jsx(es.Group,{ref:t,className:y("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...n}));fs.displayName=es.Group.displayName;const Pt=m.forwardRef(({className:s,...n},t)=>e.jsx(es.Separator,{ref:t,className:y("-mx-1 h-px bg-border",s),...n}));Pt.displayName=es.Separator.displayName;const We=m.forwardRef(({className:s,...n},t)=>e.jsx(es.Item,{ref:t,className:y("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...n}));We.displayName=es.Item.displayName;function cm(){const s=[];for(const n of Hl)if(n.href&&s.push(n),n.sub)for(const t of n.sub)s.push({...t,parent:n.title});return s}function ns(){const[s,n]=m.useState(!1),t=qs(),r=cm(),{t:a}=I("search"),{t:i}=I("nav");m.useEffect(()=>{const d=u=>{u.key==="k"&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),n(o=>!o))};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[]);const l=m.useCallback(d=>{n(!1),t(d)},[t]);return e.jsxs(e.Fragment,{children:[e.jsxs(G,{variant:"outline",className:"relative h-9 w-9 p-0 xl:h-10 xl:w-60 xl:justify-start xl:px-3 xl:py-2",onClick:()=>n(!0),children:[e.jsx(kn,{className:"h-4 w-4 xl:mr-2"}),e.jsx("span",{className:"hidden xl:inline-flex",children:a("placeholder")}),e.jsx("span",{className:"sr-only",children:a("shortcut.label")}),e.jsx("kbd",{className:"pointer-events-none absolute right-1.5 top-2 hidden h-6 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 xl:flex",children:a("shortcut.key")})]}),e.jsxs(om,{open:s,onOpenChange:n,children:[e.jsx(ut,{placeholder:a("placeholder")}),e.jsxs(Qs,{children:[e.jsx(xt,{children:a("noResults")}),e.jsx(fs,{heading:a("title"),children:r.map(d=>e.jsxs(We,{value:`${d.parent?d.parent+" ":""}${d.title}`,onSelect:()=>l(d.href),children:[e.jsx("div",{className:"mr-2",children:d.icon}),e.jsx("span",{children:i(d.title)}),d.parent&&e.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:i(d.parent)})]},d.href))})]})]})]})}function Ye(){const{theme:s,setTheme:n}=xd();return m.useEffect(()=>{const t=s==="dark"?"#020817":"#fff",r=document.querySelector("meta[name='theme-color']");r&&r.setAttribute("content",t)},[s]),e.jsxs(e.Fragment,{children:[e.jsx(L,{size:"icon",variant:"ghost",className:"rounded-full",onClick:()=>n(s==="light"?"dark":"light"),children:s==="light"?e.jsx(qo,{size:20}):e.jsx(Ho,{size:20})}),e.jsx(Ml,{})]})}const Ul=m.forwardRef(({className:s,...n},t)=>e.jsx(Wr,{ref:t,className:y("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...n}));Ul.displayName=Wr.displayName;const Kl=m.forwardRef(({className:s,...n},t)=>e.jsx(Yr,{ref:t,className:y("aspect-square h-full w-full",s),...n}));Kl.displayName=Yr.displayName;const Bl=m.forwardRef(({className:s,...n},t)=>e.jsx(Jr,{ref:t,className:y("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...n}));Bl.displayName=Jr.displayName;function Je(){const s=qs(),n=Dr(),t=Uo(zd),{t:r}=I(["common"]),a=()=>{Dl(),n(Od()),s("/sign-in")},i=t?.email?.split("@")[0]||r("common:user"),l=i.substring(0,2).toUpperCase();return e.jsxs($s,{children:[e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:e.jsxs(Ul,{className:"h-8 w-8",children:[e.jsx(Kl,{src:t?.avatar_url,alt:i}),e.jsx(Bl,{children:l})]})})}),e.jsxs(Rs,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(Fn,{className:"font-normal",children:e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:i}),e.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:t?.email||r("common:defaultEmail")})]})}),e.jsx(rt,{}),e.jsx(_e,{asChild:!0,children:e.jsxs(Ys,{to:"/config/system",children:[r("common:settings"),e.jsx(vn,{children:"⌘S"})]})}),e.jsx(rt,{}),e.jsxs(_e,{onClick:a,children:[r("common:logout"),e.jsx(vn,{children:"⇧⌘Q"})]})]})]})}const J=Ko,rs=Zo,Q=Bo,W=m.forwardRef(({className:s,children:n,...t},r)=>e.jsxs(Qr,{ref:r,className:y("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...t,children:[n,e.jsx(Go,{asChild:!0,children:e.jsx(Tn,{className:"h-4 w-4 opacity-50"})})]}));W.displayName=Qr.displayName;const Gl=m.forwardRef(({className:s,...n},t)=>e.jsx(Xr,{ref:t,className:y("flex cursor-default items-center justify-center py-1",s),...n,children:e.jsx(Wo,{className:"h-4 w-4"})}));Gl.displayName=Xr.displayName;const Wl=m.forwardRef(({className:s,...n},t)=>e.jsx(Zr,{ref:t,className:y("flex cursor-default items-center justify-center py-1",s),...n,children:e.jsx(Tn,{className:"h-4 w-4"})}));Wl.displayName=Zr.displayName;const Y=m.forwardRef(({className:s,children:n,position:t="popper",...r},a)=>e.jsx(Yo,{children:e.jsxs(el,{ref:a,className:y("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:t,...r,children:[e.jsx(Gl,{}),e.jsx(Jo,{className:y("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),e.jsx(Wl,{})]})}));Y.displayName=el.displayName;const dm=m.forwardRef(({className:s,...n},t)=>e.jsx(sl,{ref:t,className:y("px-2 py-1.5 text-sm font-semibold",s),...n}));dm.displayName=sl.displayName;const A=m.forwardRef(({className:s,children:n,...t},r)=>e.jsxs(tl,{ref:r,className:y("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Qo,{children:e.jsx(ot,{className:"h-4 w-4"})})}),e.jsx(Xo,{children:n})]}));A.displayName=tl.displayName;const mm=m.forwardRef(({className:s,...n},t)=>e.jsx(al,{ref:t,className:y("-mx-1 my-1 h-px bg-muted",s),...n}));mm.displayName=al.displayName;function vs({className:s,classNames:n,showOutsideDays:t=!0,...r}){return e.jsx(ec,{showOutsideDays:t,className:y("p-3",s),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:y(kt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:y("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:y(kt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...n},components:{IconLeft:({className:a,...i})=>e.jsx(nl,{className:y("h-4 w-4",a),...i}),IconRight:({className:a,...i})=>e.jsx(Cn,{className:y("h-4 w-4",a),...i})},...r})}vs.displayName="Calendar";const os=tc,cs=ac,Ze=m.forwardRef(({className:s,align:n="center",sideOffset:t=4,...r},a)=>e.jsx(sc,{children:e.jsx(rl,{ref:a,align:n,sideOffset:t,className:y("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...r})}));Ze.displayName=rl.displayName;const Us={income:{main:"hsl(var(--primary))",gradient:{start:"hsl(var(--primary))",end:"transparent"}},commission:{main:"hsl(var(--secondary))",gradient:{start:"hsl(var(--secondary))",end:"transparent"}}},At=s=>(s/100).toFixed(2),um=({active:s,payload:n,label:t})=>{const{t:r}=I();return s&&n&&n.length?e.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-sm",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:t}),n.map((a,i)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:a.color}}),e.jsxs("span",{className:"text-muted-foreground",children:[r(a.name),":"]}),e.jsx("span",{className:"font-medium",children:a.name.includes(r("dashboard:overview.amount"))?`¥${At(a.value)}`:r("dashboard:overview.transactions",{count:a.value})})]},i))]}):null},xm=[{value:"7d",label:"dashboard:overview.last7Days"},{value:"30d",label:"dashboard:overview.last30Days"},{value:"90d",label:"dashboard:overview.last90Days"},{value:"180d",label:"dashboard:overview.last180Days"},{value:"365d",label:"dashboard:overview.lastYear"},{value:"custom",label:"dashboard:overview.customRange"}],hm=(s,n)=>{const t=new Date;if(s==="custom"&&n)return{startDate:n.from,endDate:n.to};let r;switch(s){case"7d":r=Cs(t,7);break;case"30d":r=Cs(t,30);break;case"90d":r=Cs(t,90);break;case"180d":r=Cs(t,180);break;case"365d":r=Cs(t,365);break;default:r=Cs(t,30)}return{startDate:r,endDate:t}};function gm(){const[s,n]=m.useState("amount"),[t,r]=m.useState("30d"),[a,i]=m.useState({from:Cs(new Date,7),to:new Date}),{t:l}=I(),{startDate:d,endDate:u}=hm(t,a),{data:o}=ne({queryKey:["orderStat",{start_date:Le(d,"yyyy-MM-dd"),end_date:Le(u,"yyyy-MM-dd")}],queryFn:async()=>{const{data:c}=await ka.getOrderStat({start_date:Le(d,"yyyy-MM-dd"),end_date:Le(u,"yyyy-MM-dd")});return c},refetchInterval:3e4});return e.jsxs(Re,{children:[e.jsx(Fe,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Ge,{children:l("dashboard:overview.title")}),e.jsxs(zs,{children:[o?.summary.start_date," ",l("dashboard:overview.to")," ",o?.summary.end_date]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsxs(J,{value:t,onValueChange:c=>r(c),children:[e.jsx(W,{className:"w-[120px]",children:e.jsx(Q,{placeholder:l("dashboard:overview.selectTimeRange")})}),e.jsx(Y,{children:xm.map(c=>e.jsx(A,{value:c.value,children:l(c.label)},c.value))})]}),t==="custom"&&e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(G,{variant:"outline",className:y("min-w-0 justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:a?.from?a.to?e.jsxs(e.Fragment,{children:[Le(a.from,"yyyy-MM-dd")," -"," ",Le(a.to,"yyyy-MM-dd")]}):Le(a.from,"yyyy-MM-dd"):l("dashboard:overview.selectDate")})]})}),e.jsx(Ze,{className:"w-auto p-0",align:"end",children:e.jsx(vs,{mode:"range",defaultMonth:a?.from,selected:{from:a?.from,to:a?.to},onSelect:c=>{c?.from&&c?.to&&i({from:c.from,to:c.to})},numberOfMonths:2})})]})]}),e.jsx(Lt,{value:s,onValueChange:c=>n(c),children:e.jsxs(dt,{children:[e.jsx(Xe,{value:"amount",children:l("dashboard:overview.amount")}),e.jsx(Xe,{value:"count",children:l("dashboard:overview.count")})]})})]})]})}),e.jsxs(Ie,{children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:l("dashboard:overview.totalIncome")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",At(o?.summary?.paid_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:l("dashboard:overview.totalTransactions",{count:o?.summary?.paid_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[l("dashboard:overview.avgOrderAmount")," ¥",At(o?.summary?.avg_paid_amount||0)]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:l("dashboard:overview.totalCommission")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",At(o?.summary?.commission_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:l("dashboard:overview.totalTransactions",{count:o?.summary?.commission_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[l("dashboard:overview.commissionRate")," ",o?.summary?.commission_rate.toFixed(2)||0,"%"]})]})]}),e.jsx("div",{className:"h-[400px] w-full",children:e.jsx(nc,{width:"100%",height:"100%",children:e.jsxs(rc,{data:o?.list||[],margin:{top:20,right:20,left:0,bottom:0},children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"incomeGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:Us.income.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:Us.income.gradient.end,stopOpacity:.1})]}),e.jsxs("linearGradient",{id:"commissionGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:Us.commission.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:Us.commission.gradient.end,stopOpacity:.1})]})]}),e.jsx(lc,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:c=>Le(new Date(c),"MM-dd",{locale:dc})}),e.jsx(ic,{axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:c=>s==="amount"?`¥${At(c)}`:l("dashboard:overview.transactions",{count:c})}),e.jsx(oc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.3}),e.jsx(cc,{content:e.jsx(um,{})}),s==="amount"?e.jsxs(e.Fragment,{children:[e.jsx(Zn,{type:"monotone",dataKey:"paid_total",name:l("dashboard:overview.orderAmount"),stroke:Us.income.main,fill:"url(#incomeGradient)",strokeWidth:2}),e.jsx(Zn,{type:"monotone",dataKey:"commission_total",name:l("dashboard:overview.commissionAmount"),stroke:Us.commission.main,fill:"url(#commissionGradient)",strokeWidth:2})]}):e.jsxs(e.Fragment,{children:[e.jsx(er,{dataKey:"paid_count",name:l("dashboard:overview.orderCount"),fill:Us.income.main,radius:[4,4,0,0],maxBarSize:40}),e.jsx(er,{dataKey:"commission_count",name:l("dashboard:overview.commissionCount"),fill:Us.commission.main,radius:[4,4,0,0],maxBarSize:40})]})]})})})]})]})}function ve({className:s,...n}){return e.jsx("div",{className:y("animate-pulse rounded-md bg-primary/10",s),...n})}function fm(){return e.jsxs(Re,{children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(ve,{className:"h-4 w-[120px]"}),e.jsx(ve,{className:"h-4 w-4"})]}),e.jsxs(Ie,{children:[e.jsx(ve,{className:"h-8 w-[140px] mb-2"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-4 w-4"}),e.jsx(ve,{className:"h-4 w-[100px]"})]})]})]})}function pm(){return e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:Array.from({length:8}).map((s,n)=>e.jsx(fm,{},n))})}var le=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.CANCELLED=2]="CANCELLED",s[s.COMPLETED=3]="COMPLETED",s[s.DISCOUNTED=4]="DISCOUNTED",s))(le||{});const Mt={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},Ot={0:"yellow-500",1:"blue-500",2:"red-500",3:"green-500",4:"green-500"};var Ss=(s=>(s[s.NEW=1]="NEW",s[s.RENEWAL=2]="RENEWAL",s[s.UPGRADE=3]="UPGRADE",s[s.RESET_FLOW=4]="RESET_FLOW",s))(Ss||{}),Ne=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.VALID=2]="VALID",s[s.INVALID=3]="INVALID",s))(Ne||{});const oa={0:"待确认",1:"发放中",2:"有效",3:"无效"},ca={0:"yellow-500",1:"blue-500",2:"green-500",3:"red-500"};var qe=(s=>(s.MONTH_PRICE="month_price",s.QUARTER_PRICE="quarter_price",s.HALF_YEAR_PRICE="half_year_price",s.YEAR_PRICE="year_price",s.TWO_YEAR_PRICE="two_year_price",s.THREE_YEAR_PRICE="three_year_price",s.ONETIME_PRICE="onetime_price",s.RESET_PRICE="reset_price",s))(qe||{});const jm={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"};var ce=(s=>(s.Shadowsocks="shadowsocks",s.Vmess="vmess",s.Trojan="trojan",s.Hysteria="hysteria",s.Vless="vless",s.Tuic="tuic",s.Socks="socks",s.Naive="naive",s.Http="http",s.Mieru="mieru",s.AnyTLS="anytls",s))(ce||{});const js=[{type:"shadowsocks",label:"Shadowsocks"},{type:"vmess",label:"VMess"},{type:"trojan",label:"Trojan"},{type:"hysteria",label:"Hysteria"},{type:"vless",label:"VLess"},{type:"tuic",label:"TUIC"},{type:"socks",label:"SOCKS"},{type:"naive",label:"Naive"},{type:"http",label:"HTTP"},{type:"mieru",label:"Mieru"},{type:"anytls",label:"AnyTLS"}],is={shadowsocks:"#489851",vmess:"#CB3180",trojan:"#EBB749",hysteria:"#5684e6",vless:"#1a1a1a",tuic:"#00C853",socks:"#2196F3",naive:"#9C27B0",http:"#FF5722",mieru:"#4CAF50",anytls:"#7E57C2"};var hs=(s=>(s[s.AMOUNT=1]="AMOUNT",s[s.PERCENTAGE=2]="PERCENTAGE",s))(hs||{});const vm={1:"按金额优惠",2:"按比例优惠"};var Ws=(s=>(s[s.OPENING=0]="OPENING",s[s.CLOSED=1]="CLOSED",s))(Ws||{}),Qe=(s=>(s[s.LOW=0]="LOW",s[s.MIDDLE=1]="MIDDLE",s[s.HIGH=2]="HIGH",s))(Qe||{}),Wt=(s=>(s.MONTH="monthly",s.QUARTER="quarterly",s.HALF_YEAR="half_yearly",s.YEAR="yearly",s.TWO_YEAR="two_yearly",s.THREE_YEAR="three_yearly",s.ONETIME="onetime",s.RESET="reset_traffic",s))(Wt||{});function Ks({title:s,value:n,icon:t,trend:r,description:a,onClick:i,highlight:l,className:d}){return e.jsxs(Re,{className:y("transition-colors",i&&"cursor-pointer hover:bg-muted/50",l&&"border-primary/50",d),onClick:i,children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(Ge,{className:"text-sm font-medium",children:s}),t]}),e.jsxs(Ie,{children:[e.jsx("div",{className:"text-2xl font-bold",children:n}),r?e.jsxs("div",{className:"flex items-center pt-1",children:[e.jsx(hc,{className:y("h-4 w-4",r.isPositive?"text-emerald-500":"text-red-500")}),e.jsxs("span",{className:y("ml-1 text-xs",r.isPositive?"text-emerald-500":"text-red-500"),children:[r.isPositive?"+":"-",Math.abs(r.value),"%"]}),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:r.label})]}):e.jsx("p",{className:"text-xs text-muted-foreground",children:a})]})]})}function bm({className:s}){const n=qs(),{t}=I(),{data:r,isLoading:a}=ne({queryKey:["dashboardStats"],queryFn:async()=>(await ka.getStatsData()).data,refetchInterval:1e3*60*5});if(a||!r)return e.jsx(pm,{});const i=()=>{const l=new URLSearchParams;l.set("commission_status",Ne.PENDING.toString()),l.set("status",le.COMPLETED.toString()),l.set("commission_balance","gt:0"),n(`/finance/order?${l.toString()}`)};return e.jsxs("div",{className:y("grid gap-4 md:grid-cols-2 lg:grid-cols-4",s),children:[e.jsx(Ks,{title:t("dashboard:stats.todayIncome"),value:Ms(r.todayIncome),icon:e.jsx(mc,{className:"h-4 w-4 text-emerald-500"}),trend:{value:r.dayIncomeGrowth,label:t("dashboard:stats.vsYesterday"),isPositive:r.dayIncomeGrowth>0}}),e.jsx(Ks,{title:t("dashboard:stats.monthlyIncome"),value:Ms(r.currentMonthIncome),icon:e.jsx(Dn,{className:"h-4 w-4 text-blue-500"}),trend:{value:r.monthIncomeGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:r.monthIncomeGrowth>0}}),e.jsx(Ks,{title:t("dashboard:stats.pendingTickets"),value:r.ticketPendingTotal,icon:e.jsx(uc,{className:y("h-4 w-4",r.ticketPendingTotal>0?"text-orange-500":"text-muted-foreground")}),description:r.ticketPendingTotal>0?t("dashboard:stats.hasPendingTickets"):t("dashboard:stats.noPendingTickets"),onClick:()=>n("/user/ticket"),highlight:r.ticketPendingTotal>0}),e.jsx(Ks,{title:t("dashboard:stats.pendingCommission"),value:r.commissionPendingTotal,icon:e.jsx(xc,{className:y("h-4 w-4",r.commissionPendingTotal>0?"text-blue-500":"text-muted-foreground")}),description:r.commissionPendingTotal>0?t("dashboard:stats.hasPendingCommission"):t("dashboard:stats.noPendingCommission"),onClick:i,highlight:r.commissionPendingTotal>0}),e.jsx(Ks,{title:t("dashboard:stats.monthlyNewUsers"),value:r.currentMonthNewUsers,icon:e.jsx(va,{className:"h-4 w-4 text-blue-500"}),trend:{value:r.userGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:r.userGrowth>0}}),e.jsx(Ks,{title:t("dashboard:stats.totalUsers"),value:r.totalUsers,icon:e.jsx(va,{className:"h-4 w-4 text-muted-foreground"}),description:t("dashboard:stats.activeUsers",{count:r.activeUsers})}),e.jsx(Ks,{title:t("dashboard:stats.monthlyUpload"),value:Oe(r.monthTraffic.upload),icon:e.jsx(Ct,{className:"h-4 w-4 text-emerald-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(r.todayTraffic.upload)})}),e.jsx(Ks,{title:t("dashboard:stats.monthlyDownload"),value:Oe(r.monthTraffic.download),icon:e.jsx(ba,{className:"h-4 w-4 text-blue-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(r.todayTraffic.download)})})]})}const lt=m.forwardRef(({className:s,children:n,...t},r)=>e.jsxs(ll,{ref:r,className:y("relative overflow-hidden",s),...t,children:[e.jsx(gc,{className:"h-full w-full rounded-[inherit]",children:n}),e.jsx(Da,{}),e.jsx(fc,{})]}));lt.displayName=ll.displayName;const Da=m.forwardRef(({className:s,orientation:n="vertical",...t},r)=>e.jsx(il,{ref:r,orientation:n,className:y("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...t,children:e.jsx(pc,{className:"relative flex-1 rounded-full bg-border"})}));Da.displayName=il.displayName;const bn={today:{getValue:()=>{const s=vc();return{start:s,end:bc(s,1)}}},last7days:{getValue:()=>{const s=new Date;return{start:Cs(s,7),end:s}}},last30days:{getValue:()=>{const s=new Date;return{start:Cs(s,30),end:s}}},custom:{getValue:()=>null}};function hr({selectedRange:s,customDateRange:n,onRangeChange:t,onCustomRangeChange:r}){const{t:a}=I(),i={today:a("dashboard:trafficRank.today"),last7days:a("dashboard:trafficRank.last7days"),last30days:a("dashboard:trafficRank.last30days"),custom:a("dashboard:trafficRank.customRange")};return e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[e.jsxs(J,{value:s,onValueChange:t,children:[e.jsx(W,{className:"w-[120px]",children:e.jsx(Q,{placeholder:a("dashboard:trafficRank.selectTimeRange")})}),e.jsx(Y,{position:"popper",className:"z-50",children:Object.entries(bn).map(([l])=>e.jsx(A,{value:l,children:i[l]},l))})]}),s==="custom"&&e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(G,{variant:"outline",className:y("min-w-0 justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:n?.from?n.to?e.jsxs(e.Fragment,{children:[Le(n.from,"yyyy-MM-dd")," -"," ",Le(n.to,"yyyy-MM-dd")]}):Le(n.from,"yyyy-MM-dd"):e.jsx("span",{children:a("dashboard:trafficRank.selectDateRange")})})]})}),e.jsx(Ze,{className:"w-auto p-0",align:"end",children:e.jsx(vs,{mode:"range",defaultMonth:n?.from,selected:{from:n?.from,to:n?.to},onSelect:l=>{l?.from&&l?.to&&r({from:l.from,to:l.to})},numberOfMonths:2})})]})]})}const vt=s=>`${(s/1024/1024/1024).toFixed(2)} GB`;function ym({className:s}){const{t:n}=I(),[t,r]=m.useState("today"),[a,i]=m.useState({from:Cs(new Date,7),to:new Date}),[l,d]=m.useState("today"),[u,o]=m.useState({from:Cs(new Date,7),to:new Date}),c=m.useMemo(()=>t==="custom"?{start:a.from,end:a.to}:bn[t].getValue(),[t,a]),h=m.useMemo(()=>l==="custom"?{start:u.from,end:u.to}:bn[l].getValue(),[l,u]),{data:S}=ne({queryKey:["nodeTrafficRank",c.start,c.end],queryFn:()=>ka.getNodeTrafficData({type:"node",start_time:ke.round(c.start.getTime()/1e3),end_time:ke.round(c.end.getTime()/1e3)}),refetchInterval:3e4}),{data:T}=ne({queryKey:["userTrafficRank",h.start,h.end],queryFn:()=>ka.getNodeTrafficData({type:"user",start_time:ke.round(h.start.getTime()/1e3),end_time:ke.round(h.end.getTime()/1e3)}),refetchInterval:3e4});return e.jsxs("div",{className:y("grid gap-4 md:grid-cols-2",s),children:[e.jsxs(Re,{children:[e.jsx(Fe,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(Ge,{className:"flex items-center text-base font-medium",children:[e.jsx(jc,{className:"mr-2 h-4 w-4"}),n("dashboard:trafficRank.nodeTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(hr,{selectedRange:t,customDateRange:a,onRangeChange:r,onCustomRangeChange:i}),e.jsx(sr,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(Ie,{className:"flex-1",children:S?.data?e.jsxs(lt,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:S.data.map(C=>e.jsx(pe,{delayDuration:200,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:C.name}),e.jsxs("span",{className:y("ml-2 flex items-center text-xs font-medium",C.change>=0?"text-green-600":"text-red-600"),children:[C.change>=0?e.jsx(un,{className:"mr-1 h-3 w-3"}):e.jsx(xn,{className:"mr-1 h-3 w-3"}),Math.abs(C.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${C.value/S.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:vt(C.value)})]})]})})}),e.jsx(oe,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[n("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(C.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[n("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(C.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[n("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:y("font-medium",C.change>=0?"text-green-600":"text-red-600"),children:[C.change>=0?"+":"",C.change,"%"]})]})})]})},C.id))}),e.jsx(Da,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:n("common:loading")})})})]}),e.jsxs(Re,{children:[e.jsx(Fe,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(Ge,{className:"flex items-center text-base font-medium",children:[e.jsx(va,{className:"mr-2 h-4 w-4"}),n("dashboard:trafficRank.userTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(hr,{selectedRange:l,customDateRange:u,onRangeChange:d,onCustomRangeChange:o}),e.jsx(sr,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(Ie,{className:"flex-1",children:T?.data?e.jsxs(lt,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:T.data.map(C=>e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:C.name}),e.jsxs("span",{className:y("ml-2 flex items-center text-xs font-medium",C.change>=0?"text-green-600":"text-red-600"),children:[C.change>=0?e.jsx(un,{className:"mr-1 h-3 w-3"}):e.jsx(xn,{className:"mr-1 h-3 w-3"}),Math.abs(C.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${C.value/T.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:vt(C.value)})]})]})})}),e.jsx(oe,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[n("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(C.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[n("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(C.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[n("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:y("font-medium",C.change>=0?"text-green-600":"text-red-600"),children:[C.change>=0?"+":"",C.change,"%"]})]})})]})},C.id))}),e.jsx(Da,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:n("common:loading")})})})]})]})}const Nm=it("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/10",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function U({className:s,variant:n,...t}){return e.jsx("div",{className:y(Nm({variant:n}),s),...t})}const ga=m.forwardRef(({className:s,value:n,...t},r)=>e.jsx(ol,{ref:r,className:y("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...t,children:e.jsx(yc,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(n||0)}%)`}})}));ga.displayName=ol.displayName;const In=m.forwardRef(({className:s,...n},t)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:t,className:y("w-full caption-bottom text-sm",s),...n})}));In.displayName="Table";const Vn=m.forwardRef(({className:s,...n},t)=>e.jsx("thead",{ref:t,className:y("[&_tr]:border-b",s),...n}));Vn.displayName="TableHeader";const Mn=m.forwardRef(({className:s,...n},t)=>e.jsx("tbody",{ref:t,className:y("[&_tr:last-child]:border-0",s),...n}));Mn.displayName="TableBody";const _m=m.forwardRef(({className:s,...n},t)=>e.jsx("tfoot",{ref:t,className:y("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s),...n}));_m.displayName="TableFooter";const Bs=m.forwardRef(({className:s,...n},t)=>e.jsx("tr",{ref:t,className:y("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",s),...n}));Bs.displayName="TableRow";const On=m.forwardRef(({className:s,...n},t)=>e.jsx("th",{ref:t,className:y("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...n}));On.displayName="TableHead";const wt=m.forwardRef(({className:s,...n},t)=>e.jsx("td",{ref:t,className:y("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...n}));wt.displayName="TableCell";const wm=m.forwardRef(({className:s,...n},t)=>e.jsx("caption",{ref:t,className:y("mt-4 text-sm text-muted-foreground",s),...n}));wm.displayName="TableCaption";function zn({table:s}){const[n,t]=m.useState(""),{t:r}=I("common");m.useEffect(()=>{t((s.getState().pagination.pageIndex+1).toString())},[s.getState().pagination.pageIndex]);const a=i=>{const l=parseInt(i);!isNaN(l)&&l>=1&&l<=s.getPageCount()?s.setPageIndex(l-1):t((s.getState().pagination.pageIndex+1).toString())};return e.jsxs("div",{className:"flex flex-col-reverse gap-4 px-2 py-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("div",{className:"flex-1 text-sm text-muted-foreground",children:r("table.pagination.selected",{selected:s.getFilteredSelectedRowModel().rows.length,total:s.getFilteredRowModel().rows.length})}),e.jsxs("div",{className:"flex flex-col-reverse items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:r("table.pagination.itemsPerPage")}),e.jsxs(J,{value:`${s.getState().pagination.pageSize}`,onValueChange:i=>{s.setPageSize(Number(i))},children:[e.jsx(W,{className:"h-8 w-[70px]",children:e.jsx(Q,{placeholder:s.getState().pagination.pageSize})}),e.jsx(Y,{side:"top",children:[10,20,30,40,50,100,500].map(i=>e.jsx(A,{value:`${i}`,children:i},i))})]})]}),e.jsxs("div",{className:"flex items-center justify-center space-x-2 text-sm font-medium",children:[e.jsx("span",{children:r("table.pagination.page")}),e.jsx(D,{type:"text",value:n,onChange:i=>t(i.target.value),onBlur:i=>a(i.target.value),onKeyDown:i=>{i.key==="Enter"&&a(i.currentTarget.value)},className:"h-8 w-[50px] text-center"}),e.jsx("span",{children:r("table.pagination.pageOf",{total:s.getPageCount()})})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(L,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(0),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.firstPage")}),e.jsx(Nc,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.previousPage")}),e.jsx(nl,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.nextPage")}),e.jsx(Cn,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(s.getPageCount()-1),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.lastPage")}),e.jsx(_c,{className:"h-4 w-4"})]})]})]})]})}function xs({table:s,toolbar:n,draggable:t=!1,onDragStart:r,onDragEnd:a,onDragOver:i,onDragLeave:l,onDrop:d,showPagination:u=!0,isLoading:o=!1}){const{t:c}=I("common"),h=m.useRef(null),S=s.getAllColumns().filter(_=>_.getIsPinned()==="left"),T=s.getAllColumns().filter(_=>_.getIsPinned()==="right"),C=_=>S.slice(0,_).reduce((w,V)=>w+(V.getSize()??0),0),f=_=>T.slice(_+1).reduce((w,V)=>w+(V.getSize()??0),0);return e.jsxs("div",{className:"space-y-4",children:[typeof n=="function"?n(s):n,e.jsx("div",{ref:h,className:"relative overflow-auto rounded-md border bg-card",children:e.jsx("div",{className:"overflow-auto",children:e.jsxs(In,{children:[e.jsx(Vn,{children:s.getHeaderGroups().map(_=>e.jsx(Bs,{className:"hover:bg-transparent",children:_.headers.map((w,V)=>{const F=w.column.getIsPinned()==="left",g=w.column.getIsPinned()==="right",b=F?C(S.indexOf(w.column)):void 0,k=g?f(T.indexOf(w.column)):void 0;return e.jsx(On,{colSpan:w.colSpan,style:{width:w.getSize(),...F&&{left:b},...g&&{right:k}},className:y("h-11 bg-card px-4 text-muted-foreground",(F||g)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",F&&"before:right-0",g&&"before:left-0"]),children:w.isPlaceholder?null:ya(w.column.columnDef.header,w.getContext())},w.id)})},_.id))}),e.jsx(Mn,{children:s.getRowModel().rows?.length?s.getRowModel().rows.map((_,w)=>e.jsx(Bs,{"data-state":_.getIsSelected()&&"selected",className:"hover:bg-muted/50",draggable:t,onDragStart:V=>r?.(V,w),onDragEnd:a,onDragOver:i,onDragLeave:l,onDrop:V=>d?.(V,w),children:_.getVisibleCells().map((V,F)=>{const g=V.column.getIsPinned()==="left",b=V.column.getIsPinned()==="right",k=g?C(S.indexOf(V.column)):void 0,O=b?f(T.indexOf(V.column)):void 0;return e.jsx(wt,{style:{width:V.column.getSize(),...g&&{left:k},...b&&{right:O}},className:y("bg-card",(g||b)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",g&&"before:right-0",b&&"before:left-0"]),children:ya(V.column.columnDef.cell,V.getContext())},V.id)})},_.id)):e.jsx(Bs,{children:e.jsx(wt,{colSpan:s.getAllColumns().length,className:"h-24 text-center",children:c("table.noData")})})})]})})}),u&&e.jsx(zn,{table:s})]})}const fa=s=>{if(!s)return"";let n;if(typeof s=="string"){if(n=parseInt(s),isNaN(n))return s}else n=s;return(n.toString().length===10?new Date(n*1e3):new Date(n)).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})},zt=cl(),$t=cl();function da({data:s,isLoading:n,searchKeyword:t,selectedLevel:r,total:a,currentPage:i,pageSize:l,onViewDetail:d,onPageChange:u}){const{t:o}=I(),c=T=>{switch(T.toLowerCase()){case"info":return e.jsx(Ht,{className:"h-4 w-4 text-blue-500"});case"warning":return e.jsx(Ut,{className:"h-4 w-4 text-yellow-500"});case"error":return e.jsx(gn,{className:"h-4 w-4 text-red-500"});default:return e.jsx(Ht,{className:"h-4 w-4 text-slate-500"})}},h=m.useMemo(()=>[zt.accessor("level",{id:"level",header:()=>o("dashboard:systemLog.level"),size:80,cell:({getValue:T,row:C})=>{const f=T();return e.jsxs("div",{className:"flex items-center gap-1",children:[c(f),e.jsx("span",{className:y(f.toLowerCase()==="error"&&"text-red-600",f.toLowerCase()==="warning"&&"text-yellow-600",f.toLowerCase()==="info"&&"text-blue-600"),children:f})]})}}),zt.accessor("created_at",{id:"created_at",header:()=>o("dashboard:systemLog.time"),size:160,cell:({getValue:T})=>fa(T())}),zt.accessor(T=>T.title||T.message||"",{id:"title",header:()=>o("dashboard:systemLog.logTitle"),cell:({getValue:T})=>e.jsx("span",{className:"inline-block max-w-[300px] truncate",children:T()})}),zt.accessor("method",{id:"method",header:()=>o("dashboard:systemLog.method"),size:100,cell:({getValue:T})=>{const C=T();return C?e.jsx(U,{variant:"outline",className:y(C==="GET"&&"border-blue-200 bg-blue-50 text-blue-700",C==="POST"&&"border-green-200 bg-green-50 text-green-700",C==="PUT"&&"border-amber-200 bg-amber-50 text-amber-700",C==="DELETE"&&"border-red-200 bg-red-50 text-red-700"),children:C}):null}}),zt.display({id:"actions",header:()=>o("dashboard:systemLog.action"),size:80,cell:({row:T})=>e.jsx(G,{variant:"ghost",size:"sm",onClick:()=>d(T.original),"aria-label":o("dashboard:systemLog.viewDetail"),children:e.jsx(hn,{className:"h-4 w-4"})})})],[o,d]),S=ss({data:s,columns:h,getCoreRowModel:ts(),getPaginationRowModel:us(),pageCount:Math.ceil(a/l),manualPagination:!0,state:{pagination:{pageIndex:i-1,pageSize:l}},onPaginationChange:T=>{if(typeof T=="function"){const C=T({pageIndex:i-1,pageSize:l});u(C.pageIndex+1)}else u(T.pageIndex+1)}});return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(xs,{table:S,showPagination:!1,isLoading:n}),e.jsx(zn,{table:S}),(t||r&&r!=="all")&&e.jsx("div",{className:"text-center text-sm text-muted-foreground",children:t&&r&&r!=="all"?o("dashboard:systemLog.filter.searchAndLevel",{keyword:t,level:r,count:a}):t?o("dashboard:systemLog.filter.searchOnly",{keyword:t,count:a}):o("dashboard:systemLog.filter.levelOnly",{level:r,count:a})})]})}function Cm(){const{t:s}=I(),[n,t]=m.useState(0),[r,a]=m.useState(!1),[i,l]=m.useState(1),[d]=m.useState(10),[u,o]=m.useState(null),[c,h]=m.useState(!1),[S,T]=m.useState(!1),[C,f]=m.useState(1),[_]=m.useState(10),[w,V]=m.useState(null),[F,g]=m.useState(!1),[b,k]=m.useState(""),[O,R]=m.useState(""),[K,ae]=m.useState("all"),[ee,te]=m.useState(!1),[H,E]=m.useState(0),[X,Ns]=m.useState("all"),[De,ie]=m.useState(1e3),[_s,Is]=m.useState(!1),[Xs,Rt]=m.useState(null),[ea,Et]=m.useState(!1);m.useEffect(()=>{const B=setTimeout(()=>{R(b),b!==O&&f(1)},500);return()=>clearTimeout(B)},[b]);const{data:Hs,isLoading:Xa,refetch:se,isRefetching:je}=ne({queryKey:["systemStatus",n],queryFn:async()=>(await he.getSystemStatus()).data,refetchInterval:3e4}),{data:re,isLoading:Zs,refetch:vg,isRefetching:Bn}=ne({queryKey:["queueStats",n],queryFn:async()=>(await he.getQueueStats()).data,refetchInterval:3e4}),{data:Gn,isLoading:wi,refetch:Ci}=ne({queryKey:["failedJobs",i,d],queryFn:async()=>{const B=await he.getHorizonFailedJobs({current:i,page_size:d});return{data:B.data,total:B.total||0}},enabled:r}),{data:Wn,isLoading:sa,refetch:Si}=ne({queryKey:["systemLogs",C,_,K,O],queryFn:async()=>{const B={current:C,page_size:_};K&&K!=="all"&&(B.level=K),O.trim()&&(B.keyword=O.trim());const ws=await he.getSystemLog(B);return{data:ws.data,total:ws.total||0}},enabled:S}),Yn=Gn?.data||[],ki=Gn?.total||0,ta=Wn?.data||[],aa=Wn?.total||0,Ti=m.useMemo(()=>[$t.display({id:"failed_at",header:()=>s("dashboard:queue.details.time"),cell:({row:B})=>fa(B.original.failed_at)}),$t.display({id:"queue",header:()=>s("dashboard:queue.details.queue"),cell:({row:B})=>B.original.queue}),$t.display({id:"name",header:()=>s("dashboard:queue.details.name"),cell:({row:B})=>e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[150px] truncate",children:B.original.name})}),e.jsx(oe,{children:e.jsx("span",{children:B.original.name})})]})})}),$t.display({id:"exception",header:()=>s("dashboard:queue.details.exception"),cell:({row:B})=>e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[200px] truncate",children:B.original.exception.split(` -`)[0]})}),e.jsx(oe,{className:"max-w-[300px] whitespace-pre-wrap",children:e.jsx("span",{children:B.original.exception})})]})})}),$t.display({id:"actions",header:()=>s("dashboard:queue.details.action"),size:80,cell:({row:B})=>e.jsx(G,{variant:"ghost",size:"sm",onClick:()=>Ri(B.original),"aria-label":s("dashboard:queue.details.viewDetail"),children:e.jsx(hn,{className:"h-4 w-4"})})})],[s]),Jn=ss({data:Yn,columns:Ti,getCoreRowModel:ts(),getPaginationRowModel:us(),pageCount:Math.ceil(ki/d),manualPagination:!0,state:{pagination:{pageIndex:i-1,pageSize:d}},onPaginationChange:B=>{if(typeof B=="function"){const ws=B({pageIndex:i-1,pageSize:d});Qn(ws.pageIndex+1)}else Qn(B.pageIndex+1)}}),Di=()=>{t(B=>B+1)},Qn=B=>{l(B)},na=B=>{f(B)},Li=B=>{ae(B),f(1)},Pi=()=>{k(""),R(""),ae("all"),f(1)},ra=B=>{V(B),g(!0)},Ri=B=>{o(B),h(!0)},Ei=async()=>{try{const B=await he.getLogClearStats({days:H,level:X==="all"?void 0:X});Rt(B.data),Et(!0)}catch(B){console.error("Failed to get clear stats:",B),q.error(s("dashboard:systemLog.getStatsFailed"))}},Fi=async()=>{Is(!0);try{const{data:B}=await he.clearSystemLog({days:H,level:X==="all"?void 0:X,limit:De});B&&(q.success(s("dashboard:systemLog.clearSuccess",{count:B.cleared_count}),{duration:3e3}),te(!1),Et(!1),Rt(null),se())}catch(B){console.error("Failed to clear logs:",B),q.error(s("dashboard:systemLog.clearLogsFailed"))}finally{Is(!1)}};if(Xa||Zs)return e.jsx("div",{className:"flex items-center justify-center p-6",children:e.jsx(Na,{className:"h-6 w-6 animate-spin"})});const Ii=B=>B?e.jsx(dl,{className:"h-5 w-5 text-green-500"}):e.jsx(ml,{className:"h-5 w-5 text-red-500"});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs(Re,{children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(Ge,{className:"flex items-center gap-2",children:[e.jsx(wc,{className:"h-5 w-5"}),s("dashboard:queue.title")]}),e.jsx(zs,{children:s("dashboard:queue.status.description")})]}),e.jsx(G,{variant:"outline",size:"icon",onClick:Di,disabled:je||Bn,children:e.jsx(Za,{className:y("h-4 w-4",(je||Bn)&&"animate-spin")})})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[Ii(re?.status||!1),e.jsx("span",{className:"font-medium",children:s("dashboard:queue.status.running")})]}),e.jsx(U,{variant:re?.status?"secondary":"destructive",children:re?.status?s("dashboard:queue.status.normal"):s("dashboard:queue.status.abnormal")})]}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.status.waitTime",{seconds:re?.wait?.default||0})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.recentJobs")}),e.jsx("p",{className:"text-2xl font-bold",children:re?.recentJobs||0}),e.jsx(ga,{value:(re?.recentJobs||0)/(re?.periods?.recentJobs||1)*100,className:"h-1"})]})}),e.jsx(oe,{children:e.jsx("p",{children:s("dashboard:queue.details.statisticsPeriod",{hours:re?.periods?.recentJobs||0})})})]})}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.jobsPerMinute")}),e.jsx("p",{className:"text-2xl font-bold",children:re?.jobsPerMinute||0}),e.jsx(ga,{value:(re?.jobsPerMinute||0)/(re?.queueWithMaxThroughput?.throughput||1)*100,className:"h-1"})]})}),e.jsx(oe,{children:e.jsx("p",{children:s("dashboard:queue.details.maxThroughput",{value:re?.queueWithMaxThroughput?.throughput||0})})})]})})]})]})})]}),e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsxs(Ge,{className:"flex items-center gap-2",children:[e.jsx(Cc,{className:"h-5 w-5"}),s("dashboard:queue.jobDetails")]}),e.jsx(zs,{children:s("dashboard:queue.details.description")})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.failedJobs7Days")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cursor-pointer text-2xl font-bold text-destructive hover:underline",title:s("dashboard:queue.details.viewFailedJobs"),onClick:()=>a(!0),style:{userSelect:"none"},children:re?.failedJobs||0}),e.jsx(hn,{className:"h-4 w-4 cursor-pointer text-muted-foreground hover:text-destructive",onClick:()=>a(!0),"aria-label":s("dashboard:queue.details.viewFailedJobs")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("dashboard:queue.details.retentionPeriod",{hours:re?.periods?.failedJobs||0})})]}),e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.longestRunningQueue")}),e.jsxs("p",{className:"text-2xl font-bold",children:[re?.queueWithMaxRuntime?.runtime||0,"s"]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:re?.queueWithMaxRuntime?.name||"N/A"})]})]}),e.jsxs("div",{className:"rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.activeProcesses")}),e.jsxs("span",{className:"font-medium",children:[re?.processes||0," /"," ",(re?.processes||0)+(re?.pausedMasters||0)]})]}),e.jsx(ga,{value:(re?.processes||0)/((re?.processes||0)+(re?.pausedMasters||0))*100,className:"mt-2 h-1"})]})]})})]})]}),e.jsxs(Re,{children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(Ge,{className:"flex items-center gap-2",children:[e.jsx(tr,{className:"h-5 w-5"}),s("dashboard:systemLog.title")]}),e.jsx(zs,{children:s("dashboard:systemLog.description")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(G,{variant:"outline",onClick:()=>T(!0),children:s("dashboard:systemLog.viewAll")}),e.jsxs(G,{variant:"outline",onClick:()=>te(!0),className:"text-destructive hover:text-destructive",children:[e.jsx(ds,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.clearLogs")]})]})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-900 dark:bg-blue-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ht,{className:"h-5 w-5 text-blue-500"}),e.jsx("p",{className:"font-medium text-blue-700 dark:text-blue-300",children:s("dashboard:systemLog.tabs.info")})]}),e.jsx("p",{className:"text-2xl font-bold text-blue-700 dark:text-blue-300",children:Hs?.logs?.info||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-900 dark:bg-yellow-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ut,{className:"h-5 w-5 text-yellow-500"}),e.jsx("p",{className:"font-medium text-yellow-700 dark:text-yellow-300",children:s("dashboard:systemLog.tabs.warning")})]}),e.jsx("p",{className:"text-2xl font-bold text-yellow-700 dark:text-yellow-300",children:Hs?.logs?.warning||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-900 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gn,{className:"h-5 w-5 text-red-500"}),e.jsx("p",{className:"font-medium text-red-700 dark:text-red-300",children:s("dashboard:systemLog.tabs.error")})]}),e.jsx("p",{className:"text-2xl font-bold text-red-700 dark:text-red-300",children:Hs?.logs?.error||0})]})]}),Hs?.logs&&Hs.logs.total>0&&e.jsxs("div",{className:"mt-3 text-center text-sm text-muted-foreground",children:[s("dashboard:systemLog.totalLogs"),": ",Hs.logs.total]})]})})]}),e.jsx(ge,{open:r,onOpenChange:a,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:queue.details.failedJobsDetailTitle")})}),e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(xs,{table:Jn,showPagination:!1,isLoading:wi}),e.jsx(zn,{table:Jn}),Yn.length===0&&e.jsx("div",{className:"py-8 text-center text-muted-foreground",children:s("dashboard:queue.details.noFailedJobs")})]}),e.jsxs(Pe,{children:[e.jsxs(G,{variant:"outline",onClick:()=>Ci(),children:[e.jsx(Za,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh")]}),e.jsx(Gs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common:close")})})]})]})}),e.jsx(ge,{open:c,onOpenChange:h,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:queue.details.jobDetailTitle")})}),u&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.id")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:u.id})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.time")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.failed_at})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.queue")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.queue})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.connection")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:u.connection})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.name")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:u.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.exception")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-red-700 dark:text-red-300",children:u.exception})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.payload")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(u.payload),null,2)}catch{return u.payload}})()})})]})]}),e.jsx(Pe,{children:e.jsx(G,{variant:"outline",onClick:()=>h(!1),children:s("common:close")})})]})}),e.jsx(ge,{open:S,onOpenChange:T,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:systemLog.title")})}),e.jsxs(Lt,{value:K,onValueChange:Li,className:"w-full overflow-x-auto",children:[e.jsxs("div",{className:"mb-4 flex flex-col gap-2 p-1 md:flex-row md:items-center md:justify-between",children:[e.jsxs(dt,{className:"grid w-auto grid-cols-4",children:[e.jsxs(Xe,{value:"all",className:"flex items-center gap-2",children:[e.jsx(tr,{className:"h-4 w-4"}),s("dashboard:systemLog.tabs.all")]}),e.jsxs(Xe,{value:"info",className:"flex items-center gap-2",children:[e.jsx(Ht,{className:"h-4 w-4 text-blue-500"}),s("dashboard:systemLog.tabs.info")]}),e.jsxs(Xe,{value:"warning",className:"flex items-center gap-2",children:[e.jsx(Ut,{className:"h-4 w-4 text-yellow-500"}),s("dashboard:systemLog.tabs.warning")]}),e.jsxs(Xe,{value:"error",className:"flex items-center gap-2",children:[e.jsx(gn,{className:"h-4 w-4 text-red-500"}),s("dashboard:systemLog.tabs.error")]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(kn,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(D,{placeholder:s("dashboard:systemLog.search"),value:b,onChange:B=>k(B.target.value),className:"w-full md:w-64"})]})]}),e.jsx(Ts,{value:"all",className:"mt-0",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:O,selectedLevel:K,total:aa,currentPage:C,pageSize:_,onViewDetail:ra,onPageChange:na})}),e.jsx(Ts,{value:"info",className:"mt-0 overflow-x-auto",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:O,selectedLevel:K,total:aa,currentPage:C,pageSize:_,onViewDetail:ra,onPageChange:na})}),e.jsx(Ts,{value:"warning",className:"mt-0",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:O,selectedLevel:K,total:aa,currentPage:C,pageSize:_,onViewDetail:ra,onPageChange:na})}),e.jsx(Ts,{value:"error",className:"mt-0",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:O,selectedLevel:K,total:aa,currentPage:C,pageSize:_,onViewDetail:ra,onPageChange:na})})]}),e.jsxs(Pe,{children:[e.jsxs(G,{variant:"outline",onClick:()=>Si(),children:[e.jsx(Za,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh")]}),e.jsx(G,{variant:"outline",onClick:Pi,children:s("dashboard:systemLog.filter.reset")}),e.jsx(Gs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common:close")})})]})]})}),e.jsx(ge,{open:F,onOpenChange:g,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:systemLog.detailTitle")})}),w&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.level")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx("p",{className:"font-medium",children:w.level})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.time")}),e.jsx("p",{children:fa(w.created_at)||fa(w.updated_at)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.logTitle")}),e.jsx("div",{className:"whitespace-pre-wrap rounded-md bg-muted/50 p-3",children:w.title||w.message||""})]}),(w.host||w.ip)&&e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[w.host&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.host")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:w.host})]}),w.ip&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.ip")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:w.ip})]})]}),w.uri&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.uri")}),e.jsx("div",{className:"overflow-x-auto rounded-md bg-muted/50 p-3",children:e.jsx("code",{className:"text-sm",children:w.uri})})]}),w.method&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.method")}),e.jsx("div",{children:e.jsx(U,{variant:"outline",className:"text-base font-medium",children:w.method})})]}),w.data&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.requestData")}),e.jsx("div",{className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(w.data),null,2)}catch{return w.data}})()})})]}),w.context&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.exception")}),e.jsx("div",{className:"max-h-[250px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs text-red-700 dark:text-red-300",children:(()=>{try{const B=JSON.parse(w.context);if(B.exception){const ws=B.exception,ht=ws["\0*\0message"]||"",Vi=ws["\0*\0file"]||"",Mi=ws["\0*\0line"]||"";return`${ht} +import{r as d,j as e,t as Oi,c as zi,I as Jt,a as it,S as yn,u as qs,b as $i,d as Nn,R as wr,e as Cr,f as Ai,F as qi,C as Hi,L as Sr,T as kr,g as Tr,h as Ui,i as Ki,k as Bi,l as Gi,m as q,z as h,n as I,o as we,p as Ce,q as ne,s as Ds,v as ke,w as Wi,x as Yi,O as _n,y as Ji,A as Qi,B as Xi,D as Zi,E as eo,G as so,Q as to,H as ao,J as no,K as ro,P as lo,M as io,N as oo,U as co,V as mo,W as Dr,X as Lr,Y as Pa,Z as Ra,_ as wn,$ as ms,a0 as Ea,a1 as Fa,a2 as Pr,a3 as Rr,a4 as Er,a5 as Cn,a6 as Fr,a7 as uo,a8 as Ir,a9 as Vr,aa as Mr,ab as Or,ac as ot,ad as zr,ae as xo,af as $r,ag as Ar,ah as ho,ai as go,aj as fo,ak as po,al as jo,am as vo,an as bo,ao as yo,ap as No,aq as _o,ar as qr,as as wo,at as Co,au as Ys,av as Hr,aw as So,ax as ko,ay as Ur,az as Sn,aA as To,aB as Do,aC as Xn,aD as Lo,aE as Kr,aF as Po,aG as Br,aH as Ro,aI as Eo,aJ as Fo,aK as Io,aL as Vo,aM as Mo,aN as Gr,aO as Oo,aP as zo,aQ as $o,aR as es,aS as Ao,aT as kn,aU as qo,aV as Ho,aW as Wr,aX as Yr,aY as Jr,aZ as Uo,a_ as Ko,a$ as Bo,b0 as Qr,b1 as Go,b2 as Tn,b3 as Xr,b4 as Wo,b5 as Zr,b6 as Yo,b7 as el,b8 as Jo,b9 as sl,ba as tl,bb as Qo,bc as Xo,bd as al,be as Zo,bf as ec,bg as nl,bh as sc,bi as rl,bj as tc,bk as ac,bl as Cs,bm as Le,bn as ks,bo as nc,bp as rc,bq as lc,br as ic,bs as oc,bt as cc,bu as Zn,bv as er,bw as dc,bx as mc,by as Dn,bz as uc,bA as xc,bB as va,bC as Ct,bD as ba,bE as hc,bF as ll,bG as gc,bH as fc,bI as il,bJ as pc,bK as jc,bL as sr,bM as un,bN as xn,bO as vc,bP as bc,bQ as ol,bR as yc,bS as Nc,bT as _c,bU as ya,bV as hn,bW as ss,bX as Na,bY as wc,bZ as Za,b_ as Cc,b$ as tr,c0 as ds,c1 as Ht,c2 as Ut,c3 as gn,c4 as cl,c5 as ts,c6 as us,c7 as dl,c8 as ml,c9 as Sc,ca as kc,cb as Tc,cc as Dc,cd as Lc,ce as ul,cf as Pc,cg as Rc,ch as Be,ci as ar,cj as Ec,ck as xl,cl as hl,cm as gl,cn as fl,co as pl,cp as jl,cq as Fc,cr as Ic,cs as Vc,ct as Ia,cu as ct,cv as bs,cw as ys,cx as Mc,cy as Oc,cz as zc,cA as $c,cB as _a,cC as Ac,cD as qc,cE as Hc,cF as Uc,cG as fn,cH as Ln,cI as Pn,cJ as Kc,cK as Es,cL as Fs,cM as Va,cN as Bc,cO as wa,cP as Gc,cQ as nr,cR as vl,cS as rr,cT as Ca,cU as Wc,cV as Yc,cW as Jc,cX as Qc,cY as Xc,cZ as bl,c_ as Zc,c$ as ed,d0 as yl,d1 as pn,d2 as Nl,d3 as sd,d4 as jn,d5 as _l,d6 as td,d7 as Kt,d8 as Rn,d9 as ad,da as nd,db as lr,dc as wl,dd as rd,de as ld,df as id,dg as ir,dh as od,di as cd}from"./vendor.js";import"./index.js";var Ng=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _g(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function dd(s){if(s.__esModule)return s;var a=s.default;if(typeof a=="function"){var t=function r(){return this instanceof r?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};t.prototype=a.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var n=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return s[r]}})}),t}const md={theme:"system",setTheme:()=>null},Cl=d.createContext(md);function ud({children:s,defaultTheme:a="system",storageKey:t="vite-ui-theme",...r}){const[n,i]=d.useState(()=>localStorage.getItem(t)||a);d.useEffect(()=>{const o=window.document.documentElement;if(o.classList.remove("light","dark"),n==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";o.classList.add(x);return}o.classList.add(n)},[n]);const l={theme:n,setTheme:o=>{localStorage.setItem(t,o),i(o)}};return e.jsx(Cl.Provider,{...r,value:l,children:s})}const xd=()=>{const s=d.useContext(Cl);if(s===void 0)throw new Error("useTheme must be used within a ThemeProvider");return s},hd=function(){const a=typeof document<"u"&&document.createElement("link").relList;return a&&a.supports&&a.supports("modulepreload")?"modulepreload":"preload"}(),gd=function(s,a){return new URL(s,a).href},or={},ye=function(a,t,r){let n=Promise.resolve();if(t&&t.length>0){const l=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),x=o?.nonce||o?.getAttribute("nonce");n=Promise.allSettled(t.map(u=>{if(u=gd(u,r),u in or)return;or[u]=!0;const c=u.endsWith(".css"),m=c?'[rel="stylesheet"]':"";if(!!r)for(let S=l.length-1;S>=0;S--){const f=l[S];if(f.href===u&&(!c||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${m}`))return;const k=document.createElement("link");if(k.rel=c?"stylesheet":hd,c||(k.as="script"),k.crossOrigin="",k.href=u,x&&k.setAttribute("nonce",x),document.head.appendChild(k),c)return new Promise((S,f)=>{k.addEventListener("load",S),k.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(l){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=l,window.dispatchEvent(o),!o.defaultPrevented)throw l}return n.then(l=>{for(const o of l||[])o.status==="rejected"&&i(o.reason);return a().catch(i)})};function _(...s){return Oi(zi(s))}const Dt=it("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),L=d.forwardRef(({className:s,variant:a,size:t,asChild:r=!1,children:n,disabled:i,loading:l=!1,leftSection:o,rightSection:x,...u},c)=>{const m=r?yn:"button";return e.jsxs(m,{className:_(Dt({variant:a,size:t,className:s})),disabled:l||i,ref:c,...u,children:[(o&&l||!o&&!x&&l)&&e.jsx(Jt,{className:"mr-2 h-4 w-4 animate-spin"}),!l&&o&&e.jsx("div",{className:"mr-2",children:o}),n,!l&&x&&e.jsx("div",{className:"ml-2",children:x}),x&&l&&e.jsx(Jt,{className:"ml-2 h-4 w-4 animate-spin"})]})});L.displayName="Button";function gt({className:s,minimal:a=!1}){const t=qs(),r=$i(),n=r?.message||r?.statusText||"Unknown error occurred";return e.jsx("div",{className:_("h-svh w-full",s),children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[!a&&e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"500"}),e.jsxs("span",{className:"font-medium",children:["Oops! Something went wrong ",":')"]}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["We apologize for the inconvenience. ",e.jsx("br",{}),n]}),!a&&e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(L,{variant:"outline",onClick:()=>t(-1),children:"Go Back"}),e.jsx(L,{onClick:()=>t("/"),children:"Back to Home"})]})]})})}function cr(){const s=qs();return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"404"}),e.jsx("span",{className:"font-medium",children:"Oops! Page Not Found!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["It seems like the page you're looking for ",e.jsx("br",{}),"does not exist or might have been removed."]}),e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx(L,{variant:"outline",onClick:()=>s(-1),children:"Go Back"}),e.jsx(L,{onClick:()=>s("/"),children:"Back to Home"})]})]})})}function fd(){return e.jsx("div",{className:"h-svh",children:e.jsxs("div",{className:"m-auto flex h-full w-full flex-col items-center justify-center gap-2",children:[e.jsx("h1",{className:"text-[7rem] font-bold leading-tight",children:"503"}),e.jsx("span",{className:"font-medium",children:"Website is under maintenance!"}),e.jsxs("p",{className:"text-center text-muted-foreground",children:["The site is not available at the moment. ",e.jsx("br",{}),"We'll be back online shortly."]}),e.jsx("div",{className:"mt-6 flex gap-4",children:e.jsx(L,{variant:"outline",children:"Learn more"})})]})})}function pd(s){return typeof s>"u"}function jd(s){return s===null}function vd(s){return jd(s)||pd(s)}class bd{storage;prefixKey;constructor(a){this.storage=a.storage,this.prefixKey=a.prefixKey}getKey(a){return`${this.prefixKey}${a}`.toUpperCase()}set(a,t,r=null){const n=JSON.stringify({value:t,time:Date.now(),expire:r!==null?new Date().getTime()+r*1e3:null});this.storage.setItem(this.getKey(a),n)}get(a,t=null){const r=this.storage.getItem(this.getKey(a));if(!r)return{value:t,time:0};try{const n=JSON.parse(r),{value:i,time:l,expire:o}=n;return vd(o)||o>new Date().getTime()?{value:i,time:l}:(this.remove(a),{value:t,time:0})}catch{return this.remove(a),{value:t,time:0}}}remove(a){this.storage.removeItem(this.getKey(a))}clear(){this.storage.clear()}}function Sl({prefixKey:s="",storage:a=sessionStorage}){return new bd({prefixKey:s,storage:a})}const kl="Xboard_",yd=function(s={}){return Sl({prefixKey:s.prefixKey||"",storage:localStorage})},Nd=function(s={}){return Sl({prefixKey:s.prefixKey||"",storage:sessionStorage})},En=yd({prefixKey:kl});Nd({prefixKey:kl});const Tl="access_token";function Qt(){return En.get(Tl)}function Dl(){En.remove(Tl)}const dr=["/sign-in","/sign-in-2","/sign-up","/forgot-password","/otp"];function _d({children:s}){const a=qs(),t=Nn(),r=Qt();return d.useEffect(()=>{if(!r.value&&!dr.includes(t.pathname)){const n=encodeURIComponent(t.pathname+t.search);a(`/sign-in?redirect=${n}`)}},[r.value,t.pathname,t.search,a]),dr.includes(t.pathname)||r.value?e.jsx(e.Fragment,{children:s}):null}const Te=d.forwardRef(({className:s,orientation:a="horizontal",decorative:t=!0,...r},n)=>e.jsx(wr,{ref:n,decorative:t,orientation:a,className:_("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...r}));Te.displayName=wr.displayName;const wd=it("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ae=d.forwardRef(({className:s,...a},t)=>e.jsx(Cr,{ref:t,className:_(wd(),s),...a}));Ae.displayName=Cr.displayName;const Se=qi,Ll=d.createContext({}),b=({...s})=>e.jsx(Ll.Provider,{value:{name:s.name},children:e.jsx(Hi,{...s})}),Ma=()=>{const s=d.useContext(Ll),a=d.useContext(Pl),{getFieldState:t,formState:r}=Ai(),n=t(s.name,r);if(!s)throw new Error("useFormField should be used within ");const{id:i}=a;return{id:i,name:s.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...n}},Pl=d.createContext({}),j=d.forwardRef(({className:s,...a},t)=>{const r=d.useId();return e.jsx(Pl.Provider,{value:{id:r},children:e.jsx("div",{ref:t,className:_("space-y-2",s),...a})})});j.displayName="FormItem";const v=d.forwardRef(({className:s,...a},t)=>{const{error:r,formItemId:n}=Ma();return e.jsx(Ae,{ref:t,className:_(r&&"text-destructive",s),htmlFor:n,...a})});v.displayName="FormLabel";const N=d.forwardRef(({...s},a)=>{const{error:t,formItemId:r,formDescriptionId:n,formMessageId:i}=Ma();return e.jsx(yn,{ref:a,id:r,"aria-describedby":t?`${n} ${i}`:`${n}`,"aria-invalid":!!t,...s})});N.displayName="FormControl";const O=d.forwardRef(({className:s,...a},t)=>{const{formDescriptionId:r}=Ma();return e.jsx("p",{ref:t,id:r,className:_("text-[0.8rem] text-muted-foreground",s),...a})});O.displayName="FormDescription";const P=d.forwardRef(({className:s,children:a,...t},r)=>{const{error:n,formMessageId:i}=Ma(),l=n?String(n?.message):a;return l?e.jsx("p",{ref:r,id:i,className:_("text-[0.8rem] font-medium text-destructive",s),...t,children:l}):null});P.displayName="FormMessage";const Lt=Ui,dt=d.forwardRef(({className:s,...a},t)=>e.jsx(Sr,{ref:t,className:_("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s),...a}));dt.displayName=Sr.displayName;const Xe=d.forwardRef(({className:s,...a},t)=>e.jsx(kr,{ref:t,className:_("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s),...a}));Xe.displayName=kr.displayName;const Ts=d.forwardRef(({className:s,...a},t)=>e.jsx(Tr,{ref:t,className:_("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...a}));Ts.displayName=Tr.displayName;function xe(s=void 0,a="YYYY-MM-DD HH:mm:ss"){return s==null?"":(Math.floor(s).toString().length===10&&(s=s*1e3),Ki(s).format(a))}function Cd(s=void 0,a="YYYY-MM-DD"){return xe(s,a)}function yt(s){const a=typeof s=="string"?parseFloat(s):s;return isNaN(a)?"0.00":a.toFixed(2)}function Ms(s,a=!0){if(s==null)return a?"¥0.00":"0.00";const t=typeof s=="string"?parseFloat(s):s;if(isNaN(t))return a?"¥0.00":"0.00";const n=(t/100).toFixed(2).replace(/\.?0+$/,i=>i.includes(".")?".00":i);return a?`¥${n}`:n}function Sa(s){return new Promise(a=>{try{const t=document.createElement("button");t.style.position="fixed",t.style.left="-9999px",t.style.opacity="0",t.setAttribute("data-clipboard-text",s),document.body.appendChild(t);const r=new Bi(t);r.on("success",()=>{r.destroy(),document.body.removeChild(t),a(!0)}),r.on("error",n=>{console.error("Clipboard.js failed:",n),r.destroy(),document.body.removeChild(t),a(!1)}),t.click()}catch(t){console.error("copyToClipboard failed:",t),a(!1)}})}function Oe(s){const a=s/1024,t=a/1024,r=t/1024,n=r/1024;return n>=1?yt(n)+" TB":r>=1?yt(r)+" GB":t>=1?yt(t)+" MB":yt(a)+" KB"}const mr="i18nextLng";function Sd(){return console.log(localStorage.getItem(mr)),localStorage.getItem(mr)}function Rl(){Dl();const s=window.location.pathname,a=s&&!["/404","/sign-in"].includes(s),t=new URL(window.location.href),n=`${t.pathname.split("/")[1]?`/${t.pathname.split("/")[1]}`:""}#/sign-in`;window.location.href=n+(a?`?redirect=${s}`:"")}const kd=["/passport/auth/login","/passport/auth/token2Login","/passport/auth/register","/guest/comm/config","/passport/comm/sendEmailVerify","/passport/auth/forget"];function Td(){const s=window.settings?.base_url||"/";return s.endsWith("/")?s+"api/v2":s+"/api/v2"}const Nt=Gi.create({baseURL:Td(),timeout:12e3,headers:{"Content-Type":"application/json"}});Nt.interceptors.request.use(s=>{s.method?.toLowerCase()==="get"&&(s.params={...s.params,t:Date.now()});const a=Qt();if(!kd.includes(s.url?.split("?")[0]||"")){if(!a.value)return Rl(),Promise.reject({code:-1,message:"未登录"});s.headers.Authorization=a.value}return s.headers["Content-Language"]=Sd()||"zh-CN",s},s=>Promise.reject(s));Nt.interceptors.response.use(s=>s?.data||{code:-1,message:"未知错误"},s=>{const a=s.response?.status,t=s.response?.data?.message;return(a===401||a===403)&&Rl(),q.error(t||{401:"登录已过期",403:"没有权限",404:"资源或接口不存在"}[a]||"未知异常"),Promise.reject(s.response?.data||{data:null,code:-1,message:"未知错误"})});const M={get:(s,a)=>Nt.get(s,a),post:(s,a,t)=>Nt.post(s,a,t),put:(s,a,t)=>Nt.put(s,a,t),delete:(s,a)=>Nt.delete(s,a)},Dd="access_token";function Ld(s){En.set(Dd,s)}const et=window?.settings?.secure_path,ka={getStats:()=>M.get(et+"/monitor/api/stats"),getOverride:()=>M.get(et+"/stat/getOverride"),getOrderStat:s=>M.get(et+"/stat/getOrder",{params:s}),getStatsData:()=>M.get(et+"/stat/getStats"),getNodeTrafficData:s=>M.get(et+"/stat/getTrafficRank",{params:s}),getServerLastRank:()=>M.get(et+"/stat/getServerLastRank"),getServerYesterdayRank:()=>M.get(et+"/stat/getServerYesterdayRank")},Ft=window?.settings?.secure_path,Bt={getList:()=>M.get(Ft+"/theme/getThemes"),getConfig:s=>M.post(Ft+"/theme/getThemeConfig",{name:s}),updateConfig:(s,a)=>M.post(Ft+"/theme/saveThemeConfig",{name:s,config:a}),upload:s=>{const a=new FormData;return a.append("file",s),M.post(Ft+"/theme/upload",a,{headers:{"Content-Type":"multipart/form-data"}})},drop:s=>M.post(Ft+"/theme/delete",{name:s})},ft=window?.settings?.secure_path,at={getList:()=>M.get(ft+"/server/manage/getNodes"),save:s=>M.post(ft+"/server/manage/save",s),drop:s=>M.post(ft+"/server/manage/drop",s),copy:s=>M.post(ft+"/server/manage/copy",s),update:s=>M.post(ft+"/server/manage/update",s),sort:s=>M.post(ft+"/server/manage/sort",s)},en=window?.settings?.secure_path,mt={getList:()=>M.get(en+"/server/group/fetch"),save:s=>M.post(en+"/server/group/save",s),drop:s=>M.post(en+"/server/group/drop",s)},sn=window?.settings?.secure_path,Oa={getList:()=>M.get(sn+"/server/route/fetch"),save:s=>M.post(sn+"/server/route/save",s),drop:s=>M.post(sn+"/server/route/drop",s)},st=window?.settings?.secure_path,nt={getList:()=>M.get(st+"/payment/fetch"),getMethodList:()=>M.get(st+"/payment/getPaymentMethods"),getMethodForm:s=>M.post(st+"/payment/getPaymentForm",s),save:s=>M.post(st+"/payment/save",s),drop:s=>M.post(st+"/payment/drop",s),updateStatus:s=>M.post(st+"/payment/show",s),sort:s=>M.post(st+"/payment/sort",s)},It=window?.settings?.secure_path,Xt={getList:()=>M.get(`${It}/notice/fetch`),save:s=>M.post(`${It}/notice/save`,s),drop:s=>M.post(`${It}/notice/drop`,{id:s}),updateStatus:s=>M.post(`${It}/notice/show`,{id:s}),sort:s=>M.post(`${It}/notice/sort`,{ids:s})},pt=window?.settings?.secure_path,St={getList:()=>M.get(pt+"/knowledge/fetch"),getInfo:s=>M.get(pt+"/knowledge/fetch?id="+s),save:s=>M.post(pt+"/knowledge/save",s),drop:s=>M.post(pt+"/knowledge/drop",s),updateStatus:s=>M.post(pt+"/knowledge/show",s),sort:s=>M.post(pt+"/knowledge/sort",s)},Vt=window?.settings?.secure_path,gs={getList:()=>M.get(Vt+"/plan/fetch"),save:s=>M.post(Vt+"/plan/save",s),update:s=>M.post(Vt+"/plan/update",s),drop:s=>M.post(Vt+"/plan/drop",s),sort:s=>M.post(Vt+"/plan/sort",{ids:s})},jt=window?.settings?.secure_path,tt={getList:s=>M.post(jt+"/order/fetch",s),getInfo:s=>M.post(jt+"/order/detail",s),markPaid:s=>M.post(jt+"/order/paid",s),makeCancel:s=>M.post(jt+"/order/cancel",s),update:s=>M.post(jt+"/order/update",s),assign:s=>M.post(jt+"/order/assign",s)},la=window?.settings?.secure_path,Ta={getList:s=>M.post(la+"/coupon/fetch",s),save:s=>M.post(la+"/coupon/generate",s),drop:s=>M.post(la+"/coupon/drop",s),update:s=>M.post(la+"/coupon/update",s)},ls=window?.settings?.secure_path,Ps={getList:s=>M.post(`${ls}/user/fetch`,s),update:s=>M.post(`${ls}/user/update`,s),resetSecret:s=>M.post(`${ls}/user/resetSecret`,{id:s}),generate:s=>s.download_csv?M.post(`${ls}/user/generate`,s,{responseType:"blob"}):M.post(`${ls}/user/generate`,s),getStats:s=>M.post(`${ls}/stat/getStatUser`,s),destroy:s=>M.post(`${ls}/user/destroy`,{id:s}),sendMail:s=>M.post(`${ls}/user/sendMail`,s),dumpCSV:s=>M.post(`${ls}/user/dumpCSV`,s,{responseType:"blob"}),batchBan:s=>M.post(`${ls}/user/ban`,s)},Zt={getLogs:s=>M.get(`${ls}/traffic-reset/logs`,{params:s}),getStats:s=>M.get(`${ls}/traffic-reset/stats`,{params:s}),resetUser:s=>M.post(`${ls}/traffic-reset/reset-user`,s),getUserHistory:(s,a)=>M.get(`${ls}/traffic-reset/user/${s}/history`,{params:a})},ia=window?.settings?.secure_path,_t={getList:s=>M.post(ia+"/ticket/fetch",s),getInfo:s=>M.get(ia+"/ticket/fetch?id= "+s),reply:s=>M.post(ia+"/ticket/reply",s),close:s=>M.post(ia+"/ticket/close",{id:s})},Ue=window?.settings?.secure_path,he={getSettings:(s="")=>M.get(Ue+"/config/fetch?key="+s),saveSettings:s=>M.post(Ue+"/config/save",s),getEmailTemplate:()=>M.get(Ue+"/config/getEmailTemplate"),sendTestMail:()=>M.post(Ue+"/config/testSendMail"),setTelegramWebhook:()=>M.post(Ue+"/config/setTelegramWebhook"),updateSystemConfig:s=>M.post(Ue+"/config/save",s),getSystemStatus:()=>M.get(`${Ue}/system/getSystemStatus`),getQueueStats:()=>M.get(`${Ue}/system/getQueueStats`),getQueueWorkload:()=>M.get(`${Ue}/system/getQueueWorkload`),getQueueMasters:()=>M.get(`${Ue}/system/getQueueMasters`),getHorizonFailedJobs:s=>M.get(`${Ue}/system/getHorizonFailedJobs`,{params:s}),getSystemLog:s=>M.get(`${Ue}/system/getSystemLog`,{params:s}),getLogFiles:()=>M.get(`${Ue}/log/files`),getLogContent:s=>M.get(`${Ue}/log/fetch`,{params:s}),getLogClearStats:s=>M.get(`${Ue}/system/getLogClearStats`,{params:s}),clearSystemLog:s=>M.post(`${Ue}/system/clearSystemLog`,s)},Vs=window?.settings?.secure_path,Os={getPluginList:()=>M.get(`${Vs}/plugin/getPlugins`),uploadPlugin:s=>{const a=new FormData;return a.append("file",s),M.post(`${Vs}/plugin/upload`,a,{headers:{"Content-Type":"multipart/form-data"}})},deletePlugin:s=>M.post(`${Vs}/plugin/delete`,{code:s}),installPlugin:s=>M.post(`${Vs}/plugin/install`,{code:s}),uninstallPlugin:s=>M.post(`${Vs}/plugin/uninstall`,{code:s}),enablePlugin:s=>M.post(`${Vs}/plugin/enable`,{code:s}),disablePlugin:s=>M.post(`${Vs}/plugin/disable`,{code:s}),getPluginConfig:s=>M.get(`${Vs}/plugin/config`,{params:{code:s}}),updatePluginConfig:(s,a)=>M.post(`${Vs}/plugin/config`,{code:s,config:a})};window?.settings?.secure_path;const Pd=h.object({subscribe_template_singbox:h.string().optional().default(""),subscribe_template_clash:h.string().optional().default(""),subscribe_template_clashmeta:h.string().optional().default(""),subscribe_template_stash:h.string().optional().default(""),subscribe_template_surge:h.string().optional().default(""),subscribe_template_surfboard:h.string().optional().default("")}),ur=[{key:"singbox",label:"Sing-box",language:"json"},{key:"clash",label:"Clash",language:"yaml"},{key:"clashmeta",label:"Clash Meta",language:"yaml"},{key:"stash",label:"Stash",language:"yaml"},{key:"surge",label:"Surge",language:"ini"},{key:"surfboard",label:"Surfboard",language:"ini"}],xr={subscribe_template_singbox:"",subscribe_template_clash:"",subscribe_template_clashmeta:"",subscribe_template_stash:"",subscribe_template_surge:"",subscribe_template_surfboard:""};function Rd(){const{t:s}=I("settings"),[a,t]=d.useState(!1),r=d.useRef(null),[n,i]=d.useState("singbox"),l=we({resolver:Ce(Pd),defaultValues:xr,mode:"onChange"}),{data:o,isLoading:x}=ne({queryKey:["settings","client"],queryFn:()=>he.getSettings("subscribe_template")}),{mutateAsync:u}=Ds({mutationFn:he.saveSettings,onSuccess:()=>{q.success(s("common.autoSaved"))},onError:k=>{console.error("保存失败:",k),q.error(s("common.saveFailed"))}});d.useEffect(()=>{if(o?.data?.subscribe_template){const k=o.data.subscribe_template;Object.entries(k).forEach(([S,f])=>{if(S in xr){const w=typeof f=="string"?f:"";l.setValue(S,w)}}),r.current=l.getValues()}},[o,l]);const c=d.useCallback(ke.debounce(async k=>{if(!r.current||!ke.isEqual(k,r.current)){t(!0);try{await u(k),r.current=k}catch(S){console.error("保存设置失败:",S)}finally{t(!1)}}},1500),[u]),m=d.useCallback(()=>{const k=l.getValues();c(k)},[l,c]),p=d.useCallback((k,S)=>e.jsx(b,{control:l.control,name:k,render:({field:f})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s(`subscribe_template.${k.replace("subscribe_template_","")}.title`)}),e.jsx(N,{children:e.jsx(Wi,{height:"500px",defaultLanguage:S,value:f.value||"",onChange:w=>{f.onChange(w||""),m()},options:{minimap:{enabled:!1},fontSize:14,wordWrap:"on",scrollBeyondLastLine:!1,automaticLayout:!0}})}),e.jsx(O,{children:s(`subscribe_template.${k.replace("subscribe_template_","")}.description`)}),e.jsx(P,{})]})}),[l.control,s,m]);return x?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.loading")})}):e.jsx(Se,{...l,children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(Lt,{value:n,onValueChange:i,className:"w-full",children:[e.jsx(dt,{className:"",children:ur.map(({key:k,label:S})=>e.jsx(Xe,{value:k,className:"text-xs",children:S},k))}),ur.map(({key:k,language:S})=>e.jsx(Ts,{value:k,className:"mt-4",children:p(`subscribe_template_${k}`,S)},k))]}),a&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-blue-500"}),s("common.saving")]})]})})}function Ed(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe_template.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe_template.description")})]}),e.jsx(Te,{}),e.jsx(Rd,{})]})}const Fd=()=>e.jsx(_d,{children:e.jsx(_n,{})}),Id=Yi([{path:"/sign-in",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Xd);return{default:s}},void 0,import.meta.url)).default})},{element:e.jsx(Fd,{}),children:[{path:"/",lazy:async()=>({Component:(await ye(()=>Promise.resolve().then(()=>im),void 0,import.meta.url)).default}),errorElement:e.jsx(gt,{}),children:[{index:!0,lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>km);return{default:s}},void 0,import.meta.url)).default})},{path:"config",errorElement:e.jsx(gt,{}),children:[{path:"system",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Pm);return{default:s}},void 0,import.meta.url)).default}),children:[{index:!0,lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Im);return{default:s}},void 0,import.meta.url)).default})},{path:"safe",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>$m);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Km);return{default:s}},void 0,import.meta.url)).default})},{path:"invite",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Jm);return{default:s}},void 0,import.meta.url)).default})},{path:"frontend",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>su);return{default:s}},void 0,import.meta.url)).default})},{path:"server",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>lu);return{default:s}},void 0,import.meta.url)).default})},{path:"email",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>mu);return{default:s}},void 0,import.meta.url)).default})},{path:"telegram",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>fu);return{default:s}},void 0,import.meta.url)).default})},{path:"APP",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>yu);return{default:s}},void 0,import.meta.url)).default})},{path:"subscribe-template",element:e.jsx(Ed,{})}]},{path:"payment",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Tu);return{default:s}},void 0,import.meta.url)).default})},{path:"plugin",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Pu);return{default:s}},void 0,import.meta.url)).default})},{path:"theme",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Iu);return{default:s}},void 0,import.meta.url)).default})},{path:"notice",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>qu);return{default:s}},void 0,import.meta.url)).default})},{path:"knowledge",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Ju);return{default:s}},void 0,import.meta.url)).default})}]},{path:"server",errorElement:e.jsx(gt,{}),children:[{path:"manage",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Sx);return{default:s}},void 0,import.meta.url)).default})},{path:"group",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Px);return{default:s}},void 0,import.meta.url)).default})},{path:"route",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Mx);return{default:s}},void 0,import.meta.url)).default})}]},{path:"finance",errorElement:e.jsx(gt,{}),children:[{path:"plan",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Bx);return{default:s}},void 0,import.meta.url)).default})},{path:"order",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>lh);return{default:s}},void 0,import.meta.url)).default})},{path:"coupon",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>fh);return{default:s}},void 0,import.meta.url)).default})}]},{path:"user",errorElement:e.jsx(gt,{}),children:[{path:"manage",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>Bh);return{default:s}},void 0,import.meta.url)).default})},{path:"ticket",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>ug);return{default:s}},void 0,import.meta.url)).default})},{path:"traffic-reset-logs",lazy:async()=>({Component:(await ye(async()=>{const{default:s}=await Promise.resolve().then(()=>jg);return{default:s}},void 0,import.meta.url)).default})}]}]}]},{path:"/500",Component:gt},{path:"/404",Component:cr},{path:"/503",Component:fd},{path:"*",Component:cr}]);function Vd(){return M.get("/user/info")}const tn={token:Qt()?.value||"",userInfo:null,isLoggedIn:!!Qt()?.value,loading:!1,error:null},Gt=Ji("user/fetchUserInfo",async()=>(await Vd()).data,{condition:(s,{getState:a})=>{const{user:t}=a();return!!t.token&&!t.loading}}),El=Qi({name:"user",initialState:tn,reducers:{setToken(s,a){s.token=a.payload,s.isLoggedIn=!!a.payload},resetUserState:()=>tn},extraReducers:s=>{s.addCase(Gt.pending,a=>{a.loading=!0,a.error=null}).addCase(Gt.fulfilled,(a,t)=>{a.loading=!1,a.userInfo=t.payload,a.error=null}).addCase(Gt.rejected,(a,t)=>{if(a.loading=!1,a.error=t.error.message||"Failed to fetch user info",!a.token)return tn})}}),{setToken:Md,resetUserState:Od}=El.actions,zd=s=>s.user.userInfo,$d=El.reducer,Fl=Xi({reducer:{user:$d}});Qt()?.value&&Fl.dispatch(Gt());Zi.use(eo).use(so).init({resources:{"en-US":window.XBOARD_TRANSLATIONS?.["en-US"]||{},"zh-CN":window.XBOARD_TRANSLATIONS?.["zh-CN"]||{},"ko-KR":window.XBOARD_TRANSLATIONS?.["ko-KR"]||{}},fallbackLng:"zh-CN",supportedLngs:["en-US","zh-CN","ko-KR"],detection:{order:["querystring","localStorage","navigator"],lookupQuerystring:"lang",lookupLocalStorage:"i18nextLng",caches:["localStorage"]},interpolation:{escapeValue:!1}});const Ad=new to;ao.createRoot(document.getElementById("root")).render(e.jsx(no.StrictMode,{children:e.jsx(ro,{client:Ad,children:e.jsx(lo,{store:Fl,children:e.jsxs(ud,{defaultTheme:"light",storageKey:"vite-ui-theme",children:[e.jsx(io,{router:Id}),e.jsx(oo,{richColors:!0,position:"top-right"})]})})})}));const Re=d.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:_("rounded-xl border bg-card text-card-foreground shadow",s),...a}));Re.displayName="Card";const Fe=d.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:_("flex flex-col space-y-1.5 p-6",s),...a}));Fe.displayName="CardHeader";const Ge=d.forwardRef(({className:s,...a},t)=>e.jsx("h3",{ref:t,className:_("font-semibold leading-none tracking-tight",s),...a}));Ge.displayName="CardTitle";const zs=d.forwardRef(({className:s,...a},t)=>e.jsx("p",{ref:t,className:_("text-sm text-muted-foreground",s),...a}));zs.displayName="CardDescription";const Ie=d.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:_("p-6 pt-0",s),...a}));Ie.displayName="CardContent";const qd=d.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:_("flex items-center p-6 pt-0",s),...a}));qd.displayName="CardFooter";const T=d.forwardRef(({className:s,type:a,...t},r)=>e.jsx("input",{type:a,className:_("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:r,...t}));T.displayName="Input";const Il=d.forwardRef(({className:s,...a},t)=>{const[r,n]=d.useState(!1);return e.jsxs("div",{className:"relative rounded-md",children:[e.jsx("input",{type:r?"text":"password",className:_("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...a}),e.jsx(L,{type:"button",size:"icon",variant:"ghost",className:"absolute right-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md text-muted-foreground",onClick:()=>n(i=>!i),children:r?e.jsx(co,{size:18}):e.jsx(mo,{size:18})})]})});Il.displayName="PasswordInput";const Hd=s=>M.post("/passport/auth/login",s);function Ud({className:s,onForgotPassword:a,...t}){const r=qs(),n=Dr(),{t:i}=I("auth"),l=h.object({email:h.string().min(1,{message:i("signIn.validation.emailRequired")}),password:h.string().min(1,{message:i("signIn.validation.passwordRequired")}).min(7,{message:i("signIn.validation.passwordLength")})}),o=we({resolver:Ce(l),defaultValues:{email:"",password:""}});async function x(u){try{const{data:c}=await Hd(u);Ld(c.auth_data),n(Md(c.auth_data)),await n(Gt()).unwrap(),r("/")}catch(c){console.error("Login failed:",c),c.response?.data?.message&&o.setError("root",{message:c.response.data.message})}}return e.jsx("div",{className:_("grid gap-6",s),...t,children:e.jsx(Se,{...o,children:e.jsx("form",{onSubmit:o.handleSubmit(x),className:"space-y-4",children:e.jsxs("div",{className:"space-y-4",children:[o.formState.errors.root&&e.jsx("div",{className:"text-sm text-destructive",children:o.formState.errors.root.message}),e.jsx(b,{control:o.control,name:"email",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:i("signIn.email")}),e.jsx(N,{children:e.jsx(T,{placeholder:i("signIn.emailPlaceholder"),autoComplete:"email",...u})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"password",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:i("signIn.password")}),e.jsx(N,{children:e.jsx(Il,{placeholder:i("signIn.passwordPlaceholder"),autoComplete:"current-password",...u})}),e.jsx(P,{})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(L,{variant:"link",type:"button",className:"px-0 text-sm font-normal text-muted-foreground hover:text-primary",onClick:a,children:i("signIn.forgotPassword")})}),e.jsx(L,{className:"w-full",size:"lg",loading:o.formState.isSubmitting,children:i("signIn.submit")})]})})})})}const ge=Lr,as=Pr,Kd=Rr,Gs=wn,Vl=d.forwardRef(({className:s,...a},t)=>e.jsx(Pa,{ref:t,className:_("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a}));Vl.displayName=Pa.displayName;const ue=d.forwardRef(({className:s,children:a,...t},r)=>e.jsxs(Kd,{children:[e.jsx(Vl,{}),e.jsxs(Ra,{ref:r,className:_("max-h-[95%] overflow-auto fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...t,children:[a,e.jsxs(wn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(ms,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ue.displayName=Ra.displayName;const be=({className:s,...a})=>e.jsx("div",{className:_("flex flex-col space-y-1.5 text-center sm:text-left",s),...a});be.displayName="DialogHeader";const Pe=({className:s,...a})=>e.jsx("div",{className:_("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});Pe.displayName="DialogFooter";const fe=d.forwardRef(({className:s,...a},t)=>e.jsx(Ea,{ref:t,className:_("text-lg font-semibold leading-none tracking-tight",s),...a}));fe.displayName=Ea.displayName;const Ve=d.forwardRef(({className:s,...a},t)=>e.jsx(Fa,{ref:t,className:_("text-sm text-muted-foreground",s),...a}));Ve.displayName=Fa.displayName;const kt=it("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),G=d.forwardRef(({className:s,variant:a,size:t,asChild:r=!1,...n},i)=>{const l=r?yn:"button";return e.jsx(l,{className:_(kt({variant:a,size:t,className:s})),ref:i,...n})});G.displayName="Button";const $s=ho,As=go,Bd=fo,Gd=d.forwardRef(({className:s,inset:a,children:t,...r},n)=>e.jsxs(Er,{ref:n,className:_("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",s),...r,children:[t,e.jsx(Cn,{className:"ml-auto h-4 w-4"})]}));Gd.displayName=Er.displayName;const Wd=d.forwardRef(({className:s,...a},t)=>e.jsx(Fr,{ref:t,className:_("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...a}));Wd.displayName=Fr.displayName;const Rs=d.forwardRef(({className:s,sideOffset:a=4,...t},r)=>e.jsx(uo,{children:e.jsx(Ir,{ref:r,sideOffset:a,className:_("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t})}));Rs.displayName=Ir.displayName;const _e=d.forwardRef(({className:s,inset:a,...t},r)=>e.jsx(Vr,{ref:r,className:_("relative flex cursor-default cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",s),...t}));_e.displayName=Vr.displayName;const Yd=d.forwardRef(({className:s,children:a,checked:t,...r},n)=>e.jsxs(Mr,{ref:n,className:_("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:t,...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Or,{children:e.jsx(ot,{className:"h-4 w-4"})})}),a]}));Yd.displayName=Mr.displayName;const Jd=d.forwardRef(({className:s,children:a,...t},r)=>e.jsxs(zr,{ref:r,className:_("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Or,{children:e.jsx(xo,{className:"h-4 w-4 fill-current"})})}),a]}));Jd.displayName=zr.displayName;const Fn=d.forwardRef(({className:s,inset:a,...t},r)=>e.jsx($r,{ref:r,className:_("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",s),...t}));Fn.displayName=$r.displayName;const rt=d.forwardRef(({className:s,...a},t)=>e.jsx(Ar,{ref:t,className:_("-mx-1 my-1 h-px bg-muted",s),...a}));rt.displayName=Ar.displayName;const vn=({className:s,...a})=>e.jsx("span",{className:_("ml-auto text-xs tracking-widest opacity-60",s),...a});vn.displayName="DropdownMenuShortcut";const an=[{code:"en-US",name:"English",flag:po,shortName:"EN"},{code:"zh-CN",name:"中文",flag:jo,shortName:"CN"}];function Ml(){const{i18n:s}=I(),a=n=>{s.changeLanguage(n)},t=an.find(n=>n.code===s.language)||an[1],r=t.flag;return e.jsxs($s,{children:[e.jsx(As,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",children:[e.jsx(r,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:"text-sm font-medium",children:t.shortName})]})}),e.jsx(Rs,{align:"end",className:"w-[120px]",children:an.map(n=>{const i=n.flag,l=n.code===s.language;return e.jsxs(_e,{onClick:()=>a(n.code),className:_("flex items-center gap-2 px-2 py-1.5 cursor-pointer",l&&"bg-accent"),children:[e.jsx(i,{className:"h-4 w-5 rounded-sm shadow-sm"}),e.jsx("span",{className:_("text-sm",l&&"font-medium"),children:n.name})]},n.code)})})]})}function Qd(){const[s,a]=d.useState(!1),{t}=I("auth"),r=t("signIn.resetPassword.command");return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"container relative flex min-h-svh flex-col items-center justify-center bg-primary-foreground px-4 py-8 lg:max-w-none lg:px-0",children:[e.jsx("div",{className:"absolute right-4 top-4 md:right-8 md:top-8",children:e.jsx(Ml,{})}),e.jsxs("div",{className:"mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px] md:w-[420px] lg:p-8",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold sm:text-3xl",children:window?.settings?.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:window?.settings?.description})]}),e.jsxs(Re,{className:"p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col space-y-2 text-left",children:[e.jsx("h1",{className:"text-xl font-semibold tracking-tight sm:text-2xl",children:t("signIn.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("signIn.description")})]}),e.jsx(Ud,{onForgotPassword:()=>a(!0)})]})]})]}),e.jsx(ge,{open:s,onOpenChange:a,children:e.jsx(ue,{className:"max-w-[90vw] sm:max-w-lg",children:e.jsxs(be,{children:[e.jsx(fe,{children:t("signIn.resetPassword.title")}),e.jsx(Ve,{children:t("signIn.resetPassword.description")}),e.jsx("div",{className:"mt-4",children:e.jsxs("div",{className:"relative",children:[e.jsx("pre",{className:"max-w-full overflow-x-auto rounded-md bg-secondary p-4 pr-12 text-sm",children:r}),e.jsx(G,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-8 w-8 hover:bg-secondary-foreground/10",onClick:()=>Sa(r).then(()=>{q.success(t("common:copy.success"))}),children:e.jsx(vo,{className:"h-4 w-4"})})]})})]})})})]})}const Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Qd},Symbol.toStringTag,{value:"Module"})),ze=d.forwardRef(({className:s,fadedBelow:a=!1,fixedHeight:t=!1,...r},n)=>e.jsx("div",{ref:n,className:_("relative flex h-full w-full flex-col",a&&"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:hidden after:h-32 after:w-full after:bg-[linear-gradient(180deg,_transparent_10%,_hsl(var(--background))_70%)] after:md:block",t&&"md:h-svh",s),...r}));ze.displayName="Layout";const $e=d.forwardRef(({className:s,...a},t)=>e.jsx("div",{ref:t,className:_("flex h-[var(--header-height)] flex-none items-center gap-4 bg-background p-4 md:px-8",s),...a}));$e.displayName="LayoutHeader";const He=d.forwardRef(({className:s,fixedHeight:a,...t},r)=>e.jsx("div",{ref:r,className:_("flex-1 overflow-hidden px-4 py-6 md:px-8",a&&"h-[calc(100%-var(--header-height))]",s),...t}));He.displayName="LayoutBody";const Ol=bo,zl=yo,$l=No,pe=_o,de=wo,me=Co,oe=d.forwardRef(({className:s,sideOffset:a=4,...t},r)=>e.jsx(qr,{ref:r,sideOffset:a,className:_("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...t}));oe.displayName=qr.displayName;function za(){const{pathname:s}=Nn();return{checkActiveNav:t=>{if(t==="/"&&s==="/")return!0;const r=t.replace(/^\//,""),n=s.replace(/^\//,"");return r?n.startsWith(r):!1}}}function Al({key:s,defaultValue:a}){const[t,r]=d.useState(()=>{const n=localStorage.getItem(s);return n!==null?JSON.parse(n):a});return d.useEffect(()=>{localStorage.setItem(s,JSON.stringify(t))},[t,s]),[t,r]}function Zd(){const[s,a]=Al({key:"collapsed-sidebar-items",defaultValue:[]}),t=n=>!s.includes(n);return{isExpanded:t,toggleItem:n=>{t(n)?a([...s,n]):a(s.filter(i=>i!==n))}}}function em({links:s,isCollapsed:a,className:t,closeNav:r}){const{t:n}=I(),i=({sub:l,...o})=>{const x=`${n(o.title)}-${o.href}`;return a&&l?d.createElement(am,{...o,sub:l,key:x,closeNav:r}):a?d.createElement(tm,{...o,key:x,closeNav:r}):l?d.createElement(sm,{...o,sub:l,key:x,closeNav:r}):d.createElement(ql,{...o,key:x,closeNav:r})};return e.jsx("div",{"data-collapsed":a,className:_("group border-b bg-background py-2 transition-[max-height,padding] duration-500 data-[collapsed=true]:py-2 md:border-none",t),children:e.jsx(pe,{delayDuration:0,children:e.jsx("nav",{className:"grid gap-1 group-[[data-collapsed=true]]:justify-center group-[[data-collapsed=true]]:px-2",children:s.map(i)})})})}function ql({title:s,icon:a,label:t,href:r,closeNav:n,subLink:i=!1}){const{checkActiveNav:l}=za(),{t:o}=I();return e.jsxs(Ys,{to:r,onClick:n,className:_(Dt({variant:l(r)?"secondary":"ghost",size:"sm"}),"h-12 justify-start text-wrap rounded-none px-6",i&&"h-10 w-full border-l border-l-slate-500 px-2"),"aria-current":l(r)?"page":void 0,children:[e.jsx("div",{className:"mr-2",children:a}),o(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:o(t)})]})}function sm({title:s,icon:a,label:t,sub:r,closeNav:n}){const{checkActiveNav:i}=za(),{isExpanded:l,toggleItem:o}=Zd(),{t:x}=I(),u=!!r?.find(p=>i(p.href)),c=x(s),m=l(c)||u;return e.jsxs(Ol,{open:m,onOpenChange:()=>o(c),children:[e.jsxs(zl,{className:_(Dt({variant:u?"secondary":"ghost",size:"sm"}),"group h-12 w-full justify-start rounded-none px-6"),children:[e.jsx("div",{className:"mr-2",children:a}),x(s),t&&e.jsx("div",{className:"ml-2 rounded-lg bg-primary px-1 text-[0.625rem] text-primary-foreground",children:x(t)}),e.jsx("span",{className:_('ml-auto transition-all group-data-[state="open"]:-rotate-180'),children:e.jsx(Hr,{stroke:1})})]}),e.jsx($l,{className:"collapsibleDropdown",asChild:!0,children:e.jsx("ul",{children:r.map(p=>e.jsx("li",{className:"my-1 ml-8",children:e.jsx(ql,{...p,subLink:!0,closeNav:n})},x(p.title)))})})]})}function tm({title:s,icon:a,label:t,href:r,closeNav:n}){const{checkActiveNav:i}=za(),{t:l}=I();return e.jsxs(de,{delayDuration:0,children:[e.jsx(me,{asChild:!0,children:e.jsxs(Ys,{to:r,onClick:n,className:_(Dt({variant:i(r)?"secondary":"ghost",size:"icon"}),"h-12 w-12"),children:[a,e.jsx("span",{className:"sr-only",children:l(s)})]})}),e.jsxs(oe,{side:"right",className:"flex items-center gap-4",children:[l(s),t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:l(t)})]})]})}function am({title:s,icon:a,label:t,sub:r,closeNav:n}){const{checkActiveNav:i}=za(),{t:l}=I(),o=!!r?.find(x=>i(x.href));return e.jsxs($s,{children:[e.jsxs(de,{delayDuration:0,children:[e.jsx(me,{asChild:!0,children:e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:o?"secondary":"ghost",size:"icon",className:"h-12 w-12",children:a})})}),e.jsxs(oe,{side:"right",className:"flex items-center gap-4",children:[l(s)," ",t&&e.jsx("span",{className:"ml-auto text-muted-foreground",children:l(t)}),e.jsx(Hr,{size:18,className:"-rotate-90 text-muted-foreground"})]})]}),e.jsxs(Rs,{side:"right",align:"start",sideOffset:4,children:[e.jsxs(Fn,{children:[l(s)," ",t?`(${l(t)})`:""]}),e.jsx(rt,{}),r.map(({title:x,icon:u,label:c,href:m})=>e.jsx(_e,{asChild:!0,children:e.jsxs(Ys,{to:m,onClick:n,className:`${i(m)?"bg-secondary":""}`,children:[u," ",e.jsx("span",{className:"ml-2 max-w-52 text-wrap",children:l(x)}),c&&e.jsx("span",{className:"ml-auto text-xs",children:l(c)})]})},`${l(x)}-${m}`))]})]})}const Hl=[{title:"nav:dashboard",label:"",href:"/",icon:e.jsx(So,{size:18})},{title:"nav:systemManagement",label:"",href:"",icon:e.jsx(ko,{size:18}),sub:[{title:"nav:systemConfig",label:"",href:"/config/system",icon:e.jsx(Ur,{size:18})},{title:"nav:pluginManagement",label:"",href:"/config/plugin",icon:e.jsx(Sn,{size:18})},{title:"nav:themeConfig",label:"",href:"/config/theme",icon:e.jsx(To,{size:18})},{title:"nav:noticeManagement",label:"",href:"/config/notice",icon:e.jsx(Do,{size:18})},{title:"nav:paymentConfig",label:"",href:"/config/payment",icon:e.jsx(Xn,{size:18})},{title:"nav:knowledgeManagement",label:"",href:"/config/knowledge",icon:e.jsx(Lo,{size:18})}]},{title:"nav:nodeManagement",label:"",href:"",icon:e.jsx(Kr,{size:18}),sub:[{title:"nav:nodeManagement",label:"",href:"/server/manage",icon:e.jsx(Po,{size:18})},{title:"nav:permissionGroupManagement",label:"",href:"/server/group",icon:e.jsx(Br,{size:18})},{title:"nav:routeManagement",label:"",href:"/server/route",icon:e.jsx(Ro,{size:18})}]},{title:"nav:subscriptionManagement",label:"",href:"",icon:e.jsx(Eo,{size:18}),sub:[{title:"nav:planManagement",label:"",href:"/finance/plan",icon:e.jsx(Fo,{size:18})},{title:"nav:orderManagement",label:"",href:"/finance/order",icon:e.jsx(Xn,{size:18})},{title:"nav:couponManagement",label:"",href:"/finance/coupon",icon:e.jsx(Io,{size:18})}]},{title:"nav:userManagement",label:"",href:"",icon:e.jsx(Vo,{size:18}),sub:[{title:"nav:userManagement",label:"",href:"/user/manage",icon:e.jsx(Mo,{size:18})},{title:"nav:ticketManagement",label:"",href:"/user/ticket",icon:e.jsx(Gr,{size:18})}]}];function nm({className:s,isCollapsed:a,setIsCollapsed:t}){const[r,n]=d.useState(!1),{t:i}=I();return d.useEffect(()=>{r?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden")},[r]),e.jsxs("aside",{className:_(`fixed left-0 right-0 top-0 z-50 flex h-auto flex-col border-r-2 border-r-muted transition-[width] md:bottom-0 md:right-auto md:h-svh ${a?"md:w-14":"md:w-64"}`,s),children:[e.jsx("div",{onClick:()=>n(!1),className:`absolute inset-0 transition-[opacity] delay-100 duration-700 ${r?"h-svh opacity-50":"h-0 opacity-0"} w-full bg-black md:hidden`}),e.jsxs(ze,{className:`flex h-full flex-col ${r?"h-[100vh] md:h-full":""}`,children:[e.jsxs($e,{className:"sticky top-0 justify-between px-4 py-3 shadow md:px-4",children:[e.jsxs("div",{className:`flex items-center ${a?"":"gap-2"}`,children:[e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",className:`transition-all ${a?"h-6 w-6":"h-8 w-8"}`,children:[e.jsx("rect",{width:"256",height:"256",fill:"none"}),e.jsx("line",{x1:"208",y1:"128",x2:"128",y2:"208",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("line",{x1:"192",y1:"40",x2:"40",y2:"192",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),e.jsx("span",{className:"sr-only",children:"Website Name"})]}),e.jsx("div",{className:`flex flex-col justify-end truncate ${a?"invisible w-0":"visible w-auto"}`,children:e.jsx("span",{className:"font-medium",children:window?.settings?.title})})]}),e.jsx(L,{variant:"ghost",size:"icon",className:"md:hidden","aria-label":i("common:toggleNavigation"),"aria-controls":"sidebar-menu","aria-expanded":r,onClick:()=>n(l=>!l),children:r?e.jsx(Oo,{}):e.jsx(zo,{})})]}),e.jsx(em,{id:"sidebar-menu",className:_("flex-1 overflow-auto overscroll-contain",r?"block":"hidden md:block","md:py-2"),closeNav:()=>n(!1),isCollapsed:a,links:Hl}),e.jsx("div",{className:_("border-t border-border/50 bg-background","px-4 py-2.5 text-xs text-muted-foreground",r?"block":"hidden md:block",a?"text-center":"text-left"),children:e.jsxs("div",{className:_("flex items-center gap-1.5",a?"justify-center":"justify-start"),children:[e.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500"}),e.jsxs("span",{className:_("whitespace-nowrap tracking-wide","transition-opacity duration-200",a&&"md:opacity-0"),children:["v",window?.settings?.version]})]})}),e.jsx(L,{onClick:()=>t(l=>!l),size:"icon",variant:"outline",className:"absolute -right-5 top-1/2 hidden rounded-full md:inline-flex","aria-label":i("common:toggleSidebar"),children:e.jsx($o,{stroke:1.5,className:`h-5 w-5 ${a?"rotate-180":""}`})})]})]})}function rm(){const[s,a]=Al({key:"collapsed-sidebar",defaultValue:!1});return d.useEffect(()=>{const t=()=>{a(window.innerWidth<768?!1:s)};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[s,a]),[s,a]}function lm(){const[s,a]=rm();return e.jsxs("div",{className:"relative h-full overflow-hidden bg-background",children:[e.jsx(nm,{isCollapsed:s,setIsCollapsed:a}),e.jsx("main",{id:"content",className:`overflow-x-hidden pt-16 transition-[margin] md:overflow-y-hidden md:pt-0 ${s?"md:ml-14":"md:ml-64"} h-full`,children:e.jsx(_n,{})})]})}const im=Object.freeze(Object.defineProperty({__proto__:null,default:lm},Symbol.toStringTag,{value:"Module"})),Js=d.forwardRef(({className:s,...a},t)=>e.jsx(es,{ref:t,className:_("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",s),...a}));Js.displayName=es.displayName;const om=({children:s,...a})=>e.jsx(ge,{...a,children:e.jsx(ue,{className:"overflow-hidden p-0",children:e.jsx(Js,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})}),ut=d.forwardRef(({className:s,...a},t)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(Ao,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(es.Input,{ref:t,className:_("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",s),...a})]}));ut.displayName=es.Input.displayName;const Qs=d.forwardRef(({className:s,...a},t)=>e.jsx(es.List,{ref:t,className:_("max-h-[300px] overflow-y-auto overflow-x-hidden",s),...a}));Qs.displayName=es.List.displayName;const xt=d.forwardRef((s,a)=>e.jsx(es.Empty,{ref:a,className:"py-6 text-center text-sm",...s}));xt.displayName=es.Empty.displayName;const fs=d.forwardRef(({className:s,...a},t)=>e.jsx(es.Group,{ref:t,className:_("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",s),...a}));fs.displayName=es.Group.displayName;const Pt=d.forwardRef(({className:s,...a},t)=>e.jsx(es.Separator,{ref:t,className:_("-mx-1 h-px bg-border",s),...a}));Pt.displayName=es.Separator.displayName;const We=d.forwardRef(({className:s,...a},t)=>e.jsx(es.Item,{ref:t,className:_("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...a}));We.displayName=es.Item.displayName;function cm(){const s=[];for(const a of Hl)if(a.href&&s.push(a),a.sub)for(const t of a.sub)s.push({...t,parent:a.title});return s}function ns(){const[s,a]=d.useState(!1),t=qs(),r=cm(),{t:n}=I("search"),{t:i}=I("nav");d.useEffect(()=>{const o=x=>{x.key==="k"&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),a(u=>!u))};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[]);const l=d.useCallback(o=>{a(!1),t(o)},[t]);return e.jsxs(e.Fragment,{children:[e.jsxs(G,{variant:"outline",className:"relative h-9 w-9 p-0 xl:h-10 xl:w-60 xl:justify-start xl:px-3 xl:py-2",onClick:()=>a(!0),children:[e.jsx(kn,{className:"h-4 w-4 xl:mr-2"}),e.jsx("span",{className:"hidden xl:inline-flex",children:n("placeholder")}),e.jsx("span",{className:"sr-only",children:n("shortcut.label")}),e.jsx("kbd",{className:"pointer-events-none absolute right-1.5 top-2 hidden h-6 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 xl:flex",children:n("shortcut.key")})]}),e.jsxs(om,{open:s,onOpenChange:a,children:[e.jsx(ut,{placeholder:n("placeholder")}),e.jsxs(Qs,{children:[e.jsx(xt,{children:n("noResults")}),e.jsx(fs,{heading:n("title"),children:r.map(o=>e.jsxs(We,{value:`${o.parent?o.parent+" ":""}${o.title}`,onSelect:()=>l(o.href),children:[e.jsx("div",{className:"mr-2",children:o.icon}),e.jsx("span",{children:i(o.title)}),o.parent&&e.jsx("span",{className:"ml-2 text-xs text-muted-foreground",children:i(o.parent)})]},o.href))})]})]})]})}function Ye(){const{theme:s,setTheme:a}=xd();return d.useEffect(()=>{const t=s==="dark"?"#020817":"#fff",r=document.querySelector("meta[name='theme-color']");r&&r.setAttribute("content",t)},[s]),e.jsxs(e.Fragment,{children:[e.jsx(L,{size:"icon",variant:"ghost",className:"rounded-full",onClick:()=>a(s==="light"?"dark":"light"),children:s==="light"?e.jsx(qo,{size:20}):e.jsx(Ho,{size:20})}),e.jsx(Ml,{})]})}const Ul=d.forwardRef(({className:s,...a},t)=>e.jsx(Wr,{ref:t,className:_("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...a}));Ul.displayName=Wr.displayName;const Kl=d.forwardRef(({className:s,...a},t)=>e.jsx(Yr,{ref:t,className:_("aspect-square h-full w-full",s),...a}));Kl.displayName=Yr.displayName;const Bl=d.forwardRef(({className:s,...a},t)=>e.jsx(Jr,{ref:t,className:_("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...a}));Bl.displayName=Jr.displayName;function Je(){const s=qs(),a=Dr(),t=Uo(zd),{t:r}=I(["common"]),n=()=>{Dl(),a(Od()),s("/sign-in")},i=t?.email?.split("@")[0]||r("common:user"),l=i.substring(0,2).toUpperCase();return e.jsxs($s,{children:[e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:"ghost",className:"relative h-8 w-8 rounded-full",children:e.jsxs(Ul,{className:"h-8 w-8",children:[e.jsx(Kl,{src:t?.avatar_url,alt:i}),e.jsx(Bl,{children:l})]})})}),e.jsxs(Rs,{className:"w-56",align:"end",forceMount:!0,children:[e.jsx(Fn,{className:"font-normal",children:e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:i}),e.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:t?.email||r("common:defaultEmail")})]})}),e.jsx(rt,{}),e.jsx(_e,{asChild:!0,children:e.jsxs(Ys,{to:"/config/system",children:[r("common:settings"),e.jsx(vn,{children:"⌘S"})]})}),e.jsx(rt,{}),e.jsxs(_e,{onClick:n,children:[r("common:logout"),e.jsx(vn,{children:"⇧⌘Q"})]})]})]})}const J=Ko,rs=Zo,Q=Bo,W=d.forwardRef(({className:s,children:a,...t},r)=>e.jsxs(Qr,{ref:r,className:_("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s),...t,children:[a,e.jsx(Go,{asChild:!0,children:e.jsx(Tn,{className:"h-4 w-4 opacity-50"})})]}));W.displayName=Qr.displayName;const Gl=d.forwardRef(({className:s,...a},t)=>e.jsx(Xr,{ref:t,className:_("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsx(Wo,{className:"h-4 w-4"})}));Gl.displayName=Xr.displayName;const Wl=d.forwardRef(({className:s,...a},t)=>e.jsx(Zr,{ref:t,className:_("flex cursor-default items-center justify-center py-1",s),...a,children:e.jsx(Tn,{className:"h-4 w-4"})}));Wl.displayName=Zr.displayName;const Y=d.forwardRef(({className:s,children:a,position:t="popper",...r},n)=>e.jsx(Yo,{children:e.jsxs(el,{ref:n,className:_("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:t,...r,children:[e.jsx(Gl,{}),e.jsx(Jo,{className:_("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(Wl,{})]})}));Y.displayName=el.displayName;const dm=d.forwardRef(({className:s,...a},t)=>e.jsx(sl,{ref:t,className:_("px-2 py-1.5 text-sm font-semibold",s),...a}));dm.displayName=sl.displayName;const $=d.forwardRef(({className:s,children:a,...t},r)=>e.jsxs(tl,{ref:r,className:_("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...t,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(Qo,{children:e.jsx(ot,{className:"h-4 w-4"})})}),e.jsx(Xo,{children:a})]}));$.displayName=tl.displayName;const mm=d.forwardRef(({className:s,...a},t)=>e.jsx(al,{ref:t,className:_("-mx-1 my-1 h-px bg-muted",s),...a}));mm.displayName=al.displayName;function vs({className:s,classNames:a,showOutsideDays:t=!0,...r}){return e.jsx(ec,{showOutsideDays:t,className:_("p-3",s),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:_(kt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:_("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:_(kt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...a},components:{IconLeft:({className:n,...i})=>e.jsx(nl,{className:_("h-4 w-4",n),...i}),IconRight:({className:n,...i})=>e.jsx(Cn,{className:_("h-4 w-4",n),...i})},...r})}vs.displayName="Calendar";const os=tc,cs=ac,Ze=d.forwardRef(({className:s,align:a="center",sideOffset:t=4,...r},n)=>e.jsx(sc,{children:e.jsx(rl,{ref:n,align:a,sideOffset:t,className:_("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",s),...r})}));Ze.displayName=rl.displayName;const Us={income:{main:"hsl(var(--primary))",gradient:{start:"hsl(var(--primary))",end:"transparent"}},commission:{main:"hsl(var(--secondary))",gradient:{start:"hsl(var(--secondary))",end:"transparent"}}},At=s=>(s/100).toFixed(2),um=({active:s,payload:a,label:t})=>{const{t:r}=I();return s&&a&&a.length?e.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-sm",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:t}),a.map((n,i)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:n.color}}),e.jsxs("span",{className:"text-muted-foreground",children:[r(n.name),":"]}),e.jsx("span",{className:"font-medium",children:n.name.includes(r("dashboard:overview.amount"))?`¥${At(n.value)}`:r("dashboard:overview.transactions",{count:n.value})})]},i))]}):null},xm=[{value:"7d",label:"dashboard:overview.last7Days"},{value:"30d",label:"dashboard:overview.last30Days"},{value:"90d",label:"dashboard:overview.last90Days"},{value:"180d",label:"dashboard:overview.last180Days"},{value:"365d",label:"dashboard:overview.lastYear"},{value:"custom",label:"dashboard:overview.customRange"}],hm=(s,a)=>{const t=new Date;if(s==="custom"&&a)return{startDate:a.from,endDate:a.to};let r;switch(s){case"7d":r=Cs(t,7);break;case"30d":r=Cs(t,30);break;case"90d":r=Cs(t,90);break;case"180d":r=Cs(t,180);break;case"365d":r=Cs(t,365);break;default:r=Cs(t,30)}return{startDate:r,endDate:t}};function gm(){const[s,a]=d.useState("amount"),[t,r]=d.useState("30d"),[n,i]=d.useState({from:Cs(new Date,7),to:new Date}),{t:l}=I(),{startDate:o,endDate:x}=hm(t,n),{data:u}=ne({queryKey:["orderStat",{start_date:Le(o,"yyyy-MM-dd"),end_date:Le(x,"yyyy-MM-dd")}],queryFn:async()=>{const{data:c}=await ka.getOrderStat({start_date:Le(o,"yyyy-MM-dd"),end_date:Le(x,"yyyy-MM-dd")});return c},refetchInterval:3e4});return e.jsxs(Re,{children:[e.jsx(Fe,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(Ge,{children:l("dashboard:overview.title")}),e.jsxs(zs,{children:[u?.summary.start_date," ",l("dashboard:overview.to")," ",u?.summary.end_date]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsxs(J,{value:t,onValueChange:c=>r(c),children:[e.jsx(W,{className:"w-[120px]",children:e.jsx(Q,{placeholder:l("dashboard:overview.selectTimeRange")})}),e.jsx(Y,{children:xm.map(c=>e.jsx($,{value:c.value,children:l(c.label)},c.value))})]}),t==="custom"&&e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(G,{variant:"outline",className:_("min-w-0 justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:n?.from?n.to?e.jsxs(e.Fragment,{children:[Le(n.from,"yyyy-MM-dd")," -"," ",Le(n.to,"yyyy-MM-dd")]}):Le(n.from,"yyyy-MM-dd"):l("dashboard:overview.selectDate")})]})}),e.jsx(Ze,{className:"w-auto p-0",align:"end",children:e.jsx(vs,{mode:"range",defaultMonth:n?.from,selected:{from:n?.from,to:n?.to},onSelect:c=>{c?.from&&c?.to&&i({from:c.from,to:c.to})},numberOfMonths:2})})]})]}),e.jsx(Lt,{value:s,onValueChange:c=>a(c),children:e.jsxs(dt,{children:[e.jsx(Xe,{value:"amount",children:l("dashboard:overview.amount")}),e.jsx(Xe,{value:"count",children:l("dashboard:overview.count")})]})})]})]})}),e.jsxs(Ie,{children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:l("dashboard:overview.totalIncome")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",At(u?.summary?.paid_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:l("dashboard:overview.totalTransactions",{count:u?.summary?.paid_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[l("dashboard:overview.avgOrderAmount")," ¥",At(u?.summary?.avg_paid_amount||0)]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:l("dashboard:overview.totalCommission")}),e.jsxs("div",{className:"text-2xl font-bold",children:["¥",At(u?.summary?.commission_total||0)]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:l("dashboard:overview.totalTransactions",{count:u?.summary?.commission_count||0})}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[l("dashboard:overview.commissionRate")," ",u?.summary?.commission_rate.toFixed(2)||0,"%"]})]})]}),e.jsx("div",{className:"h-[400px] w-full",children:e.jsx(nc,{width:"100%",height:"100%",children:e.jsxs(rc,{data:u?.list||[],margin:{top:20,right:20,left:0,bottom:0},children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"incomeGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:Us.income.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:Us.income.gradient.end,stopOpacity:.1})]}),e.jsxs("linearGradient",{id:"commissionGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:Us.commission.gradient.start,stopOpacity:.2}),e.jsx("stop",{offset:"100%",stopColor:Us.commission.gradient.end,stopOpacity:.1})]})]}),e.jsx(lc,{dataKey:"date",axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:c=>Le(new Date(c),"MM-dd",{locale:dc})}),e.jsx(ic,{axisLine:!1,tickLine:!1,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12},tickFormatter:c=>s==="amount"?`¥${At(c)}`:l("dashboard:overview.transactions",{count:c})}),e.jsx(oc,{strokeDasharray:"3 3",vertical:!1,stroke:"hsl(var(--border))",opacity:.3}),e.jsx(cc,{content:e.jsx(um,{})}),s==="amount"?e.jsxs(e.Fragment,{children:[e.jsx(Zn,{type:"monotone",dataKey:"paid_total",name:l("dashboard:overview.orderAmount"),stroke:Us.income.main,fill:"url(#incomeGradient)",strokeWidth:2}),e.jsx(Zn,{type:"monotone",dataKey:"commission_total",name:l("dashboard:overview.commissionAmount"),stroke:Us.commission.main,fill:"url(#commissionGradient)",strokeWidth:2})]}):e.jsxs(e.Fragment,{children:[e.jsx(er,{dataKey:"paid_count",name:l("dashboard:overview.orderCount"),fill:Us.income.main,radius:[4,4,0,0],maxBarSize:40}),e.jsx(er,{dataKey:"commission_count",name:l("dashboard:overview.commissionCount"),fill:Us.commission.main,radius:[4,4,0,0],maxBarSize:40})]})]})})})]})]})}function ve({className:s,...a}){return e.jsx("div",{className:_("animate-pulse rounded-md bg-primary/10",s),...a})}function fm(){return e.jsxs(Re,{children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(ve,{className:"h-4 w-[120px]"}),e.jsx(ve,{className:"h-4 w-4"})]}),e.jsxs(Ie,{children:[e.jsx(ve,{className:"h-8 w-[140px] mb-2"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-4 w-4"}),e.jsx(ve,{className:"h-4 w-[100px]"})]})]})]})}function pm(){return e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:Array.from({length:8}).map((s,a)=>e.jsx(fm,{},a))})}var le=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.CANCELLED=2]="CANCELLED",s[s.COMPLETED=3]="COMPLETED",s[s.DISCOUNTED=4]="DISCOUNTED",s))(le||{});const Mt={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},Ot={0:"yellow-500",1:"blue-500",2:"red-500",3:"green-500",4:"green-500"};var Ss=(s=>(s[s.NEW=1]="NEW",s[s.RENEWAL=2]="RENEWAL",s[s.UPGRADE=3]="UPGRADE",s[s.RESET_FLOW=4]="RESET_FLOW",s))(Ss||{}),Ne=(s=>(s[s.PENDING=0]="PENDING",s[s.PROCESSING=1]="PROCESSING",s[s.VALID=2]="VALID",s[s.INVALID=3]="INVALID",s))(Ne||{});const oa={0:"待确认",1:"发放中",2:"有效",3:"无效"},ca={0:"yellow-500",1:"blue-500",2:"green-500",3:"red-500"};var qe=(s=>(s.MONTH_PRICE="month_price",s.QUARTER_PRICE="quarter_price",s.HALF_YEAR_PRICE="half_year_price",s.YEAR_PRICE="year_price",s.TWO_YEAR_PRICE="two_year_price",s.THREE_YEAR_PRICE="three_year_price",s.ONETIME_PRICE="onetime_price",s.RESET_PRICE="reset_price",s))(qe||{});const jm={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"};var ce=(s=>(s.Shadowsocks="shadowsocks",s.Vmess="vmess",s.Trojan="trojan",s.Hysteria="hysteria",s.Vless="vless",s.Tuic="tuic",s.Socks="socks",s.Naive="naive",s.Http="http",s.Mieru="mieru",s.AnyTLS="anytls",s))(ce||{});const js=[{type:"shadowsocks",label:"Shadowsocks"},{type:"vmess",label:"VMess"},{type:"trojan",label:"Trojan"},{type:"hysteria",label:"Hysteria"},{type:"vless",label:"VLess"},{type:"tuic",label:"TUIC"},{type:"socks",label:"SOCKS"},{type:"naive",label:"Naive"},{type:"http",label:"HTTP"},{type:"mieru",label:"Mieru"},{type:"anytls",label:"AnyTLS"}],is={shadowsocks:"#489851",vmess:"#CB3180",trojan:"#EBB749",hysteria:"#5684e6",vless:"#1a1a1a",tuic:"#00C853",socks:"#2196F3",naive:"#9C27B0",http:"#FF5722",mieru:"#4CAF50",anytls:"#7E57C2"};var hs=(s=>(s[s.AMOUNT=1]="AMOUNT",s[s.PERCENTAGE=2]="PERCENTAGE",s))(hs||{});const vm={1:"按金额优惠",2:"按比例优惠"};var Ws=(s=>(s[s.OPENING=0]="OPENING",s[s.CLOSED=1]="CLOSED",s))(Ws||{}),Qe=(s=>(s[s.LOW=0]="LOW",s[s.MIDDLE=1]="MIDDLE",s[s.HIGH=2]="HIGH",s))(Qe||{}),Wt=(s=>(s.MONTH="monthly",s.QUARTER="quarterly",s.HALF_YEAR="half_yearly",s.YEAR="yearly",s.TWO_YEAR="two_yearly",s.THREE_YEAR="three_yearly",s.ONETIME="onetime",s.RESET="reset_traffic",s))(Wt||{});function Ks({title:s,value:a,icon:t,trend:r,description:n,onClick:i,highlight:l,className:o}){return e.jsxs(Re,{className:_("transition-colors",i&&"cursor-pointer hover:bg-muted/50",l&&"border-primary/50",o),onClick:i,children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(Ge,{className:"text-sm font-medium",children:s}),t]}),e.jsxs(Ie,{children:[e.jsx("div",{className:"text-2xl font-bold",children:a}),r?e.jsxs("div",{className:"flex items-center pt-1",children:[e.jsx(hc,{className:_("h-4 w-4",r.isPositive?"text-emerald-500":"text-red-500")}),e.jsxs("span",{className:_("ml-1 text-xs",r.isPositive?"text-emerald-500":"text-red-500"),children:[r.isPositive?"+":"-",Math.abs(r.value),"%"]}),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:r.label})]}):e.jsx("p",{className:"text-xs text-muted-foreground",children:n})]})]})}function bm({className:s}){const a=qs(),{t}=I(),{data:r,isLoading:n}=ne({queryKey:["dashboardStats"],queryFn:async()=>(await ka.getStatsData()).data,refetchInterval:1e3*60*5});if(n||!r)return e.jsx(pm,{});const i=()=>{const l=new URLSearchParams;l.set("commission_status",Ne.PENDING.toString()),l.set("status",le.COMPLETED.toString()),l.set("commission_balance","gt:0"),a(`/finance/order?${l.toString()}`)};return e.jsxs("div",{className:_("grid gap-4 md:grid-cols-2 lg:grid-cols-4",s),children:[e.jsx(Ks,{title:t("dashboard:stats.todayIncome"),value:Ms(r.todayIncome),icon:e.jsx(mc,{className:"h-4 w-4 text-emerald-500"}),trend:{value:r.dayIncomeGrowth,label:t("dashboard:stats.vsYesterday"),isPositive:r.dayIncomeGrowth>0}}),e.jsx(Ks,{title:t("dashboard:stats.monthlyIncome"),value:Ms(r.currentMonthIncome),icon:e.jsx(Dn,{className:"h-4 w-4 text-blue-500"}),trend:{value:r.monthIncomeGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:r.monthIncomeGrowth>0}}),e.jsx(Ks,{title:t("dashboard:stats.pendingTickets"),value:r.ticketPendingTotal,icon:e.jsx(uc,{className:_("h-4 w-4",r.ticketPendingTotal>0?"text-orange-500":"text-muted-foreground")}),description:r.ticketPendingTotal>0?t("dashboard:stats.hasPendingTickets"):t("dashboard:stats.noPendingTickets"),onClick:()=>a("/user/ticket"),highlight:r.ticketPendingTotal>0}),e.jsx(Ks,{title:t("dashboard:stats.pendingCommission"),value:r.commissionPendingTotal,icon:e.jsx(xc,{className:_("h-4 w-4",r.commissionPendingTotal>0?"text-blue-500":"text-muted-foreground")}),description:r.commissionPendingTotal>0?t("dashboard:stats.hasPendingCommission"):t("dashboard:stats.noPendingCommission"),onClick:i,highlight:r.commissionPendingTotal>0}),e.jsx(Ks,{title:t("dashboard:stats.monthlyNewUsers"),value:r.currentMonthNewUsers,icon:e.jsx(va,{className:"h-4 w-4 text-blue-500"}),trend:{value:r.userGrowth,label:t("dashboard:stats.vsLastMonth"),isPositive:r.userGrowth>0}}),e.jsx(Ks,{title:t("dashboard:stats.totalUsers"),value:r.totalUsers,icon:e.jsx(va,{className:"h-4 w-4 text-muted-foreground"}),description:t("dashboard:stats.activeUsers",{count:r.activeUsers})}),e.jsx(Ks,{title:t("dashboard:stats.monthlyUpload"),value:Oe(r.monthTraffic.upload),icon:e.jsx(Ct,{className:"h-4 w-4 text-emerald-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(r.todayTraffic.upload)})}),e.jsx(Ks,{title:t("dashboard:stats.monthlyDownload"),value:Oe(r.monthTraffic.download),icon:e.jsx(ba,{className:"h-4 w-4 text-blue-500"}),description:t("dashboard:stats.todayTraffic",{value:Oe(r.todayTraffic.download)})})]})}const lt=d.forwardRef(({className:s,children:a,...t},r)=>e.jsxs(ll,{ref:r,className:_("relative overflow-hidden",s),...t,children:[e.jsx(gc,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(Da,{}),e.jsx(fc,{})]}));lt.displayName=ll.displayName;const Da=d.forwardRef(({className:s,orientation:a="vertical",...t},r)=>e.jsx(il,{ref:r,orientation:a,className:_("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",s),...t,children:e.jsx(pc,{className:"relative flex-1 rounded-full bg-border"})}));Da.displayName=il.displayName;const bn={today:{getValue:()=>{const s=vc();return{start:s,end:bc(s,1)}}},last7days:{getValue:()=>{const s=new Date;return{start:Cs(s,7),end:s}}},last30days:{getValue:()=>{const s=new Date;return{start:Cs(s,30),end:s}}},custom:{getValue:()=>null}};function hr({selectedRange:s,customDateRange:a,onRangeChange:t,onCustomRangeChange:r}){const{t:n}=I(),i={today:n("dashboard:trafficRank.today"),last7days:n("dashboard:trafficRank.last7days"),last30days:n("dashboard:trafficRank.last30days"),custom:n("dashboard:trafficRank.customRange")};return e.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1",children:[e.jsxs(J,{value:s,onValueChange:t,children:[e.jsx(W,{className:"w-[120px]",children:e.jsx(Q,{placeholder:n("dashboard:trafficRank.selectTimeRange")})}),e.jsx(Y,{position:"popper",className:"z-50",children:Object.entries(bn).map(([l])=>e.jsx($,{value:l,children:i[l]},l))})]}),s==="custom"&&e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(G,{variant:"outline",className:_("min-w-0 justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4 flex-shrink-0"}),e.jsx("span",{className:"truncate",children:a?.from?a.to?e.jsxs(e.Fragment,{children:[Le(a.from,"yyyy-MM-dd")," -"," ",Le(a.to,"yyyy-MM-dd")]}):Le(a.from,"yyyy-MM-dd"):e.jsx("span",{children:n("dashboard:trafficRank.selectDateRange")})})]})}),e.jsx(Ze,{className:"w-auto p-0",align:"end",children:e.jsx(vs,{mode:"range",defaultMonth:a?.from,selected:{from:a?.from,to:a?.to},onSelect:l=>{l?.from&&l?.to&&r({from:l.from,to:l.to})},numberOfMonths:2})})]})]})}const vt=s=>`${(s/1024/1024/1024).toFixed(2)} GB`;function ym({className:s}){const{t:a}=I(),[t,r]=d.useState("today"),[n,i]=d.useState({from:Cs(new Date,7),to:new Date}),[l,o]=d.useState("today"),[x,u]=d.useState({from:Cs(new Date,7),to:new Date}),c=d.useMemo(()=>t==="custom"?{start:n.from,end:n.to}:bn[t].getValue(),[t,n]),m=d.useMemo(()=>l==="custom"?{start:x.from,end:x.to}:bn[l].getValue(),[l,x]),{data:p}=ne({queryKey:["nodeTrafficRank",c.start,c.end],queryFn:()=>ka.getNodeTrafficData({type:"node",start_time:ke.round(c.start.getTime()/1e3),end_time:ke.round(c.end.getTime()/1e3)}),refetchInterval:3e4}),{data:k}=ne({queryKey:["userTrafficRank",m.start,m.end],queryFn:()=>ka.getNodeTrafficData({type:"user",start_time:ke.round(m.start.getTime()/1e3),end_time:ke.round(m.end.getTime()/1e3)}),refetchInterval:3e4});return e.jsxs("div",{className:_("grid gap-4 md:grid-cols-2",s),children:[e.jsxs(Re,{children:[e.jsx(Fe,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(Ge,{className:"flex items-center text-base font-medium",children:[e.jsx(jc,{className:"mr-2 h-4 w-4"}),a("dashboard:trafficRank.nodeTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(hr,{selectedRange:t,customDateRange:n,onRangeChange:r,onCustomRangeChange:i}),e.jsx(sr,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(Ie,{className:"flex-1",children:p?.data?e.jsxs(lt,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:p.data.map(S=>e.jsx(pe,{delayDuration:200,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:S.name}),e.jsxs("span",{className:_("ml-2 flex items-center text-xs font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?e.jsx(un,{className:"mr-1 h-3 w-3"}):e.jsx(xn,{className:"mr-1 h-3 w-3"}),Math.abs(S.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${S.value/p.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:vt(S.value)})]})]})})}),e.jsx(oe,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(S.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(S.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:_("font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?"+":"",S.change,"%"]})]})})]})},S.id))}),e.jsx(Da,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:a("common:loading")})})})]}),e.jsxs(Re,{children:[e.jsx(Fe,{className:"flex-none pb-2",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs(Ge,{className:"flex items-center text-base font-medium",children:[e.jsx(va,{className:"mr-2 h-4 w-4"}),a("dashboard:trafficRank.userTrafficRank")]}),e.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[e.jsx(hr,{selectedRange:l,customDateRange:x,onRangeChange:o,onCustomRangeChange:u}),e.jsx(sr,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground"})]})]})}),e.jsx(Ie,{className:"flex-1",children:k?.data?e.jsxs(lt,{className:"h-[400px] pr-4",children:[e.jsx("div",{className:"space-y-3",children:k.data.map(S=>e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("div",{className:"flex cursor-pointer items-center justify-between space-x-2 rounded-lg bg-muted/50 p-2 transition-colors hover:bg-muted/70",children:e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"truncate text-sm font-medium",children:S.name}),e.jsxs("span",{className:_("ml-2 flex items-center text-xs font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?e.jsx(un,{className:"mr-1 h-3 w-3"}):e.jsx(xn,{className:"mr-1 h-3 w-3"}),Math.abs(S.change),"%"]})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${S.value/k.data[0].value*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:vt(S.value)})]})]})})}),e.jsx(oe,{side:"right",className:"space-y-2 p-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.currentTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(S.value)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.previousTraffic"),":"]}),e.jsx("span",{className:"font-medium",children:vt(S.previousValue)}),e.jsxs("span",{className:"text-muted-foreground",children:[a("dashboard:trafficRank.changeRate"),":"]}),e.jsxs("span",{className:_("font-medium",S.change>=0?"text-green-600":"text-red-600"),children:[S.change>=0?"+":"",S.change,"%"]})]})})]})},S.id))}),e.jsx(Da,{orientation:"vertical"})]}):e.jsx("div",{className:"flex h-[400px] items-center justify-center",children:e.jsx("div",{className:"animate-pulse",children:a("common:loading")})})})]})]})}const Nm=it("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/10",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function U({className:s,variant:a,...t}){return e.jsx("div",{className:_(Nm({variant:a}),s),...t})}const ga=d.forwardRef(({className:s,value:a,...t},r)=>e.jsx(ol,{ref:r,className:_("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",s),...t,children:e.jsx(yc,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));ga.displayName=ol.displayName;const In=d.forwardRef(({className:s,...a},t)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:t,className:_("w-full caption-bottom text-sm",s),...a})}));In.displayName="Table";const Vn=d.forwardRef(({className:s,...a},t)=>e.jsx("thead",{ref:t,className:_("[&_tr]:border-b",s),...a}));Vn.displayName="TableHeader";const Mn=d.forwardRef(({className:s,...a},t)=>e.jsx("tbody",{ref:t,className:_("[&_tr:last-child]:border-0",s),...a}));Mn.displayName="TableBody";const _m=d.forwardRef(({className:s,...a},t)=>e.jsx("tfoot",{ref:t,className:_("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",s),...a}));_m.displayName="TableFooter";const Bs=d.forwardRef(({className:s,...a},t)=>e.jsx("tr",{ref:t,className:_("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",s),...a}));Bs.displayName="TableRow";const On=d.forwardRef(({className:s,...a},t)=>e.jsx("th",{ref:t,className:_("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...a}));On.displayName="TableHead";const wt=d.forwardRef(({className:s,...a},t)=>e.jsx("td",{ref:t,className:_("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",s),...a}));wt.displayName="TableCell";const wm=d.forwardRef(({className:s,...a},t)=>e.jsx("caption",{ref:t,className:_("mt-4 text-sm text-muted-foreground",s),...a}));wm.displayName="TableCaption";function zn({table:s}){const[a,t]=d.useState(""),{t:r}=I("common");d.useEffect(()=>{t((s.getState().pagination.pageIndex+1).toString())},[s.getState().pagination.pageIndex]);const n=i=>{const l=parseInt(i);!isNaN(l)&&l>=1&&l<=s.getPageCount()?s.setPageIndex(l-1):t((s.getState().pagination.pageIndex+1).toString())};return e.jsxs("div",{className:"flex flex-col-reverse gap-4 px-2 py-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx("div",{className:"flex-1 text-sm text-muted-foreground",children:r("table.pagination.selected",{selected:s.getFilteredSelectedRowModel().rows.length,total:s.getFilteredRowModel().rows.length})}),e.jsxs("div",{className:"flex flex-col-reverse items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:r("table.pagination.itemsPerPage")}),e.jsxs(J,{value:`${s.getState().pagination.pageSize}`,onValueChange:i=>{s.setPageSize(Number(i))},children:[e.jsx(W,{className:"h-8 w-[70px]",children:e.jsx(Q,{placeholder:s.getState().pagination.pageSize})}),e.jsx(Y,{side:"top",children:[10,20,30,40,50,100,500].map(i=>e.jsx($,{value:`${i}`,children:i},i))})]})]}),e.jsxs("div",{className:"flex items-center justify-center space-x-2 text-sm font-medium",children:[e.jsx("span",{children:r("table.pagination.page")}),e.jsx(T,{type:"text",value:a,onChange:i=>t(i.target.value),onBlur:i=>n(i.target.value),onKeyDown:i=>{i.key==="Enter"&&n(i.currentTarget.value)},className:"h-8 w-[50px] text-center"}),e.jsx("span",{children:r("table.pagination.pageOf",{total:s.getPageCount()})})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(L,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(0),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.firstPage")}),e.jsx(Nc,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.previousPage(),disabled:!s.getCanPreviousPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.previousPage")}),e.jsx(nl,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>s.nextPage(),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.nextPage")}),e.jsx(Cn,{className:"h-4 w-4"})]}),e.jsxs(L,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>s.setPageIndex(s.getPageCount()-1),disabled:!s.getCanNextPage(),children:[e.jsx("span",{className:"sr-only",children:r("table.pagination.lastPage")}),e.jsx(_c,{className:"h-4 w-4"})]})]})]})]})}function xs({table:s,toolbar:a,draggable:t=!1,onDragStart:r,onDragEnd:n,onDragOver:i,onDragLeave:l,onDrop:o,showPagination:x=!0,isLoading:u=!1}){const{t:c}=I("common"),m=d.useRef(null),p=s.getAllColumns().filter(w=>w.getIsPinned()==="left"),k=s.getAllColumns().filter(w=>w.getIsPinned()==="right"),S=w=>p.slice(0,w).reduce((C,V)=>C+(V.getSize()??0),0),f=w=>k.slice(w+1).reduce((C,V)=>C+(V.getSize()??0),0);return e.jsxs("div",{className:"space-y-4",children:[typeof a=="function"?a(s):a,e.jsx("div",{ref:m,className:"relative overflow-auto rounded-md border bg-card",children:e.jsx("div",{className:"overflow-auto",children:e.jsxs(In,{children:[e.jsx(Vn,{children:s.getHeaderGroups().map(w=>e.jsx(Bs,{className:"hover:bg-transparent",children:w.headers.map((C,V)=>{const F=C.column.getIsPinned()==="left",g=C.column.getIsPinned()==="right",y=F?S(p.indexOf(C.column)):void 0,D=g?f(k.indexOf(C.column)):void 0;return e.jsx(On,{colSpan:C.colSpan,style:{width:C.getSize(),...F&&{left:y},...g&&{right:D}},className:_("h-11 bg-card px-4 text-muted-foreground",(F||g)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",F&&"before:right-0",g&&"before:left-0"]),children:C.isPlaceholder?null:ya(C.column.columnDef.header,C.getContext())},C.id)})},w.id))}),e.jsx(Mn,{children:s.getRowModel().rows?.length?s.getRowModel().rows.map((w,C)=>e.jsx(Bs,{"data-state":w.getIsSelected()&&"selected",className:"hover:bg-muted/50",draggable:t,onDragStart:V=>r?.(V,C),onDragEnd:n,onDragOver:i,onDragLeave:l,onDrop:V=>o?.(V,C),children:w.getVisibleCells().map((V,F)=>{const g=V.column.getIsPinned()==="left",y=V.column.getIsPinned()==="right",D=g?S(p.indexOf(V.column)):void 0,z=y?f(k.indexOf(V.column)):void 0;return e.jsx(wt,{style:{width:V.column.getSize(),...g&&{left:D},...y&&{right:z}},className:_("bg-card",(g||y)&&["sticky z-20","before:absolute before:bottom-0 before:top-0 before:w-[1px] before:bg-border",g&&"before:right-0",y&&"before:left-0"]),children:ya(V.column.columnDef.cell,V.getContext())},V.id)})},w.id)):e.jsx(Bs,{children:e.jsx(wt,{colSpan:s.getAllColumns().length,className:"h-24 text-center",children:c("table.noData")})})})]})})}),x&&e.jsx(zn,{table:s})]})}const fa=s=>{if(!s)return"";let a;if(typeof s=="string"){if(a=parseInt(s),isNaN(a))return s}else a=s;return(a.toString().length===10?new Date(a*1e3):new Date(a)).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})},zt=cl(),$t=cl();function da({data:s,isLoading:a,searchKeyword:t,selectedLevel:r,total:n,currentPage:i,pageSize:l,onViewDetail:o,onPageChange:x}){const{t:u}=I(),c=k=>{switch(k.toLowerCase()){case"info":return e.jsx(Ht,{className:"h-4 w-4 text-blue-500"});case"warning":return e.jsx(Ut,{className:"h-4 w-4 text-yellow-500"});case"error":return e.jsx(gn,{className:"h-4 w-4 text-red-500"});default:return e.jsx(Ht,{className:"h-4 w-4 text-slate-500"})}},m=d.useMemo(()=>[zt.accessor("level",{id:"level",header:()=>u("dashboard:systemLog.level"),size:80,cell:({getValue:k,row:S})=>{const f=k();return e.jsxs("div",{className:"flex items-center gap-1",children:[c(f),e.jsx("span",{className:_(f.toLowerCase()==="error"&&"text-red-600",f.toLowerCase()==="warning"&&"text-yellow-600",f.toLowerCase()==="info"&&"text-blue-600"),children:f})]})}}),zt.accessor("created_at",{id:"created_at",header:()=>u("dashboard:systemLog.time"),size:160,cell:({getValue:k})=>fa(k())}),zt.accessor(k=>k.title||k.message||"",{id:"title",header:()=>u("dashboard:systemLog.logTitle"),cell:({getValue:k})=>e.jsx("span",{className:"inline-block max-w-[300px] truncate",children:k()})}),zt.accessor("method",{id:"method",header:()=>u("dashboard:systemLog.method"),size:100,cell:({getValue:k})=>{const S=k();return S?e.jsx(U,{variant:"outline",className:_(S==="GET"&&"border-blue-200 bg-blue-50 text-blue-700",S==="POST"&&"border-green-200 bg-green-50 text-green-700",S==="PUT"&&"border-amber-200 bg-amber-50 text-amber-700",S==="DELETE"&&"border-red-200 bg-red-50 text-red-700"),children:S}):null}}),zt.display({id:"actions",header:()=>u("dashboard:systemLog.action"),size:80,cell:({row:k})=>e.jsx(G,{variant:"ghost",size:"sm",onClick:()=>o(k.original),"aria-label":u("dashboard:systemLog.viewDetail"),children:e.jsx(hn,{className:"h-4 w-4"})})})],[u,o]),p=ss({data:s,columns:m,getCoreRowModel:ts(),getPaginationRowModel:us(),pageCount:Math.ceil(n/l),manualPagination:!0,state:{pagination:{pageIndex:i-1,pageSize:l}},onPaginationChange:k=>{if(typeof k=="function"){const S=k({pageIndex:i-1,pageSize:l});x(S.pageIndex+1)}else x(k.pageIndex+1)}});return e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(xs,{table:p,showPagination:!1,isLoading:a}),e.jsx(zn,{table:p}),(t||r&&r!=="all")&&e.jsx("div",{className:"text-center text-sm text-muted-foreground",children:t&&r&&r!=="all"?u("dashboard:systemLog.filter.searchAndLevel",{keyword:t,level:r,count:n}):t?u("dashboard:systemLog.filter.searchOnly",{keyword:t,count:n}):u("dashboard:systemLog.filter.levelOnly",{level:r,count:n})})]})}function Cm(){const{t:s}=I(),[a,t]=d.useState(0),[r,n]=d.useState(!1),[i,l]=d.useState(1),[o]=d.useState(10),[x,u]=d.useState(null),[c,m]=d.useState(!1),[p,k]=d.useState(!1),[S,f]=d.useState(1),[w]=d.useState(10),[C,V]=d.useState(null),[F,g]=d.useState(!1),[y,D]=d.useState(""),[z,R]=d.useState(""),[K,ae]=d.useState("all"),[ee,te]=d.useState(!1),[H,E]=d.useState(0),[X,Ns]=d.useState("all"),[De,ie]=d.useState(1e3),[_s,Is]=d.useState(!1),[Xs,Rt]=d.useState(null),[ea,Et]=d.useState(!1);d.useEffect(()=>{const B=setTimeout(()=>{R(y),y!==z&&f(1)},500);return()=>clearTimeout(B)},[y]);const{data:Hs,isLoading:Xa,refetch:se,isRefetching:je}=ne({queryKey:["systemStatus",a],queryFn:async()=>(await he.getSystemStatus()).data,refetchInterval:3e4}),{data:re,isLoading:Zs,refetch:vg,isRefetching:Bn}=ne({queryKey:["queueStats",a],queryFn:async()=>(await he.getQueueStats()).data,refetchInterval:3e4}),{data:Gn,isLoading:wi,refetch:Ci}=ne({queryKey:["failedJobs",i,o],queryFn:async()=>{const B=await he.getHorizonFailedJobs({current:i,page_size:o});return{data:B.data,total:B.total||0}},enabled:r}),{data:Wn,isLoading:sa,refetch:Si}=ne({queryKey:["systemLogs",S,w,K,z],queryFn:async()=>{const B={current:S,page_size:w};K&&K!=="all"&&(B.level=K),z.trim()&&(B.keyword=z.trim());const ws=await he.getSystemLog(B);return{data:ws.data,total:ws.total||0}},enabled:p}),Yn=Gn?.data||[],ki=Gn?.total||0,ta=Wn?.data||[],aa=Wn?.total||0,Ti=d.useMemo(()=>[$t.display({id:"failed_at",header:()=>s("dashboard:queue.details.time"),cell:({row:B})=>fa(B.original.failed_at)}),$t.display({id:"queue",header:()=>s("dashboard:queue.details.queue"),cell:({row:B})=>B.original.queue}),$t.display({id:"name",header:()=>s("dashboard:queue.details.name"),cell:({row:B})=>e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[150px] truncate",children:B.original.name})}),e.jsx(oe,{children:e.jsx("span",{children:B.original.name})})]})})}),$t.display({id:"exception",header:()=>s("dashboard:queue.details.exception"),cell:({row:B})=>e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("span",{className:"inline-block max-w-[200px] truncate",children:B.original.exception.split(` +`)[0]})}),e.jsx(oe,{className:"max-w-[300px] whitespace-pre-wrap",children:e.jsx("span",{children:B.original.exception})})]})})}),$t.display({id:"actions",header:()=>s("dashboard:queue.details.action"),size:80,cell:({row:B})=>e.jsx(G,{variant:"ghost",size:"sm",onClick:()=>Ri(B.original),"aria-label":s("dashboard:queue.details.viewDetail"),children:e.jsx(hn,{className:"h-4 w-4"})})})],[s]),Jn=ss({data:Yn,columns:Ti,getCoreRowModel:ts(),getPaginationRowModel:us(),pageCount:Math.ceil(ki/o),manualPagination:!0,state:{pagination:{pageIndex:i-1,pageSize:o}},onPaginationChange:B=>{if(typeof B=="function"){const ws=B({pageIndex:i-1,pageSize:o});Qn(ws.pageIndex+1)}else Qn(B.pageIndex+1)}}),Di=()=>{t(B=>B+1)},Qn=B=>{l(B)},na=B=>{f(B)},Li=B=>{ae(B),f(1)},Pi=()=>{D(""),R(""),ae("all"),f(1)},ra=B=>{V(B),g(!0)},Ri=B=>{u(B),m(!0)},Ei=async()=>{try{const B=await he.getLogClearStats({days:H,level:X==="all"?void 0:X});Rt(B.data),Et(!0)}catch(B){console.error("Failed to get clear stats:",B),q.error(s("dashboard:systemLog.getStatsFailed"))}},Fi=async()=>{Is(!0);try{const{data:B}=await he.clearSystemLog({days:H,level:X==="all"?void 0:X,limit:De});B&&(q.success(s("dashboard:systemLog.clearSuccess",{count:B.cleared_count}),{duration:3e3}),te(!1),Et(!1),Rt(null),se())}catch(B){console.error("Failed to clear logs:",B),q.error(s("dashboard:systemLog.clearLogsFailed"))}finally{Is(!1)}};if(Xa||Zs)return e.jsx("div",{className:"flex items-center justify-center p-6",children:e.jsx(Na,{className:"h-6 w-6 animate-spin"})});const Ii=B=>B?e.jsx(dl,{className:"h-5 w-5 text-green-500"}):e.jsx(ml,{className:"h-5 w-5 text-red-500"});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs(Re,{children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(Ge,{className:"flex items-center gap-2",children:[e.jsx(wc,{className:"h-5 w-5"}),s("dashboard:queue.title")]}),e.jsx(zs,{children:s("dashboard:queue.status.description")})]}),e.jsx(G,{variant:"outline",size:"icon",onClick:Di,disabled:je||Bn,children:e.jsx(Za,{className:_("h-4 w-4",(je||Bn)&&"animate-spin")})})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[Ii(re?.status||!1),e.jsx("span",{className:"font-medium",children:s("dashboard:queue.status.running")})]}),e.jsx(U,{variant:re?.status?"secondary":"destructive",children:re?.status?s("dashboard:queue.status.normal"):s("dashboard:queue.status.abnormal")})]}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.status.waitTime",{seconds:re?.wait?.default||0})})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.recentJobs")}),e.jsx("p",{className:"text-2xl font-bold",children:re?.recentJobs||0}),e.jsx(ga,{value:(re?.recentJobs||0)/(re?.periods?.recentJobs||1)*100,className:"h-1"})]})}),e.jsx(oe,{children:e.jsx("p",{children:s("dashboard:queue.details.statisticsPeriod",{hours:re?.periods?.recentJobs||0})})})]})}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.jobsPerMinute")}),e.jsx("p",{className:"text-2xl font-bold",children:re?.jobsPerMinute||0}),e.jsx(ga,{value:(re?.jobsPerMinute||0)/(re?.queueWithMaxThroughput?.throughput||1)*100,className:"h-1"})]})}),e.jsx(oe,{children:e.jsx("p",{children:s("dashboard:queue.details.maxThroughput",{value:re?.queueWithMaxThroughput?.throughput||0})})})]})})]})]})})]}),e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsxs(Ge,{className:"flex items-center gap-2",children:[e.jsx(Cc,{className:"h-5 w-5"}),s("dashboard:queue.jobDetails")]}),e.jsx(zs,{children:s("dashboard:queue.details.description")})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.failedJobs7Days")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"cursor-pointer text-2xl font-bold text-destructive hover:underline",title:s("dashboard:queue.details.viewFailedJobs"),onClick:()=>n(!0),style:{userSelect:"none"},children:re?.failedJobs||0}),e.jsx(hn,{className:"h-4 w-4 cursor-pointer text-muted-foreground hover:text-destructive",onClick:()=>n(!0),"aria-label":s("dashboard:queue.details.viewFailedJobs")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("dashboard:queue.details.retentionPeriod",{hours:re?.periods?.failedJobs||0})})]}),e.jsxs("div",{className:"space-y-2 rounded-lg bg-muted/50 p-3",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.longestRunningQueue")}),e.jsxs("p",{className:"text-2xl font-bold",children:[re?.queueWithMaxRuntime?.runtime||0,"s"]}),e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:re?.queueWithMaxRuntime?.name||"N/A"})]})]}),e.jsxs("div",{className:"rounded-lg bg-muted/50 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:s("dashboard:queue.details.activeProcesses")}),e.jsxs("span",{className:"font-medium",children:[re?.processes||0," /"," ",(re?.processes||0)+(re?.pausedMasters||0)]})]}),e.jsx(ga,{value:(re?.processes||0)/((re?.processes||0)+(re?.pausedMasters||0))*100,className:"mt-2 h-1"})]})]})})]})]}),e.jsxs(Re,{children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs(Ge,{className:"flex items-center gap-2",children:[e.jsx(tr,{className:"h-5 w-5"}),s("dashboard:systemLog.title")]}),e.jsx(zs,{children:s("dashboard:systemLog.description")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(G,{variant:"outline",onClick:()=>k(!0),children:s("dashboard:systemLog.viewAll")}),e.jsxs(G,{variant:"outline",onClick:()=>te(!0),className:"text-destructive hover:text-destructive",children:[e.jsx(ds,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.clearLogs")]})]})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[e.jsxs("div",{className:"space-y-2 rounded-lg border border-blue-200 bg-blue-50 p-3 dark:border-blue-900 dark:bg-blue-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ht,{className:"h-5 w-5 text-blue-500"}),e.jsx("p",{className:"font-medium text-blue-700 dark:text-blue-300",children:s("dashboard:systemLog.tabs.info")})]}),e.jsx("p",{className:"text-2xl font-bold text-blue-700 dark:text-blue-300",children:Hs?.logs?.info||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-yellow-200 bg-yellow-50 p-3 dark:border-yellow-900 dark:bg-yellow-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ut,{className:"h-5 w-5 text-yellow-500"}),e.jsx("p",{className:"font-medium text-yellow-700 dark:text-yellow-300",children:s("dashboard:systemLog.tabs.warning")})]}),e.jsx("p",{className:"text-2xl font-bold text-yellow-700 dark:text-yellow-300",children:Hs?.logs?.warning||0})]}),e.jsxs("div",{className:"space-y-2 rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-900 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(gn,{className:"h-5 w-5 text-red-500"}),e.jsx("p",{className:"font-medium text-red-700 dark:text-red-300",children:s("dashboard:systemLog.tabs.error")})]}),e.jsx("p",{className:"text-2xl font-bold text-red-700 dark:text-red-300",children:Hs?.logs?.error||0})]})]}),Hs?.logs&&Hs.logs.total>0&&e.jsxs("div",{className:"mt-3 text-center text-sm text-muted-foreground",children:[s("dashboard:systemLog.totalLogs"),": ",Hs.logs.total]})]})})]}),e.jsx(ge,{open:r,onOpenChange:n,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:queue.details.failedJobsDetailTitle")})}),e.jsxs("div",{className:"overflow-x-auto",children:[e.jsx(xs,{table:Jn,showPagination:!1,isLoading:wi}),e.jsx(zn,{table:Jn}),Yn.length===0&&e.jsx("div",{className:"py-8 text-center text-muted-foreground",children:s("dashboard:queue.details.noFailedJobs")})]}),e.jsxs(Pe,{children:[e.jsxs(G,{variant:"outline",onClick:()=>Ci(),children:[e.jsx(Za,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh")]}),e.jsx(Gs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common:close")})})]})]})}),e.jsx(ge,{open:c,onOpenChange:m,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:queue.details.jobDetailTitle")})}),x&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.id")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:x.id})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.time")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:x.failed_at})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.queue")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:x.queue})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.connection")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:x.connection})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.name")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:x.name})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.exception")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-red-700 dark:text-red-300",children:x.exception})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:queue.details.payload")}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(x.payload),null,2)}catch{return x.payload}})()})})]})]}),e.jsx(Pe,{children:e.jsx(G,{variant:"outline",onClick:()=>m(!1),children:s("common:close")})})]})}),e.jsx(ge,{open:p,onOpenChange:k,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:systemLog.title")})}),e.jsxs(Lt,{value:K,onValueChange:Li,className:"w-full overflow-x-auto",children:[e.jsxs("div",{className:"mb-4 flex flex-col gap-2 p-1 md:flex-row md:items-center md:justify-between",children:[e.jsxs(dt,{className:"grid w-auto grid-cols-4",children:[e.jsxs(Xe,{value:"all",className:"flex items-center gap-2",children:[e.jsx(tr,{className:"h-4 w-4"}),s("dashboard:systemLog.tabs.all")]}),e.jsxs(Xe,{value:"info",className:"flex items-center gap-2",children:[e.jsx(Ht,{className:"h-4 w-4 text-blue-500"}),s("dashboard:systemLog.tabs.info")]}),e.jsxs(Xe,{value:"warning",className:"flex items-center gap-2",children:[e.jsx(Ut,{className:"h-4 w-4 text-yellow-500"}),s("dashboard:systemLog.tabs.warning")]}),e.jsxs(Xe,{value:"error",className:"flex items-center gap-2",children:[e.jsx(gn,{className:"h-4 w-4 text-red-500"}),s("dashboard:systemLog.tabs.error")]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(kn,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(T,{placeholder:s("dashboard:systemLog.search"),value:y,onChange:B=>D(B.target.value),className:"w-full md:w-64"})]})]}),e.jsx(Ts,{value:"all",className:"mt-0",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:z,selectedLevel:K,total:aa,currentPage:S,pageSize:w,onViewDetail:ra,onPageChange:na})}),e.jsx(Ts,{value:"info",className:"mt-0 overflow-x-auto",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:z,selectedLevel:K,total:aa,currentPage:S,pageSize:w,onViewDetail:ra,onPageChange:na})}),e.jsx(Ts,{value:"warning",className:"mt-0",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:z,selectedLevel:K,total:aa,currentPage:S,pageSize:w,onViewDetail:ra,onPageChange:na})}),e.jsx(Ts,{value:"error",className:"mt-0",children:e.jsx(da,{data:ta,isLoading:sa,searchKeyword:z,selectedLevel:K,total:aa,currentPage:S,pageSize:w,onViewDetail:ra,onPageChange:na})})]}),e.jsxs(Pe,{children:[e.jsxs(G,{variant:"outline",onClick:()=>Si(),children:[e.jsx(Za,{className:"mr-2 h-4 w-4"}),s("dashboard:common.refresh")]}),e.jsx(G,{variant:"outline",onClick:Pi,children:s("dashboard:systemLog.filter.reset")}),e.jsx(Gs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common:close")})})]})]})}),e.jsx(ge,{open:F,onOpenChange:g,children:e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-y-auto",children:[e.jsx(be,{children:e.jsx(fe,{children:s("dashboard:systemLog.detailTitle")})}),C&&e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.level")}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Ht,{className:"h-4 w-4"}),e.jsx("p",{className:"font-medium",children:C.level})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.time")}),e.jsx("p",{children:fa(C.created_at)||fa(C.updated_at)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.logTitle")}),e.jsx("div",{className:"whitespace-pre-wrap rounded-md bg-muted/50 p-3",children:C.title||C.message||""})]}),(C.host||C.ip)&&e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[C.host&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.host")}),e.jsx("p",{className:"break-all rounded-md bg-muted/50 p-2 text-sm",children:C.host})]}),C.ip&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.ip")}),e.jsx("p",{className:"rounded-md bg-muted/50 p-2 text-sm",children:C.ip})]})]}),C.uri&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.uri")}),e.jsx("div",{className:"overflow-x-auto rounded-md bg-muted/50 p-3",children:e.jsx("code",{className:"text-sm",children:C.uri})})]}),C.method&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.method")}),e.jsx("div",{children:e.jsx(U,{variant:"outline",className:"text-base font-medium",children:C.method})})]}),C.data&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.requestData")}),e.jsx("div",{className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/50 p-3",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs",children:(()=>{try{return JSON.stringify(JSON.parse(C.data),null,2)}catch{return C.data}})()})})]}),C.context&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:s("dashboard:systemLog.exception")}),e.jsx("div",{className:"max-h-[250px] overflow-y-auto rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all text-xs text-red-700 dark:text-red-300",children:(()=>{try{const B=JSON.parse(C.context);if(B.exception){const ws=B.exception,ht=ws["\0*\0message"]||"",Vi=ws["\0*\0file"]||"",Mi=ws["\0*\0line"]||"";return`${ht} File: ${Vi} -Line: ${Mi}`}return JSON.stringify(B,null,2)}catch{return w.context}})()})})]})]}),e.jsx(Pe,{children:e.jsx(Gs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common:close")})})})]})}),e.jsx(ge,{open:ee,onOpenChange:te,children:e.jsxs(ue,{className:"max-w-2xl",children:[e.jsx(be,{children:e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(ds,{className:"h-5 w-5 text-destructive"}),s("dashboard:systemLog.clearLogs")]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"clearDays",children:s("dashboard:systemLog.clearDays")}),e.jsx(D,{id:"clearDays",type:"number",min:"0",max:"365",value:H,onChange:B=>{const ws=B.target.value;if(ws==="")E(0);else{const ht=parseInt(ws);!isNaN(ht)&&ht>=0&&ht<=365&&E(ht)}},placeholder:"0"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("dashboard:systemLog.clearDaysDesc")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"clearLevel",children:s("dashboard:systemLog.clearLevel")}),e.jsxs(J,{value:X,onValueChange:Ns,children:[e.jsx(W,{children:e.jsx(Q,{})}),e.jsxs(Y,{children:[e.jsx(A,{value:"all",children:s("dashboard:systemLog.tabs.all")}),e.jsx(A,{value:"info",children:s("dashboard:systemLog.tabs.info")}),e.jsx(A,{value:"warning",children:s("dashboard:systemLog.tabs.warning")}),e.jsx(A,{value:"error",children:s("dashboard:systemLog.tabs.error")})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"clearLimit",children:s("dashboard:systemLog.clearLimit")}),e.jsx(D,{id:"clearLimit",type:"number",min:"100",max:"10000",value:De,onChange:B=>ie(parseInt(B.target.value)||1e3),placeholder:"1000"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("dashboard:systemLog.clearLimitDesc")})]})]}),e.jsxs("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4 dark:border-amber-900 dark:bg-amber-950/30",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Dn,{className:"h-5 w-5 text-amber-600"}),e.jsx("span",{className:"font-medium text-amber-800 dark:text-amber-200",children:s("dashboard:systemLog.clearPreview")})]}),e.jsxs(G,{variant:"outline",size:"sm",onClick:Ei,disabled:_s,children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.getStats")]})]}),ea&&Xs&&e.jsxs("div",{className:"mt-4 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:systemLog.cutoffDate")}),e.jsx("p",{className:"font-mono text-sm",children:Xs.cutoff_date})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:systemLog.totalLogs")}),e.jsx("p",{className:"font-mono text-sm font-medium",children:Xs.total_logs.toLocaleString()})]})]}),e.jsxs("div",{className:"rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ut,{className:"h-4 w-4 text-red-600"}),e.jsxs("span",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:[s("dashboard:systemLog.willClear"),":",e.jsx("span",{className:"ml-1 font-bold",children:Xs.logs_to_clear.toLocaleString()}),s("dashboard:systemLog.logsUnit")]})]}),e.jsx("p",{className:"mt-1 text-xs text-red-600 dark:text-red-300",children:s("dashboard:systemLog.clearWarning")})]})]})]})]}),e.jsxs(Pe,{children:[e.jsx(G,{variant:"outline",onClick:()=>{te(!1),Et(!1),Rt(null)},children:s("common:cancel")}),e.jsx(G,{variant:"destructive",onClick:Fi,disabled:_s||!ea||!Xs,children:_s?e.jsxs(e.Fragment,{children:[e.jsx(Na,{className:"mr-2 h-4 w-4 animate-spin"}),s("dashboard:systemLog.clearing")]}):e.jsxs(e.Fragment,{children:[e.jsx(ds,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.confirmClear")]})})]})]})})]})}function Sm(){const{t:s}=I();return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx("div",{className:"flex items-center",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("dashboard:title")})}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(ns,{}),e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsx(He,{children:e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"grid gap-6",children:[e.jsx(bm,{}),e.jsx(gm,{}),e.jsx(ym,{}),e.jsx(Cm,{})]})})})]})}const km=Object.freeze(Object.defineProperty({__proto__:null,default:Sm},Symbol.toStringTag,{value:"Module"}));function Tm({className:s,items:n,...t}){const{pathname:r}=Nn(),a=qs(),[i,l]=m.useState(r??"/settings"),d=o=>{l(o),a(o)},{t:u}=I("settings");return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-1 md:hidden",children:e.jsxs(J,{value:i,onValueChange:d,children:[e.jsx(W,{className:"h-12 sm:w-48",children:e.jsx(Q,{placeholder:"Theme"})}),e.jsx(Y,{children:n.map(o=>e.jsx(A,{value:o.href,children:e.jsxs("div",{className:"flex gap-x-4 px-2 py-1",children:[e.jsx("span",{className:"scale-125",children:o.icon}),e.jsx("span",{className:"text-md",children:u(o.title)})]})},o.href))})]})}),e.jsx("div",{className:"hidden w-full overflow-x-auto bg-background px-1 py-2 md:block",children:e.jsx("nav",{className:y("flex space-x-2 lg:flex-col lg:space-x-0 lg:space-y-1",s),...t,children:n.map(o=>e.jsxs(Ys,{to:o.href,className:y(Dt({variant:"ghost"}),r===o.href?"bg-muted hover:bg-muted":"hover:bg-transparent hover:underline","justify-start"),children:[e.jsx("span",{className:"mr-2",children:o.icon}),u(o.title)]},o.href))})})]})}const Dm=[{title:"site.title",key:"site",icon:e.jsx(Sc,{size:18}),href:"/config/system",description:"site.description"},{title:"safe.title",key:"safe",icon:e.jsx(Br,{size:18}),href:"/config/system/safe",description:"safe.description"},{title:"subscribe.title",key:"subscribe",icon:e.jsx(Gr,{size:18}),href:"/config/system/subscribe",description:"subscribe.description"},{title:"invite.title",key:"invite",icon:e.jsx(kc,{size:18}),href:"/config/system/invite",description:"invite.description"},{title:"server.title",key:"server",icon:e.jsx(Kr,{size:18}),href:"/config/system/server",description:"server.description"},{title:"email.title",key:"email",icon:e.jsx(Tc,{size:18}),href:"/config/system/email",description:"email.description"},{title:"telegram.title",key:"telegram",icon:e.jsx(Dc,{size:18}),href:"/config/system/telegram",description:"telegram.description"},{title:"app.title",key:"app",icon:e.jsx(Ur,{size:18}),href:"/config/system/app",description:"app.description"},{title:"subscribe_template.title",key:"subscribe_template",icon:e.jsx(Lc,{size:18}),href:"/config/system/subscribe-template",description:"subscribe_template.description"}];function Lm(){const{t:s}=I("settings");return e.jsxs(ze,{fadedBelow:!0,fixedHeight:!0,children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("title")}),e.jsx("div",{className:"text-muted-foreground",children:s("description")})]}),e.jsx(Te,{className:"my-6"}),e.jsxs("div",{className:"flex flex-1 flex-col space-y-8 overflow-auto lg:flex-row lg:space-x-12 lg:space-y-0",children:[e.jsx("aside",{className:"sticky top-0 lg:w-1/5",children:e.jsx(Tm,{items:Dm})}),e.jsx("div",{className:"flex-1 w-full p-1 pr-4",children:e.jsx("div",{className:"pb-16",children:e.jsx(_n,{})})})]})]})]})}const Pm=Object.freeze(Object.defineProperty({__proto__:null,default:Lm},Symbol.toStringTag,{value:"Module"})),Z=m.forwardRef(({className:s,...n},t)=>e.jsx(ul,{className:y("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",s),...n,ref:t,children:e.jsx(Pc,{className:y("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Z.displayName=ul.displayName;const Ls=m.forwardRef(({className:s,...n},t)=>e.jsx("textarea",{className:y("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...n}));Ls.displayName="Textarea";const Rm=x.object({logo:x.string().nullable().default(""),force_https:x.number().nullable().default(0),stop_register:x.number().nullable().default(0),app_name:x.string().nullable().default(""),app_description:x.string().nullable().default(""),app_url:x.string().nullable().default(""),subscribe_url:x.string().nullable().default(""),try_out_plan_id:x.number().nullable().default(0),try_out_hour:x.coerce.number().nullable().default(0),tos_url:x.string().nullable().default(""),currency:x.string().nullable().default(""),currency_symbol:x.string().nullable().default("")});function Em(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),{data:a}=ne({queryKey:["settings","site"],queryFn:()=>he.getSettings("site")}),{data:i}=ne({queryKey:["plans"],queryFn:()=>gs.getList()}),l=we({resolver:Ce(Rm),defaultValues:{},mode:"onBlur"}),{mutateAsync:d}=Ds({mutationFn:he.saveSettings,onSuccess:c=>{c.data&&q.success(s("common.autoSaved"))}});m.useEffect(()=>{if(a?.data?.site){const c=a?.data?.site;Object.entries(c).forEach(([h,S])=>{l.setValue(h,S)}),r.current=c}},[a]);const u=m.useCallback(ke.debounce(async c=>{if(!ke.isEqual(c,r.current)){t(!0);try{const h=Object.entries(c).reduce((S,[T,C])=>(S[T]=C===null?"":C,S),{});await d(h),r.current=c}finally{t(!1)}}},1e3),[d]),o=m.useCallback(c=>{u(c)},[u]);return m.useEffect(()=>{const c=l.watch(h=>{o(h)});return()=>c.unsubscribe()},[l.watch,o]),e.jsx(Se,{...l,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:l.control,name:"app_name",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteName.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.siteName.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.siteName.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"app_description",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteDescription.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.siteDescription.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.siteDescription.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"app_url",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.siteUrl.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.siteUrl.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.siteUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"force_https",render:({field:c})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("site.form.forceHttps.label")}),e.jsx(z,{children:s("site.form.forceHttps.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:!!c.value,onCheckedChange:h=>{c.onChange(Number(h)),o(l.getValues())}})})]})}),e.jsx(v,{control:l.control,name:"logo",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.logo.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.logo.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.logo.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"subscribe_url",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.subscribeUrl.label")}),e.jsx(N,{children:e.jsx(Ls,{placeholder:s("site.form.subscribeUrl.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.subscribeUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"tos_url",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.tosUrl.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.tosUrl.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.tosUrl.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"stop_register",render:({field:c})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("site.form.stopRegister.label")}),e.jsx(z,{children:s("site.form.stopRegister.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:!!c.value,onCheckedChange:h=>{c.onChange(Number(h)),o(l.getValues())}})})]})}),e.jsx(v,{control:l.control,name:"try_out_plan_id",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.tryOut.label")}),e.jsx(N,{children:e.jsxs(J,{value:c.value?.toString(),onValueChange:h=>{c.onChange(Number(h)),o(l.getValues())},children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("site.form.tryOut.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("site.form.tryOut.placeholder")}),i?.data?.map(h=>e.jsx(A,{value:h.id.toString(),children:h.name},h.id.toString()))]})]})}),e.jsx(z,{children:s("site.form.tryOut.description")}),e.jsx(P,{})]})}),!!l.watch("try_out_plan_id")&&e.jsx(v,{control:l.control,name:"try_out_hour",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"",children:s("site.form.tryOut.duration.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.tryOut.duration.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.tryOut.duration.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"currency",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.currency.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.currency.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.currency.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:l.control,name:"currency_symbol",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("site.form.currencySymbol.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("site.form.currencySymbol.placeholder"),...c,value:c.value||"",onChange:h=>{c.onChange(h),o(l.getValues())}})}),e.jsx(z,{children:s("site.form.currencySymbol.description")}),e.jsx(P,{})]})}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("site.form.saving")})]})})}function Fm(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("site.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("site.description")})]}),e.jsx(Te,{}),e.jsx(Em,{})]})}const Im=Object.freeze(Object.defineProperty({__proto__:null,default:Fm},Symbol.toStringTag,{value:"Module"})),Vm=x.object({email_verify:x.boolean().nullable(),safe_mode_enable:x.boolean().nullable(),secure_path:x.string().nullable(),email_whitelist_enable:x.boolean().nullable(),email_whitelist_suffix:x.array(x.string().nullable()).nullable(),email_gmail_limit_enable:x.boolean().nullable(),recaptcha_enable:x.boolean().nullable(),recaptcha_key:x.string().nullable(),recaptcha_site_key:x.string().nullable(),register_limit_by_ip_enable:x.boolean().nullable(),register_limit_count:x.coerce.string().transform(s=>s===""?null:s).nullable(),register_limit_expire:x.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_enable:x.boolean().nullable(),password_limit_count:x.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_expire:x.coerce.string().transform(s=>s===""?null:s).nullable()}),Mm={email_verify:!1,safe_mode_enable:!1,secure_path:"",email_whitelist_enable:!1,email_whitelist_suffix:[],email_gmail_limit_enable:!1,recaptcha_enable:!1,recaptcha_key:"",recaptcha_site_key:"",register_limit_by_ip_enable:!1,register_limit_count:"",register_limit_expire:"",password_limit_enable:!1,password_limit_count:"",password_limit_expire:""};function Om(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),a=we({resolver:Ce(Vm),defaultValues:Mm,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","safe"],queryFn:()=>he.getSettings("safe")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:o=>{o.data&&q.success(s("common.autoSaved"))}});m.useEffect(()=>{if(i?.data.safe){const o=i.data.safe;Object.entries(o).forEach(([c,h])=>{typeof h=="number"?a.setValue(c,String(h)):a.setValue(c,h)}),r.current=o}},[i]);const d=m.useCallback(ke.debounce(async o=>{if(!ke.isEqual(o,r.current)){t(!0);try{await l(o),r.current=o}finally{t(!1)}}},1e3),[l]),u=m.useCallback(o=>{d(o)},[d]);return m.useEffect(()=>{const o=a.watch(c=>{u(c)});return()=>o.unsubscribe()},[a.watch,u]),e.jsx(Se,{...a,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:a.control,name:"email_verify",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailVerify.label")}),e.jsx(z,{children:s("safe.form.emailVerify.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"email_gmail_limit_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.gmailLimit.label")}),e.jsx(z,{children:s("safe.form.gmailLimit.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"safe_mode_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.safeMode.label")}),e.jsx(z,{children:s("safe.form.safeMode.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"secure_path",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.securePath.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.securePath.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.securePath.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"email_whitelist_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailWhitelist.label")}),e.jsx(z,{children:s("safe.form.emailWhitelist.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),a.watch("email_whitelist_enable")&&e.jsx(v,{control:a.control,name:"email_whitelist_suffix",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.emailWhitelist.suffixes.label")}),e.jsx(N,{children:e.jsx(Ls,{placeholder:s("safe.form.emailWhitelist.suffixes.placeholder"),...o,value:(o.value||[]).join(` -`),onChange:c=>{const h=c.target.value.split(` -`).filter(Boolean);o.onChange(h),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.emailWhitelist.suffixes.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"recaptcha_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.enable.label")}),e.jsx(z,{children:s("safe.form.recaptcha.enable.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),a.watch("recaptcha_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:a.control,name:"recaptcha_site_key",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.siteKey.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.recaptcha.siteKey.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.recaptcha.siteKey.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"recaptcha_key",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.recaptcha.key.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.recaptcha.key.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.recaptcha.key.description")}),e.jsx(P,{})]})})]}),e.jsx(v,{control:a.control,name:"register_limit_by_ip_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.enable.label")}),e.jsx(z,{children:s("safe.form.registerLimit.enable.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),a.watch("register_limit_by_ip_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:a.control,name:"register_limit_count",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.count.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.registerLimit.count.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.registerLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"register_limit_expire",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.registerLimit.expire.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.registerLimit.expire.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.registerLimit.expire.description")}),e.jsx(P,{})]})})]}),e.jsx(v,{control:a.control,name:"password_limit_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.enable.label")}),e.jsx(z,{children:s("safe.form.passwordLimit.enable.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),a.watch("password_limit_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:a.control,name:"password_limit_count",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.count.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.passwordLimit.count.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.passwordLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"password_limit_expire",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("safe.form.passwordLimit.expire.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("safe.form.passwordLimit.expire.placeholder"),...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(z,{children:s("safe.form.passwordLimit.expire.description")}),e.jsx(P,{})]})})]}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("safe.form.saving")})]})})}function zm(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("safe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("safe.description")})]}),e.jsx(Te,{}),e.jsx(Om,{})]})}const $m=Object.freeze(Object.defineProperty({__proto__:null,default:zm},Symbol.toStringTag,{value:"Module"})),Am=x.object({plan_change_enable:x.boolean().nullable().default(!1),reset_traffic_method:x.coerce.number().nullable().default(0),surplus_enable:x.boolean().nullable().default(!1),new_order_event_id:x.coerce.number().nullable().default(0),renew_order_event_id:x.coerce.number().nullable().default(0),change_order_event_id:x.coerce.number().nullable().default(0),show_info_to_server_enable:x.boolean().nullable().default(!1),show_protocol_to_server_enable:x.boolean().nullable().default(!1),default_remind_expire:x.boolean().nullable().default(!1),default_remind_traffic:x.boolean().nullable().default(!1),subscribe_path:x.string().nullable().default("s")}),qm={plan_change_enable:!1,reset_traffic_method:0,surplus_enable:!1,new_order_event_id:0,renew_order_event_id:0,change_order_event_id:0,show_info_to_server_enable:!1,show_protocol_to_server_enable:!1,default_remind_expire:!1,default_remind_traffic:!1,subscribe_path:"s"};function Hm(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),a=we({resolver:Ce(Am),defaultValues:qm,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","subscribe"],queryFn:()=>he.getSettings("subscribe")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:o=>{o.data&&q.success(s("common.autoSaved"))}});m.useEffect(()=>{if(i?.data?.subscribe){const o=i?.data?.subscribe;Object.entries(o).forEach(([c,h])=>{a.setValue(c,h)}),r.current=o}},[i]);const d=m.useCallback(ke.debounce(async o=>{if(!ke.isEqual(o,r.current)){t(!0);try{await l(o),r.current=o}finally{t(!1)}}},1e3),[l]),u=m.useCallback(o=>{d(o)},[d]);return m.useEffect(()=>{const o=a.watch(c=>{u(c)});return()=>o.unsubscribe()},[a.watch,u]),e.jsx(Se,{...a,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:a.control,name:"plan_change_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.plan_change_enable.title")}),e.jsx(z,{children:s("subscribe.plan_change_enable.description")}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"reset_traffic_method",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.reset_traffic_method.title")}),e.jsxs(J,{onValueChange:o.onChange,value:o.value?.toString()||"0",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择重置方式"})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.reset_traffic_method.options.monthly_first")}),e.jsx(A,{value:"1",children:s("subscribe.reset_traffic_method.options.monthly_reset")}),e.jsx(A,{value:"2",children:s("subscribe.reset_traffic_method.options.no_reset")}),e.jsx(A,{value:"3",children:s("subscribe.reset_traffic_method.options.yearly_first")}),e.jsx(A,{value:"4",children:s("subscribe.reset_traffic_method.options.yearly_reset")})]})]}),e.jsx(z,{children:s("subscribe.reset_traffic_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"surplus_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.surplus_enable.title")}),e.jsx(z,{children:s("subscribe.surplus_enable.description")}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"new_order_event_id",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.new_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:o.onChange,value:o.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.new_order_event.options.no_action")}),e.jsx(A,{value:"1",children:s("subscribe.new_order_event.options.reset_traffic")})]})]})})}),e.jsx(z,{children:s("subscribe.new_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"renew_order_event_id",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.renew_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:o.onChange,value:o.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.renew_order_event.options.no_action")}),e.jsx(A,{value:"1",children:s("subscribe.renew_order_event.options.reset_traffic")})]})]})})}),e.jsx(z,{children:s("subscribe.renew_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"change_order_event_id",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.change_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:o.onChange,value:o.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("subscribe.change_order_event.options.no_action")}),e.jsx(A,{value:"1",children:s("subscribe.change_order_event.options.reset_traffic")})]})]})})}),e.jsx(z,{children:s("subscribe.change_order_event.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"subscribe_path",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("subscribe.subscribe_path.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:"subscribe",...o,value:o.value||"",onChange:c=>{o.onChange(c),u(a.getValues())}})}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:[s("subscribe.subscribe_path.description"),e.jsx("br",{}),s("subscribe.subscribe_path.current_format",{path:o.value||"s"})]}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"show_info_to_server_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("subscribe.show_info_to_server.title")}),e.jsx(z,{children:s("subscribe.show_info_to_server.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"show_protocol_to_server_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("subscribe.show_protocol_to_server.title")}),e.jsx(z,{children:s("subscribe.show_protocol_to_server.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value||!1,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function Um(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe.description")})]}),e.jsx(Te,{}),e.jsx(Hm,{})]})}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:Um},Symbol.toStringTag,{value:"Module"})),Bm=x.object({invite_force:x.boolean().default(!1),invite_commission:x.coerce.string().default("0"),invite_gen_limit:x.coerce.string().default("0"),invite_never_expire:x.boolean().default(!1),commission_first_time_enable:x.boolean().default(!1),commission_auto_check_enable:x.boolean().default(!1),commission_withdraw_limit:x.coerce.string().default("0"),commission_withdraw_method:x.array(x.string()).default(["支付宝","USDT","Paypal"]),withdraw_close_enable:x.boolean().default(!1),commission_distribution_enable:x.boolean().default(!1),commission_distribution_l1:x.coerce.number().default(0),commission_distribution_l2:x.coerce.number().default(0),commission_distribution_l3:x.coerce.number().default(0)}),Gm={invite_force:!1,invite_commission:"0",invite_gen_limit:"0",invite_never_expire:!1,commission_first_time_enable:!1,commission_auto_check_enable:!1,commission_withdraw_limit:"0",commission_withdraw_method:["支付宝","USDT","Paypal"],withdraw_close_enable:!1,commission_distribution_enable:!1,commission_distribution_l1:0,commission_distribution_l2:0,commission_distribution_l3:0};function Wm(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),a=we({resolver:Ce(Bm),defaultValues:Gm,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","invite"],queryFn:()=>he.getSettings("invite")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:o=>{o.data&&q.success(s("common.autoSaved"))}});m.useEffect(()=>{if(i?.data?.invite){const o=i?.data?.invite;Object.entries(o).forEach(([c,h])=>{typeof h=="number"?a.setValue(c,String(h)):a.setValue(c,h)}),r.current=o}},[i]);const d=m.useCallback(ke.debounce(async o=>{if(!ke.isEqual(o,r.current)){t(!0);try{await l(o),r.current=o}finally{t(!1)}}},1e3),[l]),u=m.useCallback(o=>{d(o)},[d]);return m.useEffect(()=>{const o=a.watch(c=>{u(c)});return()=>o.unsubscribe()},[a.watch,u]),e.jsx(Se,{...a,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:a.control,name:"invite_force",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.invite_force.title")}),e.jsx(z,{children:s("invite.invite_force.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"invite_commission",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("invite.invite_commission.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("invite.invite_commission.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("invite.invite_commission.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"invite_gen_limit",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("invite.invite_gen_limit.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("invite.invite_gen_limit.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("invite.invite_gen_limit.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"invite_never_expire",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.invite_never_expire.title")}),e.jsx(z,{children:s("invite.invite_never_expire.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"commission_first_time_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_first_time.title")}),e.jsx(z,{children:s("invite.commission_first_time.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"commission_auto_check_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_auto_check.title")}),e.jsx(z,{children:s("invite.commission_auto_check.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"commission_withdraw_limit",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("invite.commission_withdraw_limit.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("invite.commission_withdraw_limit.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("invite.commission_withdraw_limit.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"commission_withdraw_method",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("invite.commission_withdraw_method.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("invite.commission_withdraw_method.placeholder"),...o,value:Array.isArray(o.value)?o.value.join(","):"",onChange:c=>{const h=c.target.value.split(",").filter(Boolean);o.onChange(h),u(a.getValues())}})}),e.jsx(z,{children:s("invite.commission_withdraw_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"withdraw_close_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.withdraw_close.title")}),e.jsx(z,{children:s("invite.withdraw_close.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),e.jsx(v,{control:a.control,name:"commission_distribution_enable",render:({field:o})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("invite.commission_distribution.title")}),e.jsx(z,{children:s("invite.commission_distribution.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:c=>{o.onChange(c),u(a.getValues())}})})]})}),a.watch("commission_distribution_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(v,{control:a.control,name:"commission_distribution_l1",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:s("invite.commission_distribution.l1")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...o,value:o.value||"",onChange:c=>{const h=c.target.value?Number(c.target.value):0;o.onChange(h),u(a.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"commission_distribution_l2",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:s("invite.commission_distribution.l2")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...o,value:o.value||"",onChange:c=>{const h=c.target.value?Number(c.target.value):0;o.onChange(h),u(a.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"commission_distribution_l3",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:s("invite.commission_distribution.l3")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...o,value:o.value||"",onChange:c=>{const h=c.target.value?Number(c.target.value):0;o.onChange(h),u(a.getValues())}})}),e.jsx(P,{})]})})]}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("invite.saving")})]})})}function Ym(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("invite.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("invite.description")})]}),e.jsx(Te,{}),e.jsx(Wm,{})]})}const Jm=Object.freeze(Object.defineProperty({__proto__:null,default:Ym},Symbol.toStringTag,{value:"Module"})),Qm=x.object({frontend_theme:x.string().nullable(),frontend_theme_sidebar:x.string().nullable(),frontend_theme_header:x.string().nullable(),frontend_theme_color:x.string().nullable(),frontend_background_url:x.string().url().nullable()}),Xm={frontend_theme:"",frontend_theme_sidebar:"",frontend_theme_header:"",frontend_theme_color:"",frontend_background_url:""};function Zm(){const{data:s}=ne({queryKey:["settings","frontend"],queryFn:()=>he.getSettings("frontend")}),n=we({resolver:Ce(Qm),defaultValues:Xm,mode:"onChange"});m.useEffect(()=>{if(s?.data?.frontend){const r=s?.data?.frontend;Object.entries(r).forEach(([a,i])=>{n.setValue(a,i)})}},[s]);function t(r){he.saveSettings(r).then(({data:a})=>{a&&q.success("更新成功")})}return e.jsx(Se,{...n,children:e.jsxs("form",{onSubmit:n.handleSubmit(t),className:"space-y-8",children:[e.jsx(v,{control:n.control,name:"frontend_theme_sidebar",render:({field:r})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:"边栏风格"}),e.jsx(z,{children:"边栏风格"})]}),e.jsx(N,{children:e.jsx(Z,{checked:r.value,onCheckedChange:r.onChange})})]})}),e.jsx(v,{control:n.control,name:"frontend_theme_header",render:({field:r})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:"头部风格"}),e.jsx(z,{children:"边栏风格"})]}),e.jsx(N,{children:e.jsx(Z,{checked:r.value,onCheckedChange:r.onChange})})]})}),e.jsx(v,{control:n.control,name:"frontend_theme_color",render:({field:r})=>e.jsxs(p,{children:[e.jsx(j,{children:"主题色"}),e.jsxs("div",{className:"relative w-max",children:[e.jsx(N,{children:e.jsxs("select",{className:y(Dt({variant:"outline"}),"w-[200px] appearance-none font-normal"),...r,children:[e.jsx("option",{value:"default",children:"默认"}),e.jsx("option",{value:"black",children:"黑色"}),e.jsx("option",{value:"blackblue",children:"暗蓝色"}),e.jsx("option",{value:"green",children:"奶绿色"})]})}),e.jsx(Tn,{className:"absolute right-3 top-2.5 h-4 w-4 opacity-50"})]}),e.jsx(z,{children:"主题色"}),e.jsx(P,{})]})}),e.jsx(v,{control:n.control,name:"frontend_background_url",render:({field:r})=>e.jsxs(p,{children:[e.jsx(j,{children:"背景"}),e.jsx(N,{children:e.jsx(D,{placeholder:"请输入图片地址",...r})}),e.jsx(z,{children:"将会在后台登录页面进行展示。"}),e.jsx(P,{})]})}),e.jsx(L,{type:"submit",children:"保存设置"})]})})}function eu(){return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:"个性化设置"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"自定义系统界面外观,包括主题风格、布局、颜色方案、背景图等个性化选项。"})]}),e.jsx(Te,{}),e.jsx(Zm,{})]})}const su=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"})),tu=x.object({server_pull_interval:x.coerce.number().nullable(),server_push_interval:x.coerce.number().nullable(),server_token:x.string().nullable(),device_limit_mode:x.coerce.number().nullable()}),au={server_pull_interval:0,server_push_interval:0,server_token:"",device_limit_mode:0};function nu(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),a=we({resolver:Ce(tu),defaultValues:au,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","server"],queryFn:()=>he.getSettings("server")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:c=>{c.data&&q.success(s("common.AutoSaved"))}});m.useEffect(()=>{if(i?.data.server){const c=i.data.server;Object.entries(c).forEach(([h,S])=>{a.setValue(h,S)}),r.current=c}},[i]);const d=m.useCallback(ke.debounce(async c=>{if(!ke.isEqual(c,r.current)){t(!0);try{await l(c),r.current=c}finally{t(!1)}}},1e3),[l]),u=m.useCallback(c=>{d(c)},[d]);m.useEffect(()=>{const c=a.watch(h=>{u(h)});return()=>c.unsubscribe()},[a.watch,u]);const o=()=>{const c=Math.floor(Math.random()*17)+16,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let S="";for(let T=0;Te.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("server.server_token.title")}),e.jsx(N,{children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{placeholder:s("server.server_token.placeholder"),...c,value:c.value||"",className:"pr-10"}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 py-2",onClick:h=>{h.preventDefault(),o()},children:e.jsx(Rc,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"})})}),e.jsx(oe,{children:e.jsx("p",{children:s("server.server_token.generate_tooltip")})})]})})]})}),e.jsx(z,{children:s("server.server_token.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"server_pull_interval",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("server.server_pull_interval.title")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:s("server.server_pull_interval.placeholder"),...c,value:c.value||"",onChange:h=>{const S=h.target.value?Number(h.target.value):null;c.onChange(S)}})}),e.jsx(z,{children:s("server.server_pull_interval.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"server_push_interval",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("server.server_push_interval.title")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:s("server.server_push_interval.placeholder"),...c,value:c.value||"",onChange:h=>{const S=h.target.value?Number(h.target.value):null;c.onChange(S)}})}),e.jsx(z,{children:s("server.server_push_interval.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"device_limit_mode",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("server.device_limit_mode.title")}),e.jsxs(J,{onValueChange:c.onChange,value:c.value?.toString()||"0",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("server.device_limit_mode.placeholder")})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("server.device_limit_mode.strict")}),e.jsx(A,{value:"1",children:s("server.device_limit_mode.relaxed")})]})]}),e.jsx(z,{children:s("server.device_limit_mode.description")}),e.jsx(P,{})]})}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("server.saving")})]})})}function ru(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("server.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("server.description")})]}),e.jsx(Te,{}),e.jsx(nu,{})]})}const lu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"}));function iu({open:s,onOpenChange:n,result:t}){const r=!t.error;return e.jsx(ge,{open:s,onOpenChange:n,children:e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[r?e.jsx(dl,{className:"h-5 w-5 text-green-500"}):e.jsx(ml,{className:"h-5 w-5 text-destructive"}),e.jsx(fe,{children:r?"邮件发送成功":"邮件发送失败"})]}),e.jsx(Ve,{children:r?"测试邮件已成功发送,请检查收件箱":"发送测试邮件时遇到错误"})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"发送详情"}),e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2 text-sm",children:[e.jsx("div",{className:"text-muted-foreground",children:"收件地址"}),e.jsx("div",{children:t.email}),e.jsx("div",{className:"text-muted-foreground",children:"邮件主题"}),e.jsx("div",{children:t.subject}),e.jsx("div",{className:"text-muted-foreground",children:"模板名称"}),e.jsx("div",{children:t.template_name})]})]}),t.error&&e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium text-destructive",children:"错误信息"}),e.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive break-all",children:t.error})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"配置信息"}),e.jsx(lt,{className:"h-[200px] rounded-md border p-4",children:e.jsx("div",{className:"grid gap-2 text-sm",children:e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2",children:[e.jsx("div",{className:"text-muted-foreground",children:"驱动"}),e.jsx("div",{children:t.config.driver}),e.jsx("div",{className:"text-muted-foreground",children:"服务器"}),e.jsx("div",{children:t.config.host}),e.jsx("div",{className:"text-muted-foreground",children:"端口"}),e.jsx("div",{children:t.config.port}),e.jsx("div",{className:"text-muted-foreground",children:"加密方式"}),e.jsx("div",{children:t.config.encryption||"无"}),e.jsx("div",{className:"text-muted-foreground",children:"发件人"}),e.jsx("div",{children:t.config.from.address?`${t.config.from.address}${t.config.from.name?` (${t.config.from.name})`:""}`:"未设置"}),e.jsx("div",{className:"text-muted-foreground",children:"用户名"}),e.jsx("div",{children:t.config.username||"未设置"})]})})})]})]})]})})}const ou=x.object({email_template:x.string().nullable().default("classic"),email_host:x.string().nullable().default(""),email_port:x.coerce.number().nullable().default(465),email_username:x.string().nullable().default(""),email_password:x.string().nullable().default(""),email_encryption:x.string().nullable().default(""),email_from_address:x.string().email().nullable().default(""),remind_mail_enable:x.boolean().nullable().default(!1)});function cu(){const{t:s}=I("settings"),[n,t]=m.useState(null),[r,a]=m.useState(!1),i=m.useRef(null),[l,d]=m.useState(!1),u=we({resolver:Ce(ou),defaultValues:{},mode:"onBlur"}),{data:o}=ne({queryKey:["settings","email"],queryFn:()=>he.getSettings("email")}),{data:c}=ne({queryKey:["emailTemplate"],queryFn:()=>he.getEmailTemplate()}),{mutateAsync:h}=Ds({mutationFn:he.saveSettings,onSuccess:_=>{_.data&&q.success(s("common.autoSaved"))}}),{mutate:S,isPending:T}=Ds({mutationFn:he.sendTestMail,onMutate:()=>{t(null),a(!1)},onSuccess:_=>{t(_.data),a(!0),_.data.error?q.error(s("email.test.error")):q.success(s("email.test.success"))}});m.useEffect(()=>{if(o?.data.email){const _=o.data.email;Object.entries(_).forEach(([w,V])=>{u.setValue(w,V)}),i.current=_}},[o]);const C=m.useCallback(ke.debounce(async _=>{if(!ke.isEqual(_,i.current)){d(!0);try{await h(_),i.current=_}finally{d(!1)}}},1e3),[h]),f=m.useCallback(_=>{C(_)},[C]);return m.useEffect(()=>{const _=u.watch(w=>{f(w)});return()=>_.unsubscribe()},[u.watch,f]),e.jsxs(e.Fragment,{children:[e.jsx(Se,{...u,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:u.control,name:"email_host",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_host.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),..._,value:_.value||""})}),e.jsx(z,{children:s("email.email_host.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_port",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_port.title")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:s("common.placeholder"),..._,value:_.value||"",onChange:w=>{const V=w.target.value?Number(w.target.value):null;_.onChange(V)}})}),e.jsx(z,{children:s("email.email_port.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_encryption",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_encryption.title")}),e.jsxs(J,{onValueChange:w=>{const V=w==="none"?"":w;_.onChange(V)},value:_.value===""||_.value===null||_.value===void 0?"none":_.value,children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择加密方式"})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"none",children:s("email.email_encryption.none")}),e.jsx(A,{value:"ssl",children:s("email.email_encryption.ssl")}),e.jsx(A,{value:"tls",children:s("email.email_encryption.tls")})]})]}),e.jsx(z,{children:s("email.email_encryption.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_username",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_username.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),..._,value:_.value||""})}),e.jsx(z,{children:s("email.email_username.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_password",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_password.title")}),e.jsx(N,{children:e.jsx(D,{type:"password",placeholder:s("common.placeholder"),..._,value:_.value||""})}),e.jsx(z,{children:s("email.email_password.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_from_address",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_from.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),..._,value:_.value||""})}),e.jsx(z,{children:s("email.email_from.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"email_template",render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("email.email_template.title")}),e.jsxs(J,{onValueChange:w=>{_.onChange(w),f(u.getValues())},value:_.value||void 0,children:[e.jsx(N,{children:e.jsx(W,{className:"w-[200px]",children:e.jsx(Q,{placeholder:s("email.email_template.placeholder")})})}),e.jsx(Y,{children:c?.data?.map(w=>e.jsx(A,{value:w,children:w},w))})]}),e.jsx(z,{children:s("email.email_template.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"remind_mail_enable",render:({field:_})=>e.jsxs(p,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:s("email.remind_mail.title")}),e.jsx(z,{children:s("email.remind_mail.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:_.value||!1,onCheckedChange:w=>{_.onChange(w),f(u.getValues())}})})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(L,{onClick:()=>S(),loading:T,disabled:T,children:s(T?"email.test.sending":"email.test.title")})})]})}),l&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("saving")}),n&&e.jsx(iu,{open:r,onOpenChange:a,result:n})]})}function du(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("email.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("email.description")})]}),e.jsx(Te,{}),e.jsx(cu,{})]})}const mu=Object.freeze(Object.defineProperty({__proto__:null,default:du},Symbol.toStringTag,{value:"Module"})),uu=x.object({telegram_bot_enable:x.boolean().nullable(),telegram_bot_token:x.string().nullable(),telegram_discuss_link:x.string().nullable()}),xu={telegram_bot_enable:!1,telegram_bot_token:"",telegram_discuss_link:""};function hu(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),a=we({resolver:Ce(uu),defaultValues:xu,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","telegram"],queryFn:()=>he.getSettings("telegram")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:h=>{h.data&&q.success(s("common.autoSaved"))}}),{mutate:d,isPending:u}=Ds({mutationFn:he.setTelegramWebhook,onSuccess:h=>{h.data&&q.success(s("telegram.webhook.success"))}});m.useEffect(()=>{if(i?.data.telegram){const h=i.data.telegram;Object.entries(h).forEach(([S,T])=>{a.setValue(S,T)}),r.current=h}},[i]);const o=m.useCallback(ke.debounce(async h=>{if(!ke.isEqual(h,r.current)){t(!0);try{await l(h),r.current=h}finally{t(!1)}}},1e3),[l]),c=m.useCallback(h=>{o(h)},[o]);return m.useEffect(()=>{const h=a.watch(S=>{c(S)});return()=>h.unsubscribe()},[a.watch,c]),e.jsx(Se,{...a,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:a.control,name:"telegram_bot_token",render:({field:h})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("telegram.bot_token.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("telegram.bot_token.placeholder"),...h,value:h.value||""})}),e.jsx(z,{children:s("telegram.bot_token.description")}),e.jsx(P,{})]})}),a.watch("telegram_bot_token")&&e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("telegram.webhook.title")}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(L,{loading:u,disabled:u,onClick:()=>d(),children:s(u?"telegram.webhook.setting":"telegram.webhook.button")}),n&&e.jsx("span",{className:"text-sm text-muted-foreground",children:s("common.saving")})]}),e.jsx(z,{children:s("telegram.webhook.description")}),e.jsx(P,{})]}),e.jsx(v,{control:a.control,name:"telegram_bot_enable",render:({field:h})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("telegram.bot_enable.title")}),e.jsx(z,{children:s("telegram.bot_enable.description")}),e.jsx(N,{children:e.jsx(Z,{checked:h.value||!1,onCheckedChange:S=>{h.onChange(S),c(a.getValues())}})}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"telegram_discuss_link",render:({field:h})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("telegram.discuss_link.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("telegram.discuss_link.placeholder"),...h,value:h.value||""})}),e.jsx(z,{children:s("telegram.discuss_link.description")}),e.jsx(P,{})]})}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function gu(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("telegram.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("telegram.description")})]}),e.jsx(Te,{}),e.jsx(hu,{})]})}const fu=Object.freeze(Object.defineProperty({__proto__:null,default:gu},Symbol.toStringTag,{value:"Module"})),pu=x.object({windows_version:x.string().nullable(),windows_download_url:x.string().nullable(),macos_version:x.string().nullable(),macos_download_url:x.string().nullable(),android_version:x.string().nullable(),android_download_url:x.string().nullable()}),ju={windows_version:"",windows_download_url:"",macos_version:"",macos_download_url:"",android_version:"",android_download_url:""};function vu(){const{t:s}=I("settings"),[n,t]=m.useState(!1),r=m.useRef(null),a=we({resolver:Ce(pu),defaultValues:ju,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","app"],queryFn:()=>he.getSettings("app")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:o=>{o.data&&q.success(s("app.save_success"))}});m.useEffect(()=>{if(i?.data.app){const o=i.data.app;Object.entries(o).forEach(([c,h])=>{a.setValue(c,h)}),r.current=o}},[i]);const d=m.useCallback(ke.debounce(async o=>{if(!ke.isEqual(o,r.current)){t(!0);try{await l(o),r.current=o}finally{t(!1)}}},1e3),[l]),u=m.useCallback(o=>{d(o)},[d]);return m.useEffect(()=>{const o=a.watch(c=>{u(c)});return()=>o.unsubscribe()},[a.watch,u]),e.jsx(Se,{...a,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:a.control,name:"windows_version",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("app.windows.version.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("app.windows.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"windows_download_url",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("app.windows.download.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("app.windows.download.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"macos_version",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("app.macos.version.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("app.macos.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"macos_download_url",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("app.macos.download.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("app.macos.download.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"android_version",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("app.android.version.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("app.android.version.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"android_download_url",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{className:"text-base",children:s("app.android.download.title")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("common.placeholder"),...o,value:o.value||""})}),e.jsx(z,{children:s("app.android.download.description")}),e.jsx(P,{})]})}),n&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function bu(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("app.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("app.description")})]}),e.jsx(Te,{}),e.jsx(vu,{})]})}const yu=Object.freeze(Object.defineProperty({__proto__:null,default:bu},Symbol.toStringTag,{value:"Module"})),Nu=s=>x.object({id:x.number().nullable(),name:x.string().min(2,s("form.validation.name.min")).max(30,s("form.validation.name.max")),icon:x.string().optional().nullable(),notify_domain:x.string().refine(t=>!t||/^https?:\/\/\S+/.test(t),s("form.validation.notify_domain.url")).optional().nullable(),handling_fee_fixed:x.coerce.number().min(0).optional().nullable(),handling_fee_percent:x.coerce.number().min(0).max(100).optional().nullable(),payment:x.string().min(1,s("form.validation.payment.required")),config:x.record(x.string(),x.string())}),gr={id:null,name:"",icon:"",notify_domain:"",handling_fee_fixed:0,handling_fee_percent:0,payment:"",config:{}};function Yl({refetch:s,dialogTrigger:n,type:t="add",defaultFormValues:r=gr}){const{t:a}=I("payment"),[i,l]=m.useState(!1),[d,u]=m.useState(!1),[o,c]=m.useState([]),[h,S]=m.useState([]),T=Nu(a),C=we({resolver:Ce(T),defaultValues:r,mode:"onChange"}),f=C.watch("payment");m.useEffect(()=>{i&&(async()=>{const{data:V}=await nt.getMethodList();c(V)})()},[i]),m.useEffect(()=>{if(!f||!i)return;(async()=>{const V={payment:f,...t==="edit"&&{id:Number(C.getValues("id"))}};nt.getMethodForm(V).then(({data:F})=>{S(F);const g=F.reduce((b,k)=>(k.field_name&&(b[k.field_name]=k.value??""),b),{});C.setValue("config",g)})})()},[f,i,C,t]);const _=async w=>{u(!0);try{(await nt.save(w)).data&&(q.success(a("form.messages.success")),C.reset(gr),s(),l(!1))}finally{u(!1)}};return e.jsxs(ge,{open:i,onOpenChange:l,children:[e.jsx(as,{asChild:!0,children:n||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:a("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(be,{children:e.jsx(fe,{children:a(t==="add"?"form.add.title":"form.edit.title")})}),e.jsx(Se,{...C,children:e.jsxs("form",{onSubmit:C.handleSubmit(_),className:"space-y-4",children:[e.jsx(v,{control:C.control,name:"name",render:({field:w})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:a("form.fields.name.placeholder"),...w})}),e.jsx(z,{children:a("form.fields.name.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:C.control,name:"icon",render:({field:w})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.icon.label")}),e.jsx(N,{children:e.jsx(D,{...w,value:w.value||"",placeholder:a("form.fields.icon.placeholder")})}),e.jsx(z,{children:a("form.fields.icon.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:C.control,name:"notify_domain",render:({field:w})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.notify_domain.label")}),e.jsx(N,{children:e.jsx(D,{...w,value:w.value||"",placeholder:a("form.fields.notify_domain.placeholder")})}),e.jsx(z,{children:a("form.fields.notify_domain.description")}),e.jsx(P,{})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(v,{control:C.control,name:"handling_fee_percent",render:({field:w})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.handling_fee_percent.label")}),e.jsx(N,{children:e.jsx(D,{type:"number",...w,value:w.value||"",placeholder:a("form.fields.handling_fee_percent.placeholder")})}),e.jsx(P,{})]})}),e.jsx(v,{control:C.control,name:"handling_fee_fixed",render:({field:w})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.handling_fee_fixed.label")}),e.jsx(N,{children:e.jsx(D,{type:"number",...w,value:w.value||"",placeholder:a("form.fields.handling_fee_fixed.placeholder")})}),e.jsx(P,{})]})})]}),e.jsx(v,{control:C.control,name:"payment",render:({field:w})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.payment.label")}),e.jsxs(J,{onValueChange:w.onChange,defaultValue:w.value,children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:a("form.fields.payment.placeholder")})})}),e.jsx(Y,{children:o.map(V=>e.jsx(A,{value:V,children:V},V))})]}),e.jsx(z,{children:a("form.fields.payment.description")}),e.jsx(P,{})]})}),h.length>0&&e.jsx("div",{className:"space-y-4",children:h.map(w=>e.jsx(v,{control:C.control,name:`config.${w.field_name}`,render:({field:V})=>e.jsxs(p,{children:[e.jsx(j,{children:w.label}),e.jsx(N,{children:e.jsx(D,{...V,value:V.value||""})}),e.jsx(P,{})]})},w.field_name))}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:a("form.buttons.cancel")})}),e.jsx(L,{type:"submit",disabled:d,children:a("form.buttons.submit")})]})]})})]})]})}function $({column:s,title:n,tooltip:t,className:r}){return s.getCanSort()?e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(L,{variant:"ghost",size:"default",className:y("-ml-3 flex h-8 items-center gap-2 text-nowrap font-medium hover:bg-muted/60",r),onClick:()=>s.toggleSorting(s.getIsSorted()==="asc"),children:[e.jsx("span",{children:n}),t&&e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(ar,{className:"h-4 w-4 cursor-pointer text-muted-foreground"})}),e.jsx(oe,{children:t})]})}),s.getIsSorted()==="asc"?e.jsx(un,{className:"h-4 w-4 text-foreground/70"}):s.getIsSorted()==="desc"?e.jsx(xn,{className:"h-4 w-4 text-foreground/70"}):e.jsx(Ec,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-foreground/70"})]})})}):e.jsxs("div",{className:y("flex items-center space-x-1 text-nowrap py-2 font-medium text-muted-foreground",r),children:[e.jsx("span",{children:n}),t&&e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsx(ar,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(oe,{children:t})]})})]})}const $n=Fc,Jl=Ic,_u=Vc,Ql=m.forwardRef(({className:s,...n},t)=>e.jsx(xl,{className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...n,ref:t}));Ql.displayName=xl.displayName;const $a=m.forwardRef(({className:s,...n},t)=>e.jsxs(_u,{children:[e.jsx(Ql,{}),e.jsx(hl,{ref:t,className:y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...n})]}));$a.displayName=hl.displayName;const Aa=({className:s,...n})=>e.jsx("div",{className:y("flex flex-col space-y-2 text-center sm:text-left",s),...n});Aa.displayName="AlertDialogHeader";const qa=({className:s,...n})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...n});qa.displayName="AlertDialogFooter";const Ha=m.forwardRef(({className:s,...n},t)=>e.jsx(gl,{ref:t,className:y("text-lg font-semibold",s),...n}));Ha.displayName=gl.displayName;const Ua=m.forwardRef(({className:s,...n},t)=>e.jsx(fl,{ref:t,className:y("text-sm text-muted-foreground",s),...n}));Ua.displayName=fl.displayName;const Ka=m.forwardRef(({className:s,...n},t)=>e.jsx(pl,{ref:t,className:y(kt(),s),...n}));Ka.displayName=pl.displayName;const Ba=m.forwardRef(({className:s,...n},t)=>e.jsx(jl,{ref:t,className:y(kt({variant:"outline"}),"mt-2 sm:mt-0",s),...n}));Ba.displayName=jl.displayName;function ps({onConfirm:s,children:n,title:t="确认操作",description:r="确定要执行此操作吗?",cancelText:a="取消",confirmText:i="确认",variant:l="default",className:d}){return e.jsxs($n,{children:[e.jsx(Jl,{asChild:!0,children:n}),e.jsxs($a,{className:y("sm:max-w-[425px]",d),children:[e.jsxs(Aa,{children:[e.jsx(Ha,{children:t}),e.jsx(Ua,{children:r})]}),e.jsxs(qa,{children:[e.jsx(Ba,{asChild:!0,children:e.jsx(L,{variant:"outline",children:a})}),e.jsx(Ka,{asChild:!0,children:e.jsx(L,{variant:l,onClick:s,children:i})})]})]})]})}const Xl=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M11.29 15.29a2 2 0 0 0-.12.15a.8.8 0 0 0-.09.18a.6.6 0 0 0-.06.18a1.4 1.4 0 0 0 0 .2a.84.84 0 0 0 .08.38a.9.9 0 0 0 .54.54a.94.94 0 0 0 .76 0a.9.9 0 0 0 .54-.54A1 1 0 0 0 13 16a1 1 0 0 0-.29-.71a1 1 0 0 0-1.42 0M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8 8 0 0 1-8 8m0-13a3 3 0 0 0-2.6 1.5a1 1 0 1 0 1.73 1A1 1 0 0 1 12 9a1 1 0 0 1 0 2a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-.18A3 3 0 0 0 12 7"})}),wu=({refetch:s,isSortMode:n=!1})=>{const{t}=I("payment");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:n?"cursor-move":"opacity-0",children:e.jsx(Ia,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:r})=>e.jsx($,{column:r,title:t("table.columns.id")}),cell:({row:r})=>e.jsx(U,{variant:"outline",children:r.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"enable",header:({column:r})=>e.jsx($,{column:r,title:t("table.columns.enable")}),cell:({row:r})=>e.jsx(Z,{defaultChecked:r.getValue("enable"),onCheckedChange:async()=>{const{data:a}=await nt.updateStatus({id:r.original.id});a||s()}}),enableSorting:!1,size:100},{accessorKey:"name",header:({column:r})=>e.jsx($,{column:r,title:t("table.columns.name")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:r.getValue("name")})}),enableSorting:!1,size:200},{accessorKey:"payment",header:({column:r})=>e.jsx($,{column:r,title:t("table.columns.payment")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:r.getValue("payment")})}),enableSorting:!1,size:200},{accessorKey:"notify_url",header:({column:r})=>e.jsxs("div",{className:"flex items-center",children:[e.jsx($,{column:r,title:t("table.columns.notify_url")}),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{className:"ml-1",children:e.jsx(Xl,{className:"h-4 w-4"})}),e.jsx(oe,{children:t("table.columns.notify_url_tooltip")})]})})]}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[300px] truncate font-medium",children:r.getValue("notify_url")})}),enableSorting:!1,size:3e3},{id:"actions",header:({column:r})=>e.jsx($,{className:"justify-end",column:r,title:t("table.columns.actions")}),cell:({row:r})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Yl,{refetch:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("table.actions.edit")})]}),type:"edit",defaultFormValues:r.original}),e.jsx(ps,{title:t("table.actions.delete.title"),description:t("table.actions.delete.description"),onConfirm:async()=>{const{data:a}=await nt.drop({id:r.original.id});a&&s()},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-destructive/10",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-destructive"}),e.jsx("span",{className:"sr-only",children:t("table.actions.delete.title")})]})})]}),size:100}]};function Cu({table:s,refetch:n,saveOrder:t,isSortMode:r}){const{t:a}=I("payment"),i=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between",children:[r?e.jsx("p",{className:"text-sm text-muted-foreground",children:a("table.toolbar.sort.hint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Yl,{refetch:n}),e.jsx(D,{placeholder:a("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:l=>s.getColumn("name")?.setFilterValue(l.target.value),className:"h-8 w-[250px]"}),i&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[a("table.toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:r?"default":"outline",onClick:t,size:"sm",children:a(r?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}function Su(){const[s,n]=m.useState([]),[t,r]=m.useState([]),[a,i]=m.useState(!1),[l,d]=m.useState([]),[u,o]=m.useState({"drag-handle":!1}),[c,h]=m.useState({pageSize:20,pageIndex:0}),{refetch:S}=ne({queryKey:["paymentList"],queryFn:async()=>{const{data:w}=await nt.getList();return d(w?.map(V=>({...V,enable:!!V.enable}))||[]),w}});m.useEffect(()=>{o({"drag-handle":a,actions:!a}),h({pageSize:a?99999:10,pageIndex:0})},[a]);const T=(w,V)=>{a&&(w.dataTransfer.setData("text/plain",V.toString()),w.currentTarget.classList.add("opacity-50"))},C=(w,V)=>{if(!a)return;w.preventDefault(),w.currentTarget.classList.remove("bg-muted");const F=parseInt(w.dataTransfer.getData("text/plain"));if(F===V)return;const g=[...l],[b]=g.splice(F,1);g.splice(V,0,b),d(g)},f=async()=>{a?nt.sort({ids:l.map(w=>w.id)}).then(()=>{S(),i(!1),q.success("排序保存成功")}):i(!0)},_=ss({data:l,columns:wu({refetch:S,isSortMode:a}),state:{sorting:t,columnFilters:s,columnVisibility:u,pagination:c},onSortingChange:r,onColumnFiltersChange:n,onColumnVisibilityChange:o,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),initialState:{columnPinning:{right:["actions"]}},pageCount:a?1:void 0});return e.jsx(xs,{table:_,toolbar:w=>e.jsx(Cu,{table:w,refetch:S,saveOrder:f,isSortMode:a}),draggable:a,onDragStart:T,onDragEnd:w=>w.currentTarget.classList.remove("opacity-50"),onDragOver:w=>{w.preventDefault(),w.currentTarget.classList.add("bg-muted")},onDragLeave:w=>w.currentTarget.classList.remove("bg-muted"),onDrop:C,showPagination:!a})}function ku(){const{t:s}=I("payment");return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsx(ns,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{children:[e.jsx("header",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("section",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Su,{})})]})]})}const Tu=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"}));function Du({pluginName:s,onClose:n,onSuccess:t}){const{t:r}=I("plugin"),[a,i]=m.useState(!0),[l,d]=m.useState(!1),[u,o]=m.useState(null),c=Mc({config:Oc(zc())}),h=we({resolver:Ce(c),defaultValues:{config:{}}});m.useEffect(()=>{(async()=>{try{const{data:f}=await Os.getPluginConfig(s);o(f),h.reset({config:Object.fromEntries(Object.entries(f).map(([_,w])=>[_,w.value]))})}catch{q.error(r("messages.configLoadError"))}finally{i(!1)}})()},[s]);const S=async C=>{d(!0);try{await Os.updatePluginConfig(s,C.config),q.success(r("messages.configSaveSuccess")),t()}catch{q.error(r("messages.configSaveError"))}finally{d(!1)}},T=(C,f)=>{switch(f.type){case"string":return e.jsx(v,{control:h.control,name:`config.${C}`,render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{children:f.label||f.description}),e.jsx(N,{children:e.jsx(D,{placeholder:f.placeholder,..._})}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},C);case"number":case"percentage":return e.jsx(v,{control:h.control,name:`config.${C}`,render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{children:f.label||f.description}),e.jsx(N,{children:e.jsxs("div",{className:"relative",children:[e.jsx(D,{type:"number",placeholder:f.placeholder,..._,onChange:w=>{const V=Number(w.target.value);f.type==="percentage"?_.onChange(Math.min(100,Math.max(0,V))):_.onChange(V)},className:f.type==="percentage"?"pr-8":"",min:f.type==="percentage"?0:void 0,max:f.type==="percentage"?100:void 0,step:f.type==="percentage"?1:void 0}),f.type==="percentage"&&e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:e.jsx($c,{className:"h-4 w-4 text-muted-foreground"})})]})}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},C);case"select":return e.jsx(v,{control:h.control,name:`config.${C}`,render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{children:f.label||f.description}),e.jsxs(J,{onValueChange:_.onChange,defaultValue:_.value,children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:f.placeholder})})}),e.jsx(Y,{children:f.options?.map(w=>e.jsx(A,{value:w.value,children:w.label},w.value))})]}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},C);case"boolean":return e.jsx(v,{control:h.control,name:`config.${C}`,render:({field:_})=>e.jsxs(p,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(j,{className:"text-base",children:f.label||f.description}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description})]}),e.jsx(N,{children:e.jsx(Z,{checked:_.value,onCheckedChange:_.onChange})})]})},C);case"text":return e.jsx(v,{control:h.control,name:`config.${C}`,render:({field:_})=>e.jsxs(p,{children:[e.jsx(j,{children:f.label||f.description}),e.jsx(N,{children:e.jsx(Ls,{placeholder:f.placeholder,..._})}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},C);default:return null}};return a?e.jsxs("div",{className:"space-y-4",children:[e.jsx(ve,{className:"h-4 w-[200px]"}),e.jsx(ve,{className:"h-10 w-full"}),e.jsx(ve,{className:"h-4 w-[200px]"}),e.jsx(ve,{className:"h-10 w-full"})]}):e.jsx(Se,{...h,children:e.jsxs("form",{onSubmit:h.handleSubmit(S),className:"space-y-4",children:[u&&Object.entries(u).map(([C,f])=>T(C,f)),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(L,{type:"button",variant:"outline",onClick:n,disabled:l,children:r("config.cancel")}),e.jsx(L,{type:"submit",loading:l,disabled:l,children:r("config.save")})]})]})})}function Lu(){const{t:s}=I("plugin"),[n,t]=m.useState(null),[r,a]=m.useState(!1),[i,l]=m.useState(null),[d,u]=m.useState(""),[o,c]=m.useState("all"),[h,S]=m.useState(!1),[T,C]=m.useState(!1),[f,_]=m.useState(!1),w=m.useRef(null),{data:V,isLoading:F,refetch:g}=ne({queryKey:["pluginList"],queryFn:async()=>{const{data:E}=await Os.getPluginList();return E}});V&&[...new Set(V.map(E=>E.category||"other"))];const b=V?.filter(E=>{const X=E.name.toLowerCase().includes(d.toLowerCase())||E.description.toLowerCase().includes(d.toLowerCase())||E.code.toLowerCase().includes(d.toLowerCase()),Ns=o==="all"||E.category===o;return X&&Ns}),k=async E=>{t(E),Os.installPlugin(E).then(()=>{q.success(s("messages.installSuccess")),g()}).catch(X=>{q.error(X.message||s("messages.installError"))}).finally(()=>{t(null)})},O=async E=>{t(E),Os.uninstallPlugin(E).then(()=>{q.success(s("messages.uninstallSuccess")),g()}).catch(X=>{q.error(X.message||s("messages.uninstallError"))}).finally(()=>{t(null)})},R=async(E,X)=>{t(E),(X?Os.disablePlugin:Os.enablePlugin)(E).then(()=>{q.success(s(X?"messages.disableSuccess":"messages.enableSuccess")),g()}).catch(De=>{q.error(De.message||s(X?"messages.disableError":"messages.enableError"))}).finally(()=>{t(null)})},K=E=>{V?.find(X=>X.code===E),l(E),a(!0)},ae=async E=>{if(!E.name.endsWith(".zip")){q.error(s("upload.error.format"));return}S(!0),Os.uploadPlugin(E).then(()=>{q.success(s("messages.uploadSuccess")),C(!1),g()}).catch(X=>{q.error(X.message||s("messages.uploadError"))}).finally(()=>{S(!1),w.current&&(w.current.value="")})},ee=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?_(!0):E.type==="dragleave"&&_(!1)},te=E=>{E.preventDefault(),E.stopPropagation(),_(!1),E.dataTransfer.files&&E.dataTransfer.files[0]&&ae(E.dataTransfer.files[0])},H=async E=>{t(E),Os.deletePlugin(E).then(()=>{q.success(s("messages.deleteSuccess")),g()}).catch(X=>{q.error(X.message||s("messages.deleteError"))}).finally(()=>{t(null)})};return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Sn,{className:"h-6 w-6"}),e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{children:[e.jsxs("div",{className:"mb-8 space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"relative max-w-sm flex-1",children:[e.jsx(kn,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(D,{placeholder:s("search.placeholder"),value:d,onChange:E=>u(E.target.value),className:"pl-9"})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs(L,{onClick:()=>C(!0),variant:"outline",className:"shrink-0",size:"sm",children:[e.jsx(Ct,{className:"mr-2 h-4 w-4"}),s("upload.button")]})})]}),e.jsxs(Lt,{defaultValue:"all",className:"w-full",children:[e.jsxs(dt,{children:[e.jsx(Xe,{value:"all",children:s("tabs.all")}),e.jsx(Xe,{value:"installed",children:s("tabs.installed")}),e.jsx(Xe,{value:"available",children:s("tabs.available")})]}),e.jsx(Ts,{value:"all",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:F?e.jsxs(e.Fragment,{children:[e.jsx(rn,{}),e.jsx(rn,{}),e.jsx(rn,{})]}):b?.map(E=>e.jsx(nn,{plugin:E,onInstall:k,onUninstall:O,onToggleEnable:R,onOpenConfig:K,onDelete:H,isLoading:n===E.name},E.name))})}),e.jsx(Ts,{value:"installed",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:b?.filter(E=>E.is_installed).map(E=>e.jsx(nn,{plugin:E,onInstall:k,onUninstall:O,onToggleEnable:R,onOpenConfig:K,onDelete:H,isLoading:n===E.name},E.name))})}),e.jsx(Ts,{value:"available",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:b?.filter(E=>!E.is_installed).map(E=>e.jsx(nn,{plugin:E,onInstall:k,onUninstall:O,onToggleEnable:R,onOpenConfig:K,onDelete:H,isLoading:n===E.name},E.code))})})]})]}),e.jsx(ge,{open:r,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-lg",children:[e.jsxs(be,{children:[e.jsxs(fe,{children:[V?.find(E=>E.code===i)?.name," ",s("config.title")]}),e.jsx(Ve,{children:s("config.description")})]}),i&&e.jsx(Du,{pluginName:i,onClose:()=>a(!1),onSuccess:()=>{a(!1),g()}})]})}),e.jsx(ge,{open:T,onOpenChange:C,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(be,{children:[e.jsx(fe,{children:s("upload.title")}),e.jsx(Ve,{children:s("upload.description")})]}),e.jsxs("div",{className:y("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",f&&"border-primary/50 bg-muted/50"),onDragEnter:ee,onDragLeave:ee,onDragOver:ee,onDrop:te,children:[e.jsx("input",{type:"file",ref:w,className:"hidden",accept:".zip",onChange:E=>{const X=E.target.files?.[0];X&&ae(X)}}),h?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(Ct,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>w.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})})]})]})}function nn({plugin:s,onInstall:n,onUninstall:t,onToggleEnable:r,onOpenConfig:a,onDelete:i,isLoading:l}){const{t:d}=I("plugin");return e.jsxs(Re,{className:"group relative overflow-hidden transition-all hover:shadow-md",children:[e.jsxs(Fe,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ge,{children:s.name}),s.is_installed&&e.jsx(U,{variant:s.is_enabled?"success":"secondary",children:s.is_enabled?d("status.enabled"):d("status.disabled")})]}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Sn,{className:"h-4 w-4"}),e.jsx("code",{className:"rounded bg-muted px-1 py-0.5",children:s.code})]}),e.jsxs("div",{children:["v",s.version]})]})]})}),e.jsx(zs,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"mt-2",children:s.description}),e.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:e.jsxs("div",{className:"flex items-center gap-1",children:[d("author"),": ",s.author]})})]})})]}),e.jsx(Ie,{children:e.jsx("div",{className:"flex items-center justify-end space-x-2",children:s.is_installed?e.jsxs(e.Fragment,{children:[e.jsxs(L,{variant:"outline",size:"sm",onClick:()=>a(s.code),disabled:!s.is_enabled||l,children:[e.jsx(_a,{className:"mr-2 h-4 w-4"}),d("button.config")]}),e.jsxs(L,{variant:s.is_enabled?"destructive":"default",size:"sm",onClick:()=>r(s.code,s.is_enabled),disabled:l,children:[e.jsx(Ac,{className:"mr-2 h-4 w-4"}),s.is_enabled?d("button.disable"):d("button.enable")]}),e.jsx(ps,{title:d("uninstall.title"),description:d("uninstall.description"),cancelText:d("common:cancel"),confirmText:d("uninstall.button"),variant:"destructive",onConfirm:()=>t(s.code),children:e.jsxs(L,{variant:"outline",size:"sm",className:"text-muted-foreground hover:text-destructive",disabled:l,children:[e.jsx(ds,{className:"mr-2 h-4 w-4"}),d("button.uninstall")]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{onClick:()=>n(s.code),disabled:l,loading:l,children:d("button.install")}),e.jsx(ps,{title:d("delete.title"),description:d("delete.description"),cancelText:d("common:cancel"),confirmText:d("delete.button"),variant:"destructive",onConfirm:()=>i(s.code),children:e.jsx(L,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",disabled:l,children:e.jsx(ds,{className:"h-4 w-4"})})})]})})})]})}function rn(){return e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-6 w-[200px]"}),e.jsx(ve,{className:"h-6 w-[80px]"})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(ve,{className:"h-5 w-[120px]"}),e.jsx(ve,{className:"h-5 w-[60px]"})]})]})}),e.jsxs("div",{className:"space-y-2 pt-2",children:[e.jsx(ve,{className:"h-4 w-[300px]"}),e.jsx(ve,{className:"h-4 w-[150px]"})]})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(ve,{className:"h-9 w-[100px]"}),e.jsx(ve,{className:"h-9 w-[100px]"}),e.jsx(ve,{className:"h-8 w-8"})]})})]})}const Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Lu},Symbol.toStringTag,{value:"Module"})),Ru=(s,n)=>{let t=null;switch(s.field_type){case"input":t=e.jsx(D,{placeholder:s.placeholder,...n});break;case"textarea":t=e.jsx(Ls,{placeholder:s.placeholder,...n});break;case"select":t=e.jsx("select",{className:y(kt({variant:"outline"}),"w-full appearance-none font-normal"),...n,children:s.select_options&&Object.keys(s.select_options).map(r=>e.jsx("option",{value:r,children:s.select_options?.[r]},r))});break;default:t=null;break}return t};function Eu({themeKey:s,themeInfo:n}){const{t}=I("theme"),[r,a]=m.useState(!1),[i,l]=m.useState(!1),[d,u]=m.useState(!1),o=we({defaultValues:n.configs.reduce((S,T)=>(S[T.field_name]="",S),{})}),c=async()=>{l(!0),Bt.getConfig(s).then(({data:S})=>{Object.entries(S).forEach(([T,C])=>{o.setValue(T,C)})}).finally(()=>{l(!1)})},h=async S=>{u(!0),Bt.updateConfig(s,S).then(()=>{q.success(t("config.success")),a(!1)}).finally(()=>{u(!1)})};return e.jsxs(ge,{open:r,onOpenChange:S=>{a(S),S?c():o.reset()},children:[e.jsx(as,{asChild:!0,children:e.jsx(L,{variant:"outline",children:t("card.configureTheme")})}),e.jsxs(ue,{className:"max-h-[90vh] overflow-auto sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:t("config.title",{name:n.name})}),e.jsx(Ve,{children:t("config.description")})]}),i?e.jsx("div",{className:"flex h-40 items-center justify-center",children:e.jsx(Na,{className:"h-6 w-6 animate-spin"})}):e.jsx(Se,{...o,children:e.jsxs("form",{onSubmit:o.handleSubmit(h),className:"space-y-4",children:[n.configs.map(S=>e.jsx(v,{control:o.control,name:S.field_name,render:({field:T})=>e.jsxs(p,{children:[e.jsx(j,{children:S.label}),e.jsx(N,{children:Ru(S,T)}),e.jsx(P,{})]})},S.field_name)),e.jsxs(Pe,{className:"mt-6 gap-2",children:[e.jsx(L,{type:"button",variant:"secondary",onClick:()=>a(!1),children:t("config.cancel")}),e.jsx(L,{type:"submit",loading:d,children:t("config.save")})]})]})})]})]})}function Fu(){const{t:s}=I("theme"),[n,t]=m.useState(null),[r,a]=m.useState(!1),[i,l]=m.useState(!1),[d,u]=m.useState(!1),[o,c]=m.useState(null),h=m.useRef(null),[S,T]=m.useState(0),{data:C,isLoading:f,refetch:_}=ne({queryKey:["themeList"],queryFn:async()=>{const{data:R}=await Bt.getList();return R}}),w=async R=>{t(R),he.updateSystemConfig({frontend_theme:R}).then(()=>{q.success("主题切换成功"),_()}).finally(()=>{t(null)})},V=async R=>{if(!R.name.endsWith(".zip")){q.error(s("upload.error.format"));return}a(!0),Bt.upload(R).then(()=>{q.success("主题上传成功"),l(!1),_()}).finally(()=>{a(!1),h.current&&(h.current.value="")})},F=R=>{R.preventDefault(),R.stopPropagation(),R.type==="dragenter"||R.type==="dragover"?u(!0):R.type==="dragleave"&&u(!1)},g=R=>{R.preventDefault(),R.stopPropagation(),u(!1),R.dataTransfer.files&&R.dataTransfer.files[0]&&V(R.dataTransfer.files[0])},b=()=>{o&&T(R=>R===0?o.images.length-1:R-1)},k=()=>{o&&T(R=>R===o.images.length-1?0:R+1)},O=(R,K)=>{T(0),c({name:R,images:K})};return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsx(ns,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"",children:[e.jsxs("header",{className:"mb-8",children:[e.jsx("div",{className:"mb-2",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-muted-foreground",children:s("description")}),e.jsxs(L,{onClick:()=>l(!0),variant:"outline",className:"ml-4 shrink-0",size:"sm",children:[e.jsx(Ct,{className:"mr-2 h-4 w-4"}),s("upload.button")]})]})]}),e.jsx("section",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3",children:f?e.jsxs(e.Fragment,{children:[e.jsx(fr,{}),e.jsx(fr,{})]}):C?.themes&&Object.entries(C.themes).map(([R,K])=>e.jsx(Re,{className:"group relative overflow-hidden transition-all hover:shadow-md",style:{backgroundImage:K.background_url?`url(${K.background_url})`:"none",backgroundSize:"cover",backgroundPosition:"center"},children:e.jsxs("div",{className:y("relative z-10 h-full transition-colors",K.background_url?"group-hover:from-background/98 bg-gradient-to-t from-background/95 via-background/80 to-background/60 backdrop-blur-[1px] group-hover:via-background/90 group-hover:to-background/70":"bg-background"),children:[!!K.can_delete&&e.jsx("div",{className:"absolute right-2 top-2",children:e.jsx(ps,{title:s("card.delete.title"),description:s("card.delete.description"),confirmText:s("card.delete.button"),variant:"destructive",onConfirm:async()=>{if(R===C?.active){q.error(s("card.delete.error.active"));return}t(R),Bt.drop(R).then(()=>{q.success("主题删除成功"),_()}).finally(()=>{t(null)})},children:e.jsx(L,{disabled:n===R,loading:n===R,variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",children:e.jsx(ds,{className:"h-4 w-4"})})})}),e.jsxs(Fe,{children:[e.jsx(Ge,{children:K.name}),e.jsx(zs,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{children:K.description}),K.version&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("card.version",{version:K.version})})]})})]}),e.jsxs(Ie,{className:"flex items-center justify-end space-x-3",children:[K.images&&Array.isArray(K.images)&&K.images.length>0&&e.jsx(L,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>O(K.name,K.images),children:e.jsx(qc,{className:"h-4 w-4"})}),e.jsx(Eu,{themeKey:R,themeInfo:K}),e.jsx(L,{onClick:()=>w(R),disabled:n===R||R===C.active,loading:n===R,variant:R===C.active?"secondary":"default",children:R===C.active?s("card.currentTheme"):s("card.activateTheme")})]})]})},R))}),e.jsx(ge,{open:i,onOpenChange:l,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(be,{children:[e.jsx(fe,{children:s("upload.title")}),e.jsx(Ve,{children:s("upload.description")})]}),e.jsxs("div",{className:y("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",d&&"border-primary/50 bg-muted/50"),onDragEnter:F,onDragLeave:F,onDragOver:F,onDrop:g,children:[e.jsx("input",{type:"file",ref:h,className:"hidden",accept:".zip",onChange:R=>{const K=R.target.files?.[0];K&&V(K)}}),r?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(Ct,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>h.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})}),e.jsx(ge,{open:!!o,onOpenChange:R=>{R||(c(null),T(0))},children:e.jsxs(ue,{className:"max-w-4xl",children:[e.jsxs(be,{children:[e.jsxs(fe,{children:[o?.name," ",s("preview.title")]}),e.jsx(Ve,{className:"text-center",children:o&&s("preview.imageCount",{current:S+1,total:o.images.length})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-lg border bg-muted",children:o?.images[S]&&e.jsx("img",{src:o.images[S],alt:`${o.name} 预览图 ${S+1}`,className:"h-full w-full object-contain"})}),o&&o.images.length>1&&e.jsxs(e.Fragment,{children:[e.jsx(L,{variant:"outline",size:"icon",className:"absolute left-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:b,children:e.jsx(Hc,{className:"h-4 w-4"})}),e.jsx(L,{variant:"outline",size:"icon",className:"absolute right-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:k,children:e.jsx(Uc,{className:"h-4 w-4"})})]})]}),o&&o.images.length>1&&e.jsx("div",{className:"mt-4 flex gap-2 overflow-x-auto pb-2",children:o.images.map((R,K)=>e.jsx("button",{onClick:()=>T(K),className:y("relative h-16 w-16 flex-shrink-0 overflow-hidden rounded-md border-2",S===K?"border-primary":"border-transparent"),children:e.jsx("img",{src:R,alt:`缩略图 ${K+1}`,className:"h-full w-full object-cover"})},K))})]})})]})]})}function fr(){return e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsx(ve,{className:"h-6 w-[200px]"}),e.jsx(ve,{className:"h-4 w-[300px]"})]}),e.jsxs(Ie,{className:"flex items-center justify-end space-x-3",children:[e.jsx(ve,{className:"h-10 w-[100px]"}),e.jsx(ve,{className:"h-10 w-[100px]"})]})]})}const Iu=Object.freeze(Object.defineProperty({__proto__:null,default:Fu},Symbol.toStringTag,{value:"Module"})),An=m.forwardRef(({className:s,value:n,onChange:t,...r},a)=>{const[i,l]=m.useState("");m.useEffect(()=>{if(i.includes(",")){const u=new Set([...n,...i.split(",").map(o=>o.trim())]);t(Array.from(u)),l("")}},[i,t,n]);const d=()=>{if(i){const u=new Set([...n,i]);t(Array.from(u)),l("")}};return e.jsxs("div",{className:y(" has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-neutral-950 dark:has-[:focus-visible]:ring-neutral-300 flex w-full flex-wrap gap-2 rounded-md border border-input shadow-sm px-3 py-2 text-sm ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",s),children:[n.map(u=>e.jsxs(U,{variant:"secondary",children:[u,e.jsx(G,{variant:"ghost",size:"icon",className:"ml-2 h-3 w-3",onClick:()=>{t(n.filter(o=>o!==u))},children:e.jsx(fn,{className:"w-3"})})]},u)),e.jsx("input",{className:"flex-1 outline-none placeholder:text-muted-foreground bg-transparent",value:i,onChange:u=>l(u.target.value),onKeyDown:u=>{u.key==="Enter"||u.key===","?(u.preventDefault(),d()):u.key==="Backspace"&&i.length===0&&n.length>0&&(u.preventDefault(),t(n.slice(0,-1)))},...r,ref:a})]})});An.displayName="InputTags";const Vu=x.object({id:x.number().nullable(),title:x.string().min(1).max(250),content:x.string().min(1),show:x.boolean(),tags:x.array(x.string()),img_url:x.string().nullable()}),Mu={id:null,show:!1,tags:[],img_url:"",title:"",content:""};function Zl({refetch:s,dialogTrigger:n,type:t="add",defaultFormValues:r=Mu}){const{t:a}=I("notice"),[i,l]=m.useState(!1),d=we({resolver:Ce(Vu),defaultValues:r,mode:"onChange",shouldFocusError:!0}),u=new Ln({html:!0});return e.jsx(Se,{...d,children:e.jsxs(ge,{onOpenChange:l,open:i,children:[e.jsx(as,{asChild:!0,children:n||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:a("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:a(t==="add"?"form.add.title":"form.edit.title")}),e.jsx(Ve,{})]}),e.jsx(v,{control:d.control,name:"title",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.title.label")}),e.jsx("div",{className:"relative ",children:e.jsx(N,{children:e.jsx(D,{placeholder:a("form.fields.title.placeholder"),...o})})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"content",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.content.label")}),e.jsx(N,{children:e.jsx(Pn,{style:{height:"500px"},value:o.value,renderHTML:c=>u.render(c),onChange:({text:c})=>{o.onChange(c)}})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"img_url",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.img_url.label")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(D,{type:"text",placeholder:a("form.fields.img_url.placeholder"),...o,value:o.value||""})})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"show",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.show.label")}),e.jsx("div",{className:"relative py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:o.onChange})})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"tags",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.fields.tags.label")}),e.jsx(N,{children:e.jsx(An,{value:o.value,onChange:o.onChange,placeholder:a("form.fields.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:a("form.buttons.cancel")})}),e.jsx(L,{type:"submit",onClick:o=>{o.preventDefault(),d.handleSubmit(async c=>{Xt.save(c).then(({data:h})=>{h&&(q.success(a("form.buttons.success")),s(),l(!1))})})()},children:a("form.buttons.submit")})]})]})]})})}function Ou({table:s,refetch:n,saveOrder:t,isSortMode:r}){const{t:a}=I("notice"),i=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between space-x-2 ",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[!r&&e.jsx(Zl,{refetch:n}),!r&&e.jsx(D,{placeholder:a("table.toolbar.search"),value:s.getColumn("title")?.getFilterValue()??"",onChange:l=>s.getColumn("title")?.setFilterValue(l.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),i&&!r&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-9 px-2 lg:px-3",children:[a("table.toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(L,{variant:r?"default":"outline",onClick:t,className:"h-8",size:"sm",children:a(r?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}const zu=s=>{const{t:n}=I("notice");return[{id:"drag-handle",header:"",cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Kc,{className:"h-4 w-4 cursor-move text-muted-foreground"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.id")}),cell:({row:t})=>e.jsx(U,{variant:"outline",className:"font-mono",children:t.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"show",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.show")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(Z,{defaultChecked:t.getValue("show"),onCheckedChange:async()=>{const{data:r}=await Xt.updateStatus(t.original.id);r||s()}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.title")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[500px] items-center",children:e.jsx("span",{className:"truncate font-medium",children:t.getValue("title")})}),enableSorting:!1,size:6e3},{id:"actions",header:({column:t})=>e.jsx($,{className:"justify-end",column:t,title:n("table.columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Zl,{refetch:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:n("table.actions.edit")})]}),type:"edit",defaultFormValues:t.original}),e.jsx(ps,{title:n("table.actions.delete.title"),description:n("table.actions.delete.description"),onConfirm:async()=>{Xt.drop(t.original.id).then(()=>{q.success(n("table.actions.delete.success")),s()})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:n("table.actions.delete.title")})]})})]}),size:100}]};function $u(){const[s,n]=m.useState({}),[t,r]=m.useState({}),[a,i]=m.useState([]),[l,d]=m.useState([]),[u,o]=m.useState(!1),[c,h]=m.useState({}),[S,T]=m.useState({pageSize:50,pageIndex:0}),[C,f]=m.useState([]),{refetch:_}=ne({queryKey:["notices"],queryFn:async()=>{const{data:b}=await Xt.getList();return f(b),b}});m.useEffect(()=>{r({"drag-handle":u,content:!u,created_at:!u,actions:!u}),T({pageSize:u?99999:50,pageIndex:0})},[u]);const w=(b,k)=>{u&&(b.dataTransfer.setData("text/plain",k.toString()),b.currentTarget.classList.add("opacity-50"))},V=(b,k)=>{if(!u)return;b.preventDefault(),b.currentTarget.classList.remove("bg-muted");const O=parseInt(b.dataTransfer.getData("text/plain"));if(O===k)return;const R=[...C],[K]=R.splice(O,1);R.splice(k,0,K),f(R)},F=async()=>{if(!u){o(!0);return}Xt.sort(C.map(b=>b.id)).then(()=>{q.success("排序保存成功"),o(!1),_()}).finally(()=>{o(!1)})},g=ss({data:C??[],columns:zu(_),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:a,columnSizing:c,pagination:S},enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:i,onColumnVisibilityChange:r,onColumnSizingChange:h,onPaginationChange:T,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx("div",{className:"space-y-4",children:e.jsx(xs,{table:g,toolbar:b=>e.jsx(Ou,{table:b,refetch:_,saveOrder:F,isSortMode:u}),draggable:u,onDragStart:w,onDragEnd:b=>b.currentTarget.classList.remove("opacity-50"),onDragOver:b=>{b.preventDefault(),b.currentTarget.classList.add("bg-muted")},onDragLeave:b=>b.currentTarget.classList.remove("bg-muted"),onDrop:V,showPagination:!u})})}function Au(){const{t:s}=I("notice");return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsx(ns,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx($u,{})})]})]})}const qu=Object.freeze(Object.defineProperty({__proto__:null,default:Au},Symbol.toStringTag,{value:"Module"})),Hu=x.object({id:x.number().nullable(),language:x.string().max(250),category:x.string().max(250),title:x.string().min(1).max(250),body:x.string().min(1),show:x.boolean()}),Uu={id:null,language:"zh-CN",category:"",title:"",body:"",show:!1};function ei({refreshData:s,dialogTrigger:n,type:t="add",defaultFormValues:r=Uu}){const{t:a}=I("knowledge"),[i,l]=m.useState(!1),d=we({resolver:Ce(Hu),defaultValues:r,mode:"onChange",shouldFocusError:!0}),u=new Ln({html:!0});return m.useEffect(()=>{i&&r.id&&St.getInfo(r.id).then(({data:o})=>{d.reset(o)})},[r.id,d,i]),e.jsxs(ge,{onOpenChange:l,open:i,children:[e.jsx(as,{asChild:!0,children:n||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:a("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:a(t==="add"?"form.add":"form.edit")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...d,children:[e.jsx(v,{control:d.control,name:"title",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.title")}),e.jsx("div",{className:"relative ",children:e.jsx(N,{children:e.jsx(D,{placeholder:a("form.titlePlaceholder"),...o})})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"category",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.category")}),e.jsx("div",{className:"relative ",children:e.jsx(N,{children:e.jsx(D,{placeholder:a("form.categoryPlaceholder"),...o})})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"language",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.language")}),e.jsx(N,{children:e.jsxs(J,{value:o.value,onValueChange:o.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("form.languagePlaceholder")})}),e.jsx(Y,{children:[{value:"en-US"},{value:"ja-JP"},{value:"ko-KR"},{value:"vi-VN"},{value:"zh-CN"},{value:"zh-TW"}].map(c=>e.jsx(A,{value:c.value,className:"cursor-pointer",children:a(`languages.${c.value}`)},c.value))})]})})]})}),e.jsx(v,{control:d.control,name:"body",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.content")}),e.jsx(N,{children:e.jsx(Pn,{style:{height:"500px"},value:o.value,renderHTML:c=>u.render(c),onChange:({text:c})=>{o.onChange(c)}})}),e.jsx(P,{})]})}),e.jsx(v,{control:d.control,name:"show",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.show")}),e.jsx("div",{className:"relative py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:o.value,onCheckedChange:o.onChange})})}),e.jsx(P,{})]})}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:a("form.cancel")})}),e.jsx(L,{type:"submit",onClick:()=>{d.handleSubmit(o=>{St.save(o).then(({data:c})=>{c&&(d.reset(),q.success(a("messages.operationSuccess")),l(!1),s())})})()},children:a("form.submit")})]})]})]})]})}function Ku({column:s,title:n,options:t}){const r=s?.getFacetedUniqueValues(),a=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),n,a?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:a.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:a.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[a.size," selected"]}):t.filter(i=>a.has(i.value)).map(i=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:i.label},i.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:n}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(i=>{const l=a.has(i.value);return e.jsxs(We,{onSelect:()=>{l?a.delete(i.value):a.add(i.value);const d=Array.from(a);s?.setFilterValue(d.length?d:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",l?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:y("h-4 w-4")})}),i.icon&&e.jsx(i.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:i.label}),r?.get(i.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(i.value)})]},i.value)})}),a.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}function Bu({table:s,refetch:n,saveOrder:t,isSortMode:r}){const a=s.getState().columnFilters.length>0,{t:i}=I("knowledge");return e.jsxs("div",{className:"flex items-center justify-between",children:[r?e.jsx("p",{className:"text-sm text-muted-foreground",children:i("toolbar.sortModeHint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ei,{refreshData:n}),e.jsx(D,{placeholder:i("toolbar.searchPlaceholder"),value:s.getColumn("title")?.getFilterValue()??"",onChange:l=>s.getColumn("title")?.setFilterValue(l.target.value),className:"h-8 w-[250px]"}),s.getColumn("category")&&e.jsx(Ku,{column:s.getColumn("category"),title:i("columns.category"),options:Array.from(new Set(s.getCoreRowModel().rows.map(l=>l.getValue("category")))).map(l=>({label:l,value:l}))}),a&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[i("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:r?"default":"outline",onClick:t,size:"sm",children:i(r?"toolbar.saveSort":"toolbar.editSort")})})]})}const Gu=({refetch:s,isSortMode:n=!1})=>{const{t}=I("knowledge");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:n?"cursor-move":"opacity-0",children:e.jsx(Ia,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:r})=>e.jsx($,{column:r,title:t("columns.id")}),cell:({row:r})=>e.jsx(U,{variant:"outline",className:"justify-center",children:r.getValue("id")}),enableSorting:!0,size:70},{accessorKey:"show",header:({column:r})=>e.jsx($,{column:r,title:t("columns.status")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx(Z,{defaultChecked:r.getValue("show"),onCheckedChange:async()=>{St.updateStatus({id:r.original.id}).then(({data:a})=>{a||s()})}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:r})=>e.jsx($,{column:r,title:t("columns.title")}),cell:({row:r})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"line-clamp-2 font-medium",children:r.getValue("title")})}),enableSorting:!0,size:600},{accessorKey:"category",header:({column:r})=>e.jsx($,{column:r,title:t("columns.category")}),cell:({row:r})=>e.jsx(U,{variant:"secondary",className:"max-w-[180px] truncate",children:r.getValue("category")}),enableSorting:!0,size:1800},{id:"actions",header:({column:r})=>e.jsx($,{className:"justify-end",column:r,title:t("columns.actions")}),cell:({row:r})=>e.jsxs("div",{className:"flex items-center justify-end space-x-1",children:[e.jsx(ei,{refreshData:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("form.edit")})]}),type:"edit",defaultFormValues:r.original}),e.jsx(ps,{title:t("messages.deleteConfirm"),description:t("messages.deleteDescription"),confirmText:t("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{St.drop({id:r.original.id}).then(({data:a})=>{a&&(q.success(t("messages.operationSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:t("messages.deleteButton")})]})})]}),size:100}]};function Wu(){const[s,n]=m.useState([]),[t,r]=m.useState([]),[a,i]=m.useState(!1),[l,d]=m.useState([]),[u,o]=m.useState({"drag-handle":!1}),[c,h]=m.useState({pageSize:20,pageIndex:0}),{refetch:S,isLoading:T,data:C}=ne({queryKey:["knowledge"],queryFn:async()=>{const{data:F}=await St.getList();return d(F||[]),F}});m.useEffect(()=>{o({"drag-handle":a,actions:!a}),h({pageSize:a?99999:10,pageIndex:0})},[a]);const f=(F,g)=>{a&&(F.dataTransfer.setData("text/plain",g.toString()),F.currentTarget.classList.add("opacity-50"))},_=(F,g)=>{if(!a)return;F.preventDefault(),F.currentTarget.classList.remove("bg-muted");const b=parseInt(F.dataTransfer.getData("text/plain"));if(b===g)return;const k=[...l],[O]=k.splice(b,1);k.splice(g,0,O),d(k)},w=async()=>{a?St.sort({ids:l.map(F=>F.id)}).then(()=>{S(),i(!1),q.success("排序保存成功")}):i(!0)},V=ss({data:l,columns:Gu({refetch:S,isSortMode:a}),state:{sorting:t,columnFilters:s,columnVisibility:u,pagination:c},onSortingChange:r,onColumnFiltersChange:n,onColumnVisibilityChange:o,onPaginationChange:h,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:V,toolbar:F=>e.jsx(Bu,{table:F,refetch:S,saveOrder:w,isSortMode:a}),draggable:a,onDragStart:f,onDragEnd:F=>F.currentTarget.classList.remove("opacity-50"),onDragOver:F=>{F.preventDefault(),F.currentTarget.classList.add("bg-muted")},onDragLeave:F=>F.currentTarget.classList.remove("bg-muted"),onDrop:_,showPagination:!a})}function Yu(){const{t:s}=I("knowledge");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2",children:s("title")}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Wu,{})})]})]})}const Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Yu},Symbol.toStringTag,{value:"Module"}));function Qu(s,n){const[t,r]=m.useState(s);return m.useEffect(()=>{const a=setTimeout(()=>r(s),n);return()=>{clearTimeout(a)}},[s,n]),t}function ln(s,n){if(s.length===0)return{};if(!n)return{"":s};const t={};return s.forEach(r=>{const a=r[n]||"";t[a]||(t[a]=[]),t[a].push(r)}),t}function Xu(s,n){const t=JSON.parse(JSON.stringify(s));for(const[r,a]of Object.entries(t))t[r]=a.filter(i=>!n.find(l=>l.value===i.value));return t}function Zu(s,n){for(const[,t]of Object.entries(s))if(t.some(r=>n.find(a=>a.value===r.value)))return!0;return!1}const si=m.forwardRef(({className:s,...n},t)=>Bc(a=>a.filtered.count===0)?e.jsx("div",{ref:t,className:y("py-6 text-center text-sm",s),"cmdk-empty":"",role:"presentation",...n}):null);si.displayName="CommandEmpty";const Tt=m.forwardRef(({value:s,onChange:n,placeholder:t,defaultOptions:r=[],options:a,delay:i,onSearch:l,loadingIndicator:d,emptyIndicator:u,maxSelected:o=Number.MAX_SAFE_INTEGER,onMaxSelected:c,hidePlaceholderWhenSelected:h,disabled:S,groupBy:T,className:C,badgeClassName:f,selectFirstItem:_=!0,creatable:w=!1,triggerSearchOnFocus:V=!1,commandProps:F,inputProps:g,hideClearAllButton:b=!1},k)=>{const O=m.useRef(null),[R,K]=m.useState(!1),ae=m.useRef(!1),[ee,te]=m.useState(!1),[H,E]=m.useState(s||[]),[X,Ns]=m.useState(ln(r,T)),[De,ie]=m.useState(""),_s=Qu(De,i||500);m.useImperativeHandle(k,()=>({selectedValue:[...H],input:O.current,focus:()=>O.current?.focus()}),[H]);const Is=m.useCallback(se=>{const je=H.filter(re=>re.value!==se.value);E(je),n?.(je)},[n,H]),Xs=m.useCallback(se=>{const je=O.current;je&&((se.key==="Delete"||se.key==="Backspace")&&je.value===""&&H.length>0&&(H[H.length-1].fixed||Is(H[H.length-1])),se.key==="Escape"&&je.blur())},[Is,H]);m.useEffect(()=>{s&&E(s)},[s]),m.useEffect(()=>{if(!a||l)return;const se=ln(a||[],T);JSON.stringify(se)!==JSON.stringify(X)&&Ns(se)},[r,a,T,l,X]),m.useEffect(()=>{const se=async()=>{te(!0);const re=await l?.(_s);Ns(ln(re||[],T)),te(!1)};(async()=>{!l||!R||(V&&await se(),_s&&await se())})()},[_s,T,R,V]);const Rt=()=>{if(!w||Zu(X,[{value:De,label:De}])||H.find(je=>je.value===De))return;const se=e.jsx(We,{value:De,className:"cursor-pointer",onMouseDown:je=>{je.preventDefault(),je.stopPropagation()},onSelect:je=>{if(H.length>=o){c?.(H.length);return}ie("");const re=[...H,{value:je,label:je}];E(re),n?.(re)},children:`Create "${De}"`});if(!l&&De.length>0||l&&_s.length>0&&!ee)return se},ea=m.useCallback(()=>{if(u)return l&&!w&&Object.keys(X).length===0?e.jsx(We,{value:"-",disabled:!0,children:u}):e.jsx(si,{children:u})},[w,u,l,X]),Et=m.useMemo(()=>Xu(X,H),[X,H]),Hs=m.useCallback(()=>{if(F?.filter)return F.filter;if(w)return(se,je)=>se.toLowerCase().includes(je.toLowerCase())?1:-1},[w,F?.filter]),Xa=m.useCallback(()=>{const se=H.filter(je=>je.fixed);E(se),n?.(se)},[n,H]);return e.jsxs(Js,{...F,onKeyDown:se=>{Xs(se),F?.onKeyDown?.(se)},className:y("h-auto overflow-visible bg-transparent",F?.className),shouldFilter:F?.shouldFilter!==void 0?F.shouldFilter:!l,filter:Hs(),children:[e.jsx("div",{className:y("rounded-md border border-input text-sm ring-offset-background focus-within:ring-1 focus-within:ring-ring ",{"px-3 py-2":H.length!==0,"cursor-text":!S&&H.length!==0},C),onClick:()=>{S||O.current?.focus()},children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[H.map(se=>e.jsxs(U,{className:y("data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground","data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",f),"data-fixed":se.fixed,"data-disabled":S||void 0,children:[se.label,e.jsx("button",{className:y("ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",(S||se.fixed)&&"hidden"),onKeyDown:je=>{je.key==="Enter"&&Is(se)},onMouseDown:je=>{je.preventDefault(),je.stopPropagation()},onClick:()=>Is(se),children:e.jsx(fn,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},se.value)),e.jsx(es.Input,{...g,ref:O,value:De,disabled:S,onValueChange:se=>{ie(se),g?.onValueChange?.(se)},onBlur:se=>{ae.current===!1&&K(!1),g?.onBlur?.(se)},onFocus:se=>{K(!0),V&&l?.(_s),g?.onFocus?.(se)},placeholder:h&&H.length!==0?"":t,className:y("flex-1 bg-transparent outline-none placeholder:text-muted-foreground",{"w-full":h,"px-3 py-2":H.length===0,"ml-1":H.length!==0},g?.className)}),e.jsx("button",{type:"button",onClick:Xa,className:y((b||S||H.length<1||H.filter(se=>se.fixed).length===H.length)&&"hidden"),children:e.jsx(fn,{})})]})}),e.jsx("div",{className:"relative",children:R&&e.jsx(Qs,{className:"absolute top-1 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",onMouseLeave:()=>{ae.current=!1},onMouseEnter:()=>{ae.current=!0},onMouseUp:()=>{O.current?.focus()},children:ee?e.jsx(e.Fragment,{children:d}):e.jsxs(e.Fragment,{children:[ea(),Rt(),!_&&e.jsx(We,{value:"-",className:"hidden"}),Object.entries(Et).map(([se,je])=>e.jsx(fs,{heading:se,className:"h-full overflow-auto",children:e.jsx(e.Fragment,{children:je.map(re=>e.jsx(We,{value:re.value,disabled:re.disable,onMouseDown:Zs=>{Zs.preventDefault(),Zs.stopPropagation()},onSelect:()=>{if(H.length>=o){c?.(H.length);return}ie("");const Zs=[...H,re];E(Zs),n?.(Zs)},className:y("cursor-pointer",re.disable&&"cursor-default text-muted-foreground"),children:re.label},re.value))})},se))]})})})]})});Tt.displayName="MultipleSelector";const ex=s=>x.object({id:x.number().optional(),name:x.string().min(2,s("messages.nameValidation.min")).max(50,s("messages.nameValidation.max")).regex(/^[a-zA-Z0-9\u4e00-\u9fa5_-]+$/,s("messages.nameValidation.pattern"))});function Ga({refetch:s,dialogTrigger:n,defaultValues:t={name:""},type:r="add"}){const{t:a}=I("group"),i=we({resolver:Ce(ex(a)),defaultValues:t,mode:"onChange"}),[l,d]=m.useState(!1),[u,o]=m.useState(!1),c=async h=>{o(!0),mt.save(h).then(()=>{q.success(a(r==="edit"?"messages.updateSuccess":"messages.createSuccess")),s&&s(),i.reset(),d(!1)}).finally(()=>{o(!1)})};return e.jsxs(ge,{open:l,onOpenChange:d,children:[e.jsx(as,{asChild:!0,children:n||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("span",{children:a("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:a(r==="edit"?"form.edit":"form.create")}),e.jsx(Ve,{children:a(r==="edit"?"form.editDescription":"form.createDescription")})]}),e.jsx(Se,{...i,children:e.jsxs("form",{onSubmit:i.handleSubmit(c),className:"space-y-4",children:[e.jsx(v,{control:i.control,name:"name",render:({field:h})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.name")}),e.jsx(N,{children:e.jsx(D,{placeholder:a("form.namePlaceholder"),...h,className:"w-full"})}),e.jsx(z,{children:a("form.nameDescription")}),e.jsx(P,{})]})}),e.jsxs(Pe,{className:"gap-2",children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:a("form.cancel")})}),e.jsxs(L,{type:"submit",disabled:u||!i.formState.isValid,children:[u&&e.jsx(Na,{className:"mr-2 h-4 w-4 animate-spin"}),a(r==="edit"?"form.update":"form.create")]})]})]})})]})]})}const ti=m.createContext(void 0);function sx({children:s,refetch:n}){const[t,r]=m.useState(!1),[a,i]=m.useState(null),[l,d]=m.useState(ce.Shadowsocks);return e.jsx(ti.Provider,{value:{isOpen:t,setIsOpen:r,editingServer:a,setEditingServer:i,serverType:l,setServerType:d,refetch:n},children:s})}function ai(){const s=m.useContext(ti);if(s===void 0)throw new Error("useServerEdit must be used within a ServerEditProvider");return s}function on({dialogTrigger:s,value:n,setValue:t,templateType:r}){const{t:a}=I("server");m.useEffect(()=>{console.log(n)},[n]);const[i,l]=m.useState(!1),[d,u]=m.useState(()=>{if(!n||Object.keys(n).length===0)return"";try{return JSON.stringify(n,null,2)}catch{return""}}),[o,c]=m.useState(null),h=w=>{if(!w)return null;try{const V=JSON.parse(w);return typeof V!="object"||V===null?a("network_settings.validation.must_be_object"):null}catch{return a("network_settings.validation.invalid_json")}},S={tcp:{label:"TCP",content:{acceptProxyProtocol:!1,header:{type:"none"}}},"tcp-http":{label:"TCP + HTTP",content:{acceptProxyProtocol:!1,header:{type:"http",request:{version:"1.1",method:"GET",path:["/"],headers:{Host:["www.example.com"]}},response:{version:"1.1",status:"200",reason:"OK"}}}},grpc:{label:"gRPC",content:{serviceName:"GunService"}},ws:{label:"WebSocket",content:{path:"/",headers:{Host:"v2ray.com"}}},httpupgrade:{label:"HttpUpgrade",content:{acceptProxyProtocol:!1,path:"/",host:"xray.com",headers:{key:"value"}}},xhttp:{label:"XHTTP",content:{host:"example.com",path:"/yourpath",mode:"auto",extra:{headers:{},xPaddingBytes:"100-1000",noGRPCHeader:!1,noSSEHeader:!1,scMaxEachPostBytes:1e6,scMinPostsIntervalMs:30,scMaxBufferedPosts:30,xmux:{maxConcurrency:"16-32",maxConnections:0,cMaxReuseTimes:"64-128",cMaxLifetimeMs:0,hMaxRequestTimes:"800-900",hKeepAlivePeriod:0},downloadSettings:{address:"",port:443,network:"xhttp",security:"tls",tlsSettings:{},xhttpSettings:{path:"/yourpath"},sockopt:{}}}}}},T=()=>{switch(r){case"tcp":return["tcp","tcp-http"];case"grpc":return["grpc"];case"ws":return["ws"];case"httpupgrade":return["httpupgrade"];case"xhttp":return["xhttp"];default:return[]}},C=()=>{const w=h(d||"");if(w){q.error(w);return}try{if(!d){t(null),l(!1);return}t(JSON.parse(d)),l(!1)}catch{q.error(a("network_settings.errors.save_failed"))}},f=w=>{u(w),c(h(w))},_=w=>{const V=S[w];if(V){const F=JSON.stringify(V.content,null,2);u(F),c(null)}};return m.useEffect(()=>{i&&console.log(n)},[i,n]),m.useEffect(()=>{i&&n&&Object.keys(n).length>0&&u(JSON.stringify(n,null,2))},[i,n]),e.jsxs(ge,{open:i,onOpenChange:w=>{!w&&i&&C(),l(w)},children:[e.jsx(as,{asChild:!0,children:s??e.jsx(G,{variant:"link",children:a("network_settings.edit_protocol")})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(be,{children:e.jsx(fe,{children:a("network_settings.edit_protocol_config")})}),e.jsxs("div",{className:"space-y-4",children:[T().length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:T().map(w=>e.jsx(G,{variant:"outline",size:"sm",onClick:()=>_(w),children:a("network_settings.use_template",{template:S[w].label})},w))}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ls,{className:`min-h-[200px] font-mono text-sm ${o?"border-red-500 focus-visible:ring-red-500":""}`,value:d,placeholder:T().length>0?a("network_settings.json_config_placeholder_with_template"):a("network_settings.json_config_placeholder"),onChange:w=>f(w.target.value)}),o&&e.jsx("p",{className:"text-sm text-red-500",children:o})]})]}),e.jsxs(Pe,{className:"gap-2",children:[e.jsx(G,{variant:"outline",onClick:()=>l(!1),children:a("common.cancel")}),e.jsx(G,{onClick:C,disabled:!!o,children:a("common.confirm")})]})]})]})}function wg(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const tx={},ax=Object.freeze(Object.defineProperty({__proto__:null,default:tx},Symbol.toStringTag,{value:"Module"})),Cg=dd(ax),pr=s=>s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),nx=()=>{try{const s=Gc.box.keyPair(),n=pr(nr.encodeBase64(s.secretKey)),t=pr(nr.encodeBase64(s.publicKey));return{privateKey:n,publicKey:t}}catch(s){throw console.error("Error generating x25519 key pair:",s),s}},rx=()=>{try{return nx()}catch(s){throw console.error("Error generating key pair:",s),s}},lx=s=>{const n=new Uint8Array(Math.ceil(s/2));return window.crypto.getRandomValues(n),Array.from(n).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,s)},ix=()=>{const s=Math.floor(Math.random()*8)*2+2;return lx(s)},ox=x.object({cipher:x.string().default("aes-128-gcm"),plugin:x.string().optional().default(""),plugin_opts:x.string().optional().default(""),client_fingerprint:x.string().optional().default("chrome")}),cx=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({})}),dx=x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({})}),mx=x.object({version:x.coerce.number().default(2),alpn:x.string().default("h2"),obfs:x.object({open:x.coerce.boolean().default(!1),type:x.string().default("salamander"),password:x.string().default("")}).default({}),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),bandwidth:x.object({up:x.string().default(""),down:x.string().default("")}).default({}),hop_interval:x.number().optional(),port_range:x.string().optional()}),ux=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({}),reality_settings:x.object({server_port:x.coerce.number().default(443),server_name:x.string().default(""),allow_insecure:x.boolean().default(!1),public_key:x.string().default(""),private_key:x.string().default(""),short_id:x.string().default("")}).default({}),network:x.string().default("tcp"),network_settings:x.record(x.any()).default({}),flow:x.string().default("")}),xx=x.object({version:x.coerce.number().default(5),congestion_control:x.string().default("bbr"),alpn:x.array(x.string()).default(["h3"]),udp_relay_mode:x.string().default("native"),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),hx=x.object({}),gx=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),fx=x.object({tls:x.coerce.number().default(0),tls_settings:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),px=x.object({transport:x.string().default("tcp"),multiplexing:x.string().default("MULTIPLEXING_LOW")}),jx=x.object({padding_scheme:x.array(x.string()).optional().default([]),tls:x.object({server_name:x.string().default(""),allow_insecure:x.boolean().default(!1)}).default({})}),Ee={shadowsocks:{schema:ox,ciphers:["aes-128-gcm","aes-192-gcm","aes-256-gcm","chacha20-ietf-poly1305","2022-blake3-aes-128-gcm","2022-blake3-aes-256-gcm"],plugins:[{value:"none",label:"None"},{value:"obfs",label:"Simple Obfs"},{value:"v2ray-plugin",label:"V2Ray Plugin"}],clientFingerprints:[{value:"chrome",label:"Chrome"},{value:"firefox",label:"Firefox"},{value:"safari",label:"Safari"},{value:"ios",label:"iOS"}]},vmess:{schema:cx,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},trojan:{schema:dx,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},hysteria:{schema:mx,versions:["1","2"],alpnOptions:["hysteria","http/1.1","h2","h3"]},vless:{schema:ux,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"},{value:"kcp",label:"mKCP"},{value:"httpupgrade",label:"HttpUpgrade"},{value:"xhttp",label:"XHTTP"}],flowOptions:["none","xtls-rprx-direct","xtls-rprx-splice","xtls-rprx-vision"]},tuic:{schema:xx,versions:["5","4"],congestionControls:["bbr","cubic","new_reno"],alpnOptions:[{value:"h3",label:"HTTP/3"},{value:"h2",label:"HTTP/2"},{value:"http/1.1",label:"HTTP/1.1"}],udpRelayModes:[{value:"native",label:"Native"},{value:"quic",label:"QUIC"}]},socks:{schema:hx},naive:{schema:fx},http:{schema:gx},mieru:{schema:px,transportOptions:[{value:"tcp",label:"TCP"},{value:"udp",label:"UDP"}],multiplexingOptions:[{value:"MULTIPLEXING_OFF",label:"Off"},{value:"MULTIPLEXING_LOW",label:"Low"},{value:"MULTIPLEXING_MIDDLE",label:"Middle"},{value:"MULTIPLEXING_HIGH",label:"High"}]},anytls:{schema:jx,defaultPaddingScheme:["stop=8","0=30-30","1=100-400","2=400-500,c,500-1000,c,500-1000,c,500-1000,c,500-1000","3=9-9,500-1000","4=500-1000","5=500-1000","6=500-1000","7=500-1000"]}},vx=({serverType:s,value:n,onChange:t})=>{const{t:r}=I("server"),a=s?Ee[s]:null,i=a?.schema||x.record(x.any()),l=s?i.parse({}):{},d=we({resolver:Ce(i),defaultValues:l,mode:"onChange"});if(m.useEffect(()=>{if(!n||Object.keys(n).length===0){if(s){const g=i.parse({});d.reset(g)}}else d.reset(n)},[s,n,t,d,i]),m.useEffect(()=>{const g=d.watch(b=>{t(b)});return()=>g.unsubscribe()},[d,t]),!s||!a)return null;const F={shadowsocks:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"cipher",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.shadowsocks.cipher.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.shadowsocks.cipher.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.shadowsocks.ciphers.map(b=>e.jsx(A,{value:b,children:b},b))})})]})})]})}),e.jsx(v,{control:d.control,name:"plugin",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.shadowsocks.plugin.label","插件")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:b=>g.onChange(b==="none"?"":b),value:g.value===""?"none":g.value||"none",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.shadowsocks.plugin.placeholder","选择插件")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.shadowsocks.plugins.map(b=>e.jsx(A,{value:b.value,children:b.label},b.value))})})]})}),e.jsx(z,{children:g.value&&g.value!=="none"&&g.value!==""&&e.jsxs(e.Fragment,{children:[g.value==="obfs"&&r("dynamic_form.shadowsocks.plugin.obfs_hint","提示:配置格式如 obfs=http;obfs-host=www.bing.com;path=/"),g.value==="v2ray-plugin"&&r("dynamic_form.shadowsocks.plugin.v2ray_hint","提示:WebSocket模式格式为 mode=websocket;host=mydomain.me;path=/;tls=true,QUIC模式格式为 mode=quic;host=mydomain.me")]})})]})}),d.watch("plugin")&&d.watch("plugin")!=="none"&&d.watch("plugin")!==""&&e.jsx(v,{control:d.control,name:"plugin_opts",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.shadowsocks.plugin_opts.label","插件选项")}),e.jsx(z,{children:r("dynamic_form.shadowsocks.plugin_opts.description","按照 key=value;key2=value2 格式输入插件选项")}),e.jsx(N,{children:e.jsx(D,{type:"text",placeholder:r("dynamic_form.shadowsocks.plugin_opts.placeholder","例如: mode=tls;host=bing.com"),...g})})]})}),(d.watch("plugin")==="shadow-tls"||d.watch("plugin")==="restls")&&e.jsx(v,{control:d.control,name:"client_fingerprint",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.shadowsocks.client_fingerprint","客户端指纹")}),e.jsx(N,{children:e.jsxs(J,{value:g.value||"chrome",onValueChange:g.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.shadowsocks.client_fingerprint_placeholder","选择客户端指纹")})}),e.jsx(Y,{children:Ee.shadowsocks.clientFingerprints.map(b=>e.jsx(A,{value:b.value,children:b.label},b.value))})]})}),e.jsx(z,{children:r("dynamic_form.shadowsocks.client_fingerprint_description","客户端伪装指纹,用于降低被识别风险")})]})})]}),vmess:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"tls",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vmess.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:b=>g.onChange(Number(b)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vmess.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:r("dynamic_form.vmess.tls.disabled")}),e.jsx(A,{value:"1",children:r("dynamic_form.vmess.tls.enabled")})]})]})})]})}),d.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.vmess.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.vmess.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vmess.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),e.jsx(v,{control:d.control,name:"network",render:({field:g})=>e.jsxs(p,{children:[e.jsxs(j,{children:[r("dynamic_form.vmess.network.label"),e.jsx(on,{value:d.watch("network_settings"),setValue:b=>d.setValue("network_settings",b),templateType:d.watch("network")})]}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vmess.network.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.vmess.networkOptions.map(b=>e.jsx(A,{value:b.value,className:"cursor-pointer",children:b.label},b.value))})})]})})]})})]}),trojan:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.trojan.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.trojan.server_name.placeholder"),...g,value:g.value||""})})]})}),e.jsx(v,{control:d.control,name:"allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.trojan.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value||!1,onCheckedChange:g.onChange})})})]})})]}),e.jsx(v,{control:d.control,name:"network",render:({field:g})=>e.jsxs(p,{children:[e.jsxs(j,{children:[r("dynamic_form.trojan.network.label"),e.jsx(on,{value:d.watch("network_settings")||{},setValue:b=>d.setValue("network_settings",b),templateType:d.watch("network")||"tcp"})]}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value||"tcp",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.trojan.network.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.trojan.networkOptions.map(b=>e.jsx(A,{value:b.value,className:"cursor-pointer",children:b.label},b.value))})})]})})]})})]}),hysteria:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"version",render:({field:g})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:r("dynamic_form.hysteria.version.label")}),e.jsx(N,{children:e.jsxs(J,{value:(g.value||2).toString(),onValueChange:b=>g.onChange(Number(b)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.hysteria.version.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.hysteria.versions.map(b=>e.jsxs(A,{value:b,className:"cursor-pointer",children:["V",b]},b))})})]})})]})}),d.watch("version")==1&&e.jsx(v,{control:d.control,name:"alpn",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.hysteria.alpn.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value||"h2",onValueChange:g.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.hysteria.alpn.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.hysteria.alpnOptions.map(b=>e.jsx(A,{value:b,children:b},b))})})]})})]})})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"obfs.open",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.hysteria.obfs.label")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value||!1,onCheckedChange:g.onChange})})})]})}),!!d.watch("obfs.open")&&e.jsxs(e.Fragment,{children:[d.watch("version")=="2"&&e.jsx(v,{control:d.control,name:"obfs.type",render:({field:g})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:r("dynamic_form.hysteria.obfs.type.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value||"salamander",onValueChange:g.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.hysteria.obfs.type.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:e.jsx(A,{value:"salamander",children:r("dynamic_form.hysteria.obfs.type.salamander")})})})]})})]})}),e.jsx(v,{control:d.control,name:"obfs.password",render:({field:g})=>e.jsxs(p,{className:d.watch("version")==2?"w-full":"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.hysteria.obfs.password.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.hysteria.obfs.password.placeholder"),...g,value:g.value||"",className:"pr-9"})}),e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",k=Array.from(crypto.getRandomValues(new Uint8Array(16))).map(O=>b[O%b.length]).join("");d.setValue("obfs.password",k),q.success(r("dynamic_form.hysteria.obfs.password.generate_success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(Be,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})]})]})})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.hysteria.tls.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.hysteria.tls.server_name.placeholder"),...g,value:g.value||""})})]})}),e.jsx(v,{control:d.control,name:"tls.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.hysteria.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value||!1,onCheckedChange:g.onChange})})})]})})]}),e.jsx(v,{control:d.control,name:"bandwidth.up",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.hysteria.bandwidth.up.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:r("dynamic_form.hysteria.bandwidth.up.placeholder")+(d.watch("version")==2?r("dynamic_form.hysteria.bandwidth.up.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...g,value:g.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:r("dynamic_form.hysteria.bandwidth.up.suffix")})})]})]})}),e.jsx(v,{control:d.control,name:"bandwidth.down",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.hysteria.bandwidth.down.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:r("dynamic_form.hysteria.bandwidth.down.placeholder")+(d.watch("version")==2?r("dynamic_form.hysteria.bandwidth.down.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...g,value:g.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:r("dynamic_form.hysteria.bandwidth.down.suffix")})})]})]})}),e.jsx(e.Fragment,{children:e.jsx(v,{control:d.control,name:"hop_interval",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.hysteria.hop_interval.label","Hop 间隔 (秒)")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:r("dynamic_form.hysteria.hop_interval.placeholder","例如: 30"),...g,value:g.value||"",onChange:b=>{const k=b.target.value?parseInt(b.target.value):void 0;g.onChange(k)}})}),e.jsx(z,{children:r("dynamic_form.hysteria.hop_interval.description","Hop 间隔时间,单位为秒")})]})})})]}),vless:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"tls",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vless.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:b=>g.onChange(Number(b)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vless.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:r("dynamic_form.vless.tls.none")}),e.jsx(A,{value:"1",children:r("dynamic_form.vless.tls.tls")}),e.jsx(A,{value:"2",children:r("dynamic_form.vless.tls.reality")})]})]})})]})}),d.watch("tls")=="1"&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.vless.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.vless.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vless.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),d.watch("tls")==2&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"reality_settings.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.vless.reality_settings.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.vless.reality_settings.server_name.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"reality_settings.server_port",render:({field:g})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:r("dynamic_form.vless.reality_settings.server_port.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.vless.reality_settings.server_port.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"reality_settings.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vless.reality_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),e.jsx("div",{className:"flex items-end gap-2",children:e.jsx(v,{control:d.control,name:"reality_settings.private_key",render:({field:g})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:r("dynamic_form.vless.reality_settings.private_key.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:e.jsx(D,{...g,className:"pr-9"})}),e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{try{const b=rx();d.setValue("reality_settings.private_key",b.privateKey),d.setValue("reality_settings.public_key",b.publicKey),q.success(r("dynamic_form.vless.reality_settings.key_pair.success"))}catch{q.error(r("dynamic_form.vless.reality_settings.key_pair.error"))}},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(Be,{icon:"ion:key-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(wa,{children:e.jsx(oe,{children:e.jsx("p",{children:r("dynamic_form.vless.reality_settings.key_pair.generate")})})})]})]})]})})}),e.jsx(v,{control:d.control,name:"reality_settings.public_key",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vless.reality_settings.public_key.label")}),e.jsx(N,{children:e.jsx(D,{...g})})]})}),e.jsx(v,{control:d.control,name:"reality_settings.short_id",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vless.reality_settings.short_id.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:e.jsx(D,{...g,className:"pr-9",placeholder:r("dynamic_form.vless.reality_settings.short_id.placeholder")})}),e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const b=ix();d.setValue("reality_settings.short_id",b),q.success(r("dynamic_form.vless.reality_settings.short_id.success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(Be,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(wa,{children:e.jsx(oe,{children:e.jsx("p",{children:r("dynamic_form.vless.reality_settings.short_id.generate")})})})]})]}),e.jsx(z,{className:"text-xs text-muted-foreground",children:r("dynamic_form.vless.reality_settings.short_id.description")})]})})]}),e.jsx(v,{control:d.control,name:"network",render:({field:g})=>e.jsxs(p,{children:[e.jsxs(j,{children:[r("dynamic_form.vless.network.label"),e.jsx(on,{value:d.watch("network_settings"),setValue:b=>d.setValue("network_settings",b),templateType:d.watch("network")})]}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vless.network.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.vless.networkOptions.map(b=>e.jsx(A,{value:b.value,className:"cursor-pointer",children:b.label},b.value))})})]})})]})}),e.jsx(v,{control:d.control,name:"flow",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.vless.flow.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:b=>g.onChange(b==="none"?null:b),value:g.value||"none",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vless.flow.placeholder")})}),e.jsx(Y,{children:Ee.vless.flowOptions.map(b=>e.jsx(A,{value:b,children:b},b))})]})})]})})]}),tuic:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"version",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.tuic.version.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:b=>g.onChange(Number(b)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.tuic.version.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.tuic.versions.map(b=>e.jsxs(A,{value:b,children:["V",b]},b))})})]})})]})}),e.jsx(v,{control:d.control,name:"congestion_control",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.tuic.congestion_control.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.tuic.congestion_control.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.tuic.congestionControls.map(b=>e.jsx(A,{value:b,children:b.toUpperCase()},b))})})]})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.tuic.tls.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.tuic.tls.server_name.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"tls.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.tuic.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),e.jsx(v,{control:d.control,name:"alpn",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.tuic.tls.alpn.label")}),e.jsx(N,{children:e.jsx(Tt,{options:Ee.tuic.alpnOptions,onChange:b=>g.onChange(b.map(k=>k.value)),value:Ee.tuic.alpnOptions.filter(b=>g.value?.includes(b.value)),placeholder:r("dynamic_form.tuic.tls.alpn.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:r("dynamic_form.tuic.tls.alpn.empty")})})})]})}),e.jsx(v,{control:d.control,name:"udp_relay_mode",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.tuic.udp_relay_mode.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.tuic.udp_relay_mode.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.tuic.udpRelayModes.map(b=>e.jsx(A,{value:b.value,children:b.label},b.value))})})]})})]})})]}),socks:()=>e.jsx(e.Fragment,{}),naive:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"tls",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.naive.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:b=>g.onChange(Number(b)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.naive.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:r("dynamic_form.naive.tls.disabled")}),e.jsx(A,{value:"1",children:r("dynamic_form.naive.tls.enabled")})]})]})})]})}),d.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.naive.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.naive.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.naive.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]})]}),http:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"tls",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.http.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:b=>g.onChange(Number(b)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.http.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:r("dynamic_form.http.tls.disabled")}),e.jsx(A,{value:"1",children:r("dynamic_form.http.tls.enabled")})]})]})})]})}),d.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.http.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.http.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(v,{control:d.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.http.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]})]}),mieru:()=>e.jsxs(e.Fragment,{children:[e.jsx(v,{control:d.control,name:"transport",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.mieru.transport.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.mieru.transport.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.mieru.transportOptions.map(b=>e.jsx(A,{value:b.value,children:b.label},b.value))})})]})})]})}),e.jsx(v,{control:d.control,name:"multiplexing",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.mieru.multiplexing.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.mieru.multiplexing.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.mieru.multiplexingOptions.map(b=>e.jsx(A,{value:b.value,children:b.label},b.value))})})]})})]})})]}),anytls:()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:d.control,name:"padding_scheme",render:({field:g})=>e.jsxs(p,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(j,{children:r("dynamic_form.anytls.padding_scheme.label","AnyTLS 填充方案")}),e.jsx(G,{type:"button",variant:"outline",size:"sm",onClick:()=>{d.setValue("padding_scheme",Ee.anytls.defaultPaddingScheme),q.success(r("dynamic_form.anytls.padding_scheme.default_success","已设置默认填充方案"))},className:"h-7 px-2",children:r("dynamic_form.anytls.padding_scheme.use_default","使用默认方案")})]}),e.jsx(z,{children:r("dynamic_form.anytls.padding_scheme.description","每行一个填充规则,格式如: stop=8, 0=30-30")}),e.jsx(N,{children:e.jsx("textarea",{className:"flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",placeholder:r("dynamic_form.anytls.padding_scheme.placeholder",`例如: +Line: ${Mi}`}return JSON.stringify(B,null,2)}catch{return C.context}})()})})]})]}),e.jsx(Pe,{children:e.jsx(Gs,{asChild:!0,children:e.jsx(G,{variant:"outline",children:s("common:close")})})})]})}),e.jsx(ge,{open:ee,onOpenChange:te,children:e.jsxs(ue,{className:"max-w-2xl",children:[e.jsx(be,{children:e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(ds,{className:"h-5 w-5 text-destructive"}),s("dashboard:systemLog.clearLogs")]})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-3",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"clearDays",children:s("dashboard:systemLog.clearDays")}),e.jsx(T,{id:"clearDays",type:"number",min:"0",max:"365",value:H,onChange:B=>{const ws=B.target.value;if(ws==="")E(0);else{const ht=parseInt(ws);!isNaN(ht)&&ht>=0&&ht<=365&&E(ht)}},placeholder:"0"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("dashboard:systemLog.clearDaysDesc")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"clearLevel",children:s("dashboard:systemLog.clearLevel")}),e.jsxs(J,{value:X,onValueChange:Ns,children:[e.jsx(W,{children:e.jsx(Q,{})}),e.jsxs(Y,{children:[e.jsx($,{value:"all",children:s("dashboard:systemLog.tabs.all")}),e.jsx($,{value:"info",children:s("dashboard:systemLog.tabs.info")}),e.jsx($,{value:"warning",children:s("dashboard:systemLog.tabs.warning")}),e.jsx($,{value:"error",children:s("dashboard:systemLog.tabs.error")})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"clearLimit",children:s("dashboard:systemLog.clearLimit")}),e.jsx(T,{id:"clearLimit",type:"number",min:"100",max:"10000",value:De,onChange:B=>ie(parseInt(B.target.value)||1e3),placeholder:"1000"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("dashboard:systemLog.clearLimitDesc")})]})]}),e.jsxs("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4 dark:border-amber-900 dark:bg-amber-950/30",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Dn,{className:"h-5 w-5 text-amber-600"}),e.jsx("span",{className:"font-medium text-amber-800 dark:text-amber-200",children:s("dashboard:systemLog.clearPreview")})]}),e.jsxs(G,{variant:"outline",size:"sm",onClick:Ei,disabled:_s,children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.getStats")]})]}),ea&&Xs&&e.jsxs("div",{className:"mt-4 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:systemLog.cutoffDate")}),e.jsx("p",{className:"font-mono text-sm",children:Xs.cutoff_date})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:s("dashboard:systemLog.totalLogs")}),e.jsx("p",{className:"font-mono text-sm font-medium",children:Xs.total_logs.toLocaleString()})]})]}),e.jsxs("div",{className:"rounded-md bg-red-50 p-3 dark:bg-red-950/30",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ut,{className:"h-4 w-4 text-red-600"}),e.jsxs("span",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:[s("dashboard:systemLog.willClear"),":",e.jsx("span",{className:"ml-1 font-bold",children:Xs.logs_to_clear.toLocaleString()}),s("dashboard:systemLog.logsUnit")]})]}),e.jsx("p",{className:"mt-1 text-xs text-red-600 dark:text-red-300",children:s("dashboard:systemLog.clearWarning")})]})]})]})]}),e.jsxs(Pe,{children:[e.jsx(G,{variant:"outline",onClick:()=>{te(!1),Et(!1),Rt(null)},children:s("common:cancel")}),e.jsx(G,{variant:"destructive",onClick:Fi,disabled:_s||!ea||!Xs,children:_s?e.jsxs(e.Fragment,{children:[e.jsx(Na,{className:"mr-2 h-4 w-4 animate-spin"}),s("dashboard:systemLog.clearing")]}):e.jsxs(e.Fragment,{children:[e.jsx(ds,{className:"mr-2 h-4 w-4"}),s("dashboard:systemLog.confirmClear")]})})]})]})})]})}function Sm(){const{t:s}=I();return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx("div",{className:"flex items-center",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("dashboard:title")})}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(ns,{}),e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsx(He,{children:e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"grid gap-6",children:[e.jsx(bm,{}),e.jsx(gm,{}),e.jsx(ym,{}),e.jsx(Cm,{})]})})})]})}const km=Object.freeze(Object.defineProperty({__proto__:null,default:Sm},Symbol.toStringTag,{value:"Module"}));function Tm({className:s,items:a,...t}){const{pathname:r}=Nn(),n=qs(),[i,l]=d.useState(r??"/settings"),o=u=>{l(u),n(u)},{t:x}=I("settings");return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"p-1 md:hidden",children:e.jsxs(J,{value:i,onValueChange:o,children:[e.jsx(W,{className:"h-12 sm:w-48",children:e.jsx(Q,{placeholder:"Theme"})}),e.jsx(Y,{children:a.map(u=>e.jsx($,{value:u.href,children:e.jsxs("div",{className:"flex gap-x-4 px-2 py-1",children:[e.jsx("span",{className:"scale-125",children:u.icon}),e.jsx("span",{className:"text-md",children:x(u.title)})]})},u.href))})]})}),e.jsx("div",{className:"hidden w-full overflow-x-auto bg-background px-1 py-2 md:block",children:e.jsx("nav",{className:_("flex space-x-2 lg:flex-col lg:space-x-0 lg:space-y-1",s),...t,children:a.map(u=>e.jsxs(Ys,{to:u.href,className:_(Dt({variant:"ghost"}),r===u.href?"bg-muted hover:bg-muted":"hover:bg-transparent hover:underline","justify-start"),children:[e.jsx("span",{className:"mr-2",children:u.icon}),x(u.title)]},u.href))})})]})}const Dm=[{title:"site.title",key:"site",icon:e.jsx(Sc,{size:18}),href:"/config/system",description:"site.description"},{title:"safe.title",key:"safe",icon:e.jsx(Br,{size:18}),href:"/config/system/safe",description:"safe.description"},{title:"subscribe.title",key:"subscribe",icon:e.jsx(Gr,{size:18}),href:"/config/system/subscribe",description:"subscribe.description"},{title:"invite.title",key:"invite",icon:e.jsx(kc,{size:18}),href:"/config/system/invite",description:"invite.description"},{title:"server.title",key:"server",icon:e.jsx(Kr,{size:18}),href:"/config/system/server",description:"server.description"},{title:"email.title",key:"email",icon:e.jsx(Tc,{size:18}),href:"/config/system/email",description:"email.description"},{title:"telegram.title",key:"telegram",icon:e.jsx(Dc,{size:18}),href:"/config/system/telegram",description:"telegram.description"},{title:"app.title",key:"app",icon:e.jsx(Ur,{size:18}),href:"/config/system/app",description:"app.description"},{title:"subscribe_template.title",key:"subscribe_template",icon:e.jsx(Lc,{size:18}),href:"/config/system/subscribe-template",description:"subscribe_template.description"}];function Lm(){const{t:s}=I("settings");return e.jsxs(ze,{fadedBelow:!0,fixedHeight:!0,children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight md:text-3xl",children:s("title")}),e.jsx("div",{className:"text-muted-foreground",children:s("description")})]}),e.jsx(Te,{className:"my-6"}),e.jsxs("div",{className:"flex flex-1 flex-col space-y-8 overflow-auto lg:flex-row lg:space-x-12 lg:space-y-0",children:[e.jsx("aside",{className:"sticky top-0 lg:w-1/5",children:e.jsx(Tm,{items:Dm})}),e.jsx("div",{className:"flex-1 w-full p-1 pr-4",children:e.jsx("div",{className:"pb-16",children:e.jsx(_n,{})})})]})]})]})}const Pm=Object.freeze(Object.defineProperty({__proto__:null,default:Lm},Symbol.toStringTag,{value:"Module"})),Z=d.forwardRef(({className:s,...a},t)=>e.jsx(ul,{className:_("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",s),...a,ref:t,children:e.jsx(Pc,{className:_("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Z.displayName=ul.displayName;const Ls=d.forwardRef(({className:s,...a},t)=>e.jsx("textarea",{className:_("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",s),ref:t,...a}));Ls.displayName="Textarea";const Rm=h.object({logo:h.string().nullable().default(""),force_https:h.number().nullable().default(0),stop_register:h.number().nullable().default(0),app_name:h.string().nullable().default(""),app_description:h.string().nullable().default(""),app_url:h.string().nullable().default(""),subscribe_url:h.string().nullable().default(""),try_out_plan_id:h.number().nullable().default(0),try_out_hour:h.coerce.number().nullable().default(0),tos_url:h.string().nullable().default(""),currency:h.string().nullable().default(""),currency_symbol:h.string().nullable().default("")});function Em(){const{t:s}=I("settings"),[a,t]=d.useState(!1),r=d.useRef(null),{data:n}=ne({queryKey:["settings","site"],queryFn:()=>he.getSettings("site")}),{data:i}=ne({queryKey:["plans"],queryFn:()=>gs.getList()}),l=we({resolver:Ce(Rm),defaultValues:{},mode:"onBlur"}),{mutateAsync:o}=Ds({mutationFn:he.saveSettings,onSuccess:c=>{c.data&&q.success(s("common.autoSaved"))}});d.useEffect(()=>{if(n?.data?.site){const c=n?.data?.site;Object.entries(c).forEach(([m,p])=>{l.setValue(m,p)}),r.current=c}},[n]);const x=d.useCallback(ke.debounce(async c=>{if(!ke.isEqual(c,r.current)){t(!0);try{const m=Object.entries(c).reduce((p,[k,S])=>(p[k]=S===null?"":S,p),{});await o(m),r.current=c}finally{t(!1)}}},1e3),[o]),u=d.useCallback(c=>{x(c)},[x]);return d.useEffect(()=>{const c=l.watch(m=>{u(m)});return()=>c.unsubscribe()},[l.watch,u]),e.jsx(Se,{...l,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:l.control,name:"app_name",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.siteName.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.siteName.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.siteName.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"app_description",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.siteDescription.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.siteDescription.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.siteDescription.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"app_url",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.siteUrl.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.siteUrl.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.siteUrl.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"force_https",render:({field:c})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("site.form.forceHttps.label")}),e.jsx(O,{children:s("site.form.forceHttps.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:!!c.value,onCheckedChange:m=>{c.onChange(Number(m)),u(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"logo",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.logo.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.logo.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.logo.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"subscribe_url",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.subscribeUrl.label")}),e.jsx(N,{children:e.jsx(Ls,{placeholder:s("site.form.subscribeUrl.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.subscribeUrl.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"tos_url",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.tosUrl.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.tosUrl.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.tosUrl.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"stop_register",render:({field:c})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("site.form.stopRegister.label")}),e.jsx(O,{children:s("site.form.stopRegister.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:!!c.value,onCheckedChange:m=>{c.onChange(Number(m)),u(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"try_out_plan_id",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.tryOut.label")}),e.jsx(N,{children:e.jsxs(J,{value:c.value?.toString(),onValueChange:m=>{c.onChange(Number(m)),u(l.getValues())},children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("site.form.tryOut.placeholder")})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("site.form.tryOut.placeholder")}),i?.data?.map(m=>e.jsx($,{value:m.id.toString(),children:m.name},m.id.toString()))]})]})}),e.jsx(O,{children:s("site.form.tryOut.description")}),e.jsx(P,{})]})}),!!l.watch("try_out_plan_id")&&e.jsx(b,{control:l.control,name:"try_out_hour",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"",children:s("site.form.tryOut.duration.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.tryOut.duration.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.tryOut.duration.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"currency",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.currency.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.currency.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.currency.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"currency_symbol",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("site.form.currencySymbol.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("site.form.currencySymbol.placeholder"),...c,value:c.value||"",onChange:m=>{c.onChange(m),u(l.getValues())}})}),e.jsx(O,{children:s("site.form.currencySymbol.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("site.form.saving")})]})})}function Fm(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("site.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("site.description")})]}),e.jsx(Te,{}),e.jsx(Em,{})]})}const Im=Object.freeze(Object.defineProperty({__proto__:null,default:Fm},Symbol.toStringTag,{value:"Module"})),Vm=h.object({email_verify:h.boolean().nullable(),safe_mode_enable:h.boolean().nullable(),secure_path:h.string().nullable(),email_whitelist_enable:h.boolean().nullable(),email_whitelist_suffix:h.array(h.string().nullable()).nullable(),email_gmail_limit_enable:h.boolean().nullable(),captcha_enable:h.boolean().nullable(),captcha_type:h.string().nullable(),recaptcha_key:h.string().nullable(),recaptcha_site_key:h.string().nullable(),recaptcha_v3_secret_key:h.string().nullable(),recaptcha_v3_site_key:h.string().nullable(),recaptcha_v3_score_threshold:h.coerce.string().transform(s=>s===""?null:s).nullable(),turnstile_secret_key:h.string().nullable(),turnstile_site_key:h.string().nullable(),register_limit_by_ip_enable:h.boolean().nullable(),register_limit_count:h.coerce.string().transform(s=>s===""?null:s).nullable(),register_limit_expire:h.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_enable:h.boolean().nullable(),password_limit_count:h.coerce.string().transform(s=>s===""?null:s).nullable(),password_limit_expire:h.coerce.string().transform(s=>s===""?null:s).nullable()}),Mm={email_verify:!1,safe_mode_enable:!1,secure_path:"",email_whitelist_enable:!1,email_whitelist_suffix:[],email_gmail_limit_enable:!1,captcha_enable:!1,captcha_type:"recaptcha",recaptcha_key:"",recaptcha_site_key:"",recaptcha_v3_secret_key:"",recaptcha_v3_site_key:"",recaptcha_v3_score_threshold:"0.5",turnstile_secret_key:"",turnstile_site_key:"",register_limit_by_ip_enable:!1,register_limit_count:"",register_limit_expire:"",password_limit_enable:!1,password_limit_count:"",password_limit_expire:""};function Om(){const{t:s}=I("settings"),[a,t]=d.useState(!1),[r,n]=d.useState(!1),i=d.useRef(null),l=we({resolver:Ce(Vm),defaultValues:Mm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","safe"],queryFn:()=>he.getSettings("safe")}),{mutateAsync:x}=Ds({mutationFn:he.saveSettings,onSuccess:m=>{m.data&&q.success(s("common.autoSaved"))}});d.useEffect(()=>{if(o?.data.safe){const m=o.data.safe,p={};Object.entries(m).forEach(([k,S])=>{if(typeof S=="number"){const f=String(S);l.setValue(k,f),p[k]=f}else l.setValue(k,S),p[k]=S}),i.current=p,n(!0)}},[o]);const u=d.useCallback(ke.debounce(async m=>{if(!ke.isEqual(m,i.current)){t(!0);try{const p={...m,email_whitelist_suffix:m.email_whitelist_suffix?.filter(Boolean)||[]};await x(p),i.current=m}finally{t(!1)}}},1e3),[x]),c=d.useCallback(m=>{r&&u(m)},[u,r]);return d.useEffect(()=>{if(!r)return;const m=l.watch(p=>{c(p)});return()=>m.unsubscribe()},[l.watch,c,r]),e.jsx(Se,{...l,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:l.control,name:"email_verify",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.emailVerify.label")}),e.jsx(O,{children:s("safe.form.emailVerify.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"email_gmail_limit_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.gmailLimit.label")}),e.jsx(O,{children:s("safe.form.gmailLimit.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"safe_mode_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.safeMode.label")}),e.jsx(O,{children:s("safe.form.safeMode.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"secure_path",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.securePath.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.securePath.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.securePath.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"email_whitelist_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.emailWhitelist.label")}),e.jsx(O,{children:s("safe.form.emailWhitelist.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),l.watch("email_whitelist_enable")&&e.jsx(b,{control:l.control,name:"email_whitelist_suffix",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.emailWhitelist.suffixes.label")}),e.jsx(N,{children:e.jsx(Ls,{placeholder:s("safe.form.emailWhitelist.suffixes.placeholder"),...m,value:(m.value||[]).join(` +`),onChange:p=>{const k=p.target.value.split(` +`).filter(Boolean);m.onChange(k),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.emailWhitelist.suffixes.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"captcha_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.enable.label")}),e.jsx(O,{children:s("safe.form.captcha.enable.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),l.watch("captcha_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"captcha_type",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.type.label")}),e.jsxs(J,{onValueChange:p=>{m.onChange(p),c(l.getValues())},value:m.value||"recaptcha",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("safe.form.captcha.type.description")})})}),e.jsxs(Y,{children:[e.jsx($,{value:"recaptcha",children:s("safe.form.captcha.type.options.recaptcha")}),e.jsx($,{value:"recaptcha-v3",children:s("safe.form.captcha.type.options.recaptcha-v3")}),e.jsx($,{value:"turnstile",children:s("safe.form.captcha.type.options.turnstile")})]})]}),e.jsx(O,{children:s("safe.form.captcha.type.description")}),e.jsx(P,{})]})}),l.watch("captcha_type")==="recaptcha"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"recaptcha_site_key",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.recaptcha.siteKey.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.captcha.recaptcha.siteKey.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.recaptcha.siteKey.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"recaptcha_key",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.recaptcha.key.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.captcha.recaptcha.key.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.recaptcha.key.description")}),e.jsx(P,{})]})})]}),l.watch("captcha_type")==="recaptcha-v3"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"recaptcha_v3_site_key",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.recaptcha_v3.siteKey.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.captcha.recaptcha_v3.siteKey.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.recaptcha_v3.siteKey.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"recaptcha_v3_secret_key",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.recaptcha_v3.secretKey.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.captcha.recaptcha_v3.secretKey.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.recaptcha_v3.secretKey.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"recaptcha_v3_score_threshold",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.recaptcha_v3.scoreThreshold.label")}),e.jsx(N,{children:e.jsx(T,{type:"number",step:"0.1",min:"0",max:"1",placeholder:s("safe.form.captcha.recaptcha_v3.scoreThreshold.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.recaptcha_v3.scoreThreshold.description")}),e.jsx(P,{})]})})]}),l.watch("captcha_type")==="turnstile"&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"turnstile_site_key",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.turnstile.siteKey.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.captcha.turnstile.siteKey.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.turnstile.siteKey.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"turnstile_secret_key",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.captcha.turnstile.secretKey.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.captcha.turnstile.secretKey.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.captcha.turnstile.secretKey.description")}),e.jsx(P,{})]})})]})]}),e.jsx(b,{control:l.control,name:"register_limit_by_ip_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.registerLimit.enable.label")}),e.jsx(O,{children:s("safe.form.registerLimit.enable.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),l.watch("register_limit_by_ip_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"register_limit_count",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.registerLimit.count.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.registerLimit.count.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.registerLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"register_limit_expire",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.registerLimit.expire.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.registerLimit.expire.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.registerLimit.expire.description")}),e.jsx(P,{})]})})]}),e.jsx(b,{control:l.control,name:"password_limit_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("safe.form.passwordLimit.enable.label")}),e.jsx(O,{children:s("safe.form.passwordLimit.enable.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),l.watch("password_limit_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"password_limit_count",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.passwordLimit.count.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.passwordLimit.count.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.passwordLimit.count.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"password_limit_expire",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("safe.form.passwordLimit.expire.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("safe.form.passwordLimit.expire.placeholder"),...m,value:m.value||"",onChange:p=>{m.onChange(p),c(l.getValues())}})}),e.jsx(O,{children:s("safe.form.passwordLimit.expire.description")}),e.jsx(P,{})]})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("safe.form.saving")})]})})}function zm(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("safe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("safe.description")})]}),e.jsx(Te,{}),e.jsx(Om,{})]})}const $m=Object.freeze(Object.defineProperty({__proto__:null,default:zm},Symbol.toStringTag,{value:"Module"})),Am=h.object({plan_change_enable:h.boolean().nullable().default(!1),reset_traffic_method:h.coerce.number().nullable().default(0),surplus_enable:h.boolean().nullable().default(!1),new_order_event_id:h.coerce.number().nullable().default(0),renew_order_event_id:h.coerce.number().nullable().default(0),change_order_event_id:h.coerce.number().nullable().default(0),show_info_to_server_enable:h.boolean().nullable().default(!1),show_protocol_to_server_enable:h.boolean().nullable().default(!1),default_remind_expire:h.boolean().nullable().default(!1),default_remind_traffic:h.boolean().nullable().default(!1),subscribe_path:h.string().nullable().default("s")}),qm={plan_change_enable:!1,reset_traffic_method:0,surplus_enable:!1,new_order_event_id:0,renew_order_event_id:0,change_order_event_id:0,show_info_to_server_enable:!1,show_protocol_to_server_enable:!1,default_remind_expire:!1,default_remind_traffic:!1,subscribe_path:"s"};function Hm(){const{t:s}=I("settings"),[a,t]=d.useState(!1),r=d.useRef(null),n=we({resolver:Ce(Am),defaultValues:qm,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","subscribe"],queryFn:()=>he.getSettings("subscribe")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:u=>{u.data&&q.success(s("common.autoSaved"))}});d.useEffect(()=>{if(i?.data?.subscribe){const u=i?.data?.subscribe;Object.entries(u).forEach(([c,m])=>{n.setValue(c,m)}),r.current=u}},[i]);const o=d.useCallback(ke.debounce(async u=>{if(!ke.isEqual(u,r.current)){t(!0);try{await l(u),r.current=u}finally{t(!1)}}},1e3),[l]),x=d.useCallback(u=>{o(u)},[o]);return d.useEffect(()=>{const u=n.watch(c=>{x(c)});return()=>u.unsubscribe()},[n.watch,x]),e.jsx(Se,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:n.control,name:"plan_change_enable",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.plan_change_enable.title")}),e.jsx(O,{children:s("subscribe.plan_change_enable.description")}),e.jsx(N,{children:e.jsx(Z,{checked:u.value||!1,onCheckedChange:c=>{u.onChange(c),x(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"reset_traffic_method",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.reset_traffic_method.title")}),e.jsxs(J,{onValueChange:u.onChange,value:u.value?.toString()||"0",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择重置方式"})})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("subscribe.reset_traffic_method.options.monthly_first")}),e.jsx($,{value:"1",children:s("subscribe.reset_traffic_method.options.monthly_reset")}),e.jsx($,{value:"2",children:s("subscribe.reset_traffic_method.options.no_reset")}),e.jsx($,{value:"3",children:s("subscribe.reset_traffic_method.options.yearly_first")}),e.jsx($,{value:"4",children:s("subscribe.reset_traffic_method.options.yearly_reset")})]})]}),e.jsx(O,{children:s("subscribe.reset_traffic_method.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"surplus_enable",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.surplus_enable.title")}),e.jsx(O,{children:s("subscribe.surplus_enable.description")}),e.jsx(N,{children:e.jsx(Z,{checked:u.value||!1,onCheckedChange:c=>{u.onChange(c),x(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"new_order_event_id",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.new_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:u.onChange,value:u.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("subscribe.new_order_event.options.no_action")}),e.jsx($,{value:"1",children:s("subscribe.new_order_event.options.reset_traffic")})]})]})})}),e.jsx(O,{children:s("subscribe.new_order_event.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"renew_order_event_id",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.renew_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:u.onChange,value:u.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("subscribe.renew_order_event.options.no_action")}),e.jsx($,{value:"1",children:s("subscribe.renew_order_event.options.reset_traffic")})]})]})})}),e.jsx(O,{children:s("subscribe.renew_order_event.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"change_order_event_id",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.change_order_event.title")}),e.jsx("div",{className:"relative w-max",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:u.onChange,value:u.value?.toString(),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择"})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("subscribe.change_order_event.options.no_action")}),e.jsx($,{value:"1",children:s("subscribe.change_order_event.options.reset_traffic")})]})]})})}),e.jsx(O,{children:s("subscribe.change_order_event.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"subscribe_path",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("subscribe.subscribe_path.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:"subscribe",...u,value:u.value||"",onChange:c=>{u.onChange(c),x(n.getValues())}})}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:[s("subscribe.subscribe_path.description"),e.jsx("br",{}),s("subscribe.subscribe_path.current_format",{path:u.value||"s"})]}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"show_info_to_server_enable",render:({field:u})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("subscribe.show_info_to_server.title")}),e.jsx(O,{children:s("subscribe.show_info_to_server.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:u.value||!1,onCheckedChange:c=>{u.onChange(c),x(n.getValues())}})})]})}),e.jsx(b,{control:n.control,name:"show_protocol_to_server_enable",render:({field:u})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("subscribe.show_protocol_to_server.title")}),e.jsx(O,{children:s("subscribe.show_protocol_to_server.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:u.value||!1,onCheckedChange:c=>{u.onChange(c),x(n.getValues())}})})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function Um(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("subscribe.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("subscribe.description")})]}),e.jsx(Te,{}),e.jsx(Hm,{})]})}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:Um},Symbol.toStringTag,{value:"Module"})),Bm=h.object({invite_force:h.boolean().default(!1),invite_commission:h.coerce.string().default("0"),invite_gen_limit:h.coerce.string().default("0"),invite_never_expire:h.boolean().default(!1),commission_first_time_enable:h.boolean().default(!1),commission_auto_check_enable:h.boolean().default(!1),commission_withdraw_limit:h.coerce.string().default("0"),commission_withdraw_method:h.array(h.string()).default(["支付宝","USDT","Paypal"]),withdraw_close_enable:h.boolean().default(!1),commission_distribution_enable:h.boolean().default(!1),commission_distribution_l1:h.coerce.number().default(0),commission_distribution_l2:h.coerce.number().default(0),commission_distribution_l3:h.coerce.number().default(0)}),Gm={invite_force:!1,invite_commission:"0",invite_gen_limit:"0",invite_never_expire:!1,commission_first_time_enable:!1,commission_auto_check_enable:!1,commission_withdraw_limit:"0",commission_withdraw_method:["支付宝","USDT","Paypal"],withdraw_close_enable:!1,commission_distribution_enable:!1,commission_distribution_l1:0,commission_distribution_l2:0,commission_distribution_l3:0};function Wm(){const{t:s}=I("settings"),[a,t]=d.useState(!1),[r,n]=d.useState(!1),i=d.useRef(null),l=we({resolver:Ce(Bm),defaultValues:Gm,mode:"onBlur"}),{data:o}=ne({queryKey:["settings","invite"],queryFn:()=>he.getSettings("invite")}),{mutateAsync:x}=Ds({mutationFn:he.saveSettings,onSuccess:m=>{m.data&&q.success(s("common.autoSaved"))}});d.useEffect(()=>{if(o?.data?.invite){const m=o?.data?.invite,p={};Object.entries(m).forEach(([k,S])=>{if(typeof S=="number"){const f=String(S);l.setValue(k,f),p[k]=f}else l.setValue(k,S),p[k]=S}),i.current=p,n(!0)}},[o]);const u=d.useCallback(ke.debounce(async m=>{if(!ke.isEqual(m,i.current)){t(!0);try{await x(m),i.current=m}finally{t(!1)}}},1e3),[x]),c=d.useCallback(m=>{r&&u(m)},[u,r]);return d.useEffect(()=>{if(!r)return;const m=l.watch(p=>{c(p)});return()=>m.unsubscribe()},[l.watch,c,r]),e.jsx(Se,{...l,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:l.control,name:"invite_force",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("invite.invite_force.title")}),e.jsx(O,{children:s("invite.invite_force.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"invite_commission",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("invite.invite_commission.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("invite.invite_commission.placeholder"),...m,value:m.value||""})}),e.jsx(O,{children:s("invite.invite_commission.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"invite_gen_limit",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("invite.invite_gen_limit.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("invite.invite_gen_limit.placeholder"),...m,value:m.value||""})}),e.jsx(O,{children:s("invite.invite_gen_limit.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"invite_never_expire",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("invite.invite_never_expire.title")}),e.jsx(O,{children:s("invite.invite_never_expire.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"commission_first_time_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("invite.commission_first_time.title")}),e.jsx(O,{children:s("invite.commission_first_time.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"commission_auto_check_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("invite.commission_auto_check.title")}),e.jsx(O,{children:s("invite.commission_auto_check.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"commission_withdraw_limit",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("invite.commission_withdraw_limit.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("invite.commission_withdraw_limit.placeholder"),...m,value:m.value||""})}),e.jsx(O,{children:s("invite.commission_withdraw_limit.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"commission_withdraw_method",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("invite.commission_withdraw_method.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("invite.commission_withdraw_method.placeholder"),...m,value:Array.isArray(m.value)?m.value.join(","):"",onChange:p=>{const k=p.target.value.split(",").filter(Boolean);m.onChange(k),c(l.getValues())}})}),e.jsx(O,{children:s("invite.commission_withdraw_method.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"withdraw_close_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("invite.withdraw_close.title")}),e.jsx(O,{children:s("invite.withdraw_close.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),e.jsx(b,{control:l.control,name:"commission_distribution_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("invite.commission_distribution.title")}),e.jsx(O,{children:s("invite.commission_distribution.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:m.value,onCheckedChange:p=>{m.onChange(p),c(l.getValues())}})})]})}),l.watch("commission_distribution_enable")&&e.jsxs(e.Fragment,{children:[e.jsx(b,{control:l.control,name:"commission_distribution_l1",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{children:s("invite.commission_distribution.l1")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...m,value:m.value||"",onChange:p=>{const k=p.target.value?Number(p.target.value):0;m.onChange(k),c(l.getValues())}})}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"commission_distribution_l2",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{children:s("invite.commission_distribution.l2")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...m,value:m.value||"",onChange:p=>{const k=p.target.value?Number(p.target.value):0;m.onChange(k),c(l.getValues())}})}),e.jsx(P,{})]})}),e.jsx(b,{control:l.control,name:"commission_distribution_l3",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{children:s("invite.commission_distribution.l3")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:s("invite.commission_distribution.placeholder"),...m,value:m.value||"",onChange:p=>{const k=p.target.value?Number(p.target.value):0;m.onChange(k),c(l.getValues())}})}),e.jsx(P,{})]})})]}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("invite.saving")})]})})}function Ym(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("invite.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("invite.description")})]}),e.jsx(Te,{}),e.jsx(Wm,{})]})}const Jm=Object.freeze(Object.defineProperty({__proto__:null,default:Ym},Symbol.toStringTag,{value:"Module"})),Qm=h.object({frontend_theme:h.string().nullable(),frontend_theme_sidebar:h.string().nullable(),frontend_theme_header:h.string().nullable(),frontend_theme_color:h.string().nullable(),frontend_background_url:h.string().url().nullable()}),Xm={frontend_theme:"",frontend_theme_sidebar:"",frontend_theme_header:"",frontend_theme_color:"",frontend_background_url:""};function Zm(){const{data:s}=ne({queryKey:["settings","frontend"],queryFn:()=>he.getSettings("frontend")}),a=we({resolver:Ce(Qm),defaultValues:Xm,mode:"onChange"});d.useEffect(()=>{if(s?.data?.frontend){const r=s?.data?.frontend;Object.entries(r).forEach(([n,i])=>{a.setValue(n,i)})}},[s]);function t(r){he.saveSettings(r).then(({data:n})=>{n&&q.success("更新成功")})}return e.jsx(Se,{...a,children:e.jsxs("form",{onSubmit:a.handleSubmit(t),className:"space-y-8",children:[e.jsx(b,{control:a.control,name:"frontend_theme_sidebar",render:({field:r})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:"边栏风格"}),e.jsx(O,{children:"边栏风格"})]}),e.jsx(N,{children:e.jsx(Z,{checked:r.value,onCheckedChange:r.onChange})})]})}),e.jsx(b,{control:a.control,name:"frontend_theme_header",render:({field:r})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:"头部风格"}),e.jsx(O,{children:"边栏风格"})]}),e.jsx(N,{children:e.jsx(Z,{checked:r.value,onCheckedChange:r.onChange})})]})}),e.jsx(b,{control:a.control,name:"frontend_theme_color",render:({field:r})=>e.jsxs(j,{children:[e.jsx(v,{children:"主题色"}),e.jsxs("div",{className:"relative w-max",children:[e.jsx(N,{children:e.jsxs("select",{className:_(Dt({variant:"outline"}),"w-[200px] appearance-none font-normal"),...r,children:[e.jsx("option",{value:"default",children:"默认"}),e.jsx("option",{value:"black",children:"黑色"}),e.jsx("option",{value:"blackblue",children:"暗蓝色"}),e.jsx("option",{value:"green",children:"奶绿色"})]})}),e.jsx(Tn,{className:"absolute right-3 top-2.5 h-4 w-4 opacity-50"})]}),e.jsx(O,{children:"主题色"}),e.jsx(P,{})]})}),e.jsx(b,{control:a.control,name:"frontend_background_url",render:({field:r})=>e.jsxs(j,{children:[e.jsx(v,{children:"背景"}),e.jsx(N,{children:e.jsx(T,{placeholder:"请输入图片地址",...r})}),e.jsx(O,{children:"将会在后台登录页面进行展示。"}),e.jsx(P,{})]})}),e.jsx(L,{type:"submit",children:"保存设置"})]})})}function eu(){return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:"个性化设置"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"自定义系统界面外观,包括主题风格、布局、颜色方案、背景图等个性化选项。"})]}),e.jsx(Te,{}),e.jsx(Zm,{})]})}const su=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"})),tu=h.object({server_pull_interval:h.coerce.number().nullable(),server_push_interval:h.coerce.number().nullable(),server_token:h.string().nullable(),device_limit_mode:h.coerce.number().nullable()}),au={server_pull_interval:0,server_push_interval:0,server_token:"",device_limit_mode:0};function nu(){const{t:s}=I("settings"),[a,t]=d.useState(!1),r=d.useRef(null),n=we({resolver:Ce(tu),defaultValues:au,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","server"],queryFn:()=>he.getSettings("server")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:c=>{c.data&&q.success(s("common.AutoSaved"))}});d.useEffect(()=>{if(i?.data.server){const c=i.data.server;Object.entries(c).forEach(([m,p])=>{n.setValue(m,p)}),r.current=c}},[i]);const o=d.useCallback(ke.debounce(async c=>{if(!ke.isEqual(c,r.current)){t(!0);try{await l(c),r.current=c}finally{t(!1)}}},1e3),[l]),x=d.useCallback(c=>{o(c)},[o]);d.useEffect(()=>{const c=n.watch(m=>{x(m)});return()=>c.unsubscribe()},[n.watch,x]);const u=()=>{const c=Math.floor(Math.random()*17)+16,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let p="";for(let k=0;ke.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("server.server_token.title")}),e.jsx(N,{children:e.jsxs("div",{className:"relative",children:[e.jsx(T,{placeholder:s("server.server_token.placeholder"),...c,value:c.value||"",className:"pr-10"}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 py-2",onClick:m=>{m.preventDefault(),u()},children:e.jsx(Rc,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"})})}),e.jsx(oe,{children:e.jsx("p",{children:s("server.server_token.generate_tooltip")})})]})})]})}),e.jsx(O,{children:s("server.server_token.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"server_pull_interval",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("server.server_pull_interval.title")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:s("server.server_pull_interval.placeholder"),...c,value:c.value||"",onChange:m=>{const p=m.target.value?Number(m.target.value):null;c.onChange(p)}})}),e.jsx(O,{children:s("server.server_pull_interval.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"server_push_interval",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("server.server_push_interval.title")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:s("server.server_push_interval.placeholder"),...c,value:c.value||"",onChange:m=>{const p=m.target.value?Number(m.target.value):null;c.onChange(p)}})}),e.jsx(O,{children:s("server.server_push_interval.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"device_limit_mode",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("server.device_limit_mode.title")}),e.jsxs(J,{onValueChange:c.onChange,value:c.value?.toString()||"0",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("server.device_limit_mode.placeholder")})})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("server.device_limit_mode.strict")}),e.jsx($,{value:"1",children:s("server.device_limit_mode.relaxed")})]})]}),e.jsx(O,{children:s("server.device_limit_mode.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("server.saving")})]})})}function ru(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("server.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("server.description")})]}),e.jsx(Te,{}),e.jsx(nu,{})]})}const lu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"}));function iu({open:s,onOpenChange:a,result:t}){const r=!t.error;return e.jsx(ge,{open:s,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[r?e.jsx(dl,{className:"h-5 w-5 text-green-500"}):e.jsx(ml,{className:"h-5 w-5 text-destructive"}),e.jsx(fe,{children:r?"邮件发送成功":"邮件发送失败"})]}),e.jsx(Ve,{children:r?"测试邮件已成功发送,请检查收件箱":"发送测试邮件时遇到错误"})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"发送详情"}),e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2 text-sm",children:[e.jsx("div",{className:"text-muted-foreground",children:"收件地址"}),e.jsx("div",{children:t.email}),e.jsx("div",{className:"text-muted-foreground",children:"邮件主题"}),e.jsx("div",{children:t.subject}),e.jsx("div",{className:"text-muted-foreground",children:"模板名称"}),e.jsx("div",{children:t.template_name})]})]}),t.error&&e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium text-destructive",children:"错误信息"}),e.jsx("div",{className:"rounded-md bg-destructive/10 p-3 text-sm text-destructive break-all",children:t.error})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx("div",{className:"font-medium",children:"配置信息"}),e.jsx(lt,{className:"h-[200px] rounded-md border p-4",children:e.jsx("div",{className:"grid gap-2 text-sm",children:e.jsxs("div",{className:"grid grid-cols-[100px_1fr] items-center gap-2",children:[e.jsx("div",{className:"text-muted-foreground",children:"驱动"}),e.jsx("div",{children:t.config.driver}),e.jsx("div",{className:"text-muted-foreground",children:"服务器"}),e.jsx("div",{children:t.config.host}),e.jsx("div",{className:"text-muted-foreground",children:"端口"}),e.jsx("div",{children:t.config.port}),e.jsx("div",{className:"text-muted-foreground",children:"加密方式"}),e.jsx("div",{children:t.config.encryption||"无"}),e.jsx("div",{className:"text-muted-foreground",children:"发件人"}),e.jsx("div",{children:t.config.from.address?`${t.config.from.address}${t.config.from.name?` (${t.config.from.name})`:""}`:"未设置"}),e.jsx("div",{className:"text-muted-foreground",children:"用户名"}),e.jsx("div",{children:t.config.username||"未设置"})]})})})]})]})]})})}const ou=h.object({email_template:h.string().nullable().default("classic"),email_host:h.string().nullable().default(""),email_port:h.coerce.number().nullable().default(465),email_username:h.string().nullable().default(""),email_password:h.string().nullable().default(""),email_encryption:h.string().nullable().default(""),email_from_address:h.string().email().nullable().default(""),remind_mail_enable:h.boolean().nullable().default(!1)});function cu(){const{t:s}=I("settings"),[a,t]=d.useState(null),[r,n]=d.useState(!1),i=d.useRef(null),[l,o]=d.useState(!1),x=we({resolver:Ce(ou),defaultValues:{},mode:"onBlur"}),{data:u}=ne({queryKey:["settings","email"],queryFn:()=>he.getSettings("email")}),{data:c}=ne({queryKey:["emailTemplate"],queryFn:()=>he.getEmailTemplate()}),{mutateAsync:m}=Ds({mutationFn:he.saveSettings,onSuccess:w=>{w.data&&q.success(s("common.autoSaved"))}}),{mutate:p,isPending:k}=Ds({mutationFn:he.sendTestMail,onMutate:()=>{t(null),n(!1)},onSuccess:w=>{t(w.data),n(!0),w.data.error?q.error(s("email.test.error")):q.success(s("email.test.success"))}});d.useEffect(()=>{if(u?.data.email){const w=u.data.email;Object.entries(w).forEach(([C,V])=>{x.setValue(C,V)}),i.current=w}},[u]);const S=d.useCallback(ke.debounce(async w=>{if(!ke.isEqual(w,i.current)){o(!0);try{await m(w),i.current=w}finally{o(!1)}}},1e3),[m]),f=d.useCallback(w=>{S(w)},[S]);return d.useEffect(()=>{const w=x.watch(C=>{f(C)});return()=>w.unsubscribe()},[x.watch,f]),e.jsxs(e.Fragment,{children:[e.jsx(Se,{...x,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:x.control,name:"email_host",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_host.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...w,value:w.value||""})}),e.jsx(O,{children:s("email.email_host.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"email_port",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_port.title")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:s("common.placeholder"),...w,value:w.value||"",onChange:C=>{const V=C.target.value?Number(C.target.value):null;w.onChange(V)}})}),e.jsx(O,{children:s("email.email_port.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"email_encryption",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_encryption.title")}),e.jsxs(J,{onValueChange:C=>{const V=C==="none"?"":C;w.onChange(V)},value:w.value===""||w.value===null||w.value===void 0?"none":w.value,children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:"请选择加密方式"})})}),e.jsxs(Y,{children:[e.jsx($,{value:"none",children:s("email.email_encryption.none")}),e.jsx($,{value:"ssl",children:s("email.email_encryption.ssl")}),e.jsx($,{value:"tls",children:s("email.email_encryption.tls")})]})]}),e.jsx(O,{children:s("email.email_encryption.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"email_username",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_username.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),autoComplete:"off",...w,value:w.value||""})}),e.jsx(O,{children:s("email.email_username.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"email_password",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_password.title")}),e.jsx(N,{children:e.jsx(T,{type:"password",placeholder:s("common.placeholder"),autoComplete:"off",...w,value:w.value||""})}),e.jsx(O,{children:s("email.email_password.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"email_from_address",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_from.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...w,value:w.value||""})}),e.jsx(O,{children:s("email.email_from.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"email_template",render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("email.email_template.title")}),e.jsxs(J,{onValueChange:C=>{w.onChange(C),f(x.getValues())},value:w.value||void 0,children:[e.jsx(N,{children:e.jsx(W,{className:"w-[200px]",children:e.jsx(Q,{placeholder:s("email.email_template.placeholder")})})}),e.jsx(Y,{children:c?.data?.map(C=>e.jsx($,{value:C,children:C},C))})]}),e.jsx(O,{children:s("email.email_template.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"remind_mail_enable",render:({field:w})=>e.jsxs(j,{children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:s("email.remind_mail.title")}),e.jsx(O,{children:s("email.remind_mail.description")})]}),e.jsx(N,{children:e.jsx(Z,{checked:w.value||!1,onCheckedChange:C=>{w.onChange(C),f(x.getValues())}})})]})}),e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(L,{onClick:()=>p(),loading:k,disabled:k,children:s(k?"email.test.sending":"email.test.title")})})]})}),l&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("saving")}),a&&e.jsx(iu,{open:r,onOpenChange:n,result:a})]})}function du(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("email.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("email.description")})]}),e.jsx(Te,{}),e.jsx(cu,{})]})}const mu=Object.freeze(Object.defineProperty({__proto__:null,default:du},Symbol.toStringTag,{value:"Module"})),uu=h.object({telegram_bot_enable:h.boolean().nullable(),telegram_bot_token:h.string().nullable(),telegram_discuss_link:h.string().nullable()}),xu={telegram_bot_enable:!1,telegram_bot_token:"",telegram_discuss_link:""};function hu(){const{t:s}=I("settings"),[a,t]=d.useState(!1),r=d.useRef(null),n=we({resolver:Ce(uu),defaultValues:xu,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","telegram"],queryFn:()=>he.getSettings("telegram")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:m=>{m.data&&q.success(s("common.autoSaved"))}}),{mutate:o,isPending:x}=Ds({mutationFn:he.setTelegramWebhook,onSuccess:m=>{m.data&&q.success(s("telegram.webhook.success"))}});d.useEffect(()=>{if(i?.data.telegram){const m=i.data.telegram;Object.entries(m).forEach(([p,k])=>{n.setValue(p,k)}),r.current=m}},[i]);const u=d.useCallback(ke.debounce(async m=>{if(!ke.isEqual(m,r.current)){t(!0);try{await l(m),r.current=m}finally{t(!1)}}},1e3),[l]),c=d.useCallback(m=>{u(m)},[u]);return d.useEffect(()=>{const m=n.watch(p=>{c(p)});return()=>m.unsubscribe()},[n.watch,c]),e.jsx(Se,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:n.control,name:"telegram_bot_token",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("telegram.bot_token.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("telegram.bot_token.placeholder"),...m,value:m.value||""})}),e.jsx(O,{children:s("telegram.bot_token.description")}),e.jsx(P,{})]})}),n.watch("telegram_bot_token")&&e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("telegram.webhook.title")}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(L,{loading:x,disabled:x,onClick:()=>o(),children:s(x?"telegram.webhook.setting":"telegram.webhook.button")}),a&&e.jsx("span",{className:"text-sm text-muted-foreground",children:s("common.saving")})]}),e.jsx(O,{children:s("telegram.webhook.description")}),e.jsx(P,{})]}),e.jsx(b,{control:n.control,name:"telegram_bot_enable",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("telegram.bot_enable.title")}),e.jsx(O,{children:s("telegram.bot_enable.description")}),e.jsx(N,{children:e.jsx(Z,{checked:m.value||!1,onCheckedChange:p=>{m.onChange(p),c(n.getValues())}})}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"telegram_discuss_link",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("telegram.discuss_link.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("telegram.discuss_link.placeholder"),...m,value:m.value||""})}),e.jsx(O,{children:s("telegram.discuss_link.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function gu(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("telegram.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("telegram.description")})]}),e.jsx(Te,{}),e.jsx(hu,{})]})}const fu=Object.freeze(Object.defineProperty({__proto__:null,default:gu},Symbol.toStringTag,{value:"Module"})),pu=h.object({windows_version:h.string().nullable(),windows_download_url:h.string().nullable(),macos_version:h.string().nullable(),macos_download_url:h.string().nullable(),android_version:h.string().nullable(),android_download_url:h.string().nullable()}),ju={windows_version:"",windows_download_url:"",macos_version:"",macos_download_url:"",android_version:"",android_download_url:""};function vu(){const{t:s}=I("settings"),[a,t]=d.useState(!1),r=d.useRef(null),n=we({resolver:Ce(pu),defaultValues:ju,mode:"onBlur"}),{data:i}=ne({queryKey:["settings","app"],queryFn:()=>he.getSettings("app")}),{mutateAsync:l}=Ds({mutationFn:he.saveSettings,onSuccess:u=>{u.data&&q.success(s("app.save_success"))}});d.useEffect(()=>{if(i?.data.app){const u=i.data.app;Object.entries(u).forEach(([c,m])=>{n.setValue(c,m)}),r.current=u}},[i]);const o=d.useCallback(ke.debounce(async u=>{if(!ke.isEqual(u,r.current)){t(!0);try{await l(u),r.current=u}finally{t(!1)}}},1e3),[l]),x=d.useCallback(u=>{o(u)},[o]);return d.useEffect(()=>{const u=n.watch(c=>{x(c)});return()=>u.unsubscribe()},[n.watch,x]),e.jsx(Se,{...n,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:n.control,name:"windows_version",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("app.windows.version.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...u,value:u.value||""})}),e.jsx(O,{children:s("app.windows.version.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"windows_download_url",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("app.windows.download.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...u,value:u.value||""})}),e.jsx(O,{children:s("app.windows.download.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"macos_version",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("app.macos.version.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...u,value:u.value||""})}),e.jsx(O,{children:s("app.macos.version.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"macos_download_url",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("app.macos.download.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...u,value:u.value||""})}),e.jsx(O,{children:s("app.macos.download.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"android_version",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("app.android.version.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...u,value:u.value||""})}),e.jsx(O,{children:s("app.android.version.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"android_download_url",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{className:"text-base",children:s("app.android.download.title")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("common.placeholder"),...u,value:u.value||""})}),e.jsx(O,{children:s("app.android.download.description")}),e.jsx(P,{})]})}),a&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("common.saving")})]})})}function bu(){const{t:s}=I("settings");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium",children:s("app.title")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s("app.description")})]}),e.jsx(Te,{}),e.jsx(vu,{})]})}const yu=Object.freeze(Object.defineProperty({__proto__:null,default:bu},Symbol.toStringTag,{value:"Module"})),Nu=s=>h.object({id:h.number().nullable(),name:h.string().min(2,s("form.validation.name.min")).max(30,s("form.validation.name.max")),icon:h.string().optional().nullable(),notify_domain:h.string().refine(t=>!t||/^https?:\/\/\S+/.test(t),s("form.validation.notify_domain.url")).optional().nullable(),handling_fee_fixed:h.coerce.number().min(0).optional().nullable(),handling_fee_percent:h.coerce.number().min(0).max(100).optional().nullable(),payment:h.string().min(1,s("form.validation.payment.required")),config:h.record(h.string(),h.string())}),gr={id:null,name:"",icon:"",notify_domain:"",handling_fee_fixed:0,handling_fee_percent:0,payment:"",config:{}};function Yl({refetch:s,dialogTrigger:a,type:t="add",defaultFormValues:r=gr}){const{t:n}=I("payment"),[i,l]=d.useState(!1),[o,x]=d.useState(!1),[u,c]=d.useState([]),[m,p]=d.useState([]),k=Nu(n),S=we({resolver:Ce(k),defaultValues:r,mode:"onChange"}),f=S.watch("payment");d.useEffect(()=>{i&&(async()=>{const{data:V}=await nt.getMethodList();c(V)})()},[i]),d.useEffect(()=>{if(!f||!i)return;(async()=>{const V={payment:f,...t==="edit"&&{id:Number(S.getValues("id"))}};nt.getMethodForm(V).then(({data:F})=>{p(F);const g=F.reduce((y,D)=>(D.field_name&&(y[D.field_name]=D.value??""),y),{});S.setValue("config",g)})})()},[f,i,S,t]);const w=async C=>{x(!0);try{(await nt.save(C)).data&&(q.success(n("form.messages.success")),S.reset(gr),s(),l(!1))}finally{x(!1)}};return e.jsxs(ge,{open:i,onOpenChange:l,children:[e.jsx(as,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(be,{children:e.jsx(fe,{children:n(t==="add"?"form.add.title":"form.edit.title")})}),e.jsx(Se,{...S,children:e.jsxs("form",{onSubmit:S.handleSubmit(w),className:"space-y-4",children:[e.jsx(b,{control:S.control,name:"name",render:({field:C})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:n("form.fields.name.placeholder"),...C})}),e.jsx(O,{children:n("form.fields.name.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:S.control,name:"icon",render:({field:C})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.icon.label")}),e.jsx(N,{children:e.jsx(T,{...C,value:C.value||"",placeholder:n("form.fields.icon.placeholder")})}),e.jsx(O,{children:n("form.fields.icon.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:S.control,name:"notify_domain",render:({field:C})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.notify_domain.label")}),e.jsx(N,{children:e.jsx(T,{...C,value:C.value||"",placeholder:n("form.fields.notify_domain.placeholder")})}),e.jsx(O,{children:n("form.fields.notify_domain.description")}),e.jsx(P,{})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(b,{control:S.control,name:"handling_fee_percent",render:({field:C})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.handling_fee_percent.label")}),e.jsx(N,{children:e.jsx(T,{type:"number",...C,value:C.value||"",placeholder:n("form.fields.handling_fee_percent.placeholder")})}),e.jsx(P,{})]})}),e.jsx(b,{control:S.control,name:"handling_fee_fixed",render:({field:C})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.handling_fee_fixed.label")}),e.jsx(N,{children:e.jsx(T,{type:"number",...C,value:C.value||"",placeholder:n("form.fields.handling_fee_fixed.placeholder")})}),e.jsx(P,{})]})})]}),e.jsx(b,{control:S.control,name:"payment",render:({field:C})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.payment.label")}),e.jsxs(J,{onValueChange:C.onChange,defaultValue:C.value,children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:n("form.fields.payment.placeholder")})})}),e.jsx(Y,{children:u.map(V=>e.jsx($,{value:V,children:V},V))})]}),e.jsx(O,{children:n("form.fields.payment.description")}),e.jsx(P,{})]})}),m.length>0&&e.jsx("div",{className:"space-y-4",children:m.map(C=>e.jsx(b,{control:S.control,name:`config.${C.field_name}`,render:({field:V})=>e.jsxs(j,{children:[e.jsx(v,{children:C.label}),e.jsx(N,{children:e.jsx(T,{...V,value:V.value||""})}),e.jsx(P,{})]})},C.field_name))}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.buttons.cancel")})}),e.jsx(L,{type:"submit",disabled:o,children:n("form.buttons.submit")})]})]})})]})]})}function A({column:s,title:a,tooltip:t,className:r}){return s.getCanSort()?e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("div",{className:"flex items-center gap-2",children:e.jsxs(L,{variant:"ghost",size:"default",className:_("-ml-3 flex h-8 items-center gap-2 text-nowrap font-medium hover:bg-muted/60",r),onClick:()=>s.toggleSorting(s.getIsSorted()==="asc"),children:[e.jsx("span",{children:a}),t&&e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(ar,{className:"h-4 w-4 cursor-pointer text-muted-foreground"})}),e.jsx(oe,{children:t})]})}),s.getIsSorted()==="asc"?e.jsx(un,{className:"h-4 w-4 text-foreground/70"}):s.getIsSorted()==="desc"?e.jsx(xn,{className:"h-4 w-4 text-foreground/70"}):e.jsx(Ec,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-foreground/70"})]})})}):e.jsxs("div",{className:_("flex items-center space-x-1 text-nowrap py-2 font-medium text-muted-foreground",r),children:[e.jsx("span",{children:a}),t&&e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsx(ar,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx(oe,{children:t})]})})]})}const $n=Fc,Jl=Ic,_u=Vc,Ql=d.forwardRef(({className:s,...a},t)=>e.jsx(xl,{className:_("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t}));Ql.displayName=xl.displayName;const $a=d.forwardRef(({className:s,...a},t)=>e.jsxs(_u,{children:[e.jsx(Ql,{}),e.jsx(hl,{ref:t,className:_("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",s),...a})]}));$a.displayName=hl.displayName;const Aa=({className:s,...a})=>e.jsx("div",{className:_("flex flex-col space-y-2 text-center sm:text-left",s),...a});Aa.displayName="AlertDialogHeader";const qa=({className:s,...a})=>e.jsx("div",{className:_("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});qa.displayName="AlertDialogFooter";const Ha=d.forwardRef(({className:s,...a},t)=>e.jsx(gl,{ref:t,className:_("text-lg font-semibold",s),...a}));Ha.displayName=gl.displayName;const Ua=d.forwardRef(({className:s,...a},t)=>e.jsx(fl,{ref:t,className:_("text-sm text-muted-foreground",s),...a}));Ua.displayName=fl.displayName;const Ka=d.forwardRef(({className:s,...a},t)=>e.jsx(pl,{ref:t,className:_(kt(),s),...a}));Ka.displayName=pl.displayName;const Ba=d.forwardRef(({className:s,...a},t)=>e.jsx(jl,{ref:t,className:_(kt({variant:"outline"}),"mt-2 sm:mt-0",s),...a}));Ba.displayName=jl.displayName;function ps({onConfirm:s,children:a,title:t="确认操作",description:r="确定要执行此操作吗?",cancelText:n="取消",confirmText:i="确认",variant:l="default",className:o}){return e.jsxs($n,{children:[e.jsx(Jl,{asChild:!0,children:a}),e.jsxs($a,{className:_("sm:max-w-[425px]",o),children:[e.jsxs(Aa,{children:[e.jsx(Ha,{children:t}),e.jsx(Ua,{children:r})]}),e.jsxs(qa,{children:[e.jsx(Ba,{asChild:!0,children:e.jsx(L,{variant:"outline",children:n})}),e.jsx(Ka,{asChild:!0,children:e.jsx(L,{variant:l,onClick:s,children:i})})]})]})]})}const Xl=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M11.29 15.29a2 2 0 0 0-.12.15a.8.8 0 0 0-.09.18a.6.6 0 0 0-.06.18a1.4 1.4 0 0 0 0 .2a.84.84 0 0 0 .08.38a.9.9 0 0 0 .54.54a.94.94 0 0 0 .76 0a.9.9 0 0 0 .54-.54A1 1 0 0 0 13 16a1 1 0 0 0-.29-.71a1 1 0 0 0-1.42 0M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8 8 0 0 1-8 8m0-13a3 3 0 0 0-2.6 1.5a1 1 0 1 0 1.73 1A1 1 0 0 1 12 9a1 1 0 0 1 0 2a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-.18A3 3 0 0 0 12 7"})}),wu=({refetch:s,isSortMode:a=!1})=>{const{t}=I("payment");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:a?"cursor-move":"opacity-0",children:e.jsx(Ia,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:r})=>e.jsx(A,{column:r,title:t("table.columns.id")}),cell:({row:r})=>e.jsx(U,{variant:"outline",children:r.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"enable",header:({column:r})=>e.jsx(A,{column:r,title:t("table.columns.enable")}),cell:({row:r})=>e.jsx(Z,{defaultChecked:r.getValue("enable"),onCheckedChange:async()=>{const{data:n}=await nt.updateStatus({id:r.original.id});n||s()}}),enableSorting:!1,size:100},{accessorKey:"name",header:({column:r})=>e.jsx(A,{column:r,title:t("table.columns.name")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:r.getValue("name")})}),enableSorting:!1,size:200},{accessorKey:"payment",header:({column:r})=>e.jsx(A,{column:r,title:t("table.columns.payment")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[200px] truncate font-medium",children:r.getValue("payment")})}),enableSorting:!1,size:200},{accessorKey:"notify_url",header:({column:r})=>e.jsxs("div",{className:"flex items-center",children:[e.jsx(A,{column:r,title:t("table.columns.notify_url")}),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{className:"ml-1",children:e.jsx(Xl,{className:"h-4 w-4"})}),e.jsx(oe,{children:t("table.columns.notify_url_tooltip")})]})})]}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{className:"max-w-[300px] truncate font-medium",children:r.getValue("notify_url")})}),enableSorting:!1,size:3e3},{id:"actions",header:({column:r})=>e.jsx(A,{className:"justify-end",column:r,title:t("table.columns.actions")}),cell:({row:r})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Yl,{refetch:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("table.actions.edit")})]}),type:"edit",defaultFormValues:r.original}),e.jsx(ps,{title:t("table.actions.delete.title"),description:t("table.actions.delete.description"),onConfirm:async()=>{const{data:n}=await nt.drop({id:r.original.id});n&&s()},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-destructive/10",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-destructive"}),e.jsx("span",{className:"sr-only",children:t("table.actions.delete.title")})]})})]}),size:100}]};function Cu({table:s,refetch:a,saveOrder:t,isSortMode:r}){const{t:n}=I("payment"),i=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between",children:[r?e.jsx("p",{className:"text-sm text-muted-foreground",children:n("table.toolbar.sort.hint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Yl,{refetch:a}),e.jsx(T,{placeholder:n("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:l=>s.getColumn("name")?.setFilterValue(l.target.value),className:"h-8 w-[250px]"}),i&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[n("table.toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:r?"default":"outline",onClick:t,size:"sm",children:n(r?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}function Su(){const[s,a]=d.useState([]),[t,r]=d.useState([]),[n,i]=d.useState(!1),[l,o]=d.useState([]),[x,u]=d.useState({"drag-handle":!1}),[c,m]=d.useState({pageSize:20,pageIndex:0}),{refetch:p}=ne({queryKey:["paymentList"],queryFn:async()=>{const{data:C}=await nt.getList();return o(C?.map(V=>({...V,enable:!!V.enable}))||[]),C}});d.useEffect(()=>{u({"drag-handle":n,actions:!n}),m({pageSize:n?99999:10,pageIndex:0})},[n]);const k=(C,V)=>{n&&(C.dataTransfer.setData("text/plain",V.toString()),C.currentTarget.classList.add("opacity-50"))},S=(C,V)=>{if(!n)return;C.preventDefault(),C.currentTarget.classList.remove("bg-muted");const F=parseInt(C.dataTransfer.getData("text/plain"));if(F===V)return;const g=[...l],[y]=g.splice(F,1);g.splice(V,0,y),o(g)},f=async()=>{n?nt.sort({ids:l.map(C=>C.id)}).then(()=>{p(),i(!1),q.success("排序保存成功")}):i(!0)},w=ss({data:l,columns:wu({refetch:p,isSortMode:n}),state:{sorting:t,columnFilters:s,columnVisibility:x,pagination:c},onSortingChange:r,onColumnFiltersChange:a,onColumnVisibilityChange:u,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),initialState:{columnPinning:{right:["actions"]}},pageCount:n?1:void 0});return e.jsx(xs,{table:w,toolbar:C=>e.jsx(Cu,{table:C,refetch:p,saveOrder:f,isSortMode:n}),draggable:n,onDragStart:k,onDragEnd:C=>C.currentTarget.classList.remove("opacity-50"),onDragOver:C=>{C.preventDefault(),C.currentTarget.classList.add("bg-muted")},onDragLeave:C=>C.currentTarget.classList.remove("bg-muted"),onDrop:S,showPagination:!n})}function ku(){const{t:s}=I("payment");return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsx(ns,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{children:[e.jsx("header",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("section",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Su,{})})]})]})}const Tu=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"}));function Du({pluginName:s,onClose:a,onSuccess:t}){const{t:r}=I("plugin"),[n,i]=d.useState(!0),[l,o]=d.useState(!1),[x,u]=d.useState(null),c=Mc({config:Oc(zc())}),m=we({resolver:Ce(c),defaultValues:{config:{}}});d.useEffect(()=>{(async()=>{try{const{data:f}=await Os.getPluginConfig(s);u(f),m.reset({config:Object.fromEntries(Object.entries(f).map(([w,C])=>[w,C.value]))})}catch{q.error(r("messages.configLoadError"))}finally{i(!1)}})()},[s]);const p=async S=>{o(!0);try{await Os.updatePluginConfig(s,S.config),q.success(r("messages.configSaveSuccess")),t()}catch{q.error(r("messages.configSaveError"))}finally{o(!1)}},k=(S,f)=>{switch(f.type){case"string":return e.jsx(b,{control:m.control,name:`config.${S}`,render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{children:f.label||f.description}),e.jsx(N,{children:e.jsx(T,{placeholder:f.placeholder,...w})}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},S);case"number":case"percentage":return e.jsx(b,{control:m.control,name:`config.${S}`,render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{children:f.label||f.description}),e.jsx(N,{children:e.jsxs("div",{className:"relative",children:[e.jsx(T,{type:"number",placeholder:f.placeholder,...w,onChange:C=>{const V=Number(C.target.value);f.type==="percentage"?w.onChange(Math.min(100,Math.max(0,V))):w.onChange(V)},className:f.type==="percentage"?"pr-8":"",min:f.type==="percentage"?0:void 0,max:f.type==="percentage"?100:void 0,step:f.type==="percentage"?1:void 0}),f.type==="percentage"&&e.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",children:e.jsx($c,{className:"h-4 w-4 text-muted-foreground"})})]})}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},S);case"select":return e.jsx(b,{control:m.control,name:`config.${S}`,render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{children:f.label||f.description}),e.jsxs(J,{onValueChange:w.onChange,defaultValue:w.value,children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:f.placeholder})})}),e.jsx(Y,{children:f.options?.map(C=>e.jsx($,{value:C.value,children:C.label},C.value))})]}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},S);case"boolean":return e.jsx(b,{control:m.control,name:`config.${S}`,render:({field:w})=>e.jsxs(j,{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(v,{className:"text-base",children:f.label||f.description}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description})]}),e.jsx(N,{children:e.jsx(Z,{checked:w.value,onCheckedChange:w.onChange})})]})},S);case"text":return e.jsx(b,{control:m.control,name:`config.${S}`,render:({field:w})=>e.jsxs(j,{children:[e.jsx(v,{children:f.label||f.description}),e.jsx(N,{children:e.jsx(Ls,{placeholder:f.placeholder,...w})}),f.description&&f.label&&e.jsx("p",{className:"text-sm text-muted-foreground",children:f.description}),e.jsx(P,{})]})},S);default:return null}};return n?e.jsxs("div",{className:"space-y-4",children:[e.jsx(ve,{className:"h-4 w-[200px]"}),e.jsx(ve,{className:"h-10 w-full"}),e.jsx(ve,{className:"h-4 w-[200px]"}),e.jsx(ve,{className:"h-10 w-full"})]}):e.jsx(Se,{...m,children:e.jsxs("form",{onSubmit:m.handleSubmit(p),className:"space-y-4",children:[x&&Object.entries(x).map(([S,f])=>k(S,f)),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(L,{type:"button",variant:"outline",onClick:a,disabled:l,children:r("config.cancel")}),e.jsx(L,{type:"submit",loading:l,disabled:l,children:r("config.save")})]})]})})}function Lu(){const{t:s}=I("plugin"),[a,t]=d.useState(null),[r,n]=d.useState(!1),[i,l]=d.useState(null),[o,x]=d.useState(""),[u,c]=d.useState("all"),[m,p]=d.useState(!1),[k,S]=d.useState(!1),[f,w]=d.useState(!1),C=d.useRef(null),{data:V,isLoading:F,refetch:g}=ne({queryKey:["pluginList"],queryFn:async()=>{const{data:E}=await Os.getPluginList();return E}});V&&[...new Set(V.map(E=>E.category||"other"))];const y=V?.filter(E=>{const X=E.name.toLowerCase().includes(o.toLowerCase())||E.description.toLowerCase().includes(o.toLowerCase())||E.code.toLowerCase().includes(o.toLowerCase()),Ns=u==="all"||E.category===u;return X&&Ns}),D=async E=>{t(E),Os.installPlugin(E).then(()=>{q.success(s("messages.installSuccess")),g()}).catch(X=>{q.error(X.message||s("messages.installError"))}).finally(()=>{t(null)})},z=async E=>{t(E),Os.uninstallPlugin(E).then(()=>{q.success(s("messages.uninstallSuccess")),g()}).catch(X=>{q.error(X.message||s("messages.uninstallError"))}).finally(()=>{t(null)})},R=async(E,X)=>{t(E),(X?Os.disablePlugin:Os.enablePlugin)(E).then(()=>{q.success(s(X?"messages.disableSuccess":"messages.enableSuccess")),g()}).catch(De=>{q.error(De.message||s(X?"messages.disableError":"messages.enableError"))}).finally(()=>{t(null)})},K=E=>{V?.find(X=>X.code===E),l(E),n(!0)},ae=async E=>{if(!E.name.endsWith(".zip")){q.error(s("upload.error.format"));return}p(!0),Os.uploadPlugin(E).then(()=>{q.success(s("messages.uploadSuccess")),S(!1),g()}).catch(X=>{q.error(X.message||s("messages.uploadError"))}).finally(()=>{p(!1),C.current&&(C.current.value="")})},ee=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?w(!0):E.type==="dragleave"&&w(!1)},te=E=>{E.preventDefault(),E.stopPropagation(),w(!1),E.dataTransfer.files&&E.dataTransfer.files[0]&&ae(E.dataTransfer.files[0])},H=async E=>{t(E),Os.deletePlugin(E).then(()=>{q.success(s("messages.deleteSuccess")),g()}).catch(X=>{q.error(X.message||s("messages.deleteError"))}).finally(()=>{t(null)})};return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Sn,{className:"h-6 w-6"}),e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})]}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{children:[e.jsxs("div",{className:"mb-8 space-y-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"relative max-w-sm flex-1",children:[e.jsx(kn,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(T,{placeholder:s("search.placeholder"),value:o,onChange:E=>x(E.target.value),className:"pl-9"})]}),e.jsx("div",{className:"flex items-center gap-4",children:e.jsxs(L,{onClick:()=>S(!0),variant:"outline",className:"shrink-0",size:"sm",children:[e.jsx(Ct,{className:"mr-2 h-4 w-4"}),s("upload.button")]})})]}),e.jsxs(Lt,{defaultValue:"all",className:"w-full",children:[e.jsxs(dt,{children:[e.jsx(Xe,{value:"all",children:s("tabs.all")}),e.jsx(Xe,{value:"installed",children:s("tabs.installed")}),e.jsx(Xe,{value:"available",children:s("tabs.available")})]}),e.jsx(Ts,{value:"all",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:F?e.jsxs(e.Fragment,{children:[e.jsx(rn,{}),e.jsx(rn,{}),e.jsx(rn,{})]}):y?.map(E=>e.jsx(nn,{plugin:E,onInstall:D,onUninstall:z,onToggleEnable:R,onOpenConfig:K,onDelete:H,isLoading:a===E.name},E.name))})}),e.jsx(Ts,{value:"installed",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:y?.filter(E=>E.is_installed).map(E=>e.jsx(nn,{plugin:E,onInstall:D,onUninstall:z,onToggleEnable:R,onOpenConfig:K,onDelete:H,isLoading:a===E.name},E.name))})}),e.jsx(Ts,{value:"available",className:"mt-6",children:e.jsx("div",{className:"space-y-4",children:y?.filter(E=>!E.is_installed).map(E=>e.jsx(nn,{plugin:E,onInstall:D,onUninstall:z,onToggleEnable:R,onOpenConfig:K,onDelete:H,isLoading:a===E.name},E.code))})})]})]}),e.jsx(ge,{open:r,onOpenChange:n,children:e.jsxs(ue,{className:"sm:max-w-lg",children:[e.jsxs(be,{children:[e.jsxs(fe,{children:[V?.find(E=>E.code===i)?.name," ",s("config.title")]}),e.jsx(Ve,{children:s("config.description")})]}),i&&e.jsx(Du,{pluginName:i,onClose:()=>n(!1),onSuccess:()=>{n(!1),g()}})]})}),e.jsx(ge,{open:k,onOpenChange:S,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(be,{children:[e.jsx(fe,{children:s("upload.title")}),e.jsx(Ve,{children:s("upload.description")})]}),e.jsxs("div",{className:_("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",f&&"border-primary/50 bg-muted/50"),onDragEnter:ee,onDragLeave:ee,onDragOver:ee,onDrop:te,children:[e.jsx("input",{type:"file",ref:C,className:"hidden",accept:".zip",onChange:E=>{const X=E.target.files?.[0];X&&ae(X)}}),m?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(Ct,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>C.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})})]})]})}function nn({plugin:s,onInstall:a,onUninstall:t,onToggleEnable:r,onOpenConfig:n,onDelete:i,isLoading:l}){const{t:o}=I("plugin");return e.jsxs(Re,{className:"group relative overflow-hidden transition-all hover:shadow-md",children:[e.jsxs(Fe,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ge,{children:s.name}),s.is_installed&&e.jsx(U,{variant:s.is_enabled?"success":"secondary",children:s.is_enabled?o("status.enabled"):o("status.disabled")})]}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Sn,{className:"h-4 w-4"}),e.jsx("code",{className:"rounded bg-muted px-1 py-0.5",children:s.code})]}),e.jsxs("div",{children:["v",s.version]})]})]})}),e.jsx(zs,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"mt-2",children:s.description}),e.jsx("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:e.jsxs("div",{className:"flex items-center gap-1",children:[o("author"),": ",s.author]})})]})})]}),e.jsx(Ie,{children:e.jsx("div",{className:"flex items-center justify-end space-x-2",children:s.is_installed?e.jsxs(e.Fragment,{children:[e.jsxs(L,{variant:"outline",size:"sm",onClick:()=>n(s.code),disabled:!s.is_enabled||l,children:[e.jsx(_a,{className:"mr-2 h-4 w-4"}),o("button.config")]}),e.jsxs(L,{variant:s.is_enabled?"destructive":"default",size:"sm",onClick:()=>r(s.code,s.is_enabled),disabled:l,children:[e.jsx(Ac,{className:"mr-2 h-4 w-4"}),s.is_enabled?o("button.disable"):o("button.enable")]}),e.jsx(ps,{title:o("uninstall.title"),description:o("uninstall.description"),cancelText:o("common:cancel"),confirmText:o("uninstall.button"),variant:"destructive",onConfirm:()=>t(s.code),children:e.jsxs(L,{variant:"outline",size:"sm",className:"text-muted-foreground hover:text-destructive",disabled:l,children:[e.jsx(ds,{className:"mr-2 h-4 w-4"}),o("button.uninstall")]})})]}):e.jsxs(e.Fragment,{children:[e.jsx(L,{onClick:()=>a(s.code),disabled:l,loading:l,children:o("button.install")}),e.jsx(ps,{title:o("delete.title"),description:o("delete.description"),cancelText:o("common:cancel"),confirmText:o("delete.button"),variant:"destructive",onConfirm:()=>i(s.code),children:e.jsx(L,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",disabled:l,children:e.jsx(ds,{className:"h-4 w-4"})})})]})})})]})}function rn(){return e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-6 w-[200px]"}),e.jsx(ve,{className:"h-6 w-[80px]"})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(ve,{className:"h-5 w-[120px]"}),e.jsx(ve,{className:"h-5 w-[60px]"})]})]})}),e.jsxs("div",{className:"space-y-2 pt-2",children:[e.jsx(ve,{className:"h-4 w-[300px]"}),e.jsx(ve,{className:"h-4 w-[150px]"})]})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(ve,{className:"h-9 w-[100px]"}),e.jsx(ve,{className:"h-9 w-[100px]"}),e.jsx(ve,{className:"h-8 w-8"})]})})]})}const Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Lu},Symbol.toStringTag,{value:"Module"})),Ru=(s,a)=>{let t=null;switch(s.field_type){case"input":t=e.jsx(T,{placeholder:s.placeholder,...a});break;case"textarea":t=e.jsx(Ls,{placeholder:s.placeholder,...a});break;case"select":t=e.jsx("select",{className:_(kt({variant:"outline"}),"w-full appearance-none font-normal"),...a,children:s.select_options&&Object.keys(s.select_options).map(r=>e.jsx("option",{value:r,children:s.select_options?.[r]},r))});break;default:t=null;break}return t};function Eu({themeKey:s,themeInfo:a}){const{t}=I("theme"),[r,n]=d.useState(!1),[i,l]=d.useState(!1),[o,x]=d.useState(!1),u=we({defaultValues:a.configs.reduce((p,k)=>(p[k.field_name]="",p),{})}),c=async()=>{l(!0),Bt.getConfig(s).then(({data:p})=>{Object.entries(p).forEach(([k,S])=>{u.setValue(k,S)})}).finally(()=>{l(!1)})},m=async p=>{x(!0),Bt.updateConfig(s,p).then(()=>{q.success(t("config.success")),n(!1)}).finally(()=>{x(!1)})};return e.jsxs(ge,{open:r,onOpenChange:p=>{n(p),p?c():u.reset()},children:[e.jsx(as,{asChild:!0,children:e.jsx(L,{variant:"outline",children:t("card.configureTheme")})}),e.jsxs(ue,{className:"max-h-[90vh] overflow-auto sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:t("config.title",{name:a.name})}),e.jsx(Ve,{children:t("config.description")})]}),i?e.jsx("div",{className:"flex h-40 items-center justify-center",children:e.jsx(Na,{className:"h-6 w-6 animate-spin"})}):e.jsx(Se,{...u,children:e.jsxs("form",{onSubmit:u.handleSubmit(m),className:"space-y-4",children:[a.configs.map(p=>e.jsx(b,{control:u.control,name:p.field_name,render:({field:k})=>e.jsxs(j,{children:[e.jsx(v,{children:p.label}),e.jsx(N,{children:Ru(p,k)}),e.jsx(P,{})]})},p.field_name)),e.jsxs(Pe,{className:"mt-6 gap-2",children:[e.jsx(L,{type:"button",variant:"secondary",onClick:()=>n(!1),children:t("config.cancel")}),e.jsx(L,{type:"submit",loading:o,children:t("config.save")})]})]})})]})]})}function Fu(){const{t:s}=I("theme"),[a,t]=d.useState(null),[r,n]=d.useState(!1),[i,l]=d.useState(!1),[o,x]=d.useState(!1),[u,c]=d.useState(null),m=d.useRef(null),[p,k]=d.useState(0),{data:S,isLoading:f,refetch:w}=ne({queryKey:["themeList"],queryFn:async()=>{const{data:R}=await Bt.getList();return R}}),C=async R=>{t(R),he.updateSystemConfig({frontend_theme:R}).then(()=>{q.success("主题切换成功"),w()}).finally(()=>{t(null)})},V=async R=>{if(!R.name.endsWith(".zip")){q.error(s("upload.error.format"));return}n(!0),Bt.upload(R).then(()=>{q.success("主题上传成功"),l(!1),w()}).finally(()=>{n(!1),m.current&&(m.current.value="")})},F=R=>{R.preventDefault(),R.stopPropagation(),R.type==="dragenter"||R.type==="dragover"?x(!0):R.type==="dragleave"&&x(!1)},g=R=>{R.preventDefault(),R.stopPropagation(),x(!1),R.dataTransfer.files&&R.dataTransfer.files[0]&&V(R.dataTransfer.files[0])},y=()=>{u&&k(R=>R===0?u.images.length-1:R-1)},D=()=>{u&&k(R=>R===u.images.length-1?0:R+1)},z=(R,K)=>{k(0),c({name:R,images:K})};return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsx(ns,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"",children:[e.jsxs("header",{className:"mb-8",children:[e.jsx("div",{className:"mb-2",children:e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"text-muted-foreground",children:s("description")}),e.jsxs(L,{onClick:()=>l(!0),variant:"outline",className:"ml-4 shrink-0",size:"sm",children:[e.jsx(Ct,{className:"mr-2 h-4 w-4"}),s("upload.button")]})]})]}),e.jsx("section",{className:"grid gap-6 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3",children:f?e.jsxs(e.Fragment,{children:[e.jsx(fr,{}),e.jsx(fr,{})]}):S?.themes&&Object.entries(S.themes).map(([R,K])=>e.jsx(Re,{className:"group relative overflow-hidden transition-all hover:shadow-md",style:{backgroundImage:K.background_url?`url(${K.background_url})`:"none",backgroundSize:"cover",backgroundPosition:"center"},children:e.jsxs("div",{className:_("relative z-10 h-full transition-colors",K.background_url?"group-hover:from-background/98 bg-gradient-to-t from-background/95 via-background/80 to-background/60 backdrop-blur-[1px] group-hover:via-background/90 group-hover:to-background/70":"bg-background"),children:[!!K.can_delete&&e.jsx("div",{className:"absolute right-2 top-2",children:e.jsx(ps,{title:s("card.delete.title"),description:s("card.delete.description"),confirmText:s("card.delete.button"),variant:"destructive",onConfirm:async()=>{if(R===S?.active){q.error(s("card.delete.error.active"));return}t(R),Bt.drop(R).then(()=>{q.success("主题删除成功"),w()}).finally(()=>{t(null)})},children:e.jsx(L,{disabled:a===R,loading:a===R,variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",children:e.jsx(ds,{className:"h-4 w-4"})})})}),e.jsxs(Fe,{children:[e.jsx(Ge,{children:K.name}),e.jsx(zs,{children:e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{children:K.description}),K.version&&e.jsx("div",{className:"text-sm text-muted-foreground",children:s("card.version",{version:K.version})})]})})]}),e.jsxs(Ie,{className:"flex items-center justify-end space-x-3",children:[K.images&&Array.isArray(K.images)&&K.images.length>0&&e.jsx(L,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>z(K.name,K.images),children:e.jsx(qc,{className:"h-4 w-4"})}),e.jsx(Eu,{themeKey:R,themeInfo:K}),e.jsx(L,{onClick:()=>C(R),disabled:a===R||R===S.active,loading:a===R,variant:R===S.active?"secondary":"default",children:R===S.active?s("card.currentTheme"):s("card.activateTheme")})]})]})},R))}),e.jsx(ge,{open:i,onOpenChange:l,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(be,{children:[e.jsx(fe,{children:s("upload.title")}),e.jsx(Ve,{children:s("upload.description")})]}),e.jsxs("div",{className:_("relative mt-4 flex h-64 flex-col items-center justify-center rounded-lg border-2 border-dashed border-muted-foreground/25 px-5 py-10 text-center transition-colors",o&&"border-primary/50 bg-muted/50"),onDragEnter:F,onDragLeave:F,onDragOver:F,onDrop:g,children:[e.jsx("input",{type:"file",ref:m,className:"hidden",accept:".zip",onChange:R=>{const K=R.target.files?.[0];K&&V(K)}}),r?e.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-b-2 border-primary"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s("upload.uploading")})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex flex-col items-center space-y-4",children:[e.jsx("div",{className:"rounded-full border-2 border-muted-foreground/25 p-3",children:e.jsx(Ct,{className:"h-6 w-6 text-muted-foreground/50"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"text-sm font-medium",children:[s("upload.dragText")," ",e.jsx("button",{type:"button",onClick:()=>m.current?.click(),className:"mx-1 text-primary hover:underline",children:s("upload.clickText")})]}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("upload.supportText")})]})]})})]})]})}),e.jsx(ge,{open:!!u,onOpenChange:R=>{R||(c(null),k(0))},children:e.jsxs(ue,{className:"max-w-4xl",children:[e.jsxs(be,{children:[e.jsxs(fe,{children:[u?.name," ",s("preview.title")]}),e.jsx(Ve,{className:"text-center",children:u&&s("preview.imageCount",{current:p+1,total:u.images.length})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"aspect-[16/9] overflow-hidden rounded-lg border bg-muted",children:u?.images[p]&&e.jsx("img",{src:u.images[p],alt:`${u.name} 预览图 ${p+1}`,className:"h-full w-full object-contain"})}),u&&u.images.length>1&&e.jsxs(e.Fragment,{children:[e.jsx(L,{variant:"outline",size:"icon",className:"absolute left-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:y,children:e.jsx(Hc,{className:"h-4 w-4"})}),e.jsx(L,{variant:"outline",size:"icon",className:"absolute right-4 top-1/2 h-8 w-8 -translate-y-1/2 rounded-full bg-background/80 hover:bg-background",onClick:D,children:e.jsx(Uc,{className:"h-4 w-4"})})]})]}),u&&u.images.length>1&&e.jsx("div",{className:"mt-4 flex gap-2 overflow-x-auto pb-2",children:u.images.map((R,K)=>e.jsx("button",{onClick:()=>k(K),className:_("relative h-16 w-16 flex-shrink-0 overflow-hidden rounded-md border-2",p===K?"border-primary":"border-transparent"),children:e.jsx("img",{src:R,alt:`缩略图 ${K+1}`,className:"h-full w-full object-cover"})},K))})]})})]})]})}function fr(){return e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsx(ve,{className:"h-6 w-[200px]"}),e.jsx(ve,{className:"h-4 w-[300px]"})]}),e.jsxs(Ie,{className:"flex items-center justify-end space-x-3",children:[e.jsx(ve,{className:"h-10 w-[100px]"}),e.jsx(ve,{className:"h-10 w-[100px]"})]})]})}const Iu=Object.freeze(Object.defineProperty({__proto__:null,default:Fu},Symbol.toStringTag,{value:"Module"})),An=d.forwardRef(({className:s,value:a,onChange:t,...r},n)=>{const[i,l]=d.useState("");d.useEffect(()=>{if(i.includes(",")){const x=new Set([...a,...i.split(",").map(u=>u.trim())]);t(Array.from(x)),l("")}},[i,t,a]);const o=()=>{if(i){const x=new Set([...a,i]);t(Array.from(x)),l("")}};return e.jsxs("div",{className:_(" has-[:focus-visible]:outline-none has-[:focus-visible]:ring-1 has-[:focus-visible]:ring-neutral-950 dark:has-[:focus-visible]:ring-neutral-300 flex w-full flex-wrap gap-2 rounded-md border border-input shadow-sm px-3 py-2 text-sm ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",s),children:[a.map(x=>e.jsxs(U,{variant:"secondary",children:[x,e.jsx(G,{variant:"ghost",size:"icon",className:"ml-2 h-3 w-3",onClick:()=>{t(a.filter(u=>u!==x))},children:e.jsx(fn,{className:"w-3"})})]},x)),e.jsx("input",{className:"flex-1 outline-none placeholder:text-muted-foreground bg-transparent",value:i,onChange:x=>l(x.target.value),onKeyDown:x=>{x.key==="Enter"||x.key===","?(x.preventDefault(),o()):x.key==="Backspace"&&i.length===0&&a.length>0&&(x.preventDefault(),t(a.slice(0,-1)))},...r,ref:n})]})});An.displayName="InputTags";const Vu=h.object({id:h.number().nullable(),title:h.string().min(1).max(250),content:h.string().min(1),show:h.boolean(),tags:h.array(h.string()),img_url:h.string().nullable()}),Mu={id:null,show:!1,tags:[],img_url:"",title:"",content:""};function Zl({refetch:s,dialogTrigger:a,type:t="add",defaultFormValues:r=Mu}){const{t:n}=I("notice"),[i,l]=d.useState(!1),o=we({resolver:Ce(Vu),defaultValues:r,mode:"onChange",shouldFocusError:!0}),x=new Ln({html:!0});return e.jsx(Se,{...o,children:e.jsxs(ge,{onOpenChange:l,open:i,children:[e.jsx(as,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:n(t==="add"?"form.add.title":"form.edit.title")}),e.jsx(Ve,{})]}),e.jsx(b,{control:o.control,name:"title",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.title.label")}),e.jsx("div",{className:"relative ",children:e.jsx(N,{children:e.jsx(T,{placeholder:n("form.fields.title.placeholder"),...u})})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"content",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.content.label")}),e.jsx(N,{children:e.jsx(Pn,{style:{height:"500px"},value:u.value,renderHTML:c=>x.render(c),onChange:({text:c})=>{u.onChange(c)}})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"img_url",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.img_url.label")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(T,{type:"text",placeholder:n("form.fields.img_url.placeholder"),...u,value:u.value||""})})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"show",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.show.label")}),e.jsx("div",{className:"relative py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:u.value,onCheckedChange:u.onChange})})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"tags",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.fields.tags.label")}),e.jsx(N,{children:e.jsx(An,{value:u.value,onChange:u.onChange,placeholder:n("form.fields.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.buttons.cancel")})}),e.jsx(L,{type:"submit",onClick:u=>{u.preventDefault(),o.handleSubmit(async c=>{Xt.save(c).then(({data:m})=>{m&&(q.success(n("form.buttons.success")),s(),l(!1))})})()},children:n("form.buttons.submit")})]})]})]})})}function Ou({table:s,refetch:a,saveOrder:t,isSortMode:r}){const{t:n}=I("notice"),i=s.getState().columnFilters.length>0;return e.jsxs("div",{className:"flex items-center justify-between space-x-2 ",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[!r&&e.jsx(Zl,{refetch:a}),!r&&e.jsx(T,{placeholder:n("table.toolbar.search"),value:s.getColumn("title")?.getFilterValue()??"",onChange:l=>s.getColumn("title")?.setFilterValue(l.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),i&&!r&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-9 px-2 lg:px-3",children:[n("table.toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(L,{variant:r?"default":"outline",onClick:t,className:"h-8",size:"sm",children:n(r?"table.toolbar.sort.save":"table.toolbar.sort.edit")})})]})}const zu=s=>{const{t:a}=I("notice");return[{id:"drag-handle",header:"",cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Kc,{className:"h-4 w-4 cursor-move text-muted-foreground"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.id")}),cell:({row:t})=>e.jsx(U,{variant:"outline",className:"font-mono",children:t.getValue("id")}),enableSorting:!0,size:60},{accessorKey:"show",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.show")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(Z,{defaultChecked:t.getValue("show"),onCheckedChange:async()=>{const{data:r}=await Xt.updateStatus(t.original.id);r||s()}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.title")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[500px] items-center",children:e.jsx("span",{className:"truncate font-medium",children:t.getValue("title")})}),enableSorting:!1,size:6e3},{id:"actions",header:({column:t})=>e.jsx(A,{className:"justify-end",column:t,title:a("table.columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-end space-x-2",children:[e.jsx(Zl,{refetch:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("table.actions.edit")})]}),type:"edit",defaultFormValues:t.original}),e.jsx(ps,{title:a("table.actions.delete.title"),description:a("table.actions.delete.description"),onConfirm:async()=>{Xt.drop(t.original.id).then(()=>{q.success(a("table.actions.delete.success")),s()})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("table.actions.delete.title")})]})})]}),size:100}]};function $u(){const[s,a]=d.useState({}),[t,r]=d.useState({}),[n,i]=d.useState([]),[l,o]=d.useState([]),[x,u]=d.useState(!1),[c,m]=d.useState({}),[p,k]=d.useState({pageSize:50,pageIndex:0}),[S,f]=d.useState([]),{refetch:w}=ne({queryKey:["notices"],queryFn:async()=>{const{data:y}=await Xt.getList();return f(y),y}});d.useEffect(()=>{r({"drag-handle":x,content:!x,created_at:!x,actions:!x}),k({pageSize:x?99999:50,pageIndex:0})},[x]);const C=(y,D)=>{x&&(y.dataTransfer.setData("text/plain",D.toString()),y.currentTarget.classList.add("opacity-50"))},V=(y,D)=>{if(!x)return;y.preventDefault(),y.currentTarget.classList.remove("bg-muted");const z=parseInt(y.dataTransfer.getData("text/plain"));if(z===D)return;const R=[...S],[K]=R.splice(z,1);R.splice(D,0,K),f(R)},F=async()=>{if(!x){u(!0);return}Xt.sort(S.map(y=>y.id)).then(()=>{q.success("排序保存成功"),u(!1),w()}).finally(()=>{u(!1)})},g=ss({data:S??[],columns:zu(w),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:n,columnSizing:c,pagination:p},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:o,onColumnFiltersChange:i,onColumnVisibilityChange:r,onColumnSizingChange:m,onPaginationChange:k,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx("div",{className:"space-y-4",children:e.jsx(xs,{table:g,toolbar:y=>e.jsx(Ou,{table:y,refetch:w,saveOrder:F,isSortMode:x}),draggable:x,onDragStart:C,onDragEnd:y=>y.currentTarget.classList.remove("opacity-50"),onDragOver:y=>{y.preventDefault(),y.currentTarget.classList.add("bg-muted")},onDragLeave:y=>y.currentTarget.classList.remove("bg-muted"),onDrop:V,showPagination:!x})})}function Au(){const{t:s}=I("notice");return e.jsxs(ze,{children:[e.jsxs($e,{className:"flex items-center justify-between",children:[e.jsx(ns,{}),e.jsxs("div",{className:"flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("div",{className:"mb-2",children:e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")})}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx($u,{})})]})]})}const qu=Object.freeze(Object.defineProperty({__proto__:null,default:Au},Symbol.toStringTag,{value:"Module"})),Hu=h.object({id:h.number().nullable(),language:h.string().max(250),category:h.string().max(250),title:h.string().min(1).max(250),body:h.string().min(1),show:h.boolean()}),Uu={id:null,language:"zh-CN",category:"",title:"",body:"",show:!1};function ei({refreshData:s,dialogTrigger:a,type:t="add",defaultFormValues:r=Uu}){const{t:n}=I("knowledge"),[i,l]=d.useState(!1),o=we({resolver:Ce(Hu),defaultValues:r,mode:"onChange",shouldFocusError:!0}),x=new Ln({html:!0});return d.useEffect(()=>{i&&r.id&&St.getInfo(r.id).then(({data:u})=>{o.reset(u)})},[r.id,o,i]),e.jsxs(ge,{onOpenChange:l,open:i,children:[e.jsx(as,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[1025px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:n(t==="add"?"form.add":"form.edit")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...o,children:[e.jsx(b,{control:o.control,name:"title",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.title")}),e.jsx("div",{className:"relative ",children:e.jsx(N,{children:e.jsx(T,{placeholder:n("form.titlePlaceholder"),...u})})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"category",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.category")}),e.jsx("div",{className:"relative ",children:e.jsx(N,{children:e.jsx(T,{placeholder:n("form.categoryPlaceholder"),...u})})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"language",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.language")}),e.jsx(N,{children:e.jsxs(J,{value:u.value,onValueChange:u.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("form.languagePlaceholder")})}),e.jsx(Y,{children:[{value:"en-US"},{value:"ja-JP"},{value:"ko-KR"},{value:"vi-VN"},{value:"zh-CN"},{value:"zh-TW"}].map(c=>e.jsx($,{value:c.value,className:"cursor-pointer",children:n(`languages.${c.value}`)},c.value))})]})})]})}),e.jsx(b,{control:o.control,name:"body",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.content")}),e.jsx(N,{children:e.jsx(Pn,{style:{height:"500px"},value:u.value,renderHTML:c=>x.render(c),onChange:({text:c})=>{u.onChange(c)}})}),e.jsx(P,{})]})}),e.jsx(b,{control:o.control,name:"show",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.show")}),e.jsx("div",{className:"relative py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:u.value,onCheckedChange:u.onChange})})}),e.jsx(P,{})]})}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.cancel")})}),e.jsx(L,{type:"submit",onClick:()=>{o.handleSubmit(u=>{St.save(u).then(({data:c})=>{c&&(o.reset(),q.success(n("messages.operationSuccess")),l(!1),s())})})()},children:n("form.submit")})]})]})]})]})}function Ku({column:s,title:a,options:t}){const r=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(i=>n.has(i.value)).map(i=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:i.label},i.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:a}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(i=>{const l=n.has(i.value);return e.jsxs(We,{onSelect:()=>{l?n.delete(i.value):n.add(i.value);const o=Array.from(n);s?.setFilterValue(o.length?o:void 0)},children:[e.jsx("div",{className:_("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",l?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:_("h-4 w-4")})}),i.icon&&e.jsx(i.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:i.label}),r?.get(i.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(i.value)})]},i.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}function Bu({table:s,refetch:a,saveOrder:t,isSortMode:r}){const n=s.getState().columnFilters.length>0,{t:i}=I("knowledge");return e.jsxs("div",{className:"flex items-center justify-between",children:[r?e.jsx("p",{className:"text-sm text-muted-foreground",children:i("toolbar.sortModeHint")}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ei,{refreshData:a}),e.jsx(T,{placeholder:i("toolbar.searchPlaceholder"),value:s.getColumn("title")?.getFilterValue()??"",onChange:l=>s.getColumn("title")?.setFilterValue(l.target.value),className:"h-8 w-[250px]"}),s.getColumn("category")&&e.jsx(Ku,{column:s.getColumn("category"),title:i("columns.category"),options:Array.from(new Set(s.getCoreRowModel().rows.map(l=>l.getValue("category")))).map(l=>({label:l,value:l}))}),n&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),children:[i("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:r?"default":"outline",onClick:t,size:"sm",children:i(r?"toolbar.saveSort":"toolbar.editSort")})})]})}const Gu=({refetch:s,isSortMode:a=!1})=>{const{t}=I("knowledge");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:a?"cursor-move":"opacity-0",children:e.jsx(Ia,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:r})=>e.jsx(A,{column:r,title:t("columns.id")}),cell:({row:r})=>e.jsx(U,{variant:"outline",className:"justify-center",children:r.getValue("id")}),enableSorting:!0,size:70},{accessorKey:"show",header:({column:r})=>e.jsx(A,{column:r,title:t("columns.status")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center",children:e.jsx(Z,{defaultChecked:r.getValue("show"),onCheckedChange:async()=>{St.updateStatus({id:r.original.id}).then(({data:n})=>{n||s()})}})}),enableSorting:!1,size:100},{accessorKey:"title",header:({column:r})=>e.jsx(A,{column:r,title:t("columns.title")}),cell:({row:r})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"line-clamp-2 font-medium",children:r.getValue("title")})}),enableSorting:!0,size:600},{accessorKey:"category",header:({column:r})=>e.jsx(A,{column:r,title:t("columns.category")}),cell:({row:r})=>e.jsx(U,{variant:"secondary",className:"max-w-[180px] truncate",children:r.getValue("category")}),enableSorting:!0,size:1800},{id:"actions",header:({column:r})=>e.jsx(A,{className:"justify-end",column:r,title:t("columns.actions")}),cell:({row:r})=>e.jsxs("div",{className:"flex items-center justify-end space-x-1",children:[e.jsx(ei,{refreshData:s,dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:t("form.edit")})]}),type:"edit",defaultFormValues:r.original}),e.jsx(ps,{title:t("messages.deleteConfirm"),description:t("messages.deleteDescription"),confirmText:t("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{St.drop({id:r.original.id}).then(({data:n})=>{n&&(q.success(t("messages.operationSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:t("messages.deleteButton")})]})})]}),size:100}]};function Wu(){const[s,a]=d.useState([]),[t,r]=d.useState([]),[n,i]=d.useState(!1),[l,o]=d.useState([]),[x,u]=d.useState({"drag-handle":!1}),[c,m]=d.useState({pageSize:20,pageIndex:0}),{refetch:p,isLoading:k,data:S}=ne({queryKey:["knowledge"],queryFn:async()=>{const{data:F}=await St.getList();return o(F||[]),F}});d.useEffect(()=>{u({"drag-handle":n,actions:!n}),m({pageSize:n?99999:10,pageIndex:0})},[n]);const f=(F,g)=>{n&&(F.dataTransfer.setData("text/plain",g.toString()),F.currentTarget.classList.add("opacity-50"))},w=(F,g)=>{if(!n)return;F.preventDefault(),F.currentTarget.classList.remove("bg-muted");const y=parseInt(F.dataTransfer.getData("text/plain"));if(y===g)return;const D=[...l],[z]=D.splice(y,1);D.splice(g,0,z),o(D)},C=async()=>{n?St.sort({ids:l.map(F=>F.id)}).then(()=>{p(),i(!1),q.success("排序保存成功")}):i(!0)},V=ss({data:l,columns:Gu({refetch:p,isSortMode:n}),state:{sorting:t,columnFilters:s,columnVisibility:x,pagination:c},onSortingChange:r,onColumnFiltersChange:a,onColumnVisibilityChange:u,onPaginationChange:m,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:V,toolbar:F=>e.jsx(Bu,{table:F,refetch:p,saveOrder:C,isSortMode:n}),draggable:n,onDragStart:f,onDragEnd:F=>F.currentTarget.classList.remove("opacity-50"),onDragOver:F=>{F.preventDefault(),F.currentTarget.classList.add("bg-muted")},onDragLeave:F=>F.currentTarget.classList.remove("bg-muted"),onDrop:w,showPagination:!n})}function Yu(){const{t:s}=I("knowledge");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight mb-2",children:s("title")}),e.jsx("p",{className:"text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Wu,{})})]})]})}const Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Yu},Symbol.toStringTag,{value:"Module"}));function Qu(s,a){const[t,r]=d.useState(s);return d.useEffect(()=>{const n=setTimeout(()=>r(s),a);return()=>{clearTimeout(n)}},[s,a]),t}function ln(s,a){if(s.length===0)return{};if(!a)return{"":s};const t={};return s.forEach(r=>{const n=r[a]||"";t[n]||(t[n]=[]),t[n].push(r)}),t}function Xu(s,a){const t=JSON.parse(JSON.stringify(s));for(const[r,n]of Object.entries(t))t[r]=n.filter(i=>!a.find(l=>l.value===i.value));return t}function Zu(s,a){for(const[,t]of Object.entries(s))if(t.some(r=>a.find(n=>n.value===r.value)))return!0;return!1}const si=d.forwardRef(({className:s,...a},t)=>Bc(n=>n.filtered.count===0)?e.jsx("div",{ref:t,className:_("py-6 text-center text-sm",s),"cmdk-empty":"",role:"presentation",...a}):null);si.displayName="CommandEmpty";const Tt=d.forwardRef(({value:s,onChange:a,placeholder:t,defaultOptions:r=[],options:n,delay:i,onSearch:l,loadingIndicator:o,emptyIndicator:x,maxSelected:u=Number.MAX_SAFE_INTEGER,onMaxSelected:c,hidePlaceholderWhenSelected:m,disabled:p,groupBy:k,className:S,badgeClassName:f,selectFirstItem:w=!0,creatable:C=!1,triggerSearchOnFocus:V=!1,commandProps:F,inputProps:g,hideClearAllButton:y=!1},D)=>{const z=d.useRef(null),[R,K]=d.useState(!1),ae=d.useRef(!1),[ee,te]=d.useState(!1),[H,E]=d.useState(s||[]),[X,Ns]=d.useState(ln(r,k)),[De,ie]=d.useState(""),_s=Qu(De,i||500);d.useImperativeHandle(D,()=>({selectedValue:[...H],input:z.current,focus:()=>z.current?.focus()}),[H]);const Is=d.useCallback(se=>{const je=H.filter(re=>re.value!==se.value);E(je),a?.(je)},[a,H]),Xs=d.useCallback(se=>{const je=z.current;je&&((se.key==="Delete"||se.key==="Backspace")&&je.value===""&&H.length>0&&(H[H.length-1].fixed||Is(H[H.length-1])),se.key==="Escape"&&je.blur())},[Is,H]);d.useEffect(()=>{s&&E(s)},[s]),d.useEffect(()=>{if(!n||l)return;const se=ln(n||[],k);JSON.stringify(se)!==JSON.stringify(X)&&Ns(se)},[r,n,k,l,X]),d.useEffect(()=>{const se=async()=>{te(!0);const re=await l?.(_s);Ns(ln(re||[],k)),te(!1)};(async()=>{!l||!R||(V&&await se(),_s&&await se())})()},[_s,k,R,V]);const Rt=()=>{if(!C||Zu(X,[{value:De,label:De}])||H.find(je=>je.value===De))return;const se=e.jsx(We,{value:De,className:"cursor-pointer",onMouseDown:je=>{je.preventDefault(),je.stopPropagation()},onSelect:je=>{if(H.length>=u){c?.(H.length);return}ie("");const re=[...H,{value:je,label:je}];E(re),a?.(re)},children:`Create "${De}"`});if(!l&&De.length>0||l&&_s.length>0&&!ee)return se},ea=d.useCallback(()=>{if(x)return l&&!C&&Object.keys(X).length===0?e.jsx(We,{value:"-",disabled:!0,children:x}):e.jsx(si,{children:x})},[C,x,l,X]),Et=d.useMemo(()=>Xu(X,H),[X,H]),Hs=d.useCallback(()=>{if(F?.filter)return F.filter;if(C)return(se,je)=>se.toLowerCase().includes(je.toLowerCase())?1:-1},[C,F?.filter]),Xa=d.useCallback(()=>{const se=H.filter(je=>je.fixed);E(se),a?.(se)},[a,H]);return e.jsxs(Js,{...F,onKeyDown:se=>{Xs(se),F?.onKeyDown?.(se)},className:_("h-auto overflow-visible bg-transparent",F?.className),shouldFilter:F?.shouldFilter!==void 0?F.shouldFilter:!l,filter:Hs(),children:[e.jsx("div",{className:_("rounded-md border border-input text-sm ring-offset-background focus-within:ring-1 focus-within:ring-ring ",{"px-3 py-2":H.length!==0,"cursor-text":!p&&H.length!==0},S),onClick:()=>{p||z.current?.focus()},children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[H.map(se=>e.jsxs(U,{className:_("data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground","data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",f),"data-fixed":se.fixed,"data-disabled":p||void 0,children:[se.label,e.jsx("button",{className:_("ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",(p||se.fixed)&&"hidden"),onKeyDown:je=>{je.key==="Enter"&&Is(se)},onMouseDown:je=>{je.preventDefault(),je.stopPropagation()},onClick:()=>Is(se),children:e.jsx(fn,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},se.value)),e.jsx(es.Input,{...g,ref:z,value:De,disabled:p,onValueChange:se=>{ie(se),g?.onValueChange?.(se)},onBlur:se=>{ae.current===!1&&K(!1),g?.onBlur?.(se)},onFocus:se=>{K(!0),V&&l?.(_s),g?.onFocus?.(se)},placeholder:m&&H.length!==0?"":t,className:_("flex-1 bg-transparent outline-none placeholder:text-muted-foreground",{"w-full":m,"px-3 py-2":H.length===0,"ml-1":H.length!==0},g?.className)}),e.jsx("button",{type:"button",onClick:Xa,className:_((y||p||H.length<1||H.filter(se=>se.fixed).length===H.length)&&"hidden"),children:e.jsx(fn,{})})]})}),e.jsx("div",{className:"relative",children:R&&e.jsx(Qs,{className:"absolute top-1 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",onMouseLeave:()=>{ae.current=!1},onMouseEnter:()=>{ae.current=!0},onMouseUp:()=>{z.current?.focus()},children:ee?e.jsx(e.Fragment,{children:o}):e.jsxs(e.Fragment,{children:[ea(),Rt(),!w&&e.jsx(We,{value:"-",className:"hidden"}),Object.entries(Et).map(([se,je])=>e.jsx(fs,{heading:se,className:"h-full overflow-auto",children:e.jsx(e.Fragment,{children:je.map(re=>e.jsx(We,{value:re.value,disabled:re.disable,onMouseDown:Zs=>{Zs.preventDefault(),Zs.stopPropagation()},onSelect:()=>{if(H.length>=u){c?.(H.length);return}ie("");const Zs=[...H,re];E(Zs),a?.(Zs)},className:_("cursor-pointer",re.disable&&"cursor-default text-muted-foreground"),children:re.label},re.value))})},se))]})})})]})});Tt.displayName="MultipleSelector";const ex=s=>h.object({id:h.number().optional(),name:h.string().min(2,s("messages.nameValidation.min")).max(50,s("messages.nameValidation.max")).regex(/^[a-zA-Z0-9\u4e00-\u9fa5_-]+$/,s("messages.nameValidation.pattern"))});function Ga({refetch:s,dialogTrigger:a,defaultValues:t={name:""},type:r="add"}){const{t:n}=I("group"),i=we({resolver:Ce(ex(n)),defaultValues:t,mode:"onChange"}),[l,o]=d.useState(!1),[x,u]=d.useState(!1),c=async m=>{u(!0),mt.save(m).then(()=>{q.success(n(r==="edit"?"messages.updateSuccess":"messages.createSuccess")),s&&s(),i.reset(),o(!1)}).finally(()=>{u(!1)})};return e.jsxs(ge,{open:l,onOpenChange:o,children:[e.jsx(as,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("span",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:n(r==="edit"?"form.edit":"form.create")}),e.jsx(Ve,{children:n(r==="edit"?"form.editDescription":"form.createDescription")})]}),e.jsx(Se,{...i,children:e.jsxs("form",{onSubmit:i.handleSubmit(c),className:"space-y-4",children:[e.jsx(b,{control:i.control,name:"name",render:({field:m})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.name")}),e.jsx(N,{children:e.jsx(T,{placeholder:n("form.namePlaceholder"),...m,className:"w-full"})}),e.jsx(O,{children:n("form.nameDescription")}),e.jsx(P,{})]})}),e.jsxs(Pe,{className:"gap-2",children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{type:"button",variant:"outline",children:n("form.cancel")})}),e.jsxs(L,{type:"submit",disabled:x||!i.formState.isValid,children:[x&&e.jsx(Na,{className:"mr-2 h-4 w-4 animate-spin"}),n(r==="edit"?"form.update":"form.create")]})]})]})})]})]})}const ti=d.createContext(void 0);function sx({children:s,refetch:a}){const[t,r]=d.useState(!1),[n,i]=d.useState(null),[l,o]=d.useState(ce.Shadowsocks);return e.jsx(ti.Provider,{value:{isOpen:t,setIsOpen:r,editingServer:n,setEditingServer:i,serverType:l,setServerType:o,refetch:a},children:s})}function ai(){const s=d.useContext(ti);if(s===void 0)throw new Error("useServerEdit must be used within a ServerEditProvider");return s}function on({dialogTrigger:s,value:a,setValue:t,templateType:r}){const{t:n}=I("server");d.useEffect(()=>{console.log(a)},[a]);const[i,l]=d.useState(!1),[o,x]=d.useState(()=>{if(!a||Object.keys(a).length===0)return"";try{return JSON.stringify(a,null,2)}catch{return""}}),[u,c]=d.useState(null),m=C=>{if(!C)return null;try{const V=JSON.parse(C);return typeof V!="object"||V===null?n("network_settings.validation.must_be_object"):null}catch{return n("network_settings.validation.invalid_json")}},p={tcp:{label:"TCP",content:{acceptProxyProtocol:!1,header:{type:"none"}}},"tcp-http":{label:"TCP + HTTP",content:{acceptProxyProtocol:!1,header:{type:"http",request:{version:"1.1",method:"GET",path:["/"],headers:{Host:["www.example.com"]}},response:{version:"1.1",status:"200",reason:"OK"}}}},grpc:{label:"gRPC",content:{serviceName:"GunService"}},ws:{label:"WebSocket",content:{path:"/",headers:{Host:"v2ray.com"}}},httpupgrade:{label:"HttpUpgrade",content:{acceptProxyProtocol:!1,path:"/",host:"xray.com",headers:{key:"value"}}},xhttp:{label:"XHTTP",content:{host:"example.com",path:"/yourpath",mode:"auto",extra:{headers:{},xPaddingBytes:"100-1000",noGRPCHeader:!1,noSSEHeader:!1,scMaxEachPostBytes:1e6,scMinPostsIntervalMs:30,scMaxBufferedPosts:30,xmux:{maxConcurrency:"16-32",maxConnections:0,cMaxReuseTimes:"64-128",cMaxLifetimeMs:0,hMaxRequestTimes:"800-900",hKeepAlivePeriod:0},downloadSettings:{address:"",port:443,network:"xhttp",security:"tls",tlsSettings:{},xhttpSettings:{path:"/yourpath"},sockopt:{}}}}}},k=()=>{switch(r){case"tcp":return["tcp","tcp-http"];case"grpc":return["grpc"];case"ws":return["ws"];case"httpupgrade":return["httpupgrade"];case"xhttp":return["xhttp"];default:return[]}},S=()=>{const C=m(o||"");if(C){q.error(C);return}try{if(!o){t(null),l(!1);return}t(JSON.parse(o)),l(!1)}catch{q.error(n("network_settings.errors.save_failed"))}},f=C=>{x(C),c(m(C))},w=C=>{const V=p[C];if(V){const F=JSON.stringify(V.content,null,2);x(F),c(null)}};return d.useEffect(()=>{i&&console.log(a)},[i,a]),d.useEffect(()=>{i&&a&&Object.keys(a).length>0&&x(JSON.stringify(a,null,2))},[i,a]),e.jsxs(ge,{open:i,onOpenChange:C=>{!C&&i&&S(),l(C)},children:[e.jsx(as,{asChild:!0,children:s??e.jsx(G,{variant:"link",children:n("network_settings.edit_protocol")})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(be,{children:e.jsx(fe,{children:n("network_settings.edit_protocol_config")})}),e.jsxs("div",{className:"space-y-4",children:[k().length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 pt-2",children:k().map(C=>e.jsx(G,{variant:"outline",size:"sm",onClick:()=>w(C),children:n("network_settings.use_template",{template:p[C].label})},C))}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ls,{className:`min-h-[200px] font-mono text-sm ${u?"border-red-500 focus-visible:ring-red-500":""}`,value:o,placeholder:k().length>0?n("network_settings.json_config_placeholder_with_template"):n("network_settings.json_config_placeholder"),onChange:C=>f(C.target.value)}),u&&e.jsx("p",{className:"text-sm text-red-500",children:u})]})]}),e.jsxs(Pe,{className:"gap-2",children:[e.jsx(G,{variant:"outline",onClick:()=>l(!1),children:n("common.cancel")}),e.jsx(G,{onClick:S,disabled:!!u,children:n("common.confirm")})]})]})]})}function wg(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const tx={},ax=Object.freeze(Object.defineProperty({__proto__:null,default:tx},Symbol.toStringTag,{value:"Module"})),Cg=dd(ax),pr=s=>s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),nx=()=>{try{const s=Gc.box.keyPair(),a=pr(nr.encodeBase64(s.secretKey)),t=pr(nr.encodeBase64(s.publicKey));return{privateKey:a,publicKey:t}}catch(s){throw console.error("Error generating x25519 key pair:",s),s}},rx=()=>{try{return nx()}catch(s){throw console.error("Error generating key pair:",s),s}},lx=s=>{const a=new Uint8Array(Math.ceil(s/2));return window.crypto.getRandomValues(a),Array.from(a).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,s)},ix=()=>{const s=Math.floor(Math.random()*8)*2+2;return lx(s)},ox=h.object({cipher:h.string().default("aes-128-gcm"),plugin:h.string().optional().default(""),plugin_opts:h.string().optional().default(""),client_fingerprint:h.string().optional().default("chrome")}),cx=h.object({tls:h.coerce.number().default(0),tls_settings:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({}),network:h.string().default("tcp"),network_settings:h.record(h.any()).default({})}),dx=h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1),network:h.string().default("tcp"),network_settings:h.record(h.any()).default({})}),mx=h.object({version:h.coerce.number().default(2),alpn:h.string().default("h2"),obfs:h.object({open:h.coerce.boolean().default(!1),type:h.string().default("salamander"),password:h.string().default("")}).default({}),tls:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({}),bandwidth:h.object({up:h.string().default(""),down:h.string().default("")}).default({}),hop_interval:h.number().optional(),port_range:h.string().optional()}),ux=h.object({tls:h.coerce.number().default(0),tls_settings:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({}),reality_settings:h.object({server_port:h.coerce.number().default(443),server_name:h.string().default(""),allow_insecure:h.boolean().default(!1),public_key:h.string().default(""),private_key:h.string().default(""),short_id:h.string().default("")}).default({}),network:h.string().default("tcp"),network_settings:h.record(h.any()).default({}),flow:h.string().default("")}),xx=h.object({version:h.coerce.number().default(5),congestion_control:h.string().default("bbr"),alpn:h.array(h.string()).default(["h3"]),udp_relay_mode:h.string().default("native"),tls:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({})}),hx=h.object({}),gx=h.object({tls:h.coerce.number().default(0),tls_settings:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({})}),fx=h.object({tls:h.coerce.number().default(0),tls_settings:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({})}),px=h.object({transport:h.string().default("tcp"),multiplexing:h.string().default("MULTIPLEXING_LOW")}),jx=h.object({padding_scheme:h.array(h.string()).optional().default([]),tls:h.object({server_name:h.string().default(""),allow_insecure:h.boolean().default(!1)}).default({})}),Ee={shadowsocks:{schema:ox,ciphers:["aes-128-gcm","aes-192-gcm","aes-256-gcm","chacha20-ietf-poly1305","2022-blake3-aes-128-gcm","2022-blake3-aes-256-gcm"],plugins:[{value:"none",label:"None"},{value:"obfs",label:"Simple Obfs"},{value:"v2ray-plugin",label:"V2Ray Plugin"}],clientFingerprints:[{value:"chrome",label:"Chrome"},{value:"firefox",label:"Firefox"},{value:"safari",label:"Safari"},{value:"ios",label:"iOS"}]},vmess:{schema:cx,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},trojan:{schema:dx,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"}]},hysteria:{schema:mx,versions:["1","2"],alpnOptions:["hysteria","http/1.1","h2","h3"]},vless:{schema:ux,networkOptions:[{value:"tcp",label:"TCP"},{value:"ws",label:"Websocket"},{value:"grpc",label:"gRPC"},{value:"kcp",label:"mKCP"},{value:"httpupgrade",label:"HttpUpgrade"},{value:"xhttp",label:"XHTTP"}],flowOptions:["none","xtls-rprx-direct","xtls-rprx-splice","xtls-rprx-vision"]},tuic:{schema:xx,versions:["5","4"],congestionControls:["bbr","cubic","new_reno"],alpnOptions:[{value:"h3",label:"HTTP/3"},{value:"h2",label:"HTTP/2"},{value:"http/1.1",label:"HTTP/1.1"}],udpRelayModes:[{value:"native",label:"Native"},{value:"quic",label:"QUIC"}]},socks:{schema:hx},naive:{schema:fx},http:{schema:gx},mieru:{schema:px,transportOptions:[{value:"tcp",label:"TCP"},{value:"udp",label:"UDP"}],multiplexingOptions:[{value:"MULTIPLEXING_OFF",label:"Off"},{value:"MULTIPLEXING_LOW",label:"Low"},{value:"MULTIPLEXING_MIDDLE",label:"Middle"},{value:"MULTIPLEXING_HIGH",label:"High"}]},anytls:{schema:jx,defaultPaddingScheme:["stop=8","0=30-30","1=100-400","2=400-500,c,500-1000,c,500-1000,c,500-1000,c,500-1000","3=9-9,500-1000","4=500-1000","5=500-1000","6=500-1000","7=500-1000"]}},vx=({serverType:s,value:a,onChange:t})=>{const{t:r}=I("server"),n=s?Ee[s]:null,i=n?.schema||h.record(h.any()),l=s?i.parse({}):{},o=we({resolver:Ce(i),defaultValues:l,mode:"onChange"});if(d.useEffect(()=>{if(!a||Object.keys(a).length===0){if(s){const g=i.parse({});o.reset(g)}}else o.reset(a)},[s,a,t,o,i]),d.useEffect(()=>{const g=o.watch(y=>{t(y)});return()=>g.unsubscribe()},[o,t]),!s||!n)return null;const F={shadowsocks:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"cipher",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.shadowsocks.cipher.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.shadowsocks.cipher.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.shadowsocks.ciphers.map(y=>e.jsx($,{value:y,children:y},y))})})]})})]})}),e.jsx(b,{control:o.control,name:"plugin",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.shadowsocks.plugin.label","插件")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:y=>g.onChange(y==="none"?"":y),value:g.value===""?"none":g.value||"none",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.shadowsocks.plugin.placeholder","选择插件")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.shadowsocks.plugins.map(y=>e.jsx($,{value:y.value,children:y.label},y.value))})})]})}),e.jsx(O,{children:g.value&&g.value!=="none"&&g.value!==""&&e.jsxs(e.Fragment,{children:[g.value==="obfs"&&r("dynamic_form.shadowsocks.plugin.obfs_hint","提示:配置格式如 obfs=http;obfs-host=www.bing.com;path=/"),g.value==="v2ray-plugin"&&r("dynamic_form.shadowsocks.plugin.v2ray_hint","提示:WebSocket模式格式为 mode=websocket;host=mydomain.me;path=/;tls=true,QUIC模式格式为 mode=quic;host=mydomain.me")]})})]})}),o.watch("plugin")&&o.watch("plugin")!=="none"&&o.watch("plugin")!==""&&e.jsx(b,{control:o.control,name:"plugin_opts",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.shadowsocks.plugin_opts.label","插件选项")}),e.jsx(O,{children:r("dynamic_form.shadowsocks.plugin_opts.description","按照 key=value;key2=value2 格式输入插件选项")}),e.jsx(N,{children:e.jsx(T,{type:"text",placeholder:r("dynamic_form.shadowsocks.plugin_opts.placeholder","例如: mode=tls;host=bing.com"),...g})})]})}),(o.watch("plugin")==="shadow-tls"||o.watch("plugin")==="restls")&&e.jsx(b,{control:o.control,name:"client_fingerprint",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.shadowsocks.client_fingerprint","客户端指纹")}),e.jsx(N,{children:e.jsxs(J,{value:g.value||"chrome",onValueChange:g.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.shadowsocks.client_fingerprint_placeholder","选择客户端指纹")})}),e.jsx(Y,{children:Ee.shadowsocks.clientFingerprints.map(y=>e.jsx($,{value:y.value,children:y.label},y.value))})]})}),e.jsx(O,{children:r("dynamic_form.shadowsocks.client_fingerprint_description","客户端伪装指纹,用于降低被识别风险")})]})})]}),vmess:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"tls",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vmess.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:y=>g.onChange(Number(y)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vmess.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:r("dynamic_form.vmess.tls.disabled")}),e.jsx($,{value:"1",children:r("dynamic_form.vmess.tls.enabled")})]})]})})]})}),o.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.vmess.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.vmess.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vmess.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),e.jsx(b,{control:o.control,name:"network",render:({field:g})=>e.jsxs(j,{children:[e.jsxs(v,{children:[r("dynamic_form.vmess.network.label"),e.jsx(on,{value:o.watch("network_settings"),setValue:y=>o.setValue("network_settings",y),templateType:o.watch("network")})]}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vmess.network.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.vmess.networkOptions.map(y=>e.jsx($,{value:y.value,className:"cursor-pointer",children:y.label},y.value))})})]})})]})})]}),trojan:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.trojan.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.trojan.server_name.placeholder"),...g,value:g.value||""})})]})}),e.jsx(b,{control:o.control,name:"allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.trojan.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value||!1,onCheckedChange:g.onChange})})})]})})]}),e.jsx(b,{control:o.control,name:"network",render:({field:g})=>e.jsxs(j,{children:[e.jsxs(v,{children:[r("dynamic_form.trojan.network.label"),e.jsx(on,{value:o.watch("network_settings")||{},setValue:y=>o.setValue("network_settings",y),templateType:o.watch("network")||"tcp"})]}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value||"tcp",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.trojan.network.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.trojan.networkOptions.map(y=>e.jsx($,{value:y.value,className:"cursor-pointer",children:y.label},y.value))})})]})})]})})]}),hysteria:()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"version",render:({field:g})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:r("dynamic_form.hysteria.version.label")}),e.jsx(N,{children:e.jsxs(J,{value:(g.value||2).toString(),onValueChange:y=>g.onChange(Number(y)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.hysteria.version.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.hysteria.versions.map(y=>e.jsxs($,{value:y,className:"cursor-pointer",children:["V",y]},y))})})]})})]})}),o.watch("version")==1&&e.jsx(b,{control:o.control,name:"alpn",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.hysteria.alpn.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value||"h2",onValueChange:g.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.hysteria.alpn.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.hysteria.alpnOptions.map(y=>e.jsx($,{value:y,children:y},y))})})]})})]})})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"obfs.open",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.hysteria.obfs.label")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value||!1,onCheckedChange:g.onChange})})})]})}),!!o.watch("obfs.open")&&e.jsxs(e.Fragment,{children:[o.watch("version")=="2"&&e.jsx(b,{control:o.control,name:"obfs.type",render:({field:g})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:r("dynamic_form.hysteria.obfs.type.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value||"salamander",onValueChange:g.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.hysteria.obfs.type.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:e.jsx($,{value:"salamander",children:r("dynamic_form.hysteria.obfs.type.salamander")})})})]})})]})}),e.jsx(b,{control:o.control,name:"obfs.password",render:({field:g})=>e.jsxs(j,{className:o.watch("version")==2?"w-full":"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.hysteria.obfs.password.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.hysteria.obfs.password.placeholder"),...g,value:g.value||"",className:"pr-9"})}),e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",D=Array.from(crypto.getRandomValues(new Uint8Array(16))).map(z=>y[z%y.length]).join("");o.setValue("obfs.password",D),q.success(r("dynamic_form.hysteria.obfs.password.generate_success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(Be,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})]})]})})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.hysteria.tls.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.hysteria.tls.server_name.placeholder"),...g,value:g.value||""})})]})}),e.jsx(b,{control:o.control,name:"tls.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.hysteria.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value||!1,onCheckedChange:g.onChange})})})]})})]}),e.jsx(b,{control:o.control,name:"bandwidth.up",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.hysteria.bandwidth.up.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:r("dynamic_form.hysteria.bandwidth.up.placeholder")+(o.watch("version")==2?r("dynamic_form.hysteria.bandwidth.up.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...g,value:g.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:r("dynamic_form.hysteria.bandwidth.up.suffix")})})]})]})}),e.jsx(b,{control:o.control,name:"bandwidth.down",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.hysteria.bandwidth.down.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:r("dynamic_form.hysteria.bandwidth.down.placeholder")+(o.watch("version")==2?r("dynamic_form.hysteria.bandwidth.down.bbr_tip"):""),className:"rounded-br-none rounded-tr-none",...g,value:g.value||""})}),e.jsx("div",{className:"pointer-events-none z-[-1] flex items-center rounded-md rounded-bl-none rounded-tl-none border border-l-0 border-input px-3 shadow-sm",children:e.jsx("span",{className:"text-gray-500",children:r("dynamic_form.hysteria.bandwidth.down.suffix")})})]})]})}),e.jsx(e.Fragment,{children:e.jsx(b,{control:o.control,name:"hop_interval",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.hysteria.hop_interval.label","Hop 间隔 (秒)")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:r("dynamic_form.hysteria.hop_interval.placeholder","例如: 30"),...g,value:g.value||"",onChange:y=>{const D=y.target.value?parseInt(y.target.value):void 0;g.onChange(D)}})}),e.jsx(O,{children:r("dynamic_form.hysteria.hop_interval.description","Hop 间隔时间,单位为秒")})]})})})]}),vless:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"tls",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vless.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:y=>g.onChange(Number(y)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vless.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:r("dynamic_form.vless.tls.none")}),e.jsx($,{value:"1",children:r("dynamic_form.vless.tls.tls")}),e.jsx($,{value:"2",children:r("dynamic_form.vless.tls.reality")})]})]})})]})}),o.watch("tls")=="1"&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.vless.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.vless.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vless.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),o.watch("tls")==2&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"reality_settings.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.vless.reality_settings.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.vless.reality_settings.server_name.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"reality_settings.server_port",render:({field:g})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:r("dynamic_form.vless.reality_settings.server_port.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.vless.reality_settings.server_port.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"reality_settings.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vless.reality_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),e.jsx("div",{className:"flex items-end gap-2",children:e.jsx(b,{control:o.control,name:"reality_settings.private_key",render:({field:g})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:r("dynamic_form.vless.reality_settings.private_key.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:e.jsx(T,{...g,className:"pr-9"})}),e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{try{const y=rx();o.setValue("reality_settings.private_key",y.privateKey),o.setValue("reality_settings.public_key",y.publicKey),q.success(r("dynamic_form.vless.reality_settings.key_pair.success"))}catch{q.error(r("dynamic_form.vless.reality_settings.key_pair.error"))}},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(Be,{icon:"ion:key-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(wa,{children:e.jsx(oe,{children:e.jsx("p",{children:r("dynamic_form.vless.reality_settings.key_pair.generate")})})})]})]})]})})}),e.jsx(b,{control:o.control,name:"reality_settings.public_key",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vless.reality_settings.public_key.label")}),e.jsx(N,{children:e.jsx(T,{...g})})]})}),e.jsx(b,{control:o.control,name:"reality_settings.short_id",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vless.reality_settings.short_id.label")}),e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:e.jsx(T,{...g,className:"pr-9",placeholder:r("dynamic_form.vless.reality_settings.short_id.placeholder")})}),e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(G,{type:"button",variant:"ghost",size:"icon",onClick:()=>{const y=ix();o.setValue("reality_settings.short_id",y),q.success(r("dynamic_form.vless.reality_settings.short_id.success"))},className:"absolute right-0 top-0 h-full px-2 active:scale-90 transition-transform duration-150",children:e.jsx(Be,{icon:"ion:refresh-outline",className:"h-4 w-4 transition-transform hover:rotate-180 duration-300"})})}),e.jsx(wa,{children:e.jsx(oe,{children:e.jsx("p",{children:r("dynamic_form.vless.reality_settings.short_id.generate")})})})]})]}),e.jsx(O,{className:"text-xs text-muted-foreground",children:r("dynamic_form.vless.reality_settings.short_id.description")})]})})]}),e.jsx(b,{control:o.control,name:"network",render:({field:g})=>e.jsxs(j,{children:[e.jsxs(v,{children:[r("dynamic_form.vless.network.label"),e.jsx(on,{value:o.watch("network_settings"),setValue:y=>o.setValue("network_settings",y),templateType:o.watch("network")})]}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vless.network.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.vless.networkOptions.map(y=>e.jsx($,{value:y.value,className:"cursor-pointer",children:y.label},y.value))})})]})})]})}),e.jsx(b,{control:o.control,name:"flow",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.vless.flow.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:y=>g.onChange(y==="none"?null:y),value:g.value||"none",children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.vless.flow.placeholder")})}),e.jsx(Y,{children:Ee.vless.flowOptions.map(y=>e.jsx($,{value:y,children:y},y))})]})})]})})]}),tuic:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"version",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.tuic.version.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:y=>g.onChange(Number(y)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.tuic.version.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.tuic.versions.map(y=>e.jsxs($,{value:y,children:["V",y]},y))})})]})})]})}),e.jsx(b,{control:o.control,name:"congestion_control",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.tuic.congestion_control.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.tuic.congestion_control.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.tuic.congestionControls.map(y=>e.jsx($,{value:y,children:y.toUpperCase()},y))})})]})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.tuic.tls.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.tuic.tls.server_name.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"tls.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.tuic.tls.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]}),e.jsx(b,{control:o.control,name:"alpn",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.tuic.tls.alpn.label")}),e.jsx(N,{children:e.jsx(Tt,{options:Ee.tuic.alpnOptions,onChange:y=>g.onChange(y.map(D=>D.value)),value:Ee.tuic.alpnOptions.filter(y=>g.value?.includes(y.value)),placeholder:r("dynamic_form.tuic.tls.alpn.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:r("dynamic_form.tuic.tls.alpn.empty")})})})]})}),e.jsx(b,{control:o.control,name:"udp_relay_mode",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.tuic.udp_relay_mode.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.tuic.udp_relay_mode.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.tuic.udpRelayModes.map(y=>e.jsx($,{value:y.value,children:y.label},y.value))})})]})})]})})]}),socks:()=>e.jsx(e.Fragment,{}),naive:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"tls",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.naive.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:y=>g.onChange(Number(y)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.naive.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:r("dynamic_form.naive.tls.disabled")}),e.jsx($,{value:"1",children:r("dynamic_form.naive.tls.enabled")})]})]})})]})}),o.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.naive.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.naive.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.naive.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]})]}),http:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"tls",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.http.tls.label")}),e.jsx(N,{children:e.jsxs(J,{value:g.value?.toString(),onValueChange:y=>g.onChange(Number(y)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.http.tls.placeholder")})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:r("dynamic_form.http.tls.disabled")}),e.jsx($,{value:"1",children:r("dynamic_form.http.tls.enabled")})]})]})})]})}),o.watch("tls")==1&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls_settings.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.http.tls_settings.server_name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.http.tls_settings.server_name.placeholder"),...g})})]})}),e.jsx(b,{control:o.control,name:"tls_settings.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.http.tls_settings.allow_insecure")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]})]}),mieru:()=>e.jsxs(e.Fragment,{children:[e.jsx(b,{control:o.control,name:"transport",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.mieru.transport.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.mieru.transport.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.mieru.transportOptions.map(y=>e.jsx($,{value:y.value,children:y.label},y.value))})})]})})]})}),e.jsx(b,{control:o.control,name:"multiplexing",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.mieru.multiplexing.label")}),e.jsx(N,{children:e.jsxs(J,{onValueChange:g.onChange,value:g.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dynamic_form.mieru.multiplexing.placeholder")})}),e.jsx(Y,{children:e.jsx(rs,{children:Ee.mieru.multiplexingOptions.map(y=>e.jsx($,{value:y.value,children:y.label},y.value))})})]})})]})})]}),anytls:()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:o.control,name:"padding_scheme",render:({field:g})=>e.jsxs(j,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(v,{children:r("dynamic_form.anytls.padding_scheme.label","AnyTLS 填充方案")}),e.jsx(G,{type:"button",variant:"outline",size:"sm",onClick:()=>{o.setValue("padding_scheme",Ee.anytls.defaultPaddingScheme),q.success(r("dynamic_form.anytls.padding_scheme.default_success","已设置默认填充方案"))},className:"h-7 px-2",children:r("dynamic_form.anytls.padding_scheme.use_default","使用默认方案")})]}),e.jsx(O,{children:r("dynamic_form.anytls.padding_scheme.description","每行一个填充规则,格式如: stop=8, 0=30-30")}),e.jsx(N,{children:e.jsx("textarea",{className:"flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",placeholder:r("dynamic_form.anytls.padding_scheme.placeholder",`例如: stop=8 0=30-30 1=100-400 2=400-500,c,500-1000`),...g,value:Array.isArray(g.value)?g.value.join(` -`):"",onChange:b=>{const O=b.target.value.split(` -`).filter(R=>R.trim()!=="");g.onChange(O)}})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:d.control,name:"tls.server_name",render:({field:g})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:r("dynamic_form.anytls.tls.server_name.label","SNI")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dynamic_form.anytls.tls.server_name.placeholder","服务器名称"),...g})})]})}),e.jsx(v,{control:d.control,name:"tls.allow_insecure",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dynamic_form.anytls.tls.allow_insecure","允许不安全连接")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]})]})})};return e.jsx(pe,{children:F[s]?.()})};function bx(){const{t:s}=I("server"),n=x.object({id:x.number().optional().nullable(),specific_key:x.string().optional().nullable(),code:x.string().optional(),show:x.boolean().optional().nullable(),name:x.string().min(1,s("form.name.error")),rate:x.string().min(1,s("form.rate.error")).refine(k=>!isNaN(parseFloat(k))&&isFinite(Number(k)),{message:s("form.rate.error_numeric")}).refine(k=>parseFloat(k)>=0,{message:s("form.rate.error_gte_zero")}),tags:x.array(x.string()).default([]),excludes:x.array(x.string()).default([]),ips:x.array(x.string()).default([]),group_ids:x.array(x.string()).default([]),host:x.string().min(1,s("form.host.error")),port:x.string().min(1,s("form.port.error")),server_port:x.string().min(1,s("form.server_port.error")),parent_id:x.string().default("0").nullable(),route_ids:x.array(x.string()).default([]),protocol_settings:x.record(x.any()).default({}).nullable()}),t={id:null,specific_key:null,code:"",show:!1,name:"",rate:"1",tags:[],excludes:[],ips:[],group_ids:[],host:"",port:"",server_port:"",parent_id:"0",route_ids:[],protocol_settings:null},{isOpen:r,setIsOpen:a,editingServer:i,setEditingServer:l,serverType:d,setServerType:u,refetch:o}=ai(),[c,h]=m.useState([]),[S,T]=m.useState([]),[C,f]=m.useState([]),_=we({resolver:Ce(n),defaultValues:t,mode:"onChange"});m.useEffect(()=>{w()},[r]),m.useEffect(()=>{i?.type&&i.type!==d&&u(i.type)},[i,d,u]),m.useEffect(()=>{i?i.type===d&&_.reset({...t,...i}):_.reset({...t,protocol_settings:Ee[d].schema.parse({})})},[i,_,d]);const w=async()=>{if(!r)return;const[k,O,R]=await Promise.all([mt.getList(),Oa.getList(),at.getList()]);h(k.data?.map(K=>({label:K.name,value:K.id.toString()}))||[]),T(O.data?.map(K=>({label:K.remarks,value:K.id.toString()}))||[]),f(R.data||[])},V=m.useMemo(()=>C?.filter(k=>(k.parent_id===0||k.parent_id===null)&&k.type===d&&k.id!==_.watch("id")),[d,C,_]),F=()=>e.jsxs($s,{children:[e.jsx(As,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:s("form.add_node")})]})}),e.jsx(Rs,{align:"start",children:e.jsx(Bd,{children:js.map(({type:k,label:O})=>e.jsx(_e,{onClick:()=>{u(k),a(!0)},className:"cursor-pointer",children:e.jsx(U,{variant:"outline",className:"text-white",style:{background:is[k]},children:O})},k))})})]}),g=()=>{a(!1),l(null),_.reset(t)},b=async()=>{const k=_.getValues();(await at.save({...k,type:d})).data&&(g(),q.success(s("form.success")),o())};return e.jsxs(ge,{open:r,onOpenChange:g,children:[F(),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:s(i?"form.edit_node":"form.new_node")}),e.jsx(Ve,{})]}),e.jsxs(Se,{..._,children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(v,{control:_.control,name:"name",render:({field:k})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:s("form.name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("form.name.placeholder"),...k})}),e.jsx(P,{})]})}),e.jsx(v,{control:_.control,name:"rate",render:({field:k})=>e.jsxs(p,{className:"flex-[1]",children:[e.jsx(j,{children:s("form.rate.label")}),e.jsx("div",{className:"relative flex",children:e.jsx(N,{children:e.jsx(D,{type:"number",min:"0",step:"0.1",...k})})}),e.jsx(P,{})]})})]}),e.jsx(v,{control:_.control,name:"code",render:({field:k})=>e.jsxs(p,{children:[e.jsxs(j,{children:[s("form.code.label"),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:s("form.code.optional")})]}),e.jsx(N,{children:e.jsx(D,{placeholder:s("form.code.placeholder"),...k,value:k.value||""})}),e.jsx(P,{})]})}),e.jsx(v,{control:_.control,name:"tags",render:({field:k})=>e.jsxs(p,{children:[e.jsx(j,{children:s("form.tags.label")}),e.jsx(N,{children:e.jsx(An,{value:k.value,onChange:k.onChange,placeholder:s("form.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsx(v,{control:_.control,name:"group_ids",render:({field:k})=>e.jsxs(p,{children:[e.jsxs(j,{className:"flex items-center justify-between",children:[s("form.groups.label"),e.jsx(Ga,{dialogTrigger:e.jsx(L,{variant:"link",children:s("form.groups.add")}),refetch:w})]}),e.jsx(N,{children:e.jsx(Tt,{options:c,onChange:O=>k.onChange(O.map(R=>R.value)),value:c?.filter(O=>k.value.includes(O.value)),placeholder:s("form.groups.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.groups.empty")})})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:_.control,name:"host",render:({field:k})=>e.jsxs(p,{children:[e.jsx(j,{children:s("form.host.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:s("form.host.placeholder"),...k})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(v,{control:_.control,name:"port",render:({field:k})=>e.jsxs(p,{className:"flex-1",children:[e.jsxs(j,{className:"flex items-center gap-1.5",children:[s("form.port.label"),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(Be,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(wa,{children:e.jsx(oe,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.port.tooltip")})})})]})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(N,{children:e.jsx(D,{placeholder:s("form.port.placeholder"),...k})}),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0 text-muted-foreground/50 hover:text-muted-foreground",onClick:()=>{const O=k.value;O&&_.setValue("server_port",O)},children:e.jsx(Be,{icon:"tabler:arrows-right",className:"size-3"})})}),e.jsx(oe,{side:"right",children:e.jsx("p",{children:s("form.port.sync")})})]})})]}),e.jsx(P,{})]})}),e.jsx(v,{control:_.control,name:"server_port",render:({field:k})=>e.jsxs(p,{className:"flex-1",children:[e.jsxs(j,{className:"flex items-center gap-1.5",children:[s("form.server_port.label"),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(Be,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(wa,{children:e.jsx(oe,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.server_port.tooltip")})})})]})})]}),e.jsx(N,{children:e.jsx(D,{placeholder:s("form.server_port.placeholder"),...k})}),e.jsx(P,{})]})})]})]}),r&&e.jsx(vx,{serverType:d,value:_.watch("protocol_settings"),onChange:k=>_.setValue("protocol_settings",k,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}),e.jsx(v,{control:_.control,name:"parent_id",render:({field:k})=>e.jsxs(p,{children:[e.jsx(j,{children:s("form.parent.label")}),e.jsxs(J,{onValueChange:k.onChange,value:k.value?.toString()||"0",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("form.parent.placeholder")})})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("form.parent.none")}),V?.map(O=>e.jsx(A,{value:O.id.toString(),className:"cursor-pointer",children:O.name},O.id))]})]}),e.jsx(P,{})]})}),e.jsx(v,{control:_.control,name:"route_ids",render:({field:k})=>e.jsxs(p,{children:[e.jsx(j,{children:s("form.route.label")}),e.jsx(N,{children:e.jsx(Tt,{options:S,onChange:O=>k.onChange(O.map(R=>R.value)),value:S?.filter(O=>k.value.includes(O.value)),placeholder:s("form.route.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.route.empty")})})}),e.jsx(P,{})]})})]}),e.jsxs(Pe,{className:"mt-6 flex flex-col sm:flex-row gap-2 sm:gap-0",children:[e.jsx(L,{type:"button",variant:"outline",onClick:g,className:"w-full sm:w-auto",children:s("form.cancel")}),e.jsx(L,{type:"submit",onClick:b,className:"w-full sm:w-auto",children:s("form.submit")})]})]})]})]})}function jr({column:s,title:n,options:t}){const r=s?.getFacetedUniqueValues(),a=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),n,a?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:a.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:a.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[a.size," selected"]}):t.filter(i=>a.has(i.value)).map(i=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:i.label},i.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:n}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(i=>{const l=a.has(i.value);return e.jsxs(We,{onSelect:()=>{l?a.delete(i.value):a.add(i.value);const d=Array.from(a);s?.setFilterValue(d.length?d:void 0)},className:"cursor-pointer",children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",l?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:y("h-4 w-4")})}),i.icon&&e.jsx(i.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${i.color}`}),e.jsx("span",{children:i.label}),r?.get(i.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(i.value)})]},i.value)})}),a.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center cursor-pointer",children:"Clear filters"})})]})]})]})})]})}const yx=[{value:ce.Shadowsocks,label:js.find(s=>s.type===ce.Shadowsocks)?.label,color:is[ce.Shadowsocks]},{value:ce.Vmess,label:js.find(s=>s.type===ce.Vmess)?.label,color:is[ce.Vmess]},{value:ce.Trojan,label:js.find(s=>s.type===ce.Trojan)?.label,color:is[ce.Trojan]},{value:ce.Hysteria,label:js.find(s=>s.type===ce.Hysteria)?.label,color:is[ce.Hysteria]},{value:ce.Vless,label:js.find(s=>s.type===ce.Vless)?.label,color:is[ce.Vless]},{value:ce.Tuic,label:js.find(s=>s.type===ce.Tuic)?.label,color:is[ce.Tuic]},{value:ce.Socks,label:js.find(s=>s.type===ce.Socks)?.label,color:is[ce.Socks]},{value:ce.Naive,label:js.find(s=>s.type===ce.Naive)?.label,color:is[ce.Naive]},{value:ce.Http,label:js.find(s=>s.type===ce.Http)?.label,color:is[ce.Http]},{value:ce.Mieru,label:js.find(s=>s.type===ce.Mieru)?.label,color:is[ce.Mieru]}];function Nx({table:s,saveOrder:n,isSortMode:t,groups:r}){const a=s.getState().columnFilters.length>0,{t:i}=I("server");return e.jsxs("div",{className:"flex items-center justify-between ",children:[e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[!t&&e.jsxs(e.Fragment,{children:[e.jsx(bx,{}),e.jsx(D,{placeholder:i("toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:l=>s.getColumn("name")?.setFilterValue(l.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex gap-x-2",children:[s.getColumn("type")&&e.jsx(jr,{column:s.getColumn("type"),title:i("toolbar.type"),options:yx}),s.getColumn("group_ids")&&e.jsx(jr,{column:s.getColumn("group_ids"),title:i("columns.groups.title"),options:r.map(l=>({label:l.name,value:l.id.toString()}))})]}),a&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[i("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),t&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:i("toolbar.sort.tip")})})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:t?"default":"outline",onClick:n,size:"sm",children:i(t?"toolbar.sort.save":"toolbar.sort.edit")})})]})}const La=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.71 12.71a6 6 0 1 0-7.42 0a10 10 0 0 0-6.22 8.18a1 1 0 0 0 2 .22a8 8 0 0 1 15.9 0a1 1 0 0 0 1 .89h.11a1 1 0 0 0 .88-1.1a10 10 0 0 0-6.25-8.19M12 12a4 4 0 1 1 4-4a4 4 0 0 1-4 4"})}),ma={0:"bg-destructive/80 shadow-sm shadow-destructive/50",1:"bg-yellow-500/80 shadow-sm shadow-yellow-500/50",2:"bg-emerald-500/80 shadow-sm shadow-emerald-500/50"},Me=(s,n)=>n>0?Math.round(s/n*100):0,_x=s=>{const{t:n}=I("server");return[{id:"drag-handle",header:({column:t})=>e.jsx($,{column:t,title:n("columns.sort")}),cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Ia,{className:"size-4 cursor-move text-muted-foreground transition-colors hover:text-primary","aria-hidden":"true"})}),size:50},{accessorKey:"id",header:({column:t})=>e.jsx($,{column:t,title:n("columns.nodeId")}),cell:({row:t})=>{const r=t.getValue("id"),a=t.original.code;return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"group/id flex items-center space-x-2",children:[e.jsxs(U,{variant:"outline",className:y("border-2 font-medium transition-all duration-200 hover:opacity-80","flex items-center gap-1.5"),style:{borderColor:is[t.original.type]},children:[e.jsx(vl,{className:"size-3"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"flex items-center gap-0.5",children:a??r}),t.original.parent?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm text-muted-foreground/30",children:"→"}),e.jsx("span",{children:t.original.parent?.code||t.original.parent?.id})]}):""]})]}),e.jsx(L,{variant:"ghost",size:"icon",className:"size-5 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:text-muted-foreground group-hover/id:opacity-100",onClick:i=>{i.stopPropagation(),Sa(a||r.toString()).then(()=>{q.success(n("common:copy.success"))})},children:e.jsx(rr,{className:"size-3"})})]})}),e.jsxs(oe,{side:"top",className:"flex flex-col gap-1 p-3",children:[e.jsxs("p",{className:"font-medium",children:[js.find(i=>i.type===t.original.type)?.label,t.original.parent?" (子节点)":""]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a?"点击括号内容或复制按钮可复制节点代码":"点击复制按钮可复制节点ID"})]})]})})},size:50,enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx($,{column:t,title:n("columns.show")}),cell:({row:t})=>{const[r,a]=m.useState(!!t.getValue("show"));return e.jsx(Z,{checked:r,onCheckedChange:async i=>{a(i),at.update({id:t.original.id,type:t.original.type,show:i?1:0}).catch(()=>{a(!i),s()})},style:{backgroundColor:r?is[t.original.type]:void 0}})},size:50,enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx($,{column:t,title:n("columns.node"),tooltip:e.jsxs("div",{className:"grid grid-cols-1 gap-3 p-2",children:[e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ma[0])}),e.jsx("span",{className:"text-sm font-medium",children:n("columns.status.0")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ma[1])}),e.jsx("span",{className:"text-sm font-medium",children:n("columns.status.1")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("h-2.5 w-2.5 rounded-full",ma[2])}),e.jsx("span",{className:"text-sm font-medium",children:n("columns.status.2")})]})]})})}),cell:({row:t})=>e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:y("size-2.5 flex-shrink-0 rounded-full transition-all duration-200",ma[t.original.available_status])}),e.jsx("span",{className:"text-left font-medium transition-colors hover:text-primary",children:t.getValue("name")})]})}),e.jsx(oe,{children:e.jsxs("div",{className:" space-y-3",children:[e.jsx("p",{className:"font-medium",children:n(`columns.status.${t.original.available_status}`)}),t.original.load_status&&e.jsxs("div",{className:"border-t border-border/50 pt-3",children:[e.jsx("p",{className:"mb-3 text-sm font-medium",children:n("columns.loadStatus.details")}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsx("div",{children:e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[n("columns.loadStatus.cpu"),":"]}),e.jsxs("div",{className:"ml-2 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",t.original.load_status.cpu>=90?"bg-destructive":t.original.load_status.cpu>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Math.min(100,t.original.load_status.cpu)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",t.original.load_status.cpu>=90?"text-destructive":t.original.load_status.cpu>=70?"text-yellow-600":"text-emerald-600"),children:[Math.round(t.original.load_status.cpu),"%"]})]})]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[n("columns.loadStatus.memory"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"bg-destructive":Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Me(t.original.load_status.mem.used,t.original.load_status.mem.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"text-destructive":Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Me(t.original.load_status.mem.used,t.original.load_status.mem.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.mem.used)," ","/"," ",Oe(t.original.load_status.mem.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[n("columns.loadStatus.swap"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"bg-destructive":Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Me(t.original.load_status.swap.used,t.original.load_status.swap.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"text-destructive":Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"text-yellow-600":"text-emerald-600"),children:[Me(t.original.load_status.swap.used,t.original.load_status.swap.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.swap.used)," ","/"," ",Oe(t.original.load_status.swap.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[n("columns.loadStatus.disk"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:y("h-full transition-all duration-300",Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"bg-destructive":Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Me(t.original.load_status.disk.used,t.original.load_status.disk.total)}%`}})}),e.jsxs("span",{className:y("min-w-[3rem] text-right font-semibold",Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"text-destructive":Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Me(t.original.load_status.disk.used,t.original.load_status.disk.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.disk.used)," ","/"," ",Oe(t.original.load_status.disk.total)]})]})]})]})]})})]})}),enableSorting:!1,size:200},{accessorKey:"host",header:({column:t})=>e.jsx($,{column:t,title:n("columns.address")}),cell:({row:t})=>{const r=`${t.original.host}:${t.original.port}`,a=t.original.port!==t.original.server_port;return e.jsxs("div",{className:"group relative flex min-w-0 items-start",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1 gap-y-0.5 pr-7",children:[e.jsx("div",{className:"flex items-center ",children:e.jsxs("span",{className:"font-mono text-sm font-medium text-foreground/90",children:[t.original.host,":",t.original.port]})}),a&&e.jsxs("span",{className:"whitespace-nowrap text-[0.7rem] tracking-tight text-muted-foreground/40",children:["(",n("columns.internalPort")," ",t.original.server_port,")"]})]}),e.jsx("div",{className:"absolute right-0 top-0",children:e.jsx(pe,{delayDuration:0,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"icon",className:"size-6 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:bg-muted/50 hover:text-muted-foreground group-hover:opacity-100",onClick:i=>{i.stopPropagation(),Sa(r).then(()=>{q.success(n("common:copy.success"))})},children:e.jsx(rr,{className:"size-3"})})}),e.jsx(oe,{side:"top",sideOffset:10,children:n("columns.copyAddress")})]})})})]})},enableSorting:!1,enableHiding:!0},{accessorKey:"online",header:({column:t})=>e.jsx($,{column:t,title:n("columns.onlineUsers.title"),tooltip:n("columns.onlineUsers.tooltip")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(La,{className:"size-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("online")})]}),size:80,enableSorting:!0,enableHiding:!0},{accessorKey:"rate",header:({column:t})=>e.jsx($,{column:t,title:n("columns.rate.title"),tooltip:n("columns.rate.tooltip")}),cell:({row:t})=>e.jsxs(U,{variant:"secondary",className:"font-medium",children:[t.getValue("rate")," x"]}),size:80,enableSorting:!1,enableHiding:!0},{accessorKey:"group_ids",header:({column:t})=>e.jsx($,{column:t,title:n("columns.groups.title"),tooltip:n("columns.groups.tooltip")}),cell:({row:t})=>{const r=t.original.groups||[];return e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[r.map((a,i)=>e.jsx(U,{variant:"secondary",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:a.name},i)),r.length===0&&e.jsx("span",{className:"text-sm text-muted-foreground",children:n("columns.groups.empty")})]})},enableSorting:!1,filterFn:(t,r,a)=>{const i=t.getValue(r);return i?a.some(l=>i.includes(l)):!1}},{accessorKey:"type",header:({column:t})=>e.jsx($,{column:t,title:n("columns.type")}),cell:({row:t})=>{const r=t.getValue("type");return e.jsx(U,{variant:"outline",className:"border-2 font-medium transition-colors",style:{borderColor:is[r]},children:r})},enableSorting:!1,enableHiding:!0,enableColumnFilter:!1,size:8e3},{id:"actions",header:({column:t})=>e.jsx($,{className:"justify-end",column:t,title:n("columns.actions")}),cell:({row:t})=>{const{setIsOpen:r,setEditingServer:a,setServerType:i}=ai();return e.jsx("div",{className:"flex justify-center",children:e.jsxs($s,{modal:!1,children:[e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":n("columns.actions"),children:e.jsx(Ca,{className:"size-4"})})}),e.jsxs(Rs,{align:"end",className:"w-40",children:[e.jsx(_e,{className:"cursor-pointer",onClick:()=>{i(t.original.type),a(t.original),r(!0)},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(Wc,{className:"mr-2 size-4"}),n("columns.actions_dropdown.edit")]})}),e.jsxs(_e,{className:"cursor-pointer",onClick:async()=>{at.copy({id:t.original.id}).then(({data:l})=>{l&&(q.success(n("columns.actions_dropdown.copy_success")),s())})},children:[e.jsx(Yc,{className:"mr-2 size-4"}),n("columns.actions_dropdown.copy")]}),e.jsx(rt,{}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onSelect:l=>l.preventDefault(),children:e.jsx(ps,{title:n("columns.actions_dropdown.delete.title"),description:n("columns.actions_dropdown.delete.description"),confirmText:n("columns.actions_dropdown.delete.confirm"),variant:"destructive",onConfirm:async()=>{at.drop({id:t.original.id}).then(({data:l})=>{l&&(q.success(n("columns.actions_dropdown.delete_success")),s())})},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(ds,{className:"mr-2 size-4"}),n("columns.actions_dropdown.delete.confirm")]})})})]})]})})},size:50}]};function wx(){const[s,n]=m.useState({}),[t,r]=m.useState({"drag-handle":!1}),[a,i]=m.useState([]),[l,d]=m.useState({pageSize:500,pageIndex:0}),[u,o]=m.useState([]),[c,h]=m.useState(!1),[S,T]=m.useState({}),[C,f]=m.useState([]),{refetch:_}=ne({queryKey:["nodeList"],queryFn:async()=>{const{data:k}=await at.getList();return f(k),k}}),{data:w}=ne({queryKey:["groups"],queryFn:async()=>{const{data:k}=await mt.getList();return k}});m.useEffect(()=>{r({"drag-handle":c,show:!c,host:!c,online:!c,rate:!c,groups:!c,type:!1,actions:!c}),T({name:c?2e3:200}),d({pageSize:c?99999:500,pageIndex:0})},[c]);const V=(k,O)=>{c&&(k.dataTransfer.setData("text/plain",O.toString()),k.currentTarget.classList.add("opacity-50"))},F=(k,O)=>{if(!c)return;k.preventDefault(),k.currentTarget.classList.remove("bg-muted");const R=parseInt(k.dataTransfer.getData("text/plain"));if(R===O)return;const K=[...C],[ae]=K.splice(R,1);K.splice(O,0,ae),f(K)},g=async()=>{if(!c){h(!0);return}const k=C?.map((O,R)=>({id:O.id,order:R+1}));at.sort(k).then(()=>{q.success("排序保存成功"),h(!1),_()}).finally(()=>{h(!1)})},b=ss({data:C||[],columns:_x(_),state:{sorting:u,columnVisibility:t,rowSelection:s,columnFilters:a,columnSizing:S,pagination:l},enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:o,onColumnFiltersChange:i,onColumnVisibilityChange:r,onColumnSizingChange:T,onPaginationChange:d,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(sx,{refetch:_,children:e.jsx("div",{className:"space-y-4",children:e.jsx(xs,{table:b,toolbar:k=>e.jsx(Nx,{table:k,refetch:_,saveOrder:g,isSortMode:c,groups:w||[]}),draggable:c,onDragStart:V,onDragEnd:k=>k.currentTarget.classList.remove("opacity-50"),onDragOver:k=>{k.preventDefault(),k.currentTarget.classList.add("bg-muted")},onDragLeave:k=>k.currentTarget.classList.remove("bg-muted"),onDrop:F,showPagination:!c})})})}function Cx(){const{t:s}=I("server");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(wx,{})})]})]})}const Sx=Object.freeze(Object.defineProperty({__proto__:null,default:Cx},Symbol.toStringTag,{value:"Module"}));function kx({table:s,refetch:n}){const t=s.getState().columnFilters.length>0,{t:r}=I("group");return e.jsx("div",{className:"flex items-center justify-between space-x-4",children:e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsx(Ga,{refetch:n}),e.jsx(D,{placeholder:r("toolbar.searchPlaceholder"),value:s.getColumn("name")?.getFilterValue()??"",onChange:a=>s.getColumn("name")?.setFilterValue(a.target.value),className:y("h-8 w-[150px] lg:w-[250px]",t&&"border-primary/50 ring-primary/20")}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})})}const Tx=s=>{const{t:n}=I("group");return[{accessorKey:"id",header:({column:t})=>e.jsx($,{column:t,title:n("columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(U,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0},{accessorKey:"name",header:({column:t})=>e.jsx($,{column:t,title:n("columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium",children:t.getValue("name")})})},{accessorKey:"users_count",header:({column:t})=>e.jsx($,{column:t,title:n("columns.usersCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(La,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("users_count")})]}),enableSorting:!0},{accessorKey:"server_count",header:({column:t})=>e.jsx($,{column:t,title:n("columns.serverCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(vl,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("server_count")})]}),enableSorting:!0,size:8e3},{id:"actions",header:({column:t})=>e.jsx($,{className:"justify-end",column:t,title:n("columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Ga,{defaultValues:t.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:n("form.edit")})]})}),e.jsx(ps,{title:n("messages.deleteConfirm"),description:n("messages.deleteDescription"),confirmText:n("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{mt.drop({id:t.original.id}).then(({data:r})=>{r&&(q.success(n("messages.updateSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:n("messages.deleteButton")})]})})]})}]};function Dx(){const[s,n]=m.useState({}),[t,r]=m.useState({}),[a,i]=m.useState([]),[l,d]=m.useState([]),{data:u,refetch:o,isLoading:c}=ne({queryKey:["serverGroupList"],queryFn:async()=>{const{data:S}=await mt.getList();return S}}),h=ss({data:u||[],columns:Tx(o),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:a},enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:h,toolbar:S=>e.jsx(kx,{table:S,refetch:o}),isLoading:c})}function Lx(){const{t:s}=I("group");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Dx,{})})]})]})}const Px=Object.freeze(Object.defineProperty({__proto__:null,default:Lx},Symbol.toStringTag,{value:"Module"})),Rx=s=>x.object({remarks:x.string().min(1,s("form.validation.remarks")),match:x.array(x.string()),action:x.enum(["block","dns"]),action_value:x.string().optional()});function ni({refetch:s,dialogTrigger:n,defaultValues:t={remarks:"",match:[],action:"block",action_value:""},type:r="create"}){const{t:a}=I("route"),i=we({resolver:Ce(Rx(a)),defaultValues:t,mode:"onChange"}),[l,d]=m.useState(!1);return e.jsxs(ge,{open:l,onOpenChange:d,children:[e.jsx(as,{asChild:!0,children:n||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:a("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:a(r==="edit"?"form.edit":"form.create")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...i,children:[e.jsx(v,{control:i.control,name:"remarks",render:({field:u})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:a("form.remarks")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(D,{type:"text",placeholder:a("form.remarksPlaceholder"),...u})})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"match",render:({field:u})=>e.jsxs(p,{className:"flex-[2]",children:[e.jsx(j,{children:a("form.match")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(Ls,{className:"min-h-[120px]",placeholder:a("form.matchPlaceholder"),value:Array.isArray(u.value)?u.value.join(` -`):"",onChange:o=>{const c=o.target.value.split(` -`);u.onChange(c)}})})}),e.jsx(P,{})]})}),e.jsx(v,{control:i.control,name:"action",render:({field:u})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.action")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:u.onChange,defaultValue:u.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("form.actionPlaceholder")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"block",children:a("actions.block")}),e.jsx(A,{value:"dns",children:a("actions.dns")})]})]})})}),e.jsx(P,{})]})}),i.watch("action")==="dns"&&e.jsx(v,{control:i.control,name:"action_value",render:({field:u})=>e.jsxs(p,{children:[e.jsx(j,{children:a("form.dns")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(D,{type:"text",placeholder:a("form.dnsPlaceholder"),...u})})})]})}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{variant:"outline",children:a("form.cancel")})}),e.jsx(L,{type:"submit",onClick:()=>{const u=i.getValues(),o={...u,match:Array.isArray(u.match)?u.match.filter(c=>c.trim()!==""):[]};Oa.save(o).then(({data:c})=>{c&&(d(!1),s&&s(),q.success(a(r==="edit"?"messages.updateSuccess":"messages.createSuccess")),i.reset())})},children:a("form.submit")})]})]})]})]})}function Ex({table:s,refetch:n}){const t=s.getState().columnFilters.length>0,{t:r}=I("route");return e.jsx("div",{className:"flex items-center justify-between ",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[e.jsx(ni,{refetch:n}),e.jsx(D,{placeholder:r("toolbar.searchPlaceholder"),value:s.getColumn("remarks")?.getFilterValue()??"",onChange:a=>s.getColumn("remarks")?.setFilterValue(a.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})})}function Fx({columns:s,data:n,refetch:t}){const[r,a]=m.useState({}),[i,l]=m.useState({}),[d,u]=m.useState([]),[o,c]=m.useState([]),h=ss({data:n,columns:s,state:{sorting:o,columnVisibility:i,rowSelection:r,columnFilters:d},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:c,onColumnFiltersChange:u,onColumnVisibilityChange:l,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:h,toolbar:S=>e.jsx(Ex,{table:S,refetch:t})})}const Ix=s=>{const{t:n}=I("route"),t={block:{icon:Jc,variant:"destructive",className:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-400 hover:bg-red-200 dark:hover:bg-red-800"},dns:{icon:Qc,variant:"secondary",className:"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800"}};return[{accessorKey:"id",header:({column:r})=>e.jsx($,{column:r,title:n("columns.id")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(U,{variant:"outline",children:r.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"remarks",header:({column:r})=>e.jsx($,{column:r,title:n("columns.remarks")}),cell:({row:r})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:r.original.remarks})}),enableHiding:!1,enableSorting:!1},{accessorKey:"action_value",header:({column:r})=>e.jsx($,{column:r,title:n("columns.action_value.title")}),cell:({row:r})=>{const a=r.original.action,i=r.original.action_value,l=r.original.match?.length||0;return e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",children:a==="dns"&&i?n("columns.action_value.dns",{value:i}):a==="block"?e.jsx("span",{className:"text-destructive",children:n("columns.action_value.block")}):n("columns.action_value.direct")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:n("columns.matchRules",{count:l})})]})},enableHiding:!1,enableSorting:!1,size:300},{accessorKey:"action",header:({column:r})=>e.jsx($,{column:r,title:n("columns.action")}),cell:({row:r})=>{const a=r.getValue("action"),i=t[a]?.icon;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(U,{variant:t[a]?.variant||"default",className:y("flex items-center gap-1.5 px-3 py-1 capitalize",t[a]?.className),children:[i&&e.jsx(i,{className:"h-3.5 w-3.5"}),n(`actions.${a}`)]})})},enableSorting:!1,size:9e3},{id:"actions",header:()=>e.jsx("div",{className:"text-right",children:n("columns.actions")}),cell:({row:r})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(ni,{defaultValues:r.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:n("form.edit")})]})}),e.jsx(ps,{title:n("messages.deleteConfirm"),description:n("messages.deleteDescription"),confirmText:n("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{Oa.drop({id:r.original.id}).then(({data:a})=>{a&&(q.success(n("messages.deleteSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:n("messages.deleteButton")})]})})]})}]};function Vx(){const{t:s}=I("route"),[n,t]=m.useState([]);function r(){Oa.getList().then(({data:a})=>{t(a)})}return m.useEffect(()=>{r()},[]),e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Fx,{data:n,columns:Ix(r),refetch:r})})]})]})}const Mx=Object.freeze(Object.defineProperty({__proto__:null,default:Vx},Symbol.toStringTag,{value:"Module"})),ri=m.createContext(void 0);function Ox({children:s,refreshData:n}){const[t,r]=m.useState(!1),[a,i]=m.useState(null);return e.jsx(ri.Provider,{value:{isOpen:t,setIsOpen:r,editingPlan:a,setEditingPlan:i,refreshData:n},children:s})}function qn(){const s=m.useContext(ri);if(s===void 0)throw new Error("usePlanEdit must be used within a PlanEditProvider");return s}function zx({table:s,saveOrder:n,isSortMode:t}){const{setIsOpen:r}=qn(),{t:a}=I("subscribe");return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsxs(L,{variant:"outline",className:"space-x-2",size:"sm",onClick:()=>r(!0),children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:a("plan.add")})]}),e.jsx(D,{placeholder:a("plan.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:i=>s.getColumn("name")?.setFilterValue(i.target.value),className:"h-8 w-[150px] lg:w-[250px]"})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:t?"default":"outline",onClick:n,size:"sm",children:a(t?"plan.sort.save":"plan.sort.edit")})})]})}const vr={monthly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},quarterly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},half_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},two_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},three_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},onetime:{color:"text-slate-700",bgColor:"bg-slate-100/80"},reset_traffic:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},$x=s=>{const{t:n}=I("subscribe");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:"cursor-move",children:e.jsx(Ia,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(U,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"show",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.show")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("show"),onCheckedChange:r=>{gs.update({id:t.original.id,show:r}).then(({data:a})=>{!a&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"sell",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.sell")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("sell"),onCheckedChange:r=>{gs.update({id:t.original.id,sell:r}).then(({data:a})=>{!a&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"renew",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.renew"),tooltip:n("plan.columns.renew_tooltip")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("renew"),onCheckedChange:r=>{gs.update({id:t.original.id,renew:r}).then(({data:a})=>{!a&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"name",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:t.getValue("name")})}),enableSorting:!1,enableHiding:!1,size:900},{accessorKey:"users_count",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.stats")}),cell:({row:t})=>{const r=t.getValue("users_count")||0,a=t.original.active_users_count||0,i=r>0?Math.round(a/r*100):0;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"flex items-center gap-1 rounded-md bg-slate-50 px-2 py-1 hover:bg-slate-100 transition-colors cursor-help",children:[e.jsx(va,{className:"h-3.5 w-3.5 text-slate-500"}),e.jsx("span",{className:"text-sm font-medium text-slate-700",children:r})]})}),e.jsx(oe,{side:"top",className:"max-w-xs",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"总用户数"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"所有使用该套餐的用户(包括已过期)"})]})})]})}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"flex items-center gap-1 rounded-md bg-green-50 px-2 py-1 hover:bg-green-100 transition-colors cursor-help",children:[e.jsx(Xc,{className:"h-3.5 w-3.5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-700",children:a})]})}),e.jsx(oe,{side:"top",className:"max-w-xs",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"有效期内用户"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"当前仍在有效期内的活跃用户"}),r>0&&e.jsxs("p",{className:"text-xs font-medium text-green-600",children:["活跃率:",i,"%"]})]})})]})})]})},enableSorting:!0,size:120},{accessorKey:"group",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.group")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[600px] flex-wrap items-center gap-1.5 text-nowrap",children:e.jsx(U,{variant:"secondary",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:t.getValue("group")?.name})}),enableSorting:!1,enableHiding:!1},{accessorKey:"prices",header:({column:t})=>e.jsx($,{column:t,title:n("plan.columns.price")}),cell:({row:t})=>{const r=t.getValue("prices"),a=[{period:n("plan.columns.price_period.monthly"),key:"monthly",unit:n("plan.columns.price_period.unit.month")},{period:n("plan.columns.price_period.quarterly"),key:"quarterly",unit:n("plan.columns.price_period.unit.quarter")},{period:n("plan.columns.price_period.half_yearly"),key:"half_yearly",unit:n("plan.columns.price_period.unit.half_year")},{period:n("plan.columns.price_period.yearly"),key:"yearly",unit:n("plan.columns.price_period.unit.year")},{period:n("plan.columns.price_period.two_yearly"),key:"two_yearly",unit:n("plan.columns.price_period.unit.two_year")},{period:n("plan.columns.price_period.three_yearly"),key:"three_yearly",unit:n("plan.columns.price_period.unit.three_year")},{period:n("plan.columns.price_period.onetime"),key:"onetime",unit:""},{period:n("plan.columns.price_period.reset_traffic"),key:"reset_traffic",unit:n("plan.columns.price_period.unit.times")}];return e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:a.map(({period:i,key:l,unit:d})=>r[l]!=null&&e.jsxs(U,{variant:"secondary",className:y("px-2 py-0.5 font-medium transition-colors text-nowrap",vr[l].color,vr[l].bgColor,"border border-border/50","hover:bg-slate-200/80"),children:[i," ¥",r[l],d]},l))})},enableSorting:!1,size:9e3},{id:"actions",header:({column:t})=>e.jsx($,{className:"justify-end",column:t,title:n("plan.columns.actions")}),cell:({row:t})=>{const{setIsOpen:r,setEditingPlan:a}=qn();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>{a(t.original),r(!0)},children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:n("plan.columns.edit")})]}),e.jsx(ps,{title:n("plan.columns.delete_confirm.title"),description:n("plan.columns.delete_confirm.description"),confirmText:n("plan.columns.delete"),variant:"destructive",onConfirm:async()=>{gs.drop({id:t.original.id}).then(({data:i})=>{i&&(q.success(n("plan.columns.delete_confirm.success")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:n("plan.columns.delete")})]})})]})}}]},Ax=x.object({id:x.number().nullable(),group_id:x.union([x.number(),x.string()]).nullable().optional(),name:x.string().min(1).max(250),content:x.string().nullable().optional(),transfer_enable:x.union([x.number().min(0),x.string().min(1)]),prices:x.object({monthly:x.union([x.number(),x.string()]).nullable().optional(),quarterly:x.union([x.number(),x.string()]).nullable().optional(),half_yearly:x.union([x.number(),x.string()]).nullable().optional(),yearly:x.union([x.number(),x.string()]).nullable().optional(),two_yearly:x.union([x.number(),x.string()]).nullable().optional(),three_yearly:x.union([x.number(),x.string()]).nullable().optional(),onetime:x.union([x.number(),x.string()]).nullable().optional(),reset_traffic:x.union([x.number(),x.string()]).nullable().optional()}).default({}),speed_limit:x.union([x.number(),x.string()]).nullable().optional(),capacity_limit:x.union([x.number(),x.string()]).nullable().optional(),device_limit:x.union([x.number(),x.string()]).nullable().optional(),force_update:x.boolean().optional(),reset_traffic_method:x.number().nullable(),users_count:x.number().optional(),active_users_count:x.number().optional(),group:x.object({id:x.number(),name:x.string()}).optional()}),Hn=m.forwardRef(({className:s,...n},t)=>e.jsx(bl,{ref:t,className:y("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...n,children:e.jsx(Zc,{className:y("flex items-center justify-center text-current"),children:e.jsx(ot,{className:"h-4 w-4"})})}));Hn.displayName=bl.displayName;const ua={id:null,group_id:null,name:"",content:"",transfer_enable:"",prices:{monthly:"",quarterly:"",half_yearly:"",yearly:"",two_yearly:"",three_yearly:"",onetime:"",reset_traffic:""},speed_limit:"",capacity_limit:"",device_limit:"",force_update:!1,reset_traffic_method:null},xa={monthly:{label:"月付",months:1,discount:1},quarterly:{label:"季付",months:3,discount:.95},half_yearly:{label:"半年付",months:6,discount:.9},yearly:{label:"年付",months:12,discount:.85},two_yearly:{label:"两年付",months:24,discount:.8},three_yearly:{label:"三年付",months:36,discount:.75},onetime:{label:"流量包",months:1,discount:1},reset_traffic:{label:"重置包",months:1,discount:1}},qx=[{value:null,label:"follow_system"},{value:0,label:"monthly_first"},{value:1,label:"monthly_reset"},{value:2,label:"no_reset"},{value:3,label:"yearly_first"},{value:4,label:"yearly_reset"}];function Hx(){const{isOpen:s,setIsOpen:n,editingPlan:t,setEditingPlan:r,refreshData:a}=qn(),[i,l]=m.useState(!1),{t:d}=I("subscribe"),u=we({resolver:Ce(Ax),defaultValues:{...ua,...t||{}},mode:"onChange"});m.useEffect(()=>{t?u.reset({...ua,...t}):u.reset(ua)},[t,u]);const o=new Ln({html:!0}),[c,h]=m.useState();async function S(){mt.getList().then(({data:f})=>{h(f)})}m.useEffect(()=>{s&&S()},[s]);const T=f=>{if(isNaN(f))return;const _=Object.entries(xa).reduce((w,[V,F])=>{const g=f*F.months*F.discount;return{...w,[V]:g.toFixed(2)}},{});u.setValue("prices",_,{shouldDirty:!0})},C=()=>{n(!1),r(null),u.reset(ua)};return e.jsx(ge,{open:s,onOpenChange:C,children:e.jsxs(ue,{children:[e.jsxs(be,{children:[e.jsx(fe,{children:d(t?"plan.form.edit_title":"plan.form.add_title")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...u,children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(v,{control:u.control,name:"name",render:({field:f})=>e.jsxs(p,{children:[e.jsx(j,{children:d("plan.form.name.label")}),e.jsx(N,{children:e.jsx(D,{placeholder:d("plan.form.name.placeholder"),...f})}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"group_id",render:({field:f})=>e.jsxs(p,{children:[e.jsxs(j,{className:"flex items-center justify-between",children:[d("plan.form.group.label"),e.jsx(Ga,{dialogTrigger:e.jsx(L,{variant:"link",children:d("plan.form.group.add")}),refetch:S})]}),e.jsxs(J,{value:f.value?.toString()??"",onValueChange:_=>f.onChange(_?Number(_):null),children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:d("plan.form.group.placeholder")})})}),e.jsx(Y,{children:c?.map(_=>e.jsx(A,{value:_.id.toString(),children:_.name},_.id))})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"transfer_enable",render:({field:f})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:d("plan.form.transfer.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(D,{type:"number",min:0,placeholder:d("plan.form.transfer.placeholder"),className:"rounded-r-none",...f})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:d("plan.form.transfer.unit")})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"speed_limit",render:({field:f})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:d("plan.form.speed.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(D,{type:"number",min:0,placeholder:d("plan.form.speed.placeholder"),className:"rounded-r-none",...f,value:f.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:d("plan.form.speed.unit")})]}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center",children:[e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"}),e.jsx("h3",{className:"mx-4 text-sm font-medium text-gray-500 dark:text-gray-400",children:d("plan.form.price.title")}),e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(D,{type:"number",placeholder:d("plan.form.price.base_price"),className:"h-7 w-32 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500",onChange:f=>{const _=parseFloat(f.target.value);T(_)}})]}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>{const f=Object.keys(xa).reduce((_,w)=>({..._,[w]:""}),{});u.setValue("prices",f,{shouldDirty:!0})},children:d("plan.form.price.clear.button")})}),e.jsx(oe,{side:"top",align:"end",children:e.jsx("p",{className:"text-xs",children:d("plan.form.price.clear.tooltip")})})]})})]})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-3",children:Object.entries(xa).filter(([f])=>!["onetime","reset_traffic"].includes(f)).map(([f,_])=>e.jsx("div",{className:"group relative rounded-md bg-card p-2 ring-1 ring-gray-200 transition-all hover:ring-primary dark:ring-gray-800",children:e.jsx(v,{control:u.control,name:`prices.${f}`,render:({field:w})=>e.jsxs(p,{children:[e.jsxs(j,{className:"text-xs font-medium text-muted-foreground",children:[d(`plan.columns.price_period.${f}`),e.jsxs("span",{className:"ml-1 text-[10px] text-gray-400",children:["(",_.months===1?d("plan.form.price.period.monthly"):d("plan.form.price.period.months",{count:_.months}),")"]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:"0.00",min:0,...w,value:w.value??"",onChange:V=>w.onChange(V.target.value),className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})},f))}),e.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Object.entries(xa).filter(([f])=>["onetime","reset_traffic"].includes(f)).map(([f,_])=>e.jsx("div",{className:"rounded-md border border-dashed border-gray-200 bg-muted/30 p-3 dark:border-gray-700",children:e.jsx(v,{control:u.control,name:`prices.${f}`,render:({field:w})=>e.jsx(p,{children:e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-0",children:[e.jsx(j,{className:"text-xs font-medium",children:d(`plan.columns.price_period.${f}`)}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:d(f==="onetime"?"plan.form.price.onetime_desc":"plan.form.price.reset_desc")})]}),e.jsxs("div",{className:"relative w-full md:w-32",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:"0.00",min:0,...w,className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})})},f))})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(v,{control:u.control,name:"device_limit",render:({field:f})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:d("plan.form.device.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(D,{type:"number",min:0,placeholder:d("plan.form.device.placeholder"),className:"rounded-r-none",...f,value:f.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:d("plan.form.device.unit")})]}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"capacity_limit",render:({field:f})=>e.jsxs(p,{className:"flex-1",children:[e.jsx(j,{children:d("plan.form.capacity.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(D,{type:"number",min:0,placeholder:d("plan.form.capacity.placeholder"),className:"rounded-r-none",...f,value:f.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:d("plan.form.capacity.unit")})]}),e.jsx(P,{})]})})]}),e.jsx(v,{control:u.control,name:"reset_traffic_method",render:({field:f})=>e.jsxs(p,{children:[e.jsx(j,{children:d("plan.form.reset_method.label")}),e.jsxs(J,{value:f.value?.toString()??"null",onValueChange:_=>f.onChange(_=="null"?null:Number(_)),children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:d("plan.form.reset_method.placeholder")})})}),e.jsx(Y,{children:qx.map(_=>e.jsx(A,{value:_.value?.toString()??"null",children:d(`plan.form.reset_method.options.${_.label}`)},_.value))})]}),e.jsx(z,{className:"text-xs",children:d("plan.form.reset_method.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:u.control,name:"content",render:({field:f})=>{const[_,w]=m.useState(!1);return e.jsxs(p,{className:"space-y-2",children:[e.jsxs(j,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[d("plan.form.content.label"),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>w(!_),children:_?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{d:"M10 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),e.jsx("path",{fillRule:"evenodd",d:"M.664 10.59a1.651 1.651 0 010-1.186A10.004 10.004 0 0110 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0110 17c-4.257 0-7.893-2.66-9.336-6.41zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{fillRule:"evenodd",d:"M3.28 2.22a.75.75 0 00-1.06 1.06l14.5 14.5a.75.75 0 101.06-1.06l-1.745-1.745a10.029 10.029 0 003.3-4.38 1.651 1.651 0 000-1.185A10.004 10.004 0 009.999 3a9.956 9.956 0 00-4.744 1.194L3.28 2.22zM7.752 6.69l1.092 1.092a2.5 2.5 0 013.374 3.373l1.091 1.092a4 4 0 00-5.557-5.557z",clipRule:"evenodd"}),e.jsx("path",{d:"M10.748 13.93l2.523 2.523a9.987 9.987 0 01-3.27.547c-4.258 0-7.894-2.66-9.337-6.41a1.651 1.651 0 010-1.186A10.007 10.007 0 012.839 6.02L6.07 9.252a4 4 0 004.678 4.678z"})]})})}),e.jsx(oe,{side:"top",children:e.jsx("p",{className:"text-xs",children:d(_?"plan.form.content.preview_button.hide":"plan.form.content.preview_button.show")})})]})})]}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",onClick:()=>{f.onChange(d("plan.form.content.template.content"))},children:d("plan.form.content.template.button")})}),e.jsx(oe,{side:"left",align:"center",children:e.jsx("p",{className:"text-xs",children:d("plan.form.content.template.tooltip")})})]})})]}),e.jsxs("div",{className:`grid gap-4 ${_?"grid-cols-1 lg:grid-cols-2":"grid-cols-1"}`,children:[e.jsx("div",{className:"space-y-2",children:e.jsx(N,{children:e.jsx(Pn,{style:{height:"400px"},value:f.value||"",renderHTML:V=>o.render(V),onChange:({text:V})=>f.onChange(V),config:{view:{menu:!0,md:!0,html:!1},canView:{menu:!0,md:!0,html:!1,fullScreen:!1,hideMenu:!1}},placeholder:d("plan.form.content.placeholder"),className:"rounded-md border"})})}),_&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:d("plan.form.content.preview")}),e.jsx("div",{className:"prose prose-sm dark:prose-invert h-[400px] max-w-none overflow-y-auto rounded-md border p-4",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:o.render(f.value||"")}})})]})]}),e.jsx(z,{className:"text-xs",children:d("plan.form.content.description")}),e.jsx(P,{})]})}})]}),e.jsx(Pe,{className:"mt-6",children:e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx("div",{className:"flex-shrink-0",children:t&&e.jsx(v,{control:u.control,name:"force_update",render:({field:f})=>e.jsxs(p,{className:"flex flex-row items-center space-x-2 space-y-0",children:[e.jsx(N,{children:e.jsx(Hn,{checked:f.value,onCheckedChange:f.onChange})}),e.jsx("div",{className:"",children:e.jsx(j,{className:"text-sm",children:d("plan.form.force_update.label")})})]})})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(L,{type:"button",variant:"outline",onClick:C,children:d("plan.form.submit.cancel")}),e.jsx(L,{type:"submit",disabled:i,onClick:()=>{u.handleSubmit(async f=>{l(!0),gs.save(f).then(({data:_})=>{_&&(q.success(d(t?"plan.form.submit.success.update":"plan.form.submit.success.add")),C(),a())}).finally(()=>{l(!1)})})()},children:d(i?"plan.form.submit.submitting":"plan.form.submit.submit")})]})]})})]})]})})}function Ux(){const[s,n]=m.useState({}),[t,r]=m.useState({"drag-handle":!1}),[a,i]=m.useState([]),[l,d]=m.useState([]),[u,o]=m.useState(!1),[c,h]=m.useState({pageSize:20,pageIndex:0}),[S,T]=m.useState([]),{refetch:C}=ne({queryKey:["planList"],queryFn:async()=>{const{data:F}=await gs.getList();return T(F),F}});m.useEffect(()=>{r({"drag-handle":u}),h({pageSize:u?99999:10,pageIndex:0})},[u]);const f=(F,g)=>{u&&(F.dataTransfer.setData("text/plain",g.toString()),F.currentTarget.classList.add("opacity-50"))},_=(F,g)=>{if(!u)return;F.preventDefault(),F.currentTarget.classList.remove("bg-muted");const b=parseInt(F.dataTransfer.getData("text/plain"));if(b===g)return;const k=[...S],[O]=k.splice(b,1);k.splice(g,0,O),T(k)},w=async()=>{if(!u){o(!0);return}const F=S?.map(g=>g.id);gs.sort(F).then(()=>{q.success("排序保存成功"),o(!1),C()}).finally(()=>{o(!1)})},V=ss({data:S||[],columns:$x(C),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:a,pagination:c},enableRowSelection:!0,onPaginationChange:h,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}},pageCount:u?1:void 0});return e.jsx(Ox,{refreshData:C,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(xs,{table:V,toolbar:F=>e.jsx(zx,{table:F,refetch:C,saveOrder:w,isSortMode:u}),draggable:u,onDragStart:f,onDragEnd:F=>F.currentTarget.classList.remove("opacity-50"),onDragOver:F=>{F.preventDefault(),F.currentTarget.classList.add("bg-muted")},onDragLeave:F=>F.currentTarget.classList.remove("bg-muted"),onDrop:_,showPagination:!u}),e.jsx(Hx,{})]})})}function Kx(){const{t:s}=I("subscribe");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("plan.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("plan.page.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Ux,{})})]})]})}const Bx=Object.freeze(Object.defineProperty({__proto__:null,default:Kx},Symbol.toStringTag,{value:"Module"})),bt=[{value:le.PENDING,label:Mt[le.PENDING],icon:ed,color:Ot[le.PENDING]},{value:le.PROCESSING,label:Mt[le.PROCESSING],icon:yl,color:Ot[le.PROCESSING]},{value:le.COMPLETED,label:Mt[le.COMPLETED],icon:pn,color:Ot[le.COMPLETED]},{value:le.CANCELLED,label:Mt[le.CANCELLED],icon:Nl,color:Ot[le.CANCELLED]},{value:le.DISCOUNTED,label:Mt[le.DISCOUNTED],icon:pn,color:Ot[le.DISCOUNTED]}],qt=[{value:Ne.PENDING,label:oa[Ne.PENDING],icon:sd,color:ca[Ne.PENDING]},{value:Ne.PROCESSING,label:oa[Ne.PROCESSING],icon:yl,color:ca[Ne.PROCESSING]},{value:Ne.VALID,label:oa[Ne.VALID],icon:pn,color:ca[Ne.VALID]},{value:Ne.INVALID,label:oa[Ne.INVALID],icon:Nl,color:ca[Ne.INVALID]}];function ha({column:s,title:n,options:t}){const r=s?.getFacetedUniqueValues(),a=s?.getFilterValue(),i=Array.isArray(a)?new Set(a):a!==void 0?new Set([a]):new Set;return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),n,i?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:i.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:i.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[i.size," selected"]}):t.filter(l=>i.has(l.value)).map(l=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:l.label},l.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:n}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(l=>{const d=i.has(l.value);return e.jsxs(We,{onSelect:()=>{const u=new Set(i);d?u.delete(l.value):u.add(l.value);const o=Array.from(u);s?.setFilterValue(o.length?o:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",d?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:y("h-4 w-4")})}),l.icon&&e.jsx(l.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${l.color}`}),e.jsx("span",{children:l.label}),r?.get(l.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(l.value)})]},l.value)})}),i.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Gx=x.object({email:x.string().min(1),plan_id:x.number(),period:x.string(),total_amount:x.number()}),Wx={email:"",plan_id:0,total_amount:0,period:""};function li({refetch:s,trigger:n,defaultValues:t}){const{t:r}=I("order"),[a,i]=m.useState(!1),l=we({resolver:Ce(Gx),defaultValues:{...Wx,...t},mode:"onChange"}),[d,u]=m.useState([]);return m.useEffect(()=>{a&&gs.getList().then(({data:o})=>{u(o)})},[a]),e.jsxs(ge,{open:a,onOpenChange:i,children:[e.jsx(as,{asChild:!0,children:n||e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:r("dialog.addOrder")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:r("dialog.assignOrder")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...l,children:[e.jsx(v,{control:l.control,name:"email",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dialog.fields.userEmail")}),e.jsx(N,{children:e.jsx(D,{placeholder:r("dialog.placeholders.email"),...o})})]})}),e.jsx(v,{control:l.control,name:"plan_id",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dialog.fields.subscriptionPlan")}),e.jsx(N,{children:e.jsxs(J,{value:o.value?o.value?.toString():void 0,onValueChange:c=>o.onChange(parseInt(c)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dialog.placeholders.plan")})}),e.jsx(Y,{children:d.map(c=>e.jsx(A,{value:c.id.toString(),children:c.name},c.id))})]})})]})}),e.jsx(v,{control:l.control,name:"period",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dialog.fields.orderPeriod")}),e.jsx(N,{children:e.jsxs(J,{value:o.value,onValueChange:o.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dialog.placeholders.period")})}),e.jsx(Y,{children:Object.keys(jm).map(c=>e.jsx(A,{value:c,children:r(`period.${c}`)},c))})]})})]})}),e.jsx(v,{control:l.control,name:"total_amount",render:({field:o})=>e.jsxs(p,{children:[e.jsx(j,{children:r("dialog.fields.paymentAmount")}),e.jsx(N,{children:e.jsx(D,{type:"number",placeholder:r("dialog.placeholders.amount"),value:o.value/100,onChange:c=>o.onChange(parseFloat(c.currentTarget.value)*100)})}),e.jsx(P,{})]})}),e.jsxs(Pe,{children:[e.jsx(L,{variant:"outline",onClick:()=>i(!1),children:r("dialog.actions.cancel")}),e.jsx(L,{type:"submit",onClick:()=>{l.handleSubmit(o=>{tt.assign(o).then(({data:c})=>{c&&(s&&s(),l.reset(),i(!1),q.success(r("dialog.messages.addSuccess")))})})()},children:r("dialog.actions.confirm")})]})]})]})]})}function Yx({table:s,refetch:n}){const{t}=I("order"),r=s.getState().columnFilters.length>0,a=Object.values(Ss).filter(u=>typeof u=="number").map(u=>({label:t(`type.${Ss[u]}`),value:u,color:u===Ss.NEW?"green-500":u===Ss.RENEWAL?"blue-500":u===Ss.UPGRADE?"purple-500":"orange-500"})),i=Object.values(qe).map(u=>({label:t(`period.${u}`),value:u,color:u===qe.MONTH_PRICE?"slate-500":u===qe.QUARTER_PRICE?"cyan-500":u===qe.HALF_YEAR_PRICE?"indigo-500":u===qe.YEAR_PRICE?"violet-500":u===qe.TWO_YEAR_PRICE?"fuchsia-500":u===qe.THREE_YEAR_PRICE?"pink-500":u===qe.ONETIME_PRICE?"rose-500":"orange-500"})),l=Object.values(le).filter(u=>typeof u=="number").map(u=>({label:t(`status.${le[u]}`),value:u,icon:u===le.PENDING?bt[0].icon:u===le.PROCESSING?bt[1].icon:u===le.COMPLETED?bt[2].icon:u===le.CANCELLED?bt[3].icon:bt[4].icon,color:u===le.PENDING?"yellow-500":u===le.PROCESSING?"blue-500":u===le.COMPLETED?"green-500":u===le.CANCELLED?"red-500":"green-500"})),d=Object.values(Ne).filter(u=>typeof u=="number").map(u=>({label:t(`commission.${Ne[u]}`),value:u,icon:u===Ne.PENDING?qt[0].icon:u===Ne.PROCESSING?qt[1].icon:u===Ne.VALID?qt[2].icon:qt[3].icon,color:u===Ne.PENDING?"yellow-500":u===Ne.PROCESSING?"blue-500":u===Ne.VALID?"green-500":"red-500"}));return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(li,{refetch:n}),e.jsx(D,{placeholder:t("search.placeholder"),value:s.getColumn("trade_no")?.getFilterValue()??"",onChange:u=>s.getColumn("trade_no")?.setFilterValue(u.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex flex-wrap gap-x-2",children:[s.getColumn("type")&&e.jsx(ha,{column:s.getColumn("type"),title:t("table.columns.type"),options:a}),s.getColumn("period")&&e.jsx(ha,{column:s.getColumn("period"),title:t("table.columns.period"),options:i}),s.getColumn("status")&&e.jsx(ha,{column:s.getColumn("status"),title:t("table.columns.status"),options:l}),s.getColumn("commission_status")&&e.jsx(ha,{column:s.getColumn("commission_status"),title:t("table.columns.commissionStatus"),options:d})]}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[t("actions.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})}function Ke({label:s,value:n,className:t,valueClassName:r}){return e.jsxs("div",{className:y("flex items-center py-1.5",t),children:[e.jsx("div",{className:"w-28 shrink-0 text-sm text-muted-foreground",children:s}),e.jsx("div",{className:y("text-sm",r),children:n||"-"})]})}function Jx({status:s}){const{t:n}=I("order"),t={[le.PENDING]:"bg-yellow-100 text-yellow-800 hover:bg-yellow-100",[le.PROCESSING]:"bg-blue-100 text-blue-800 hover:bg-blue-100",[le.CANCELLED]:"bg-red-100 text-red-800 hover:bg-red-100",[le.COMPLETED]:"bg-green-100 text-green-800 hover:bg-green-100",[le.DISCOUNTED]:"bg-gray-100 text-gray-800 hover:bg-gray-100"};return e.jsx(U,{variant:"secondary",className:y("font-medium",t[s]),children:n(`status.${le[s]}`)})}function Qx({id:s,trigger:n}){const[t,r]=m.useState(!1),[a,i]=m.useState(),{t:l}=I("order");return m.useEffect(()=>{(async()=>{if(t){const{data:u}=await tt.getInfo({id:s});i(u)}})()},[t,s]),e.jsxs(ge,{onOpenChange:r,open:t,children:[e.jsx(as,{asChild:!0,children:n}),e.jsxs(ue,{className:"max-w-xl",children:[e.jsxs(be,{className:"space-y-2",children:[e.jsx(fe,{className:"text-lg font-medium",children:l("dialog.title")}),e.jsx("div",{className:"flex items-center justify-between text-sm",children:e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("div",{className:"text-muted-foreground",children:[l("table.columns.tradeNo"),":",a?.trade_no]}),!!a?.status&&e.jsx(Jx,{status:a.status})]})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.basicInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.userEmail"),value:a?.user?.email?e.jsxs(Ys,{to:`/user/manage?email=${a.user.email}`,className:"group inline-flex items-center gap-1 text-primary hover:underline",children:[a.user.email,e.jsx(jn,{className:"h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100"})]}):"-"}),e.jsx(Ke,{label:l("dialog.fields.orderPeriod"),value:a&&l(`period.${a.period}`)}),e.jsx(Ke,{label:l("dialog.fields.subscriptionPlan"),value:a?.plan?.name,valueClassName:"font-medium"}),e.jsx(Ke,{label:l("dialog.fields.callbackNo"),value:a?.callback_no,valueClassName:"font-mono text-xs"})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.amountInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.paymentAmount"),value:Ms(a?.total_amount||0),valueClassName:"font-medium text-primary"}),e.jsx(Te,{className:"my-2"}),e.jsx(Ke,{label:l("dialog.fields.balancePayment"),value:Ms(a?.balance_amount||0)}),e.jsx(Ke,{label:l("dialog.fields.discountAmount"),value:Ms(a?.discount_amount||0),valueClassName:"text-green-600"}),e.jsx(Ke,{label:l("dialog.fields.refundAmount"),value:Ms(a?.refund_amount||0),valueClassName:"text-red-600"}),e.jsx(Ke,{label:l("dialog.fields.deductionAmount"),value:Ms(a?.surplus_amount||0)})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.timeInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.createdAt"),value:xe(a?.created_at),valueClassName:"font-mono text-xs"}),e.jsx(Ke,{label:l("dialog.fields.updatedAt"),value:xe(a?.updated_at),valueClassName:"font-mono text-xs"})]})]}),a?.commission_status===1&&a?.commission_balance&&e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.commissionInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.commissionStatus"),value:e.jsx(U,{variant:"secondary",className:"bg-orange-100 font-medium text-orange-800 hover:bg-orange-100",children:l("dialog.commissionStatusActive")})}),e.jsx(Ke,{label:l("dialog.fields.commissionAmount"),value:Ms(a?.commission_balance||0),valueClassName:"font-medium text-orange-600"}),a?.actual_commission_balance&&e.jsx(Ke,{label:l("dialog.fields.actualCommissionAmount"),value:Ms(a?.actual_commission_balance||0),valueClassName:"font-medium text-orange-700"}),a?.invite_user&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{className:"my-2"}),e.jsx(Ke,{label:l("dialog.fields.inviteUser"),value:e.jsxs(Ys,{to:`/user/manage?email=${a.invite_user.email}`,className:"group inline-flex items-center gap-1 text-primary hover:underline",children:[a.invite_user.email,e.jsx(jn,{className:"h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100"})]})}),e.jsx(Ke,{label:l("dialog.fields.inviteUserId"),value:a?.invite_user?.id,valueClassName:"font-mono text-xs"})]})]})]})]})]})]})}const Xx={[Ss.NEW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ss.RENEWAL]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ss.UPGRADE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ss.RESET_FLOW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},Zx={[qe.MONTH_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.QUARTER_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.HALF_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.TWO_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.THREE_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.ONETIME_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.RESET_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},eh=s=>le[s],sh=s=>Ne[s],th=s=>Ss[s],ah=s=>{const{t:n}=I("order");return[{accessorKey:"trade_no",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.tradeNo")}),cell:({row:t})=>{const r=t.original.trade_no,a=r.length>6?`${r.slice(0,3)}...${r.slice(-3)}`:r;return e.jsx("div",{className:"flex items-center",children:e.jsx(Qx,{trigger:e.jsxs(G,{variant:"ghost",size:"sm",className:"flex h-8 items-center gap-1.5 px-2 font-medium text-primary transition-colors hover:bg-primary/10 hover:text-primary/80",children:[e.jsx("span",{className:"font-mono",children:a}),e.jsx(jn,{className:"h-3.5 w-3.5 opacity-70"})]}),id:t.original.id})})},enableSorting:!1,enableHiding:!1},{accessorKey:"type",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.type")}),cell:({row:t})=>{const r=t.getValue("type"),a=Xx[r];return e.jsx(U,{variant:"secondary",className:y("font-medium transition-colors text-nowrap",a.color,a.bgColor,"border border-border/50","hover:bg-slate-200/80"),children:n(`type.${th(r)}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"plan.name",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.plan")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium text-foreground/90 sm:max-w-72 md:max-w-[31rem]",children:t.original.plan?.name||"-"})}),enableSorting:!1,enableHiding:!1},{accessorKey:"period",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.period")}),cell:({row:t})=>{const r=t.getValue("period"),a=Zx[r];return e.jsx(U,{variant:"secondary",className:y("font-medium transition-colors text-nowrap",a?.color,a?.bgColor,"hover:bg-opacity-80"),children:n(`period.${r}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"total_amount",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.amount")}),cell:({row:t})=>{const r=t.getValue("total_amount"),a=typeof r=="number"?(r/100).toFixed(2):"N/A";return e.jsxs("div",{className:"flex items-center font-mono text-foreground/90",children:["¥",a]})},enableSorting:!0,enableHiding:!1},{accessorKey:"status",header:({column:t})=>e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx($,{column:t,title:n("table.columns.status")}),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsx(Xl,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-muted-foreground"})}),e.jsx(oe,{side:"top",className:"max-w-[200px] text-sm",children:n("status.tooltip")})]})})]}),cell:({row:t})=>{const r=bt.find(a=>a.value===t.getValue("status"));return r?e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[r.icon&&e.jsx(r.icon,{className:`h-4 w-4 text-${r.color}`}),e.jsx("span",{className:"text-sm font-medium",children:n(`status.${eh(r.value)}`)})]}),r.value===le.PENDING&&e.jsxs($s,{modal:!0,children:[e.jsx(As,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(Ca,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:n("actions.openMenu")})]})}),e.jsxs(Rs,{align:"end",className:"w-[140px]",children:[e.jsx(_e,{className:"cursor-pointer",onClick:async()=>{await tt.markPaid({trade_no:t.original.trade_no}),s()},children:n("actions.markAsPaid")}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await tt.makeCancel({trade_no:t.original.trade_no}),s()},children:n("actions.cancel")})]})]})]}):null},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_balance",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.commission")}),cell:({row:t})=>{const r=t.getValue("commission_balance"),a=r?(r/100).toFixed(2):"-";return e.jsx("div",{className:"flex items-center font-mono text-foreground/90",children:r?`¥${a}`:"-"})},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_status",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.commissionStatus")}),cell:({row:t})=>{const r=t.original.status,a=t.original.commission_balance,i=qt.find(l=>l.value===t.getValue("commission_status"));return a==0||!i?e.jsx("span",{className:"text-muted-foreground",children:"-"}):e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[i.icon&&e.jsx(i.icon,{className:`h-4 w-4 text-${i.color}`}),e.jsx("span",{className:"text-sm font-medium",children:n(`commission.${sh(i.value)}`)})]}),i.value===Ne.PENDING&&r===le.COMPLETED&&e.jsxs($s,{modal:!0,children:[e.jsx(As,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(Ca,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:n("actions.openMenu")})]})}),e.jsxs(Rs,{align:"end",className:"w-[120px]",children:[e.jsx(_e,{className:"cursor-pointer",onClick:async()=>{await tt.update({trade_no:t.original.trade_no,commission_status:Ne.PROCESSING}),s()},children:n("commission.PROCESSING")}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await tt.update({trade_no:t.original.trade_no,commission_status:Ne.INVALID}),s()},children:n("commission.INVALID")})]})]})]})},enableSorting:!0,enableHiding:!1},{accessorKey:"created_at",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.createdAt")}),cell:({row:t})=>e.jsx("div",{className:"text-nowrap font-mono text-sm text-muted-foreground",children:xe(t.getValue("created_at"),"YYYY/MM/DD HH:mm:ss")}),enableSorting:!0,enableHiding:!1}]};function nh(){const[s]=_l(),[n,t]=m.useState({}),[r,a]=m.useState({}),[i,l]=m.useState([]),[d,u]=m.useState([]),[o,c]=m.useState({pageIndex:0,pageSize:20});m.useEffect(()=>{const _=Object.entries({user_id:"string",order_id:"string",commission_status:"number",status:"number",commission_balance:"string"}).map(([w,V])=>{const F=s.get(w);return F?{id:w,value:V==="number"?parseInt(F):F}:null}).filter(Boolean);_.length>0&&l(_)},[s]);const{refetch:h,data:S,isLoading:T}=ne({queryKey:["orderList",o,i,d],queryFn:()=>tt.getList({pageSize:o.pageSize,current:o.pageIndex+1,filter:i,sort:d})}),C=ss({data:S?.data??[],columns:ah(h),state:{sorting:d,columnVisibility:r,rowSelection:n,columnFilters:i,pagination:o},rowCount:S?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:t,onSortingChange:u,onColumnFiltersChange:l,onColumnVisibilityChange:a,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:c,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:C,toolbar:e.jsx(Yx,{table:C,refetch:h}),showPagination:!0})}function rh(){const{t:s}=I("order");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(nh,{})})]})]})}const lh=Object.freeze(Object.defineProperty({__proto__:null,default:rh},Symbol.toStringTag,{value:"Module"}));function ih({column:s,title:n,options:t}){const r=s?.getFacetedUniqueValues(),a=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),n,a?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:a.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:a.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[a.size," selected"]}):t.filter(i=>a.has(i.value)).map(i=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:i.label},i.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:n}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(i=>{const l=a.has(i.value);return e.jsxs(We,{onSelect:()=>{l?a.delete(i.value):a.add(i.value);const d=Array.from(a);s?.setFilterValue(d.length?d:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",l?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:y("h-4 w-4")})}),i.icon&&e.jsx(i.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${i.color}`}),e.jsx("span",{children:i.label}),r?.get(i.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(i.value)})]},i.value)})}),a.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const oh=s=>x.object({id:x.coerce.number().nullable().optional(),name:x.string().min(1,s("form.name.required")),code:x.string().nullable(),type:x.coerce.number(),value:x.coerce.number(),started_at:x.coerce.number(),ended_at:x.coerce.number(),limit_use:x.union([x.string(),x.number()]).nullable(),limit_use_with_user:x.union([x.string(),x.number()]).nullable(),generate_count:x.coerce.number().nullable().optional(),limit_plan_ids:x.array(x.coerce.number()).default([]).nullable(),limit_period:x.array(x.nativeEnum(Wt)).default([]).nullable()}).refine(n=>n.ended_at>n.started_at,{message:s("form.validity.endTimeError"),path:["ended_at"]}),br={name:"",code:null,type:hs.AMOUNT,value:0,started_at:Math.floor(Date.now()/1e3),ended_at:Math.floor(Date.now()/1e3)+7*24*60*60,limit_use:null,limit_use_with_user:null,limit_plan_ids:[],limit_period:[],generate_count:null},ch=s=>[{label:s("form.timeRange.presets.1week"),days:7},{label:s("form.timeRange.presets.2weeks"),days:14},{label:s("form.timeRange.presets.1month"),days:30},{label:s("form.timeRange.presets.3months"),days:90},{label:s("form.timeRange.presets.6months"),days:180},{label:s("form.timeRange.presets.1year"),days:365}];function ii({defaultValues:s,refetch:n,type:t="create",dialogTrigger:r=null,open:a,onOpenChange:i}){const{t:l}=I("coupon"),[d,u]=m.useState(!1),o=a??d,c=i??u,[h,S]=m.useState([]),T=oh(l),C=ch(l),f=we({resolver:Ce(T),defaultValues:s||br});m.useEffect(()=>{s&&f.reset(s)},[s,f]),m.useEffect(()=>{gs.getList().then(({data:g})=>S(g))},[]);const _=g=>{if(!g)return;const b=(k,O)=>{const R=new Date(O*1e3);return k.setHours(R.getHours(),R.getMinutes(),R.getSeconds()),Math.floor(k.getTime()/1e3)};g.from&&f.setValue("started_at",b(g.from,f.watch("started_at"))),g.to&&f.setValue("ended_at",b(g.to,f.watch("ended_at")))},w=g=>{const b=new Date,k=Math.floor(b.getTime()/1e3),O=Math.floor((b.getTime()+g*24*60*60*1e3)/1e3);f.setValue("started_at",k),f.setValue("ended_at",O)},V=async g=>{const b=await Ta.save(g);if(g.generate_count&&typeof b=="string"){const k=new Blob([b],{type:"text/csv;charset=utf-8;"}),O=document.createElement("a");O.href=window.URL.createObjectURL(k),O.download=`coupons_${new Date().getTime()}.csv`,O.click(),window.URL.revokeObjectURL(O.href)}c(!1),t==="create"&&f.reset(br),n()},F=(g,b)=>e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx("div",{className:"text-sm font-medium text-muted-foreground",children:b}),e.jsx(D,{type:"datetime-local",step:"1",value:xe(f.watch(g),"YYYY-MM-DDTHH:mm:ss"),onChange:k=>{const O=new Date(k.target.value);f.setValue(g,Math.floor(O.getTime()/1e3))},className:"h-8 [&::-webkit-calendar-picker-indicator]:hidden"})]});return e.jsxs(ge,{open:o,onOpenChange:c,children:[r&&e.jsx(as,{asChild:!0,children:r}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(be,{children:e.jsx(fe,{children:l(t==="create"?"form.add":"form.edit")})}),e.jsx(Se,{...f,children:e.jsxs("form",{onSubmit:f.handleSubmit(V),className:"space-y-4",children:[e.jsx(v,{control:f.control,name:"name",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.name.label")}),e.jsx(D,{placeholder:l("form.name.placeholder"),...g}),e.jsx(P,{})]})}),t==="create"&&e.jsx(v,{control:f.control,name:"generate_count",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.generateCount.label")}),e.jsx(D,{type:"number",min:0,placeholder:l("form.generateCount.placeholder"),...g,value:g.value??"",onChange:b=>g.onChange(b.target.value===""?null:parseInt(b.target.value)),className:"h-9"}),e.jsx(z,{className:"text-xs",children:l("form.generateCount.description")}),e.jsx(P,{})]})}),(!f.watch("generate_count")||f.watch("generate_count")==null)&&e.jsx(v,{control:f.control,name:"code",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.code.label")}),e.jsx(D,{placeholder:l("form.code.placeholder"),...g,value:g.value??"",className:"h-9"}),e.jsx(z,{className:"text-xs",children:l("form.code.description")}),e.jsx(P,{})]})}),e.jsxs(p,{children:[e.jsx(j,{children:l("form.type.label")}),e.jsxs("div",{className:"flex",children:[e.jsx(v,{control:f.control,name:"type",render:({field:g})=>e.jsxs(J,{value:g.value.toString(),onValueChange:b=>{const k=g.value,O=parseInt(b);g.onChange(O);const R=f.getValues("value");R&&(k===hs.AMOUNT&&O===hs.PERCENTAGE?f.setValue("value",R/100):k===hs.PERCENTAGE&&O===hs.AMOUNT&&f.setValue("value",R*100))},children:[e.jsx(W,{className:"flex-[1.2] rounded-r-none border-r-0 focus:z-10",children:e.jsx(Q,{placeholder:l("form.type.placeholder")})}),e.jsx(Y,{children:Object.entries(vm).map(([b,k])=>e.jsx(A,{value:b,children:l(`table.toolbar.types.${b}`)},b))})]})}),e.jsx(v,{control:f.control,name:"value",render:({field:g})=>{const b=g.value==null?"":f.watch("type")===hs.AMOUNT&&typeof g.value=="number"?(g.value/100).toString():g.value.toString();return e.jsx(D,{type:"number",placeholder:l("form.value.placeholder"),...g,value:b,onChange:k=>{const O=k.target.value;if(O===""){g.onChange("");return}const R=parseFloat(O);isNaN(R)||g.onChange(f.watch("type")===hs.AMOUNT?Math.round(R*100):R)},step:"any",min:0,className:"flex-[2] rounded-none border-x-0 text-left"})}}),e.jsx("div",{className:"flex min-w-[40px] items-center justify-center rounded-md rounded-l-none border border-l-0 border-input bg-muted/50 px-3 font-medium text-muted-foreground",children:e.jsx("span",{children:f.watch("type")==hs.AMOUNT?"¥":"%"})})]})]}),e.jsxs(p,{children:[e.jsx(j,{children:l("form.validity.label")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:y("w-full justify-start text-left font-normal",!f.watch("started_at")&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),e.jsxs("span",{className:"truncate",children:[xe(f.watch("started_at"),"YYYY-MM-DD HH:mm:ss")," ",l("form.validity.to")," ",xe(f.watch("ended_at"),"YYYY-MM-DD HH:mm:ss")]})]})}),e.jsxs(Ze,{className:"w-auto p-0",align:"start",children:[e.jsxs("div",{className:"border-b border-border p-3",children:[e.jsx("div",{className:"mb-2 text-sm font-medium text-muted-foreground",children:l("form.timeRange.quickSet")}),e.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-6",children:C.map(g=>e.jsx(L,{variant:"outline",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>w(g.days),type:"button",children:g.label},g.days))})]}),e.jsx("div",{className:"hidden border-b border-border sm:block",children:e.jsx(vs,{mode:"range",selected:{from:new Date(f.watch("started_at")*1e3),to:new Date(f.watch("ended_at")*1e3)},onSelect:_,numberOfMonths:2})}),e.jsx("div",{className:"border-b border-border sm:hidden",children:e.jsx(vs,{mode:"range",selected:{from:new Date(f.watch("started_at")*1e3),to:new Date(f.watch("ended_at")*1e3)},onSelect:_,numberOfMonths:1})}),e.jsx("div",{className:"p-3",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center",children:[F("started_at",l("table.validity.startTime")),e.jsx("div",{className:"text-center text-sm text-muted-foreground sm:mt-6",children:l("form.validity.to")}),F("ended_at",l("table.validity.endTime"))]})})]})]}),e.jsx(P,{})]}),e.jsx(v,{control:f.control,name:"limit_use",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.limitUse.label")}),e.jsx(D,{type:"number",min:0,placeholder:l("form.limitUse.placeholder"),...g,value:g.value??"",onChange:b=>g.onChange(b.target.value===""?null:parseInt(b.target.value)),className:"h-9"}),e.jsx(z,{className:"text-xs",children:l("form.limitUse.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:f.control,name:"limit_use_with_user",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.limitUseWithUser.label")}),e.jsx(D,{type:"number",min:0,placeholder:l("form.limitUseWithUser.placeholder"),...g,value:g.value??"",onChange:b=>g.onChange(b.target.value===""?null:parseInt(b.target.value)),className:"h-9"}),e.jsx(z,{className:"text-xs",children:l("form.limitUseWithUser.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:f.control,name:"limit_period",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.limitPeriod.label")}),e.jsx(Tt,{options:Object.entries(Wt).filter(([b])=>isNaN(Number(b))).map(([b,k])=>({label:l(`coupon:period.${k}`),value:b})),onChange:b=>{if(b.length===0){g.onChange([]);return}const k=b.map(O=>Wt[O.value]);g.onChange(k)},value:(g.value||[]).map(b=>({label:l(`coupon:period.${b}`),value:Object.entries(Wt).find(([k,O])=>O===b)?.[0]||""})),placeholder:l("form.limitPeriod.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:l("form.limitPeriod.empty")})}),e.jsx(z,{className:"text-xs",children:l("form.limitPeriod.description")}),e.jsx(P,{})]})}),e.jsx(v,{control:f.control,name:"limit_plan_ids",render:({field:g})=>e.jsxs(p,{children:[e.jsx(j,{children:l("form.limitPlan.label")}),e.jsx(Tt,{options:h?.map(b=>({label:b.name,value:b.id.toString()}))||[],onChange:b=>g.onChange(b.map(k=>Number(k.value))),value:(h||[]).filter(b=>(g.value||[]).includes(b.id)).map(b=>({label:b.name,value:b.id.toString()})),placeholder:l("form.limitPlan.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:l("form.limitPlan.empty")})}),e.jsx(P,{})]})}),e.jsx(Pe,{children:e.jsx(L,{type:"submit",disabled:f.formState.isSubmitting,children:f.formState.isSubmitting?l("form.submit.saving"):l("form.submit.save")})})]})})]})]})}function dh({table:s,refetch:n}){const t=s.getState().columnFilters.length>0,{t:r}=I("coupon");return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ii,{refetch:n,dialogTrigger:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:r("form.add")})]})}),e.jsx(D,{placeholder:r("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:a=>s.getColumn("name")?.setFilterValue(a.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),s.getColumn("type")&&e.jsx(ih,{column:s.getColumn("type"),title:r("table.toolbar.type"),options:[{value:hs.AMOUNT,label:r(`table.toolbar.types.${hs.AMOUNT}`)},{value:hs.PERCENTAGE,label:r(`table.toolbar.types.${hs.PERCENTAGE}`)}]}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("table.toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})}const oi=m.createContext(void 0);function mh({children:s,refetch:n}){const[t,r]=m.useState(!1),[a,i]=m.useState(null),l=u=>{i(u),r(!0)},d=()=>{r(!1),i(null)};return e.jsxs(oi.Provider,{value:{isOpen:t,currentCoupon:a,openEdit:l,closeEdit:d},children:[s,a&&e.jsx(ii,{defaultValues:a,refetch:n,type:"edit",open:t,onOpenChange:r})]})}function uh(){const s=m.useContext(oi);if(s===void 0)throw new Error("useCouponEdit must be used within a CouponEditProvider");return s}const xh=s=>{const{t:n}=I("coupon");return[{accessorKey:"id",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.id")}),cell:({row:t})=>e.jsx(U,{children:t.original.id}),enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.show")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.original.show,onCheckedChange:r=>{Ta.update({id:t.original.id,show:r}).then(({data:a})=>!a&&s())}}),enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{children:t.original.name})}),enableSorting:!1,size:800},{accessorKey:"type",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.type")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:n(`table.toolbar.types.${t.original.type}`)}),enableSorting:!0},{accessorKey:"code",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.code")}),cell:({row:t})=>e.jsx(U,{variant:"secondary",children:t.original.code}),enableSorting:!0},{accessorKey:"limit_use",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.limitUse")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:t.original.limit_use===null?n("table.validity.unlimited"):t.original.limit_use}),enableSorting:!0},{accessorKey:"limit_use_with_user",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.limitUseWithUser")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:t.original.limit_use_with_user===null?n("table.validity.noLimit"):t.original.limit_use_with_user}),enableSorting:!0},{accessorKey:"#",header:({column:t})=>e.jsx($,{column:t,title:n("table.columns.validity")}),cell:({row:t})=>{const[r,a]=m.useState(!1),i=Date.now(),l=t.original.started_at*1e3,d=t.original.ended_at*1e3,u=i>d,o=ie.jsx($,{className:"justify-end",column:t,title:n("table.columns.actions")}),cell:({row:t})=>{const{openEdit:r}=uh();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>r(t.original),children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:n("table.actions.edit")})]}),e.jsx(ps,{title:n("table.actions.deleteConfirm.title"),description:n("table.actions.deleteConfirm.description"),confirmText:n("table.actions.deleteConfirm.confirmText"),variant:"destructive",onConfirm:async()=>{Ta.drop({id:t.original.id}).then(({data:a})=>{a&&(q.success("删除成功"),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:n("table.actions.delete")})]})})]})}}]};function hh(){const[s,n]=m.useState({}),[t,r]=m.useState({}),[a,i]=m.useState([]),[l,d]=m.useState([]),[u,o]=m.useState({pageIndex:0,pageSize:20}),{refetch:c,data:h}=ne({queryKey:["couponList",u,a,l],queryFn:()=>Ta.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:a,sort:l})}),S=ss({data:h?.data??[],columns:xh(c),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:a,pagination:u},pageCount:Math.ceil((h?.total??0)/u.pageSize),rowCount:h?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:i,onColumnVisibilityChange:r,onPaginationChange:o,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(mh,{refetch:c,children:e.jsx("div",{className:"space-y-4",children:e.jsx(xs,{table:S,toolbar:e.jsx(dh,{table:S,refetch:c})})})})}function gh(){const{t:s}=I("coupon");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(hh,{})})]})]})}const fh=Object.freeze(Object.defineProperty({__proto__:null,default:gh},Symbol.toStringTag,{value:"Module"})),ph=1,jh=1e6;let cn=0;function vh(){return cn=(cn+1)%Number.MAX_SAFE_INTEGER,cn.toString()}const dn=new Map,yr=s=>{if(dn.has(s))return;const n=setTimeout(()=>{dn.delete(s),Yt({type:"REMOVE_TOAST",toastId:s})},jh);dn.set(s,n)},bh=(s,n)=>{switch(n.type){case"ADD_TOAST":return{...s,toasts:[n.toast,...s.toasts].slice(0,ph)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(t=>t.id===n.toast.id?{...t,...n.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=n;return t?yr(t):s.toasts.forEach(r=>{yr(r.id)}),{...s,toasts:s.toasts.map(r=>r.id===t||t===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return n.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(t=>t.id!==n.toastId)}}},pa=[];let ja={toasts:[]};function Yt(s){ja=bh(ja,s),pa.forEach(n=>{n(ja)})}function yh({...s}){const n=vh(),t=a=>Yt({type:"UPDATE_TOAST",toast:{...a,id:n}}),r=()=>Yt({type:"DISMISS_TOAST",toastId:n});return Yt({type:"ADD_TOAST",toast:{...s,id:n,open:!0,onOpenChange:a=>{a||r()}}}),{id:n,dismiss:r,update:t}}function ci(){const[s,n]=m.useState(ja);return m.useEffect(()=>(pa.push(n),()=>{const t=pa.indexOf(n);t>-1&&pa.splice(t,1)}),[s]),{...s,toast:yh,dismiss:t=>Yt({type:"DISMISS_TOAST",toastId:t})}}function Nh({open:s,onOpenChange:n,table:t}){const{t:r}=I("user"),{toast:a}=ci(),[i,l]=m.useState(!1),[d,u]=m.useState(""),[o,c]=m.useState(""),h=async()=>{if(!d||!o){a({title:r("messages.error"),description:r("messages.send_mail.required_fields"),variant:"destructive"});return}try{l(!0),await Ps.sendMail({subject:d,content:o,filter:t.getState().columnFilters,sort:t.getState().sorting[0]?.id,sort_type:t.getState().sorting[0]?.desc?"DESC":"ASC"}),a({title:r("messages.success"),description:r("messages.send_mail.success")}),n(!1),u(""),c("")}catch{a({title:r("messages.error"),description:r("messages.send_mail.failed"),variant:"destructive"})}finally{l(!1)}};return e.jsx(ge,{open:s,onOpenChange:n,children:e.jsxs(ue,{className:"sm:max-w-[500px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:r("send_mail.title")}),e.jsx(Ve,{children:r("send_mail.description")})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"subject",className:"text-right",children:r("send_mail.subject")}),e.jsx(D,{id:"subject",value:d,onChange:S=>u(S.target.value),className:"col-span-3"})]}),e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"content",className:"text-right",children:r("send_mail.content")}),e.jsx(Ls,{id:"content",value:o,onChange:S=>c(S.target.value),className:"col-span-3",rows:6})]})]}),e.jsx(Pe,{children:e.jsx(G,{type:"submit",onClick:h,disabled:i,children:r(i?"send_mail.sending":"send_mail.send")})})]})})}function _h({trigger:s}){const{t:n}=I("user"),[t,r]=m.useState(!1),[a,i]=m.useState(30),{data:l,isLoading:d}=ne({queryKey:["trafficResetStats",a],queryFn:()=>Zt.getStats({days:a}),enabled:t}),u=[{title:n("traffic_reset.stats.total_resets"),value:l?.data?.total_resets||0,icon:Kt,color:"text-blue-600",bgColor:"bg-blue-100"},{title:n("traffic_reset.stats.auto_resets"),value:l?.data?.auto_resets||0,icon:_a,color:"text-green-600",bgColor:"bg-green-100"},{title:n("traffic_reset.stats.manual_resets"),value:l?.data?.manual_resets||0,icon:ks,color:"text-orange-600",bgColor:"bg-orange-100"},{title:n("traffic_reset.stats.cron_resets"),value:l?.data?.cron_resets||0,icon:Rn,color:"text-purple-600",bgColor:"bg-purple-100"}],o=[{value:7,label:n("traffic_reset.stats.days_options.week")},{value:30,label:n("traffic_reset.stats.days_options.month")},{value:90,label:n("traffic_reset.stats.days_options.quarter")},{value:365,label:n("traffic_reset.stats.days_options.year")}];return e.jsxs(ge,{open:t,onOpenChange:r,children:[e.jsx(as,{asChild:!0,children:s}),e.jsxs(ue,{className:"max-w-2xl",children:[e.jsxs(be,{children:[e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(Dn,{className:"h-5 w-5"}),n("traffic_reset.stats.title")]}),e.jsx(Ve,{children:n("traffic_reset.stats.description")})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-lg font-medium",children:n("traffic_reset.stats.time_range")}),e.jsxs(J,{value:a.toString(),onValueChange:c=>i(Number(c)),children:[e.jsx(W,{className:"w-[180px]",children:e.jsx(Q,{})}),e.jsx(Y,{children:o.map(c=>e.jsx(A,{value:c.value.toString(),children:c.label},c.value))})]})]}),d?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(Jt,{className:"h-6 w-6 animate-spin"})}):e.jsx("div",{className:"grid grid-cols-2 gap-4",children:u.map((c,h)=>e.jsxs(Re,{className:"relative overflow-hidden",children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(Ge,{className:"text-sm font-medium text-muted-foreground",children:c.title}),e.jsx("div",{className:`rounded-lg p-2 ${c.bgColor}`,children:e.jsx(c.icon,{className:`h-4 w-4 ${c.color}`})})]}),e.jsxs(Ie,{children:[e.jsx("div",{className:"text-2xl font-bold",children:c.value.toLocaleString()}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n("traffic_reset.stats.in_period",{days:a})})]})]},h))}),l?.data&&e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsx(Ge,{className:"text-lg",children:n("traffic_reset.stats.breakdown")}),e.jsx(zs,{children:n("traffic_reset.stats.breakdown_description")})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:n("traffic_reset.stats.auto_percentage")}),e.jsxs(U,{variant:"outline",className:"border-green-200 bg-green-50 text-green-700",children:[l.data.total_resets>0?(l.data.auto_resets/l.data.total_resets*100).toFixed(1):0,"%"]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:n("traffic_reset.stats.manual_percentage")}),e.jsxs(U,{variant:"outline",className:"border-orange-200 bg-orange-50 text-orange-700",children:[l.data.total_resets>0?(l.data.manual_resets/l.data.total_resets*100).toFixed(1):0,"%"]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:n("traffic_reset.stats.cron_percentage")}),e.jsxs(U,{variant:"outline",className:"border-purple-200 bg-purple-50 text-purple-700",children:[l.data.total_resets>0?(l.data.cron_resets/l.data.total_resets*100).toFixed(1):0,"%"]})]})]})})]})]})]})]})}const wh=x.object({email_prefix:x.string().optional(),email_suffix:x.string().min(1),password:x.string().optional(),expired_at:x.number().optional().nullable(),plan_id:x.number().nullable(),generate_count:x.number().optional().nullable(),download_csv:x.boolean().optional()}).refine(s=>s.generate_count===null?s.email_prefix!==void 0&&s.email_prefix!=="":!0,{message:"Email prefix is required when generate_count is null",path:["email_prefix"]}),Ch={email_prefix:"",email_suffix:"",password:"",expired_at:null,plan_id:null,generate_count:void 0,download_csv:!1};function Sh({refetch:s}){const{t:n}=I("user"),[t,r]=m.useState(!1),a=we({resolver:Ce(wh),defaultValues:Ch,mode:"onChange"}),[i,l]=m.useState([]);return m.useEffect(()=>{t&&gs.getList().then(({data:d})=>{d&&l(d)})},[t]),e.jsxs(ge,{open:t,onOpenChange:r,children:[e.jsx(as,{asChild:!0,children:e.jsxs(G,{size:"sm",variant:"outline",className:"gap-0 space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:n("generate.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:n("generate.title")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...a,children:[e.jsxs(p,{children:[e.jsx(j,{children:n("generate.form.email")}),e.jsxs("div",{className:"flex",children:[!a.watch("generate_count")&&e.jsx(v,{control:a.control,name:"email_prefix",render:({field:d})=>e.jsx(D,{className:"flex-[5] rounded-r-none",placeholder:n("generate.form.email_prefix"),...d})}),e.jsx("div",{className:`z-[-1] border border-r-0 border-input px-3 py-1 shadow-sm ${a.watch("generate_count")?"rounded-l-md":"border-l-0"}`,children:"@"}),e.jsx(v,{control:a.control,name:"email_suffix",render:({field:d})=>e.jsx(D,{className:"flex-[4] rounded-l-none",placeholder:n("generate.form.email_domain"),...d})})]})]}),e.jsx(v,{control:a.control,name:"password",render:({field:d})=>e.jsxs(p,{children:[e.jsx(j,{children:n("generate.form.password")}),e.jsx(D,{placeholder:n("generate.form.password_placeholder"),...d}),e.jsx(P,{})]})}),e.jsx(v,{control:a.control,name:"expired_at",render:({field:d})=>e.jsxs(p,{className:"flex flex-col",children:[e.jsx(j,{children:n("generate.form.expire_time")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsx(N,{children:e.jsxs(G,{variant:"outline",className:y("w-full pl-3 text-left font-normal",!d.value&&"text-muted-foreground"),children:[d.value?xe(d.value):e.jsx("span",{children:n("generate.form.expire_time_placeholder")}),e.jsx(ks,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsxs(Ze,{className:"flex w-auto flex-col space-y-2 p-2",children:[e.jsx(ad,{asChild:!0,children:e.jsx(G,{variant:"outline",className:"w-full",onClick:()=>{d.onChange(null)},children:n("generate.form.permanent")})}),e.jsx("div",{className:"rounded-md border",children:e.jsx(vs,{mode:"single",selected:d.value?new Date(d.value*1e3):void 0,onSelect:u=>{u&&d.onChange(u?.getTime()/1e3)}})})]})]})]})}),e.jsx(v,{control:a.control,name:"plan_id",render:({field:d})=>e.jsxs(p,{children:[e.jsx(j,{children:n("generate.form.subscription")}),e.jsx(N,{children:e.jsxs(J,{value:d.value?d.value.toString():"null",onValueChange:u=>d.onChange(u==="null"?null:parseInt(u)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("generate.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"null",children:n("generate.form.subscription_none")}),i.map(u=>e.jsx(A,{value:u.id.toString(),children:u.name},u.id))]})]})})]})}),!a.watch("email_prefix")&&e.jsx(v,{control:a.control,name:"generate_count",render:({field:d})=>e.jsxs(p,{children:[e.jsx(j,{children:n("generate.form.generate_count")}),e.jsx(D,{type:"number",placeholder:n("generate.form.generate_count_placeholder"),value:d.value||"",onChange:u=>d.onChange(u.target.value?parseInt(u.target.value):null)})]})}),a.watch("generate_count")&&e.jsx(v,{control:a.control,name:"download_csv",render:({field:d})=>e.jsxs(p,{className:"flex cursor-pointer flex-row items-center space-x-2 space-y-0",children:[e.jsx(N,{children:e.jsx(Hn,{checked:d.value,onCheckedChange:d.onChange})}),e.jsx(j,{children:n("generate.form.download_csv")})]})})]}),e.jsxs(Pe,{children:[e.jsx(G,{variant:"outline",onClick:()=>r(!1),children:n("generate.form.cancel")}),e.jsx(G,{onClick:()=>a.handleSubmit(async d=>{if(d.download_csv){const u=await Ps.generate(d);if(u&&u instanceof Blob){const o=window.URL.createObjectURL(u),c=document.createElement("a");c.href=o,c.download=`users_${new Date().getTime()}.csv`,document.body.appendChild(c),c.click(),c.remove(),window.URL.revokeObjectURL(o),q.success(n("generate.form.success")),a.reset(),s(),r(!1)}}else{const{data:u}=await Ps.generate(d);u&&(q.success(n("generate.form.success")),a.reset(),s(),r(!1))}})(),children:n("generate.form.submit")})]})]})]})}const Un=Lr,di=Pr,kh=Rr,mi=m.forwardRef(({className:s,...n},t)=>e.jsx(Pa,{className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...n,ref:t}));mi.displayName=Pa.displayName;const Th=it("fixed overflow-y-scroll z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-md",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-md"}},defaultVariants:{side:"right"}}),Wa=m.forwardRef(({side:s="right",className:n,children:t,...r},a)=>e.jsxs(kh,{children:[e.jsx(mi,{}),e.jsxs(Ra,{ref:a,className:y(Th({side:s}),n),...r,children:[e.jsxs(wn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(ms,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),t]})]}));Wa.displayName=Ra.displayName;const Ya=({className:s,...n})=>e.jsx("div",{className:y("flex flex-col space-y-2 text-center sm:text-left",s),...n});Ya.displayName="SheetHeader";const ui=({className:s,...n})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...n});ui.displayName="SheetFooter";const Ja=m.forwardRef(({className:s,...n},t)=>e.jsx(Ea,{ref:t,className:y("text-lg font-semibold text-foreground",s),...n}));Ja.displayName=Ea.displayName;const Qa=m.forwardRef(({className:s,...n},t)=>e.jsx(Fa,{ref:t,className:y("text-sm text-muted-foreground",s),...n}));Qa.displayName=Fa.displayName;function Dh({table:s,refetch:n,permissionGroups:t=[],subscriptionPlans:r=[]}){const{t:a}=I("user"),{toast:i}=ci(),l=s.getState().columnFilters.length>0,[d,u]=m.useState([]),[o,c]=m.useState(!1),[h,S]=m.useState(!1),[T,C]=m.useState(!1),[f,_]=m.useState(!1),w=async()=>{try{const ee=await Ps.dumpCSV({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),te=ee;console.log(ee);const H=new Blob([te],{type:"text/csv;charset=utf-8;"}),E=window.URL.createObjectURL(H),X=document.createElement("a");X.href=E,X.setAttribute("download",`users_${new Date().toISOString()}.csv`),document.body.appendChild(X),X.click(),X.remove(),window.URL.revokeObjectURL(E),i({title:a("messages.success"),description:a("messages.export.success")})}catch{i({title:a("messages.error"),description:a("messages.export.failed"),variant:"destructive"})}},V=async()=>{try{_(!0),await Ps.batchBan({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),i({title:a("messages.success"),description:a("messages.batch_ban.success")}),n()}catch{i({title:a("messages.error"),description:a("messages.batch_ban.failed"),variant:"destructive"})}finally{_(!1),C(!1)}},F=[{label:a("filter.fields.email"),value:"email",type:"text",operators:[{label:a("filter.operators.contains"),value:"contains"},{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.id"),value:"id",type:"number",operators:[{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.plan_id"),value:"plan_id",type:"select",operators:[{label:a("filter.operators.eq"),value:"eq"}],useOptions:!0},{label:a("filter.fields.transfer_enable"),value:"transfer_enable",type:"number",unit:"GB",operators:[{label:a("filter.operators.gt"),value:"gt"},{label:a("filter.operators.lt"),value:"lt"},{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.total_used"),value:"total_used",type:"number",unit:"GB",operators:[{label:a("filter.operators.gt"),value:"gt"},{label:a("filter.operators.lt"),value:"lt"},{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.online_count"),value:"online_count",type:"number",operators:[{label:a("filter.operators.eq"),value:"eq"},{label:a("filter.operators.gt"),value:"gt"},{label:a("filter.operators.lt"),value:"lt"}]},{label:a("filter.fields.expired_at"),value:"expired_at",type:"date",operators:[{label:a("filter.operators.lt"),value:"lt"},{label:a("filter.operators.gt"),value:"gt"},{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.uuid"),value:"uuid",type:"text",operators:[{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.token"),value:"token",type:"text",operators:[{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.banned"),value:"banned",type:"select",operators:[{label:a("filter.operators.eq"),value:"eq"}],options:[{label:a("filter.status.normal"),value:"0"},{label:a("filter.status.banned"),value:"1"}]},{label:a("filter.fields.remark"),value:"remarks",type:"text",operators:[{label:a("filter.operators.contains"),value:"contains"},{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.inviter_email"),value:"invite_user.email",type:"text",operators:[{label:a("filter.operators.contains"),value:"contains"},{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.invite_user_id"),value:"invite_user_id",type:"number",operators:[{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.is_admin"),value:"is_admin",type:"boolean",operators:[{label:a("filter.operators.eq"),value:"eq"}]},{label:a("filter.fields.is_staff"),value:"is_staff",type:"boolean",operators:[{label:a("filter.operators.eq"),value:"eq"}]}],g=ee=>ee*1024*1024*1024,b=ee=>ee/(1024*1024*1024),k=()=>{u([...d,{field:"",operator:"",value:""}])},O=ee=>{u(d.filter((te,H)=>H!==ee))},R=(ee,te,H)=>{const E=[...d];if(E[ee]={...E[ee],[te]:H},te==="field"){const X=F.find(Ns=>Ns.value===H);X&&(E[ee].operator=X.operators[0].value,E[ee].value=X.type==="boolean"?!1:"")}u(E)},K=(ee,te)=>{const H=F.find(E=>E.value===ee.field);if(!H)return null;switch(H.type){case"text":return e.jsx(D,{placeholder:a("filter.sheet.value"),value:ee.value,onChange:E=>R(te,"value",E.target.value)});case"number":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(D,{type:"number",placeholder:a("filter.sheet.value_number",{unit:H.unit}),value:H.unit==="GB"?b(ee.value||0):ee.value,onChange:E=>{const X=Number(E.target.value);R(te,"value",H.unit==="GB"?g(X):X)}}),H.unit&&e.jsx("span",{className:"text-sm text-muted-foreground",children:H.unit})]});case"date":return e.jsx(vs,{mode:"single",selected:ee.value,onSelect:E=>R(te,"value",E),className:"flex flex-1 justify-center rounded-md border"});case"select":return e.jsxs(J,{value:ee.value,onValueChange:E=>R(te,"value",E),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("filter.sheet.value")})}),e.jsx(Y,{children:H.useOptions?r.map(E=>e.jsx(A,{value:E.value.toString(),children:E.label},E.value)):H.options?.map(E=>e.jsx(A,{value:E.value.toString(),children:E.label},E.value))})]});case"boolean":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{checked:ee.value,onCheckedChange:E=>R(te,"value",E)}),e.jsx(Ae,{children:ee.value?a("filter.boolean.true"):a("filter.boolean.false")})]});default:return null}},ae=()=>{const ee=d.filter(te=>te.field&&te.operator&&te.value!=="").map(te=>{const H=F.find(X=>X.value===te.field);let E=te.value;return te.operator==="contains"?{id:te.field,value:E}:(H?.type==="date"&&E instanceof Date&&(E=Math.floor(E.getTime()/1e3)),H?.type==="boolean"&&(E=E?1:0),{id:te.field,value:`${te.operator}:${E}`})});s.setColumnFilters(ee),c(!1)};return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-1 flex-wrap items-center gap-2",children:[e.jsx(Sh,{refetch:n}),e.jsx(D,{placeholder:a("filter.email_search"),value:s.getColumn("email")?.getFilterValue()??"",onChange:ee=>s.getColumn("email")?.setFilterValue(ee.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs(Un,{open:o,onOpenChange:c,children:[e.jsx(di,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(nd,{className:"mr-2 h-4 w-4"}),a("filter.advanced"),d.length>0&&e.jsx(U,{variant:"secondary",className:"ml-2 rounded-sm px-1",children:d.length})]})}),e.jsxs(Wa,{className:"w-[400px] sm:w-[540px]",children:[e.jsxs(Ya,{children:[e.jsx(Ja,{children:a("filter.sheet.title")}),e.jsx(Qa,{children:a("filter.sheet.description")})]}),e.jsxs("div",{className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"font-medium",children:a("filter.sheet.conditions")}),e.jsx(L,{variant:"outline",size:"sm",onClick:k,children:a("filter.sheet.add")})]}),e.jsx(lt,{className:"h-[calc(100vh-280px)] ",children:e.jsx("div",{className:"space-y-4",children:d.map((ee,te)=>e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Ae,{children:a("filter.sheet.condition",{number:te+1})}),e.jsx(L,{variant:"ghost",size:"sm",onClick:()=>O(te),children:e.jsx(ms,{className:"h-4 w-4"})})]}),e.jsxs(J,{value:ee.field,onValueChange:H=>R(te,"field",H),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("filter.sheet.field")})}),e.jsx(Y,{children:e.jsx(rs,{children:F.map(H=>e.jsx(A,{value:H.value,className:"cursor-pointer",children:H.label},H.value))})})]}),ee.field&&e.jsxs(J,{value:ee.operator,onValueChange:H=>R(te,"operator",H),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("filter.sheet.operator")})}),e.jsx(Y,{children:F.find(H=>H.value===ee.field)?.operators.map(H=>e.jsx(A,{value:H.value,children:H.label},H.value))})]}),ee.field&&ee.operator&&K(ee,te)]},te))})}),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(L,{variant:"outline",onClick:()=>{u([]),c(!1)},children:a("filter.sheet.reset")}),e.jsx(L,{onClick:ae,children:a("filter.sheet.apply")})]})]})]})]}),l&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),u([])},className:"h-8 px-2 lg:px-3",children:[a("filter.sheet.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]}),e.jsxs($s,{modal:!1,children:[e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:a("actions.title")})}),e.jsxs(Rs,{children:[e.jsx(_e,{onClick:()=>S(!0),children:a("actions.send_email")}),e.jsx(_e,{onClick:w,children:a("actions.export_csv")}),e.jsx(rt,{}),e.jsx(_e,{asChild:!0,children:e.jsx(_h,{trigger:e.jsx("div",{className:"w-full cursor-pointer px-2 py-1.5 text-sm",children:a("actions.traffic_reset_stats")})})}),e.jsx(rt,{}),e.jsx(_e,{onClick:()=>C(!0),className:"text-red-600 focus:text-red-600",children:a("actions.batch_ban")})]})]})]}),e.jsx(Nh,{open:h,onOpenChange:S,table:s}),e.jsx($n,{open:T,onOpenChange:C,children:e.jsxs($a,{children:[e.jsxs(Aa,{children:[e.jsx(Ha,{children:a("actions.confirm_ban.title")}),e.jsx(Ua,{children:a(l?"actions.confirm_ban.filtered_description":"actions.confirm_ban.all_description")})]}),e.jsxs(qa,{children:[e.jsx(Ba,{disabled:f,children:a("actions.confirm_ban.cancel")}),e.jsx(Ka,{onClick:V,disabled:f,className:"bg-red-600 hover:bg-red-700 focus:ring-red-600",children:a(f?"actions.confirm_ban.banning":"actions.confirm_ban.confirm")})]})]})})]})}const xi=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m17.71 11.29l-5-5a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21l-5 5a1 1 0 0 0 1.42 1.42L11 9.41V17a1 1 0 0 0 2 0V9.41l3.29 3.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42"})}),hi=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.71 11.29a1 1 0 0 0-1.42 0L13 14.59V7a1 1 0 0 0-2 0v7.59l-3.29-3.3a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 .33.21a.94.94 0 0 0 .76 0a1 1 0 0 0 .33-.21l5-5a1 1 0 0 0 0-1.42"})}),Lh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17 11H9.41l3.3-3.29a1 1 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33a1 1 0 0 0 0 .76a1 1 0 0 0 .21.33l5 5a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42L9.41 13H17a1 1 0 0 0 0-2"})}),Ph=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76"})}),mn=[{accessorKey:"record_at",header:"时间",cell:({row:s})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("time",{className:"text-sm text-muted-foreground",children:Cd(s.original.record_at)})})},{accessorKey:"u",header:"上行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(xi,{className:"h-4 w-4 text-emerald-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.u/parseFloat(s.original.server_rate))})]})},{accessorKey:"d",header:"下行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(hi,{className:"h-4 w-4 text-blue-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.d/parseFloat(s.original.server_rate))})]})},{accessorKey:"server_rate",header:"倍率",cell:({row:s})=>{const n=s.original.server_rate;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(U,{variant:"outline",className:"font-mono",children:[n,"x"]})})}},{id:"total",header:"总计",cell:({row:s})=>{const n=s.original.u+s.original.d;return e.jsx("div",{className:"flex items-center justify-end font-mono text-sm",children:Oe(n)})}}];function gi({user_id:s,dialogTrigger:n}){const{t}=I(["traffic"]),[r,a]=m.useState(!1),[i,l]=m.useState({pageIndex:0,pageSize:20}),{data:d,isLoading:u}=ne({queryKey:["userStats",s,i,r],queryFn:()=>r?Ps.getStats({user_id:s,pageSize:i.pageSize,page:i.pageIndex+1}):null}),o=ss({data:d?.data??[],columns:mn,pageCount:Math.ceil((d?.total??0)/i.pageSize),state:{pagination:i},manualPagination:!0,getCoreRowModel:ts(),onPaginationChange:l});return e.jsxs(ge,{open:r,onOpenChange:a,children:[e.jsx(as,{asChild:!0,children:n}),e.jsxs(ue,{className:"sm:max-w-[700px]",children:[e.jsx(be,{children:e.jsx(fe,{children:t("trafficRecord.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"rounded-md border",children:e.jsxs(In,{children:[e.jsx(Vn,{children:o.getHeaderGroups().map(c=>e.jsx(Bs,{children:c.headers.map(h=>e.jsx(On,{className:y("h-10 px-2 text-xs",h.id==="total"&&"text-right"),children:h.isPlaceholder?null:ya(h.column.columnDef.header,h.getContext())},h.id))},c.id))}),e.jsx(Mn,{children:u?Array.from({length:i.pageSize}).map((c,h)=>e.jsx(Bs,{children:Array.from({length:mn.length}).map((S,T)=>e.jsx(wt,{className:"p-2",children:e.jsx(ve,{className:"h-6 w-full"})},T))},h)):o.getRowModel().rows?.length?o.getRowModel().rows.map(c=>e.jsx(Bs,{"data-state":c.getIsSelected()&&"selected",className:"h-10",children:c.getVisibleCells().map(h=>e.jsx(wt,{className:"px-2",children:ya(h.column.columnDef.cell,h.getContext())},h.id))},c.id)):e.jsx(Bs,{children:e.jsx(wt,{colSpan:mn.length,className:"h-24 text-center",children:t("trafficRecord.noRecords")})})})]})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.perPage")}),e.jsxs(J,{value:`${o.getState().pagination.pageSize}`,onValueChange:c=>{o.setPageSize(Number(c))},children:[e.jsx(W,{className:"h-8 w-[70px]",children:e.jsx(Q,{placeholder:o.getState().pagination.pageSize})}),e.jsx(Y,{side:"top",children:[10,20,30,40,50].map(c=>e.jsx(A,{value:`${c}`,children:c},c))})]}),e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.records")})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"flex w-[100px] items-center justify-center text-sm",children:t("trafficRecord.page",{current:o.getState().pagination.pageIndex+1,total:o.getPageCount()})}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>o.previousPage(),disabled:!o.getCanPreviousPage()||u,children:e.jsx(Lh,{className:"h-4 w-4"})}),e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>o.nextPage(),disabled:!o.getCanNextPage()||u,children:e.jsx(Ph,{className:"h-4 w-4"})})]})]})]})]})]})]})}function Rh({user:s,trigger:n,onSuccess:t}){const{t:r}=I("user"),[a,i]=m.useState(!1),[l,d]=m.useState(""),[u,o]=m.useState(!1),{data:c,isLoading:h}=ne({queryKey:["trafficResetHistory",s.id],queryFn:()=>Zt.getUserHistory(s.id,{limit:10}),enabled:a}),S=async()=>{try{o(!0);const{data:f}=await Zt.resetUser({user_id:s.id,reason:l.trim()||void 0});f&&(q.success(r("traffic_reset.reset_success")),i(!1),d(""),t?.())}finally{o(!1)}},T=f=>{switch(f){case"manual":return"bg-blue-100 text-blue-800 border-blue-200";case"monthly":return"bg-green-100 text-green-800 border-green-200";case"yearly":return"bg-purple-100 text-purple-800 border-purple-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},C=f=>{switch(f){case"manual":return"bg-orange-100 text-orange-800 border-orange-200";case"cron":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"auto":return"bg-emerald-100 text-emerald-800 border-emerald-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}};return e.jsxs(ge,{open:a,onOpenChange:i,children:[e.jsx(as,{asChild:!0,children:n}),e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-hidden",children:[e.jsxs(be,{children:[e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(Kt,{className:"h-5 w-5"}),r("traffic_reset.title")]}),e.jsx(Ve,{children:r("traffic_reset.description",{email:s.email})})]}),e.jsxs(Lt,{defaultValue:"reset",className:"w-full",children:[e.jsxs(dt,{className:"grid w-full grid-cols-2",children:[e.jsxs(Xe,{value:"reset",className:"flex items-center gap-2",children:[e.jsx(Kt,{className:"h-4 w-4"}),r("traffic_reset.tabs.reset")]}),e.jsxs(Xe,{value:"history",className:"flex items-center gap-2",children:[e.jsx(lr,{className:"h-4 w-4"}),r("traffic_reset.tabs.history")]})]}),e.jsxs(Ts,{value:"reset",className:"space-y-4",children:[e.jsxs(Re,{children:[e.jsx(Fe,{className:"pb-3",children:e.jsxs(Ge,{className:"flex items-center gap-2 text-lg",children:[e.jsx(wl,{className:"h-5 w-5"}),r("traffic_reset.user_info")]})}),e.jsx(Ie,{className:"space-y-3",children:e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.email")}),e.jsx("p",{className:"font-medium",children:s.email})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.used_traffic")}),e.jsx("p",{className:"font-medium",children:Oe(s.total_used)})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.total_traffic")}),e.jsx("p",{className:"font-medium",children:Oe(s.transfer_enable)})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.expire_time")}),e.jsx("p",{className:"font-medium",children:s.expired_at?xe(s.expired_at):r("columns.expire_status.permanent")})]})]})})]}),e.jsxs(Re,{className:"border-amber-200 bg-amber-50",children:[e.jsx(Fe,{className:"pb-3",children:e.jsxs(Ge,{className:"flex items-center gap-2 text-lg text-amber-800",children:[e.jsx(Ut,{className:"h-5 w-5"}),r("traffic_reset.warning.title")]})}),e.jsx(Ie,{children:e.jsxs("ul",{className:"space-y-2 text-sm text-amber-700",children:[e.jsxs("li",{children:["• ",r("traffic_reset.warning.irreversible")]}),e.jsxs("li",{children:["• ",r("traffic_reset.warning.reset_to_zero")]}),e.jsxs("li",{children:["• ",r("traffic_reset.warning.logged")]})]})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"reason",children:r("traffic_reset.reason.label")}),e.jsx(Ls,{id:"reason",placeholder:r("traffic_reset.reason.placeholder"),value:l,onChange:f=>d(f.target.value),className:"min-h-[80px]"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("traffic_reset.reason.optional")})]}),e.jsxs(Pe,{children:[e.jsx(G,{variant:"outline",onClick:()=>i(!1),children:r("common:cancel")}),e.jsx(G,{onClick:S,disabled:u,className:"bg-destructive hover:bg-destructive/90",children:u?e.jsxs(e.Fragment,{children:[e.jsx(Jt,{className:"mr-2 h-4 w-4 animate-spin"}),r("traffic_reset.resetting")]}):e.jsxs(e.Fragment,{children:[e.jsx(Kt,{className:"mr-2 h-4 w-4"}),r("traffic_reset.confirm_reset")]})})]})]}),e.jsx(Ts,{value:"history",className:"space-y-4",children:h?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(Jt,{className:"h-6 w-6 animate-spin"})}):e.jsxs("div",{className:"space-y-4",children:[c?.data?.user&&e.jsxs(Re,{children:[e.jsx(Fe,{className:"pb-3",children:e.jsx(Ge,{className:"text-lg",children:r("traffic_reset.history.summary")})}),e.jsx(Ie,{children:e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.reset_count")}),e.jsx("p",{className:"font-medium",children:c.data.user.reset_count})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.last_reset")}),e.jsx("p",{className:"font-medium",children:c.data.user.last_reset_at?xe(c.data.user.last_reset_at):r("traffic_reset.history.never")})]}),e.jsxs("div",{className:"col-span-2",children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.next_reset")}),e.jsx("p",{className:"font-medium",children:c.data.user.next_reset_at?xe(c.data.user.next_reset_at):r("traffic_reset.history.no_schedule")})]})]})})]}),e.jsxs(Re,{children:[e.jsxs(Fe,{className:"pb-3",children:[e.jsx(Ge,{className:"text-lg",children:r("traffic_reset.history.records")}),e.jsx(zs,{children:r("traffic_reset.history.recent_records")})]}),e.jsx(Ie,{children:e.jsx(lt,{className:"h-[300px]",children:c?.data?.history?.length?e.jsx("div",{className:"space-y-3",children:c.data.history.map((f,_)=>e.jsxs("div",{children:[e.jsx("div",{className:"flex items-start justify-between rounded-lg border bg-card p-3",children:e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(U,{className:T(f.reset_type),children:f.reset_type_name}),e.jsx(U,{variant:"outline",className:C(f.trigger_source),children:f.trigger_source_name})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsxs(Ae,{className:"flex items-center gap-1 text-muted-foreground",children:[e.jsx(Rn,{className:"h-3 w-3"}),r("traffic_reset.history.reset_time")]}),e.jsx("p",{className:"font-medium",children:xe(f.reset_time)})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.traffic_cleared")}),e.jsx("p",{className:"font-medium text-destructive",children:f.old_traffic.formatted})]})]})]})}),_e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M5 18h4.24a1 1 0 0 0 .71-.29l6.92-6.93L19.71 8a1 1 0 0 0 0-1.42l-4.24-4.29a1 1 0 0 0-1.42 0l-2.82 2.83l-6.94 6.93a1 1 0 0 0-.29.71V17a1 1 0 0 0 1 1m9.76-13.59l2.83 2.83l-1.42 1.42l-2.83-2.83ZM6 13.17l5.93-5.93l2.83 2.83L8.83 16H6ZM21 20H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2"})}),Ih=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2"})}),Vh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 8.94a1.3 1.3 0 0 0-.06-.27v-.09a1 1 0 0 0-.19-.28l-6-6a1 1 0 0 0-.28-.19a.3.3 0 0 0-.09 0a.9.9 0 0 0-.33-.11H10a3 3 0 0 0-3 3v1H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-1h1a3 3 0 0 0 3-3zm-6-3.53L17.59 8H16a1 1 0 0 1-1-1ZM15 19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h1v7a3 3 0 0 0 3 3h5Zm4-4a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3v3a3 3 0 0 0 3 3h3Z"})}),Nr=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 11a1 1 0 0 0-1 1a8.05 8.05 0 1 1-2.22-5.5h-2.4a1 1 0 0 0 0 2h4.53a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1.77A10 10 0 1 0 22 12a1 1 0 0 0-1-1"})}),Mh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9.5 10.5H12a1 1 0 0 0 0-2h-1V8a1 1 0 0 0-2 0v.55a2.5 2.5 0 0 0 .5 4.95h1a.5.5 0 0 1 0 1H8a1 1 0 0 0 0 2h1v.5a1 1 0 0 0 2 0v-.55a2.5 2.5 0 0 0-.5-4.95h-1a.5.5 0 0 1 0-1M21 12h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Z"})}),Oh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12.3 12.22A4.92 4.92 0 0 0 14 8.5a5 5 0 0 0-10 0a4.92 4.92 0 0 0 1.7 3.72A8 8 0 0 0 1 19.5a1 1 0 0 0 2 0a6 6 0 0 1 12 0a1 1 0 0 0 2 0a8 8 0 0 0-4.7-7.28M9 11.5a3 3 0 1 1 3-3a3 3 0 0 1-3 3m9.74.32A5 5 0 0 0 15 3.5a1 1 0 0 0 0 2a3 3 0 0 1 3 3a3 3 0 0 1-1.5 2.59a1 1 0 0 0-.5.84a1 1 0 0 0 .45.86l.39.26l.13.07a7 7 0 0 1 4 6.38a1 1 0 0 0 2 0a9 9 0 0 0-4.23-7.68"})}),zh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12 2a10 10 0 0 0-6.88 2.77V3a1 1 0 0 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2h-2.4A8 8 0 1 1 4 12a1 1 0 0 0-2 0A10 10 0 1 0 12 2m0 6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2h-1V9a1 1 0 0 0-1-1"})}),$h=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2M10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Z"})}),Ah=(s,n,t,r)=>{const{t:a}=I("user");return[{accessorKey:"is_admin",header:({column:i})=>e.jsx($,{column:i,title:a("columns.is_admin")}),enableSorting:!1,enableHiding:!0,filterFn:(i,l,d)=>d.includes(i.getValue(l)),size:0},{accessorKey:"is_staff",header:({column:i})=>e.jsx($,{column:i,title:a("columns.is_staff")}),enableSorting:!1,enableHiding:!0,filterFn:(i,l,d)=>d.includes(i.getValue(l)),size:0},{accessorKey:"id",header:({column:i})=>e.jsx($,{column:i,title:a("columns.id")}),cell:({row:i})=>e.jsx(U,{variant:"outline",children:i.original.id}),enableSorting:!0,enableHiding:!1},{accessorKey:"email",header:({column:i})=>e.jsx($,{column:i,title:a("columns.email")}),cell:({row:i})=>{const l=i.original.t||0,d=Date.now()/1e3-l<120,u=Math.floor(Date.now()/1e3-l);let o=d?a("columns.online_status.online"):l===0?a("columns.online_status.never"):a("columns.online_status.last_online",{time:xe(l)});if(!d&&l!==0){const c=Math.floor(u/60),h=Math.floor(c/60),S=Math.floor(h/24);S>0?o+=` -`+a("columns.online_status.offline_duration.days",{count:S}):h>0?o+=` -`+a("columns.online_status.offline_duration.hours",{count:h}):c>0?o+=` -`+a("columns.online_status.offline_duration.minutes",{count:c}):o+=` -`+a("columns.online_status.offline_duration.seconds",{count:u})}return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:y("size-2.5 rounded-full ring-2 ring-offset-2",d?"bg-green-500 ring-green-500/20":"bg-gray-300 ring-gray-300/20","transition-all duration-300")}),e.jsx("span",{className:"font-medium text-foreground/90",children:i.original.email})]})}),e.jsx(oe,{side:"bottom",className:"max-w-[280px]",children:e.jsx("p",{className:"whitespace-pre-line text-sm",children:o})})]})})},enableSorting:!1,enableHiding:!1},{accessorKey:"online_count",header:({column:i})=>e.jsx($,{column:i,title:a("columns.online_count")}),cell:({row:i})=>{const l=i.original.device_limit,d=i.original.online_count||0;return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsxs(U,{variant:"outline",className:y("min-w-[4rem] justify-center",l!==null&&d>=l?"border-destructive/50 bg-destructive/10 text-destructive":"border-primary/40 bg-primary/5 text-primary/90"),children:[d," / ",l===null?"∞":l]})})}),e.jsx(oe,{side:"bottom",children:e.jsx("p",{className:"text-sm",children:l===null?a("columns.device_limit.unlimited"):a("columns.device_limit.limited",{count:l})})})]})})},enableSorting:!0,enableHiding:!1},{accessorKey:"banned",header:({column:i})=>e.jsx($,{column:i,title:a("columns.status")}),cell:({row:i})=>{const l=i.original.banned;return e.jsx("div",{className:"flex justify-center",children:e.jsx(U,{className:y("min-w-20 justify-center transition-colors",l?"bg-destructive/15 text-destructive hover:bg-destructive/25":"bg-success/15 text-success hover:bg-success/25"),children:a(l?"columns.status_text.banned":"columns.status_text.normal")})})},enableSorting:!0,filterFn:(i,l,d)=>d.includes(i.getValue(l))},{accessorKey:"plan_id",header:({column:i})=>e.jsx($,{column:i,title:a("columns.subscription")}),cell:({row:i})=>e.jsx("div",{className:"min-w-[10em] break-all",children:i.original?.plan?.name||"-"}),enableSorting:!1,enableHiding:!1},{accessorKey:"group_id",header:({column:i})=>e.jsx($,{column:i,title:a("columns.group")}),cell:({row:i})=>e.jsx("div",{className:"flex flex-wrap gap-1",children:e.jsx(U,{variant:"outline",className:y("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5 whitespace-nowrap"),children:i.original?.group?.name||"-"})}),enableSorting:!1},{accessorKey:"total_used",header:({column:i})=>e.jsx($,{column:i,title:a("columns.used_traffic")}),cell:({row:i})=>{const l=Oe(i.original?.total_used),d=Oe(i.original?.transfer_enable),u=i.original?.total_used/i.original?.transfer_enable*100||0;return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{className:"w-full",children:e.jsxs("div",{className:"w-full space-y-1",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:l}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[u.toFixed(1),"%"]})]}),e.jsx("div",{className:"h-1.5 w-full rounded-full bg-secondary",children:e.jsx("div",{className:y("h-full rounded-full transition-all",u>90?"bg-destructive":"bg-primary"),style:{width:`${Math.min(u,100)}%`}})})]})}),e.jsx(oe,{side:"bottom",children:e.jsxs("p",{className:"text-sm",children:[a("columns.total_traffic"),": ",d]})})]})})}},{accessorKey:"transfer_enable",header:({column:i})=>e.jsx($,{column:i,title:a("columns.total_traffic")}),cell:({row:i})=>e.jsx("div",{className:"font-medium text-muted-foreground",children:Oe(i.original?.transfer_enable)})},{accessorKey:"expired_at",header:({column:i})=>e.jsx($,{column:i,title:a("columns.expire_time")}),cell:({row:i})=>{const l=i.original.expired_at,d=Date.now()/1e3,u=l!=null&&le.jsx($,{column:i,title:a("columns.balance")}),cell:({row:i})=>{const l=yt(i.original?.balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:l})]})}},{accessorKey:"commission_balance",header:({column:i})=>e.jsx($,{column:i,title:a("columns.commission")}),cell:({row:i})=>{const l=yt(i.original?.commission_balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:l})]})}},{accessorKey:"created_at",header:({column:i})=>e.jsx($,{column:i,title:a("columns.register_time")}),cell:({row:i})=>e.jsx("div",{className:"truncate",children:xe(i.original?.created_at)}),size:1e3},{id:"actions",header:({column:i})=>e.jsx($,{column:i,className:"justify-end",title:a("columns.actions")}),cell:({row:i,table:l})=>e.jsxs($s,{modal:!1,children:[e.jsx(As,{asChild:!0,children:e.jsx("div",{className:"text-center",children:e.jsx(G,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":a("columns.actions"),children:e.jsx(Ca,{className:"size-4"})})})}),e.jsxs(Rs,{align:"end",className:"min-w-[40px]",children:[e.jsx(_e,{onSelect:d=>{d.preventDefault(),t(i.original),r(!0)},className:"p-0",children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Fh,{className:"mr-2"}),a("columns.actions_menu.edit")]})}),e.jsx(_e,{onSelect:d=>d.preventDefault(),className:"p-0",children:e.jsx(li,{defaultValues:{email:i.original.email},trigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Ih,{className:"mr-2 "}),a("columns.actions_menu.assign_order")]})})}),e.jsx(_e,{onSelect:()=>{Sa(i.original.subscribe_url).then(()=>{q.success(a("common:copy.success"))})},className:"p-0",children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Vh,{className:"mr-2"}),a("columns.actions_menu.copy_url")]})}),e.jsx(_e,{onSelect:()=>{Ps.resetSecret(i.original.id).then(({data:d})=>{d&&q.success("重置成功")})},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Nr,{className:"mr-2 "}),a("columns.actions_menu.reset_secret")]})}),e.jsx(_e,{onSelect:()=>{},className:"p-0",children:e.jsxs(Ys,{className:"flex items-center px-2 py-1.5",to:`/finance/order?user_id=eq:${i.original?.id}`,children:[e.jsx(Mh,{className:"mr-2"}),a("columns.actions_menu.orders")]})}),e.jsx(_e,{onSelect:()=>{l.setColumnFilters([{id:"invite_user_id",value:"eq:"+i.original?.id}])},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Oh,{className:"mr-2 "}),a("columns.actions_menu.invites")]})}),e.jsx(_e,{onSelect:d=>d.preventDefault(),className:"p-0",children:e.jsx(gi,{user_id:i.original?.id,dialogTrigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(zh,{className:"mr-2 "}),a("columns.actions_menu.traffic_records")]})})}),e.jsx(_e,{onSelect:d=>d.preventDefault(),className:"p-0",children:e.jsx(Rh,{user:i.original,onSuccess:s,trigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Nr,{className:"mr-2"}),a("columns.actions_menu.reset_traffic")]})})}),e.jsx(_e,{onSelect:d=>d.preventDefault(),className:"p-0",children:e.jsx(Eh,{title:a("columns.actions_menu.delete_confirm_title"),description:a("columns.actions_menu.delete_confirm_description",{email:i.original.email}),cancelText:a("common:cancel"),confirmText:a("common:confirm"),variant:"destructive",onConfirm:async()=>{try{const{data:d}=await Ps.destroy(i.original.id);d&&(q.success(a("common:delete.success")),s())}catch{q.error(a("common:delete.failed"))}},children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5 text-destructive hover:text-destructive",children:[e.jsx($h,{className:"mr-2"}),a("columns.actions_menu.delete")]})})})]})]})}]},fi=m.createContext(void 0),Kn=()=>{const s=m.useContext(fi);if(!s)throw new Error("useUserEdit must be used within an UserEditProvider");return s},pi=({children:s,refreshData:n})=>{const[t,r]=m.useState(!1),[a,i]=m.useState(null),l={isOpen:t,setIsOpen:r,editingUser:a,setEditingUser:i,refreshData:n};return e.jsx(fi.Provider,{value:l,children:s})},qh=x.object({id:x.number().default(0),email:x.string().email().default(""),invite_user_email:x.string().email().nullable().optional().default(null),password:x.string().optional().nullable().default(null),balance:x.coerce.number().default(0),commission_balance:x.coerce.number().default(0),u:x.number().default(0),d:x.number().default(0),transfer_enable:x.number().default(0),expired_at:x.number().nullable().default(null),plan_id:x.number().nullable().default(null),banned:x.boolean().default(!1),commission_type:x.number().default(0),commission_rate:x.number().nullable().default(null),discount:x.number().nullable().default(null),speed_limit:x.number().nullable().default(null),device_limit:x.number().nullable().default(null),is_admin:x.boolean().default(!1),is_staff:x.boolean().default(!1),remarks:x.string().nullable().default(null)});function ji(){const{t:s}=I("user"),{isOpen:n,setIsOpen:t,editingUser:r,refreshData:a}=Kn(),[i,l]=m.useState(!1),[d,u]=m.useState([]),o=we({resolver:Ce(qh)});return m.useEffect(()=>{n&&gs.getList().then(({data:c})=>{u(c)})},[n]),m.useEffect(()=>{if(r){const c=r.invite_user?.email,{invite_user:h,...S}=r;o.reset({...S,invite_user_email:c||null,password:null})}},[r,o]),e.jsx(Un,{open:n,onOpenChange:t,children:e.jsxs(Wa,{className:"max-w-[90%] space-y-4",children:[e.jsxs(Ya,{children:[e.jsx(Ja,{children:s("edit.title")}),e.jsx(Qa,{})]}),e.jsxs(Se,{...o,children:[e.jsx(v,{control:o.control,name:"email",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.email")}),e.jsx(N,{children:e.jsx(D,{...c,placeholder:s("edit.form.email_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...c})]})}),e.jsx(v,{control:o.control,name:"invite_user_email",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.inviter_email")}),e.jsx(N,{children:e.jsx(D,{value:c.value||"",onChange:h=>c.onChange(h.target.value?h.target.value:null),placeholder:s("edit.form.inviter_email_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...c})]})}),e.jsx(v,{control:o.control,name:"password",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.password")}),e.jsx(N,{children:e.jsx(D,{type:"password",value:c.value||"",onChange:c.onChange,placeholder:s("edit.form.password_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...c})]})}),e.jsxs("div",{className:"grid gap-2 md:grid-cols-2",children:[e.jsx(v,{control:o.control,name:"balance",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.balance")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value||"",onChange:c.onChange,placeholder:s("edit.form.balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...c})]})}),e.jsx(v,{control:o.control,name:"commission_balance",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.commission_balance")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value||"",onChange:c.onChange,placeholder:s("edit.form.commission_balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...c})]})}),e.jsx(v,{control:o.control,name:"u",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.upload")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{value:c.value/1024/1024/1024||"",onChange:h=>c.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.upload_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...c})]})}),e.jsx(v,{control:o.control,name:"d",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.download")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value/1024/1024/1024||"",onChange:h=>c.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.download_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...c})]})})]}),e.jsx(v,{control:o.control,name:"transfer_enable",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.total_traffic")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value/1024/1024/1024||"",onChange:h=>c.onChange(parseInt(h.target.value)*1024*1024*1024),placeholder:s("edit.form.total_traffic_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"expired_at",render:({field:c})=>e.jsxs(p,{className:"flex flex-col",children:[e.jsx(j,{children:s("edit.form.expire_time")}),e.jsxs(os,{open:i,onOpenChange:l,children:[e.jsx(cs,{asChild:!0,children:e.jsx(N,{children:e.jsxs(L,{type:"button",variant:"outline",className:y("w-full pl-3 text-left font-normal",!c.value&&"text-muted-foreground"),onClick:()=>l(!0),children:[c.value?xe(c.value):e.jsx("span",{children:s("edit.form.expire_time_placeholder")}),e.jsx(ks,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",side:"top",sideOffset:4,onInteractOutside:h=>{h.preventDefault()},onEscapeKeyDown:h=>{h.preventDefault()},children:e.jsxs("div",{className:"flex flex-col space-y-3 p-3",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{c.onChange(null),l(!1)},children:s("edit.form.expire_time_permanent")}),e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const h=new Date;h.setMonth(h.getMonth()+1),h.setHours(23,59,59,999),c.onChange(Math.floor(h.getTime()/1e3)),l(!1)},children:s("edit.form.expire_time_1month")}),e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const h=new Date;h.setMonth(h.getMonth()+3),h.setHours(23,59,59,999),c.onChange(Math.floor(h.getTime()/1e3)),l(!1)},children:s("edit.form.expire_time_3months")})]}),e.jsx("div",{className:"rounded-md border",children:e.jsx(vs,{mode:"single",selected:c.value?new Date(c.value*1e3):void 0,onSelect:h=>{if(h){const S=new Date(c.value?c.value*1e3:Date.now());h.setHours(S.getHours(),S.getMinutes(),S.getSeconds()),c.onChange(Math.floor(h.getTime()/1e3))}},disabled:h=>h{const h=new Date;h.setHours(23,59,59,999),c.onChange(Math.floor(h.getTime()/1e3))},className:"h-6 px-2 text-xs",children:s("edit.form.expire_time_today")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(D,{type:"datetime-local",step:"1",value:xe(c.value,"YYYY-MM-DDTHH:mm:ss"),onChange:h=>{const S=new Date(h.target.value);isNaN(S.getTime())||c.onChange(Math.floor(S.getTime()/1e3))},className:"flex-1"}),e.jsx(L,{type:"button",variant:"outline",onClick:()=>l(!1),children:s("edit.form.expire_time_confirm")})]})]})]})})]}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"plan_id",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.subscription")}),e.jsx(N,{children:e.jsxs(J,{value:c.value!==null?String(c.value):"null",onValueChange:h=>c.onChange(h==="null"?null:parseInt(h)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"null",children:s("edit.form.subscription_none")}),d.map(h=>e.jsx(A,{value:String(h.id),children:h.name},h.id))]})]})})]})}),e.jsx(v,{control:o.control,name:"banned",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.account_status")}),e.jsx(N,{children:e.jsxs(J,{value:c.value.toString(),onValueChange:h=>c.onChange(h==="true"),children:[e.jsx(W,{children:e.jsx(Q,{})}),e.jsxs(Y,{children:[e.jsx(A,{value:"true",children:s("columns.status_text.banned")}),e.jsx(A,{value:"false",children:s("columns.status_text.normal")})]})]})})]})}),e.jsx(v,{control:o.control,name:"commission_type",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.commission_type")}),e.jsx(N,{children:e.jsxs(J,{value:c.value.toString(),onValueChange:h=>c.onChange(parseInt(h)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"0",children:s("edit.form.commission_type_system")}),e.jsx(A,{value:"1",children:s("edit.form.commission_type_cycle")}),e.jsx(A,{value:"2",children:s("edit.form.commission_type_onetime")})]})]})})]})}),e.jsx(v,{control:o.control,name:"commission_rate",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.commission_rate")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value||"",onChange:h=>c.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.commission_rate_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})})]})}),e.jsx(v,{control:o.control,name:"discount",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.discount")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value||"",onChange:h=>c.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.discount_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"speed_limit",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.speed_limit")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value||"",onChange:h=>c.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.speed_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"Mbps"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"device_limit",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.device_limit")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(D,{type:"number",value:c.value||"",onChange:h=>c.onChange(parseInt(h.currentTarget.value)||null),placeholder:s("edit.form.device_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"台"})]})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"is_admin",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.is_admin")}),e.jsx("div",{className:"py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:c.value,onCheckedChange:h=>c.onChange(h)})})}),e.jsx(P,{})]})}),e.jsx(v,{control:o.control,name:"is_staff",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.is_staff")}),e.jsx("div",{className:"py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:c.value,onCheckedChange:h=>c.onChange(h)})})})]})}),e.jsx(v,{control:o.control,name:"remarks",render:({field:c})=>e.jsxs(p,{children:[e.jsx(j,{children:s("edit.form.remarks")}),e.jsx(N,{children:e.jsx(Ls,{className:"h-24",value:c.value||"",onChange:h=>c.onChange(h.currentTarget.value??null),placeholder:s("edit.form.remarks_placeholder")})}),e.jsx(P,{})]})}),e.jsxs(ui,{children:[e.jsx(L,{variant:"outline",onClick:()=>t(!1),children:s("edit.form.cancel")}),e.jsx(L,{type:"submit",onClick:()=>{o.handleSubmit(c=>{Ps.update(c).then(({data:h})=>{h&&(q.success(s("edit.form.success")),t(!1),a())})})()},children:s("edit.form.submit")})]})]})]})})}function Hh(){const[s]=_l(),[n,t]=m.useState({}),[r,a]=m.useState({is_admin:!1,is_staff:!1}),[i,l]=m.useState([]),[d,u]=m.useState([]),[o,c]=m.useState({pageIndex:0,pageSize:20});m.useEffect(()=>{const g=s.get("email");g&&l(b=>b.some(O=>O.id==="email")?b:[...b,{id:"email",value:g}])},[s]);const{refetch:h,data:S,isLoading:T}=ne({queryKey:["userList",o,i,d],queryFn:()=>Ps.getList({pageSize:o.pageSize,current:o.pageIndex+1,filter:i,sort:d})}),[C,f]=m.useState([]),[_,w]=m.useState([]);m.useEffect(()=>{mt.getList().then(({data:g})=>{f(g)}),gs.getList().then(({data:g})=>{w(g)})},[]);const V=C.map(g=>({label:g.name,value:g.id})),F=_.map(g=>({label:g.name,value:g.id}));return e.jsxs(pi,{refreshData:h,children:[e.jsx(Uh,{data:S?.data??[],rowCount:S?.total??0,sorting:d,setSorting:u,columnVisibility:r,setColumnVisibility:a,rowSelection:n,setRowSelection:t,columnFilters:i,setColumnFilters:l,pagination:o,setPagination:c,refetch:h,serverGroupList:C,permissionGroups:V,subscriptionPlans:F,isLoading:T}),e.jsx(ji,{})]})}function Uh({data:s,rowCount:n,sorting:t,setSorting:r,columnVisibility:a,setColumnVisibility:i,rowSelection:l,setRowSelection:d,columnFilters:u,setColumnFilters:o,pagination:c,setPagination:h,refetch:S,serverGroupList:T,permissionGroups:C,subscriptionPlans:f,isLoading:_}){const{setIsOpen:w,setEditingUser:V}=Kn(),F=ss({data:s,columns:Ah(S,T,V,w),state:{sorting:t,columnVisibility:a,rowSelection:l,columnFilters:u,pagination:c},rowCount:n,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:d,onSortingChange:r,onColumnFiltersChange:o,onColumnVisibilityChange:i,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:h,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnVisibility:{commission_balance:!1,created_at:!1,is_admin:!1,is_staff:!1,permission_group:!1,plan_id:!1},columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Dh,{table:F,refetch:S,serverGroupList:T,permissionGroups:C,subscriptionPlans:f}),e.jsx(xs,{table:F,isLoading:_})]})}function Kh(){const{t:s}=I("user");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx("div",{className:"w-full",children:e.jsx(Hh,{})})})]})]})}const Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Kh},Symbol.toStringTag,{value:"Module"}));function Gh({column:s,title:n,options:t}){const r=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(G,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(rd,{className:"mr-2 h-4 w-4"}),n,r?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:r.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:r.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[r.size," selected"]}):t.filter(a=>r.has(a.value)).map(a=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:a.label},`selected-${a.value}`))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:n}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(a=>{const i=r.has(a.value);return e.jsxs(We,{onSelect:()=>{i?r.delete(a.value):r.add(a.value);const l=Array.from(r);s?.setFilterValue(l.length?l:void 0)},children:[e.jsx("div",{className:y("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",i?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ld,{className:y("h-4 w-4")})}),a.icon&&e.jsx(a.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:a.label})]},`option-${a.value}`)})}),r.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Wh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})});function Yh({table:s}){const{t:n}=I("ticket");return e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-4",children:[e.jsx(Lt,{defaultValue:s.getColumn("status")?.getFilterValue(),onValueChange:t=>s.getColumn("status")?.setFilterValue(t),children:e.jsxs(dt,{className:"grid w-full grid-cols-2",children:[e.jsx(Xe,{value:"0",children:n("status.pending")}),e.jsx(Xe,{value:"1",children:n("status.closed")})]})}),s.getColumn("level")&&e.jsx(Gh,{column:s.getColumn("level"),title:n("columns.level"),options:[{label:n("level.low"),value:Qe.LOW,icon:Wh,color:"gray"},{label:n("level.medium"),value:Qe.MIDDLE,icon:xi,color:"yellow"},{label:n("level.high"),value:Qe.HIGH,icon:hi,color:"red"}]})]})})}function Jh(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[e.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const Qh=it("flex gap-2 max-w-[60%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),vi=m.forwardRef(({className:s,variant:n,layout:t,children:r,...a},i)=>e.jsx("div",{className:y(Qh({variant:n,layout:t,className:s}),"relative group"),ref:i,...a,children:m.Children.map(r,l=>m.isValidElement(l)&&typeof l.type!="string"?m.cloneElement(l,{variant:n,layout:t}):l)}));vi.displayName="ChatBubble";const Xh=it("p-4",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",sent:"bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),bi=m.forwardRef(({className:s,variant:n,layout:t,isLoading:r=!1,children:a,...i},l)=>e.jsx("div",{className:y(Xh({variant:n,layout:t,className:s}),"break-words max-w-full whitespace-pre-wrap"),ref:l,...i,children:r?e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(Jh,{})}):a}));bi.displayName="ChatBubbleMessage";const Zh=m.forwardRef(({variant:s,className:n,children:t,...r},a)=>e.jsx("div",{ref:a,className:y("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",s==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",n),...r,children:t}));Zh.displayName="ChatBubbleActionWrapper";const yi=m.forwardRef(({className:s,...n},t)=>e.jsx(Ls,{autoComplete:"off",ref:t,name:"message",className:y("max-h-12 px-4 py-3 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center h-16 resize-none",s),...n}));yi.displayName="ChatInput";const Ni=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"})}),_i=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.098 12.634L13 11.423V7a1 1 0 0 0-2 0v5a1 1 0 0 0 .5.866l2.598 1.5a1 1 0 1 0 1-1.732M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8"})}),_r=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m11.29 12l3.54-3.54a1 1 0 0 0 0-1.41a1 1 0 0 0-1.42 0l-4.24 4.24a1 1 0 0 0 0 1.42L13.41 17a1 1 0 0 0 .71.29a1 1 0 0 0 .71-.29a1 1 0 0 0 0-1.41Z"})}),eg=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39M11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7"})}),sg=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M3.71 16.29a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21a1 1 0 0 0-.21.33a1 1 0 0 0 .21 1.09a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1 1 0 0 0 .21-1.09a1 1 0 0 0-.21-.33M7 8h14a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2m-3.29 3.29a1 1 0 0 0-1.09-.21a1.2 1.2 0 0 0-.33.21a1 1 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1 1 0 0 0-.21-.33M21 11H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2M3.71 6.29a1 1 0 0 0-.33-.21a1 1 0 0 0-1.09.21a1.2 1.2 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a1 1 0 0 0 1.09-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1.2 1.2 0 0 0-.21-.33M21 16H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})}),tg=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9 12H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-1-2h4a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2m1 6H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m12-4h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Zm-6.44-2.83a.8.8 0 0 0-.18-.09a.6.6 0 0 0-.19-.06a1 1 0 0 0-.9.27A1.05 1.05 0 0 0 12 17a1 1 0 0 0 .07.38a1.2 1.2 0 0 0 .22.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21A1 1 0 0 0 14 17a1.05 1.05 0 0 0-.29-.71a2 2 0 0 0-.15-.12m.14-3.88a1 1 0 0 0-1.62.33A1 1 0 0 0 13 14a1 1 0 0 0 1-1a1 1 0 0 0-.08-.38a.9.9 0 0 0-.22-.33"})});function ag(){return e.jsxs("div",{className:"flex h-full flex-col space-y-4 p-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(ve,{className:"h-8 w-3/4"}),e.jsx(ve,{className:"h-4 w-1/2"})]}),e.jsx("div",{className:"flex-1 space-y-4",children:[1,2,3].map(s=>e.jsx(ve,{className:"h-20 w-2/3"},s))})]})}function ng(){return e.jsx("div",{className:"space-y-4 p-4",children:[1,2,3,4].map(s=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(ve,{className:"h-5 w-4/5"}),e.jsx(ve,{className:"h-4 w-2/3"}),e.jsx(ve,{className:"h-3 w-1/2"})]},s))})}function rg({ticket:s,isActive:n,onClick:t}){const{t:r}=I("ticket"),a=i=>{switch(i){case Qe.HIGH:return"bg-red-50 text-red-600 border-red-200";case Qe.MIDDLE:return"bg-yellow-50 text-yellow-600 border-yellow-200";case Qe.LOW:return"bg-green-50 text-green-600 border-green-200";default:return"bg-gray-50 text-gray-600 border-gray-200"}};return e.jsxs("div",{className:y("flex cursor-pointer flex-col border-b p-4 hover:bg-accent/50",n&&"bg-accent"),onClick:t,children:[e.jsxs("div",{className:"flex max-w-[280px] items-center justify-between gap-2",children:[e.jsx("h4",{className:"flex-1 truncate font-medium",children:s.subject}),e.jsx(U,{variant:s.status===Ws.CLOSED?"secondary":"default",className:"shrink-0",children:s.status===Ws.CLOSED?r("status.closed"):r("status.processing")})]}),e.jsx("div",{className:"mt-1 max-w-[280px] truncate text-sm text-muted-foreground",children:s.user?.email}),e.jsxs("div",{className:"mt-2 flex items-center justify-between text-xs",children:[e.jsx("time",{className:"text-muted-foreground",children:xe(s.updated_at)}),e.jsx("div",{className:y("rounded-full border px-2 py-0.5 text-xs font-medium",a(s.level)),children:r(`level.${s.level===Qe.LOW?"low":s.level===Qe.MIDDLE?"medium":"high"}`)})]})]})}function lg({ticketId:s,dialogTrigger:n}){const{t}=I("ticket"),r=qs(),a=m.useRef(null),i=m.useRef(null),[l,d]=m.useState(!1),[u,o]=m.useState(""),[c,h]=m.useState(!1),[S,T]=m.useState(s),[C,f]=m.useState(""),[_,w]=m.useState(!1),{setIsOpen:V,setEditingUser:F}=Kn(),{data:g,isLoading:b,refetch:k}=ne({queryKey:["tickets",l],queryFn:()=>l?_t.getList({filter:[{id:"status",value:[Ws.OPENING]}]}):Promise.resolve(null),enabled:l}),{data:O,refetch:R,isLoading:K}=ne({queryKey:["ticket",S,l],queryFn:()=>l?_t.getInfo(S):Promise.resolve(null),refetchInterval:l?5e3:!1,retry:3}),ae=O?.data,te=(g?.data||[]).filter(ie=>ie.subject.toLowerCase().includes(C.toLowerCase())||ie.user?.email.toLowerCase().includes(C.toLowerCase())),H=(ie="smooth")=>{if(a.current){const{scrollHeight:_s,clientHeight:Is}=a.current;a.current.scrollTo({top:_s-Is,behavior:ie})}};m.useEffect(()=>{if(!l)return;const ie=requestAnimationFrame(()=>{H("instant"),setTimeout(()=>H(),1e3)});return()=>{cancelAnimationFrame(ie)}},[l,ae?.messages]);const E=async()=>{const ie=u.trim();!ie||c||(h(!0),_t.reply({id:S,message:ie}).then(()=>{o(""),R(),H(),setTimeout(()=>{i.current?.focus()},0)}).finally(()=>{h(!1)}))},X=async()=>{_t.close(S).then(()=>{q.success(t("actions.close_success")),R(),k()})},Ns=()=>{ae?.user&&r("/finance/order?user_id="+ae.user.id)},De=ae?.status===Ws.CLOSED;return e.jsxs(ge,{open:l,onOpenChange:d,children:[e.jsx(as,{asChild:!0,children:n??e.jsx(G,{variant:"outline",children:t("actions.view_ticket")})}),e.jsxs(ue,{className:"flex h-[90vh] max-w-6xl flex-col gap-0 p-0",children:[e.jsx(fe,{}),e.jsxs("div",{className:"flex h-full",children:[e.jsx(G,{variant:"ghost",size:"icon",className:"absolute left-2 top-2 z-50 md:hidden",onClick:()=>w(!_),children:e.jsx(_r,{className:y("h-4 w-4 transition-transform",!_&&"rotate-180")})}),e.jsxs("div",{className:y("absolute inset-y-0 left-0 z-40 flex flex-col border-r bg-background transition-transform duration-200 ease-in-out md:relative",_?"-translate-x-full":"translate-x-0","w-80 md:w-80 md:translate-x-0"),children:[e.jsxs("div",{className:"space-y-4 border-b p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"font-semibold",children:t("list.title")}),e.jsx(G,{variant:"ghost",size:"icon",className:"hidden h-8 w-8 md:flex",onClick:()=>w(!_),children:e.jsx(_r,{className:y("h-4 w-4 transition-transform",!_&&"rotate-180")})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(eg,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),e.jsx(D,{placeholder:t("list.search_placeholder"),value:C,onChange:ie=>f(ie.target.value),className:"pl-8"})]})]}),e.jsx(lt,{className:"flex-1",children:e.jsx("div",{className:"w-full",children:b?e.jsx(ng,{}):te.length===0?e.jsx("div",{className:"flex h-full items-center justify-center p-4 text-muted-foreground",children:t(C?"list.no_search_results":"list.no_tickets")}):te.map(ie=>e.jsx(rg,{ticket:ie,isActive:ie.id===S,onClick:()=>{T(ie.id),window.innerWidth<768&&w(!0)}},ie.id))})})]}),e.jsxs("div",{className:"relative flex flex-1 flex-col",children:[!_&&e.jsx("div",{className:"absolute inset-0 z-30 bg-black/20 md:hidden",onClick:()=>w(!0)}),K?e.jsx(ag,{}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col space-y-4 border-b p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("h2",{className:"text-2xl font-semibold",children:ae?.subject}),e.jsx(U,{variant:De?"secondary":"default",children:t(De?"status.closed":"status.processing")}),!De&&e.jsx(ps,{title:t("actions.close_confirm_title"),description:t("actions.close_confirm_description"),confirmText:t("actions.close_confirm_button"),variant:"destructive",onConfirm:X,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"gap-1 text-muted-foreground hover:text-destructive",children:[e.jsx(Ni,{className:"h-4 w-4"}),t("actions.close_ticket")]})})]}),e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(La,{className:"h-4 w-4"}),e.jsx("span",{children:ae?.user?.email})]}),e.jsx(Te,{orientation:"vertical",className:"h-4"}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(_i,{className:"h-4 w-4"}),e.jsxs("span",{children:[t("detail.created_at")," ",xe(ae?.created_at)]})]}),e.jsx(Te,{orientation:"vertical",className:"h-4"}),e.jsx(U,{variant:"outline",children:ae?.level!=null&&t(`level.${ae.level===Qe.LOW?"low":ae.level===Qe.MIDDLE?"medium":"high"}`)})]})]}),ae?.user&&e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.user_info"),onClick:()=>{F(ae.user),V(!0)},children:e.jsx(La,{className:"h-4 w-4"})}),e.jsx(gi,{user_id:ae.user.id,dialogTrigger:e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.traffic_records"),children:e.jsx(sg,{className:"h-4 w-4"})})}),e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.order_records"),onClick:Ns,children:e.jsx(tg,{className:"h-4 w-4"})})]})]})}),e.jsx("div",{className:"flex-1 overflow-hidden",children:e.jsx("div",{ref:a,className:"h-full space-y-4 overflow-y-auto p-6",children:ae?.messages?.length===0?e.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:t("detail.no_messages")}):ae?.messages?.map(ie=>e.jsx(vi,{variant:ie.is_from_admin?"sent":"received",className:ie.is_from_admin?"ml-auto":"mr-auto",children:e.jsx(bi,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"whitespace-pre-wrap break-words",children:ie.message}),e.jsx("div",{className:"text-right",children:e.jsx("time",{className:"text-[10px] text-muted-foreground",children:xe(ie.created_at)})})]})})},ie.id))})}),e.jsx("div",{className:"border-t p-4",children:e.jsxs("div",{className:"relative flex items-center space-x-2",children:[e.jsx(yi,{ref:i,disabled:De||c,placeholder:t(De?"detail.input.closed_placeholder":"detail.input.reply_placeholder"),className:"flex-1 resize-none rounded-lg border bg-background p-3 focus-visible:ring-1",value:u,onChange:ie=>o(ie.target.value),onKeyDown:ie=>{ie.key==="Enter"&&!ie.shiftKey&&(ie.preventDefault(),E())}}),e.jsx(G,{disabled:De||c||!u.trim(),onClick:E,children:t(c?"detail.input.sending":"detail.input.send")})]})})]})]})]})]})]})}const ig=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3m-.41 2l-5.88 5.88a1 1 0 0 1-1.42 0L5.41 6ZM20 17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7.41l5.88 5.88a3 3 0 0 0 4.24 0L20 7.41Z"})}),og=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.92 11.6C19.9 6.91 16.1 4 12 4s-7.9 2.91-9.92 7.6a1 1 0 0 0 0 .8C4.1 17.09 7.9 20 12 20s7.9-2.91 9.92-7.6a1 1 0 0 0 0-.8M12 18c-3.17 0-6.17-2.29-7.9-6C5.83 8.29 8.83 6 12 6s6.17 2.29 7.9 6c-1.73 3.71-4.73 6-7.9 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4m0 6a2 2 0 1 1 2-2a2 2 0 0 1-2 2"})}),cg=s=>{const{t:n}=I("ticket");return[{accessorKey:"id",header:({column:t})=>e.jsx($,{column:t,title:n("columns.id")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:t.getValue("id")}),enableSorting:!1,enableHiding:!1},{accessorKey:"subject",header:({column:t})=>e.jsx($,{column:t,title:n("columns.subject")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ig,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"max-w-[500px] truncate font-medium",children:t.getValue("subject")})]}),enableSorting:!1,enableHiding:!1,size:4e3},{accessorKey:"level",header:({column:t})=>e.jsx($,{column:t,title:n("columns.level")}),cell:({row:t})=>{const r=t.getValue("level"),a=r===Qe.LOW?"default":r===Qe.MIDDLE?"secondary":"destructive";return e.jsx(U,{variant:a,className:"whitespace-nowrap",children:n(`level.${r===Qe.LOW?"low":r===Qe.MIDDLE?"medium":"high"}`)})},filterFn:(t,r,a)=>a.includes(t.getValue(r))},{accessorKey:"status",header:({column:t})=>e.jsx($,{column:t,title:n("columns.status")}),cell:({row:t})=>{const r=t.getValue("status"),a=t.original.reply_status,i=r===Ws.CLOSED?n("status.closed"):n(a===0?"status.replied":"status.pending"),l=r===Ws.CLOSED?"default":a===0?"secondary":"destructive";return e.jsx(U,{variant:l,className:"whitespace-nowrap",children:i})}},{accessorKey:"updated_at",header:({column:t})=>e.jsx($,{column:t,title:n("columns.updated_at")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[e.jsx(_i,{className:"h-4 w-4"}),e.jsx("span",{className:"text-sm",children:xe(t.getValue("updated_at"))})]}),enableSorting:!0},{accessorKey:"created_at",header:({column:t})=>e.jsx($,{column:t,title:n("columns.created_at")}),cell:({row:t})=>e.jsx("div",{className:"text-sm text-muted-foreground",children:xe(t.getValue("created_at"))}),enableSorting:!0,meta:{isFlexGrow:!0}},{id:"actions",header:({column:t})=>e.jsx($,{className:"justify-end",column:t,title:n("columns.actions")}),cell:({row:t})=>{const r=t.original.status!==Ws.CLOSED;return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(lg,{ticketId:t.original.id,dialogTrigger:e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8",title:n("actions.view_details"),children:e.jsx(og,{className:"h-4 w-4"})})}),r&&e.jsx(ps,{title:n("actions.close_confirm_title"),description:n("actions.close_confirm_description"),confirmText:n("actions.close_confirm_button"),variant:"destructive",onConfirm:async()=>{_t.close(t.original.id).then(()=>{q.success(n("actions.close_success")),s()})},children:e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8",title:n("actions.close_ticket"),children:e.jsx(Ni,{className:"h-4 w-4"})})})]})}}]};function dg(){const[s,n]=m.useState({}),[t,r]=m.useState({}),[a,i]=m.useState([{id:"status",value:"0"}]),[l,d]=m.useState([]),[u,o]=m.useState({pageIndex:0,pageSize:20}),{refetch:c,data:h}=ne({queryKey:["orderList",u,a,l],queryFn:()=>_t.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:a,sort:l})}),S=ss({data:h?.data??[],columns:cg(c),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:a,pagination:u},rowCount:h?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:d,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:o,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Yh,{table:S,refetch:c}),e.jsx(xs,{table:S,showPagination:!0})]})}function mg(){const{t:s}=I("ticket");return e.jsxs(pi,{refreshData:()=>{},children:[e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(dg,{})})]})]}),e.jsx(ji,{})]})}const ug=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"}));function xg({table:s,refetch:n}){const{t}=I("user"),r=s.getState().columnFilters.length>0,[a,i]=m.useState(),[l,d]=m.useState(),[u,o]=m.useState(!1),c=[{value:"monthly",label:t("traffic_reset_logs.filters.reset_types.monthly")},{value:"first_day_month",label:t("traffic_reset_logs.filters.reset_types.first_day_month")},{value:"yearly",label:t("traffic_reset_logs.filters.reset_types.yearly")},{value:"first_day_year",label:t("traffic_reset_logs.filters.reset_types.first_day_year")},{value:"manual",label:t("traffic_reset_logs.filters.reset_types.manual")}],h=[{value:"auto",label:t("traffic_reset_logs.filters.trigger_sources.auto")},{value:"manual",label:t("traffic_reset_logs.filters.trigger_sources.manual")},{value:"cron",label:t("traffic_reset_logs.filters.trigger_sources.cron")}],S=()=>{let _=s.getState().columnFilters.filter(w=>w.id!=="date_range");(a||l)&&_.push({id:"date_range",value:{start:a?Le(a,"yyyy-MM-dd"):null,end:l?Le(l,"yyyy-MM-dd"):null}}),s.setColumnFilters(_)},T=async()=>{try{o(!0);const _=s.getState().columnFilters.reduce((R,K)=>{if(K.value)if(K.id==="date_range"){const ae=K.value;ae.start&&(R.start_date=ae.start),ae.end&&(R.end_date=ae.end)}else R[K.id]=K.value;return R},{}),V=(await Zt.getLogs({..._,page:1,per_page:1e4})).data.map(R=>({ID:R.id,用户邮箱:R.user_email,用户ID:R.user_id,重置类型:R.reset_type_name,触发源:R.trigger_source_name,清零流量:R.old_traffic.formatted,"上传流量(GB)":(R.old_traffic.upload/1024**3).toFixed(2),"下载流量(GB)":(R.old_traffic.download/1024**3).toFixed(2),重置时间:Le(new Date(R.reset_time),"yyyy-MM-dd HH:mm:ss"),记录时间:Le(new Date(R.created_at),"yyyy-MM-dd HH:mm:ss"),原因:R.reason||""})),F=Object.keys(V[0]||{}),g=[F.join(","),...V.map(R=>F.map(K=>{const ae=R[K];return typeof ae=="string"&&ae.includes(",")?`"${ae}"`:ae}).join(","))].join(` -`),b=new Blob([g],{type:"text/csv;charset=utf-8;"}),k=document.createElement("a"),O=URL.createObjectURL(b);k.setAttribute("href",O),k.setAttribute("download",`traffic-reset-logs-${Le(new Date,"yyyy-MM-dd")}.csv`),k.style.visibility="hidden",document.body.appendChild(k),k.click(),document.body.removeChild(k),q.success(t("traffic_reset_logs.actions.export_success"))}catch(f){console.error("导出失败:",f),q.error(t("traffic_reset_logs.actions.export_failed"))}finally{o(!1)}},C=()=>e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.search_user")}),e.jsx(D,{placeholder:t("traffic_reset_logs.filters.search_user"),value:s.getColumn("user_email")?.getFilterValue()??"",onChange:f=>s.getColumn("user_email")?.setFilterValue(f.target.value),className:"h-9"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.reset_type")}),e.jsxs(J,{value:s.getColumn("reset_type")?.getFilterValue()??"",onValueChange:f=>s.getColumn("reset_type")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-9",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.reset_type")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"all",children:t("traffic_reset_logs.filters.all_types")}),c.map(f=>e.jsx(A,{value:f.value,children:f.label},f.value))]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.trigger_source")}),e.jsxs(J,{value:s.getColumn("trigger_source")?.getFilterValue()??"",onValueChange:f=>s.getColumn("trigger_source")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-9",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.trigger_source")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"all",children:t("traffic_reset_logs.filters.all_sources")}),h.map(f=>e.jsx(A,{value:f.value,children:f.label},f.value))]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.start_date")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:y("h-9 w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),a?Le(a,"MM-dd"):t("traffic_reset_logs.filters.start_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:a,onSelect:i,initialFocus:!0})})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.end_date")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:y("h-9 w-full justify-start text-left font-normal",!l&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),l?Le(l,"MM-dd"):t("traffic_reset_logs.filters.end_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:l,onSelect:d,initialFocus:!0})})]})]})]}),(a||l)&&e.jsxs(L,{variant:"outline",className:"w-full",onClick:S,children:[e.jsx(ir,{className:"mr-2 h-4 w-4"}),t("traffic_reset_logs.filters.apply_date")]}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),i(void 0),d(void 0)},className:"w-full",children:[t("traffic_reset_logs.filters.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between md:hidden",children:[e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(Un,{children:[e.jsx(di,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8",children:[e.jsx(id,{className:"mr-2 h-4 w-4"}),t("traffic_reset_logs.filters.reset_type"),r&&e.jsx("div",{className:"ml-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary text-xs text-primary-foreground",children:s.getState().columnFilters.length})]})}),e.jsxs(Wa,{side:"bottom",className:"h-[85vh]",children:[e.jsxs(Ya,{className:"mb-4",children:[e.jsx(Ja,{children:t("traffic_reset_logs.filters.filter_title")}),e.jsx(Qa,{children:t("traffic_reset_logs.filters.filter_description")})]}),e.jsx("div",{className:"max-h-[calc(85vh-120px)] overflow-y-auto",children:e.jsx(C,{})})]})]})}),e.jsxs(L,{variant:"outline",size:"sm",className:"h-8",onClick:T,disabled:u,children:[e.jsx(ba,{className:"mr-2 h-4 w-4"}),t(u?"traffic_reset_logs.actions.exporting":"traffic_reset_logs.actions.export")]})]}),e.jsxs("div",{className:"hidden items-center justify-between md:flex",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsx(D,{placeholder:t("traffic_reset_logs.filters.search_user"),value:s.getColumn("user_email")?.getFilterValue()??"",onChange:f=>s.getColumn("user_email")?.setFilterValue(f.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs(J,{value:s.getColumn("reset_type")?.getFilterValue()??"",onValueChange:f=>s.getColumn("reset_type")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-8 w-[180px]",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.reset_type")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"all",children:t("traffic_reset_logs.filters.all_types")}),c.map(f=>e.jsx(A,{value:f.value,children:f.label},f.value))]})]}),e.jsxs(J,{value:s.getColumn("trigger_source")?.getFilterValue()??"",onValueChange:f=>s.getColumn("trigger_source")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-8 w-[180px]",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.trigger_source")})}),e.jsxs(Y,{children:[e.jsx(A,{value:"all",children:t("traffic_reset_logs.filters.all_sources")}),h.map(f=>e.jsx(A,{value:f.value,children:f.label},f.value))]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:y("h-8 w-[140px] justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),a?Le(a,"yyyy-MM-dd"):t("traffic_reset_logs.filters.start_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:a,onSelect:i,initialFocus:!0})})]}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:y("h-8 w-[140px] justify-start text-left font-normal",!l&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),l?Le(l,"yyyy-MM-dd"):t("traffic_reset_logs.filters.end_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:l,onSelect:d,initialFocus:!0})})]}),(a||l)&&e.jsxs(L,{variant:"outline",size:"sm",className:"h-8",onClick:S,children:[e.jsx(ir,{className:"mr-2 h-4 w-4"}),t("traffic_reset_logs.filters.apply_date")]})]}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),i(void 0),d(void 0)},className:"h-8 px-2 lg:px-3",children:[t("traffic_reset_logs.filters.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",onClick:T,disabled:u,children:[e.jsx(ba,{className:"mr-2 h-4 w-4"}),t(u?"traffic_reset_logs.actions.exporting":"traffic_reset_logs.actions.export")]})})]})]})}const hg=()=>{const{t:s}=I("user"),n=a=>{switch(a){case"manual":return"bg-blue-100 text-blue-800 border-blue-200";case"monthly":return"bg-green-100 text-green-800 border-green-200";case"yearly":return"bg-purple-100 text-purple-800 border-purple-200";case"first_day_month":return"bg-orange-100 text-orange-800 border-orange-200";case"first_day_year":return"bg-indigo-100 text-indigo-800 border-indigo-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},t=a=>{switch(a){case"manual":return"bg-orange-100 text-orange-800 border-orange-200";case"cron":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"auto":return"bg-emerald-100 text-emerald-800 border-emerald-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},r=a=>{switch(a){case"manual":return e.jsx(_a,{className:"h-3 w-3"});case"cron":return e.jsx(cd,{className:"h-3 w-3"});case"auto":return e.jsx(od,{className:"h-3 w-3"});default:return e.jsx(_a,{className:"h-3 w-3"})}};return[{accessorKey:"id",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.id"),className:"w-[60px]"}),cell:({row:a})=>e.jsx("div",{className:"w-[60px]",children:e.jsx(U,{variant:"outline",className:"text-xs",children:a.original.id})}),enableSorting:!0,enableHiding:!0,size:60},{accessorKey:"user_email",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.user"),className:"min-w-[200px]"}),cell:({row:a})=>e.jsxs("div",{className:"flex min-w-[200px] items-start gap-2",children:[e.jsx(wl,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm font-medium",children:a.original.user_email}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["ID: ",a.original.user_id]})]})]}),enableSorting:!1,enableHiding:!1,size:100},{accessorKey:"trigger_source",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.trigger_source"),className:"w-[120px]"}),cell:({row:a})=>e.jsx("div",{className:"w-[120px]",children:e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("div",{className:"cursor-pointer",children:e.jsxs(U,{variant:"outline",className:y("flex items-center gap-1.5 border text-xs",t(a.original.trigger_source)),children:[r(a.original.trigger_source),e.jsx("span",{className:"truncate",children:a.original.trigger_source_name})]})})}),e.jsx(oe,{side:"bottom",className:"max-w-[200px]",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",children:a.original.trigger_source_name}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[a.original.trigger_source==="manual"&&s("traffic_reset_logs.trigger_descriptions.manual"),a.original.trigger_source==="cron"&&s("traffic_reset_logs.trigger_descriptions.cron"),a.original.trigger_source==="auto"&&s("traffic_reset_logs.trigger_descriptions.auto"),!["manual","cron","auto"].includes(a.original.trigger_source)&&s("traffic_reset_logs.trigger_descriptions.other")]})]})})]})})}),enableSorting:!0,enableHiding:!1,filterFn:(a,i,l)=>l.includes(a.getValue(i)),size:120},{accessorKey:"reset_type",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.reset_type"),className:"w-[120px]"}),cell:({row:a})=>e.jsx("div",{className:"w-[120px]",children:e.jsx(U,{className:y("border text-xs",n(a.original.reset_type)),children:e.jsx("span",{className:"truncate",children:a.original.reset_type_name})})}),enableSorting:!0,enableHiding:!1,filterFn:(a,i,l)=>l.includes(a.getValue(i)),size:120},{accessorKey:"old_traffic",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.cleared_traffic"),className:"w-[120px]"}),cell:({row:a})=>{const i=a.original.old_traffic;return e.jsx("div",{className:"w-[120px]",children:e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"cursor-pointer text-center",children:[e.jsx("div",{className:"text-sm font-medium text-destructive",children:i.formatted}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("traffic_reset_logs.columns.cleared")})]})}),e.jsxs(oe,{side:"bottom",className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Ct,{className:"h-3 w-3"}),e.jsxs("span",{children:[s("traffic_reset_logs.columns.upload"),":"," ",(i.upload/1024**3).toFixed(2)," GB"]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(ba,{className:"h-3 w-3"}),e.jsxs("span",{children:[s("traffic_reset_logs.columns.download"),":"," ",(i.download/1024**3).toFixed(2)," GB"]})]})]})]})})})},enableSorting:!1,enableHiding:!1,size:120},{accessorKey:"reset_time",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.reset_time"),className:"w-[140px]"}),cell:({row:a})=>e.jsx("div",{className:"w-[140px]",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Kt,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-medium",children:xe(a.original.reset_time,"MM-DD")}),e.jsx("div",{className:"text-xs text-muted-foreground",children:xe(a.original.reset_time,"HH:mm")})]})]})}),enableSorting:!0,enableHiding:!0,size:140},{accessorKey:"created_at",header:({column:a})=>e.jsx($,{column:a,title:s("traffic_reset_logs.columns.log_time"),className:"w-[140px]"}),cell:({row:a})=>e.jsx("div",{className:"w-[140px]",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Rn,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-medium",children:xe(a.original.created_at,"YYYY-MM-DD")}),e.jsx("div",{className:"text-xs text-muted-foreground",children:xe(a.original.created_at,"H:m:s")})]})]})}),enableSorting:!0,enableHiding:!1,size:1400}]};function gg(){const[s,n]=m.useState({}),[t,r]=m.useState({reset_time:!1}),[a,i]=m.useState([]),[l,d]=m.useState([{id:"created_at",desc:!0}]),[u,o]=m.useState({pageIndex:0,pageSize:20}),c={page:u.pageIndex+1,per_page:u.pageSize,...a.reduce((C,f)=>{if(f.value)if(f.id==="date_range"){const _=f.value;_.start&&(C.start_date=_.start),_.end&&(C.end_date=_.end)}else C[f.id]=f.value;return C},{})},{refetch:h,data:S,isLoading:T}=ne({queryKey:["trafficResetLogs",u,a,l],queryFn:()=>Zt.getLogs(c)});return e.jsx(fg,{data:S?.data??[],rowCount:S?.total??0,sorting:l,setSorting:d,columnVisibility:t,setColumnVisibility:r,rowSelection:s,setRowSelection:n,columnFilters:a,setColumnFilters:i,pagination:u,setPagination:o,refetch:h,isLoading:T})}function fg({data:s,rowCount:n,sorting:t,setSorting:r,columnVisibility:a,setColumnVisibility:i,rowSelection:l,setRowSelection:d,columnFilters:u,setColumnFilters:o,pagination:c,setPagination:h,refetch:S,isLoading:T}){const C=ss({data:s,columns:hg(),state:{sorting:t,columnVisibility:a,rowSelection:l,columnFilters:u,pagination:c},rowCount:n,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:d,onSortingChange:r,onColumnFiltersChange:o,onColumnVisibilityChange:i,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:h,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnVisibility:{reset_time:!1}}});return e.jsxs("div",{className:"h-full space-y-4",children:[e.jsx(xg,{table:C,refetch:S}),e.jsx(xs,{table:C,isLoading:T})]})}function pg(){const{t:s}=I("user");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx("div",{className:"hidden md:block",children:e.jsx(ns,{})}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-4 space-y-2 md:mb-2 md:flex md:items-center md:justify-between md:space-y-0",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("h2",{className:"text-xl font-bold tracking-tight md:text-2xl",children:s("traffic_reset_logs.title")}),e.jsx("p",{className:"text-sm text-muted-foreground md:mt-2",children:s("traffic_reset_logs.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-hidden px-4 py-1",children:e.jsx("div",{className:"h-full w-full",children:e.jsx(gg,{})})})]})]})}const jg=Object.freeze(Object.defineProperty({__proto__:null,default:pg},Symbol.toStringTag,{value:"Module"}));export{wg as a,Ng as c,_g as g,Cg as r}; +`):"",onChange:y=>{const z=y.target.value.split(` +`).filter(R=>R.trim()!=="");g.onChange(z)}})})]})}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:o.control,name:"tls.server_name",render:({field:g})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:r("dynamic_form.anytls.tls.server_name.label","SNI")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dynamic_form.anytls.tls.server_name.placeholder","服务器名称"),...g})})]})}),e.jsx(b,{control:o.control,name:"tls.allow_insecure",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dynamic_form.anytls.tls.allow_insecure","允许不安全连接")}),e.jsx("div",{className:"py-2 text-center",children:e.jsx(N,{children:e.jsx(Z,{checked:g.value,onCheckedChange:g.onChange})})})]})})]})]})})};return e.jsx(pe,{children:F[s]?.()})};function bx(){const{t:s}=I("server"),a=h.object({id:h.number().optional().nullable(),specific_key:h.string().optional().nullable(),code:h.string().optional(),show:h.boolean().optional().nullable(),name:h.string().min(1,s("form.name.error")),rate:h.string().min(1,s("form.rate.error")).refine(D=>!isNaN(parseFloat(D))&&isFinite(Number(D)),{message:s("form.rate.error_numeric")}).refine(D=>parseFloat(D)>=0,{message:s("form.rate.error_gte_zero")}),tags:h.array(h.string()).default([]),excludes:h.array(h.string()).default([]),ips:h.array(h.string()).default([]),group_ids:h.array(h.string()).default([]),host:h.string().min(1,s("form.host.error")),port:h.string().min(1,s("form.port.error")),server_port:h.string().min(1,s("form.server_port.error")),parent_id:h.string().default("0").nullable(),route_ids:h.array(h.string()).default([]),protocol_settings:h.record(h.any()).default({}).nullable()}),t={id:null,specific_key:null,code:"",show:!1,name:"",rate:"1",tags:[],excludes:[],ips:[],group_ids:[],host:"",port:"",server_port:"",parent_id:"0",route_ids:[],protocol_settings:null},{isOpen:r,setIsOpen:n,editingServer:i,setEditingServer:l,serverType:o,setServerType:x,refetch:u}=ai(),[c,m]=d.useState([]),[p,k]=d.useState([]),[S,f]=d.useState([]),w=we({resolver:Ce(a),defaultValues:t,mode:"onChange"});d.useEffect(()=>{C()},[r]),d.useEffect(()=>{i?.type&&i.type!==o&&x(i.type)},[i,o,x]),d.useEffect(()=>{i?i.type===o&&w.reset({...t,...i}):w.reset({...t,protocol_settings:Ee[o].schema.parse({})})},[i,w,o]);const C=async()=>{if(!r)return;const[D,z,R]=await Promise.all([mt.getList(),Oa.getList(),at.getList()]);m(D.data?.map(K=>({label:K.name,value:K.id.toString()}))||[]),k(z.data?.map(K=>({label:K.remarks,value:K.id.toString()}))||[]),f(R.data||[])},V=d.useMemo(()=>S?.filter(D=>(D.parent_id===0||D.parent_id===null)&&D.type===o&&D.id!==w.watch("id")),[o,S,w]),F=()=>e.jsxs($s,{children:[e.jsx(As,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:s("form.add_node")})]})}),e.jsx(Rs,{align:"start",children:e.jsx(Bd,{children:js.map(({type:D,label:z})=>e.jsx(_e,{onClick:()=>{x(D),n(!0)},className:"cursor-pointer",children:e.jsx(U,{variant:"outline",className:"text-white",style:{background:is[D]},children:z})},D))})})]}),g=()=>{n(!1),l(null),w.reset(t)},y=async()=>{const D=w.getValues();(await at.save({...D,type:o})).data&&(g(),q.success(s("form.success")),u())};return e.jsxs(ge,{open:r,onOpenChange:g,children:[F(),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:s(i?"form.edit_node":"form.new_node")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...w,children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(b,{control:w.control,name:"name",render:({field:D})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:s("form.name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("form.name.placeholder"),...D})}),e.jsx(P,{})]})}),e.jsx(b,{control:w.control,name:"rate",render:({field:D})=>e.jsxs(j,{className:"flex-[1]",children:[e.jsx(v,{children:s("form.rate.label")}),e.jsx("div",{className:"relative flex",children:e.jsx(N,{children:e.jsx(T,{type:"number",min:"0",step:"0.1",...D})})}),e.jsx(P,{})]})})]}),e.jsx(b,{control:w.control,name:"code",render:({field:D})=>e.jsxs(j,{children:[e.jsxs(v,{children:[s("form.code.label"),e.jsx("span",{className:"ml-1 text-xs text-muted-foreground",children:s("form.code.optional")})]}),e.jsx(N,{children:e.jsx(T,{placeholder:s("form.code.placeholder"),...D,value:D.value||""})}),e.jsx(P,{})]})}),e.jsx(b,{control:w.control,name:"tags",render:({field:D})=>e.jsxs(j,{children:[e.jsx(v,{children:s("form.tags.label")}),e.jsx(N,{children:e.jsx(An,{value:D.value,onChange:D.onChange,placeholder:s("form.tags.placeholder"),className:"w-full"})}),e.jsx(P,{})]})}),e.jsx(b,{control:w.control,name:"group_ids",render:({field:D})=>e.jsxs(j,{children:[e.jsxs(v,{className:"flex items-center justify-between",children:[s("form.groups.label"),e.jsx(Ga,{dialogTrigger:e.jsx(L,{variant:"link",children:s("form.groups.add")}),refetch:C})]}),e.jsx(N,{children:e.jsx(Tt,{options:c,onChange:z=>D.onChange(z.map(R=>R.value)),value:c?.filter(z=>D.value.includes(z.value)),placeholder:s("form.groups.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.groups.empty")})})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:w.control,name:"host",render:({field:D})=>e.jsxs(j,{children:[e.jsx(v,{children:s("form.host.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:s("form.host.placeholder"),...D})}),e.jsx(P,{})]})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(b,{control:w.control,name:"port",render:({field:D})=>e.jsxs(j,{className:"flex-1",children:[e.jsxs(v,{className:"flex items-center gap-1.5",children:[s("form.port.label"),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(Be,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(wa,{children:e.jsx(oe,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.port.tooltip")})})})]})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(N,{children:e.jsx(T,{placeholder:s("form.port.placeholder"),...D})}),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0 text-muted-foreground/50 hover:text-muted-foreground",onClick:()=>{const z=D.value;z&&w.setValue("server_port",z)},children:e.jsx(Be,{icon:"tabler:arrows-right",className:"size-3"})})}),e.jsx(oe,{side:"right",children:e.jsx("p",{children:s("form.port.sync")})})]})})]}),e.jsx(P,{})]})}),e.jsx(b,{control:w.control,name:"server_port",render:({field:D})=>e.jsxs(j,{className:"flex-1",children:[e.jsxs(v,{className:"flex items-center gap-1.5",children:[s("form.server_port.label"),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(Be,{icon:"ph:info-light",className:"size-3.5 cursor-help text-muted-foreground"})}),e.jsx(wa,{children:e.jsx(oe,{side:"top",sideOffset:8,className:"max-w-80 p-3",children:e.jsx("p",{children:s("form.server_port.tooltip")})})})]})})]}),e.jsx(N,{children:e.jsx(T,{placeholder:s("form.server_port.placeholder"),...D})}),e.jsx(P,{})]})})]})]}),r&&e.jsx(vx,{serverType:o,value:w.watch("protocol_settings"),onChange:D=>w.setValue("protocol_settings",D,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}),e.jsx(b,{control:w.control,name:"parent_id",render:({field:D})=>e.jsxs(j,{children:[e.jsx(v,{children:s("form.parent.label")}),e.jsxs(J,{onValueChange:D.onChange,value:D.value?.toString()||"0",children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:s("form.parent.placeholder")})})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("form.parent.none")}),V?.map(z=>e.jsx($,{value:z.id.toString(),className:"cursor-pointer",children:z.name},z.id))]})]}),e.jsx(P,{})]})}),e.jsx(b,{control:w.control,name:"route_ids",render:({field:D})=>e.jsxs(j,{children:[e.jsx(v,{children:s("form.route.label")}),e.jsx(N,{children:e.jsx(Tt,{options:p,onChange:z=>D.onChange(z.map(R=>R.value)),value:p?.filter(z=>D.value.includes(z.value)),placeholder:s("form.route.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-lg leading-10 text-gray-600 dark:text-gray-400",children:s("form.route.empty")})})}),e.jsx(P,{})]})})]}),e.jsxs(Pe,{className:"mt-6 flex flex-col sm:flex-row gap-2 sm:gap-0",children:[e.jsx(L,{type:"button",variant:"outline",onClick:g,className:"w-full sm:w-auto",children:s("form.cancel")}),e.jsx(L,{type:"submit",onClick:y,className:"w-full sm:w-auto",children:s("form.submit")})]})]})]})]})}function jr({column:s,title:a,options:t}){const r=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(i=>n.has(i.value)).map(i=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:i.label},i.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:a}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(i=>{const l=n.has(i.value);return e.jsxs(We,{onSelect:()=>{l?n.delete(i.value):n.add(i.value);const o=Array.from(n);s?.setFilterValue(o.length?o:void 0)},className:"cursor-pointer",children:[e.jsx("div",{className:_("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",l?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:_("h-4 w-4")})}),i.icon&&e.jsx(i.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${i.color}`}),e.jsx("span",{children:i.label}),r?.get(i.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(i.value)})]},i.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center cursor-pointer",children:"Clear filters"})})]})]})]})})]})}const yx=[{value:ce.Shadowsocks,label:js.find(s=>s.type===ce.Shadowsocks)?.label,color:is[ce.Shadowsocks]},{value:ce.Vmess,label:js.find(s=>s.type===ce.Vmess)?.label,color:is[ce.Vmess]},{value:ce.Trojan,label:js.find(s=>s.type===ce.Trojan)?.label,color:is[ce.Trojan]},{value:ce.Hysteria,label:js.find(s=>s.type===ce.Hysteria)?.label,color:is[ce.Hysteria]},{value:ce.Vless,label:js.find(s=>s.type===ce.Vless)?.label,color:is[ce.Vless]},{value:ce.Tuic,label:js.find(s=>s.type===ce.Tuic)?.label,color:is[ce.Tuic]},{value:ce.Socks,label:js.find(s=>s.type===ce.Socks)?.label,color:is[ce.Socks]},{value:ce.Naive,label:js.find(s=>s.type===ce.Naive)?.label,color:is[ce.Naive]},{value:ce.Http,label:js.find(s=>s.type===ce.Http)?.label,color:is[ce.Http]},{value:ce.Mieru,label:js.find(s=>s.type===ce.Mieru)?.label,color:is[ce.Mieru]}];function Nx({table:s,saveOrder:a,isSortMode:t,groups:r}){const n=s.getState().columnFilters.length>0,{t:i}=I("server");return e.jsxs("div",{className:"flex items-center justify-between ",children:[e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[!t&&e.jsxs(e.Fragment,{children:[e.jsx(bx,{}),e.jsx(T,{placeholder:i("toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:l=>s.getColumn("name")?.setFilterValue(l.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex gap-x-2",children:[s.getColumn("type")&&e.jsx(jr,{column:s.getColumn("type"),title:i("toolbar.type"),options:yx}),s.getColumn("group_ids")&&e.jsx(jr,{column:s.getColumn("group_ids"),title:i("columns.groups.title"),options:r.map(l=>({label:l.name,value:l.id.toString()}))})]}),n&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[i("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),t&&e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:i("toolbar.sort.tip")})})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:t?"default":"outline",onClick:a,size:"sm",children:i(t?"toolbar.sort.save":"toolbar.sort.edit")})})]})}const La=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.71 12.71a6 6 0 1 0-7.42 0a10 10 0 0 0-6.22 8.18a1 1 0 0 0 2 .22a8 8 0 0 1 15.9 0a1 1 0 0 0 1 .89h.11a1 1 0 0 0 .88-1.1a10 10 0 0 0-6.25-8.19M12 12a4 4 0 1 1 4-4a4 4 0 0 1-4 4"})}),ma={0:"bg-destructive/80 shadow-sm shadow-destructive/50",1:"bg-yellow-500/80 shadow-sm shadow-yellow-500/50",2:"bg-emerald-500/80 shadow-sm shadow-emerald-500/50"},Me=(s,a)=>a>0?Math.round(s/a*100):0,_x=s=>{const{t:a}=I("server");return[{id:"drag-handle",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.sort")}),cell:()=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(Ia,{className:"size-4 cursor-move text-muted-foreground transition-colors hover:text-primary","aria-hidden":"true"})}),size:50},{accessorKey:"id",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.nodeId")}),cell:({row:t})=>{const r=t.getValue("id"),n=t.original.code;return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"group/id flex items-center space-x-2",children:[e.jsxs(U,{variant:"outline",className:_("border-2 font-medium transition-all duration-200 hover:opacity-80","flex items-center gap-1.5"),style:{borderColor:is[t.original.type]},children:[e.jsx(vl,{className:"size-3"}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"flex items-center gap-0.5",children:n??r}),t.original.parent?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm text-muted-foreground/30",children:"→"}),e.jsx("span",{children:t.original.parent?.code||t.original.parent?.id})]}):""]})]}),e.jsx(L,{variant:"ghost",size:"icon",className:"size-5 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:text-muted-foreground group-hover/id:opacity-100",onClick:i=>{i.stopPropagation(),Sa(n||r.toString()).then(()=>{q.success(a("common:copy.success"))})},children:e.jsx(rr,{className:"size-3"})})]})}),e.jsxs(oe,{side:"top",className:"flex flex-col gap-1 p-3",children:[e.jsxs("p",{className:"font-medium",children:[js.find(i=>i.type===t.original.type)?.label,t.original.parent?" (子节点)":""]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:n?"点击括号内容或复制按钮可复制节点代码":"点击复制按钮可复制节点ID"})]})]})})},size:50,enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.show")}),cell:({row:t})=>{const[r,n]=d.useState(!!t.getValue("show"));return e.jsx(Z,{checked:r,onCheckedChange:async i=>{n(i),at.update({id:t.original.id,type:t.original.type,show:i?1:0}).catch(()=>{n(!i),s()})},style:{backgroundColor:r?is[t.original.type]:void 0}})},size:50,enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx(A,{column:t,title:a("columns.node"),tooltip:e.jsxs("div",{className:"grid grid-cols-1 gap-3 p-2",children:[e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:_("h-2.5 w-2.5 rounded-full",ma[0])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.0")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:_("h-2.5 w-2.5 rounded-full",ma[1])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.1")})]}),e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:_("h-2.5 w-2.5 rounded-full",ma[2])}),e.jsx("span",{className:"text-sm font-medium",children:a("columns.status.2")})]})]})})}),cell:({row:t})=>e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsxs("div",{className:"flex items-center space-x-2.5",children:[e.jsx("span",{className:_("size-2.5 flex-shrink-0 rounded-full transition-all duration-200",ma[t.original.available_status])}),e.jsx("span",{className:"text-left font-medium transition-colors hover:text-primary",children:t.getValue("name")})]})}),e.jsx(oe,{children:e.jsxs("div",{className:" space-y-3",children:[e.jsx("p",{className:"font-medium",children:a(`columns.status.${t.original.available_status}`)}),t.original.load_status&&e.jsxs("div",{className:"border-t border-border/50 pt-3",children:[e.jsx("p",{className:"mb-3 text-sm font-medium",children:a("columns.loadStatus.details")}),e.jsxs("div",{className:"space-y-3 text-xs",children:[e.jsx("div",{children:e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.cpu"),":"]}),e.jsxs("div",{className:"ml-2 flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:_("h-full transition-all duration-300",t.original.load_status.cpu>=90?"bg-destructive":t.original.load_status.cpu>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Math.min(100,t.original.load_status.cpu)}%`}})}),e.jsxs("span",{className:_("min-w-[3rem] text-right font-semibold",t.original.load_status.cpu>=90?"text-destructive":t.original.load_status.cpu>=70?"text-yellow-600":"text-emerald-600"),children:[Math.round(t.original.load_status.cpu),"%"]})]})]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.memory"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:_("h-full transition-all duration-300",Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"bg-destructive":Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Me(t.original.load_status.mem.used,t.original.load_status.mem.total)}%`}})}),e.jsxs("span",{className:_("min-w-[3rem] text-right font-semibold",Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=90?"text-destructive":Me(t.original.load_status.mem.used,t.original.load_status.mem.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Me(t.original.load_status.mem.used,t.original.load_status.mem.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.mem.used)," ","/"," ",Oe(t.original.load_status.mem.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.swap"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:_("h-full transition-all duration-300",Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"bg-destructive":Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Me(t.original.load_status.swap.used,t.original.load_status.swap.total)}%`}})}),e.jsxs("span",{className:_("min-w-[3rem] text-right font-semibold",Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=80?"text-destructive":Me(t.original.load_status.swap.used,t.original.load_status.swap.total)>=50?"text-yellow-600":"text-emerald-600"),children:[Me(t.original.load_status.swap.used,t.original.load_status.swap.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.swap.used)," ","/"," ",Oe(t.original.load_status.swap.total)]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[e.jsxs("span",{className:"font-medium",children:[a("columns.loadStatus.disk"),":"]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-20 overflow-hidden rounded-full bg-muted",children:e.jsx("div",{className:_("h-full transition-all duration-300",Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"bg-destructive":Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"bg-yellow-500":"bg-emerald-500"),style:{width:`${Me(t.original.load_status.disk.used,t.original.load_status.disk.total)}%`}})}),e.jsxs("span",{className:_("min-w-[3rem] text-right font-semibold",Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=90?"text-destructive":Me(t.original.load_status.disk.used,t.original.load_status.disk.total)>=70?"text-yellow-600":"text-emerald-600"),children:[Me(t.original.load_status.disk.used,t.original.load_status.disk.total),"%"]})]})]}),e.jsxs("div",{className:"ml-auto w-[9.5rem] text-right text-xs text-muted-foreground",children:[Oe(t.original.load_status.disk.used)," ","/"," ",Oe(t.original.load_status.disk.total)]})]})]})]})]})})]})}),enableSorting:!1,size:200},{accessorKey:"host",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.address")}),cell:({row:t})=>{const r=`${t.original.host}:${t.original.port}`,n=t.original.port!==t.original.server_port;return e.jsxs("div",{className:"group relative flex min-w-0 items-start",children:[e.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1 gap-y-0.5 pr-7",children:[e.jsx("div",{className:"flex items-center ",children:e.jsxs("span",{className:"font-mono text-sm font-medium text-foreground/90",children:[t.original.host,":",t.original.port]})}),n&&e.jsxs("span",{className:"whitespace-nowrap text-[0.7rem] tracking-tight text-muted-foreground/40",children:["(",a("columns.internalPort")," ",t.original.server_port,")"]})]}),e.jsx("div",{className:"absolute right-0 top-0",children:e.jsx(pe,{delayDuration:0,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"icon",className:"size-6 text-muted-foreground/40 opacity-0 transition-all duration-200 hover:bg-muted/50 hover:text-muted-foreground group-hover:opacity-100",onClick:i=>{i.stopPropagation(),Sa(r).then(()=>{q.success(a("common:copy.success"))})},children:e.jsx(rr,{className:"size-3"})})}),e.jsx(oe,{side:"top",sideOffset:10,children:a("columns.copyAddress")})]})})})]})},enableSorting:!1,enableHiding:!0},{accessorKey:"online",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.onlineUsers.title"),tooltip:a("columns.onlineUsers.tooltip")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(La,{className:"size-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("online")})]}),size:80,enableSorting:!0,enableHiding:!0},{accessorKey:"rate",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.rate.title"),tooltip:a("columns.rate.tooltip")}),cell:({row:t})=>e.jsxs(U,{variant:"secondary",className:"font-medium",children:[t.getValue("rate")," x"]}),size:80,enableSorting:!1,enableHiding:!0},{accessorKey:"group_ids",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.groups.title"),tooltip:a("columns.groups.tooltip")}),cell:({row:t})=>{const r=t.original.groups||[];return e.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[r.map((n,i)=>e.jsx(U,{variant:"secondary",className:_("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:n.name},i)),r.length===0&&e.jsx("span",{className:"text-sm text-muted-foreground",children:a("columns.groups.empty")})]})},enableSorting:!1,filterFn:(t,r,n)=>{const i=t.getValue(r);return i?n.some(l=>i.includes(l)):!1}},{accessorKey:"type",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.type")}),cell:({row:t})=>{const r=t.getValue("type");return e.jsx(U,{variant:"outline",className:"border-2 font-medium transition-colors",style:{borderColor:is[r]},children:r})},enableSorting:!1,enableHiding:!0,enableColumnFilter:!1,size:8e3},{id:"actions",header:({column:t})=>e.jsx(A,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>{const{setIsOpen:r,setEditingServer:n,setServerType:i}=ai();return e.jsx("div",{className:"flex justify-center",children:e.jsxs($s,{modal:!1,children:[e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":a("columns.actions"),children:e.jsx(Ca,{className:"size-4"})})}),e.jsxs(Rs,{align:"end",className:"w-40",children:[e.jsx(_e,{className:"cursor-pointer",onClick:()=>{i(t.original.type),n(t.original),r(!0)},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(Wc,{className:"mr-2 size-4"}),a("columns.actions_dropdown.edit")]})}),e.jsxs(_e,{className:"cursor-pointer",onClick:async()=>{at.copy({id:t.original.id}).then(({data:l})=>{l&&(q.success(a("columns.actions_dropdown.copy_success")),s())})},children:[e.jsx(Yc,{className:"mr-2 size-4"}),a("columns.actions_dropdown.copy")]}),e.jsx(rt,{}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onSelect:l=>l.preventDefault(),children:e.jsx(ps,{title:a("columns.actions_dropdown.delete.title"),description:a("columns.actions_dropdown.delete.description"),confirmText:a("columns.actions_dropdown.delete.confirm"),variant:"destructive",onConfirm:async()=>{at.drop({id:t.original.id}).then(({data:l})=>{l&&(q.success(a("columns.actions_dropdown.delete_success")),s())})},children:e.jsxs("div",{className:"flex w-full items-center",children:[e.jsx(ds,{className:"mr-2 size-4"}),a("columns.actions_dropdown.delete.confirm")]})})})]})]})})},size:50}]};function wx(){const[s,a]=d.useState({}),[t,r]=d.useState({"drag-handle":!1}),[n,i]=d.useState([]),[l,o]=d.useState({pageSize:500,pageIndex:0}),[x,u]=d.useState([]),[c,m]=d.useState(!1),[p,k]=d.useState({}),[S,f]=d.useState([]),{refetch:w}=ne({queryKey:["nodeList"],queryFn:async()=>{const{data:D}=await at.getList();return f(D),D}}),{data:C}=ne({queryKey:["groups"],queryFn:async()=>{const{data:D}=await mt.getList();return D}});d.useEffect(()=>{r({"drag-handle":c,show:!c,host:!c,online:!c,rate:!c,groups:!c,type:!1,actions:!c}),k({name:c?2e3:200}),o({pageSize:c?99999:500,pageIndex:0})},[c]);const V=(D,z)=>{c&&(D.dataTransfer.setData("text/plain",z.toString()),D.currentTarget.classList.add("opacity-50"))},F=(D,z)=>{if(!c)return;D.preventDefault(),D.currentTarget.classList.remove("bg-muted");const R=parseInt(D.dataTransfer.getData("text/plain"));if(R===z)return;const K=[...S],[ae]=K.splice(R,1);K.splice(z,0,ae),f(K)},g=async()=>{if(!c){m(!0);return}const D=S?.map((z,R)=>({id:z.id,order:R+1}));at.sort(D).then(()=>{q.success("排序保存成功"),m(!1),w()}).finally(()=>{m(!1)})},y=ss({data:S||[],columns:_x(w),state:{sorting:x,columnVisibility:t,rowSelection:s,columnFilters:n,columnSizing:p,pagination:l},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:u,onColumnFiltersChange:i,onColumnVisibilityChange:r,onColumnSizingChange:k,onPaginationChange:o,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(sx,{refetch:w,children:e.jsx("div",{className:"space-y-4",children:e.jsx(xs,{table:y,toolbar:D=>e.jsx(Nx,{table:D,refetch:w,saveOrder:g,isSortMode:c,groups:C||[]}),draggable:c,onDragStart:V,onDragEnd:D=>D.currentTarget.classList.remove("opacity-50"),onDragOver:D=>{D.preventDefault(),D.currentTarget.classList.add("bg-muted")},onDragLeave:D=>D.currentTarget.classList.remove("bg-muted"),onDrop:F,showPagination:!c})})})}function Cx(){const{t:s}=I("server");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(wx,{})})]})]})}const Sx=Object.freeze(Object.defineProperty({__proto__:null,default:Cx},Symbol.toStringTag,{value:"Module"}));function kx({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:r}=I("group");return e.jsx("div",{className:"flex items-center justify-between space-x-4",children:e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsx(Ga,{refetch:a}),e.jsx(T,{placeholder:r("toolbar.searchPlaceholder"),value:s.getColumn("name")?.getFilterValue()??"",onChange:n=>s.getColumn("name")?.setFilterValue(n.target.value),className:_("h-8 w-[150px] lg:w-[250px]",t&&"border-primary/50 ring-primary/20")}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})})}const Tx=s=>{const{t:a}=I("group");return[{accessorKey:"id",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(U,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0},{accessorKey:"name",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium",children:t.getValue("name")})})},{accessorKey:"users_count",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.usersCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(La,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("users_count")})]}),enableSorting:!0},{accessorKey:"server_count",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.serverCount")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 px-4",children:[e.jsx(vl,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium",children:t.getValue("server_count")})]}),enableSorting:!0,size:8e3},{id:"actions",header:({column:t})=>e.jsx(A,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(Ga,{defaultValues:t.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("form.edit")})]})}),e.jsx(ps,{title:a("messages.deleteConfirm"),description:a("messages.deleteDescription"),confirmText:a("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{mt.drop({id:t.original.id}).then(({data:r})=>{r&&(q.success(a("messages.updateSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("messages.deleteButton")})]})})]})}]};function Dx(){const[s,a]=d.useState({}),[t,r]=d.useState({}),[n,i]=d.useState([]),[l,o]=d.useState([]),{data:x,refetch:u,isLoading:c}=ne({queryKey:["serverGroupList"],queryFn:async()=>{const{data:p}=await mt.getList();return p}}),m=ss({data:x||[],columns:Tx(u),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:n},enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:o,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:m,toolbar:p=>e.jsx(kx,{table:p,refetch:u}),isLoading:c})}function Lx(){const{t:s}=I("group");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Dx,{})})]})]})}const Px=Object.freeze(Object.defineProperty({__proto__:null,default:Lx},Symbol.toStringTag,{value:"Module"})),Rx=s=>h.object({remarks:h.string().min(1,s("form.validation.remarks")),match:h.array(h.string()),action:h.enum(["block","dns"]),action_value:h.string().optional()});function ni({refetch:s,dialogTrigger:a,defaultValues:t={remarks:"",match:[],action:"block",action_value:""},type:r="create"}){const{t:n}=I("route"),i=we({resolver:Ce(Rx(n)),defaultValues:t,mode:"onChange"}),[l,o]=d.useState(!1);return e.jsxs(ge,{open:l,onOpenChange:o,children:[e.jsx(as,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"space-x-2",children:[e.jsx(Be,{icon:"ion:add"})," ",e.jsx("div",{children:n("form.add")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:n(r==="edit"?"form.edit":"form.create")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...i,children:[e.jsx(b,{control:i.control,name:"remarks",render:({field:x})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:n("form.remarks")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(T,{type:"text",placeholder:n("form.remarksPlaceholder"),...x})})}),e.jsx(P,{})]})}),e.jsx(b,{control:i.control,name:"match",render:({field:x})=>e.jsxs(j,{className:"flex-[2]",children:[e.jsx(v,{children:n("form.match")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(Ls,{className:"min-h-[120px]",placeholder:n("form.matchPlaceholder"),value:Array.isArray(x.value)?x.value.join(` +`):"",onChange:u=>{const c=u.target.value.split(` +`);x.onChange(c)}})})}),e.jsx(P,{})]})}),e.jsx(b,{control:i.control,name:"action",render:({field:x})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.action")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsxs(J,{onValueChange:x.onChange,defaultValue:x.value,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("form.actionPlaceholder")})}),e.jsxs(Y,{children:[e.jsx($,{value:"block",children:n("actions.block")}),e.jsx($,{value:"dns",children:n("actions.dns")})]})]})})}),e.jsx(P,{})]})}),i.watch("action")==="dns"&&e.jsx(b,{control:i.control,name:"action_value",render:({field:x})=>e.jsxs(j,{children:[e.jsx(v,{children:n("form.dns")}),e.jsx("div",{className:"relative",children:e.jsx(N,{children:e.jsx(T,{type:"text",placeholder:n("form.dnsPlaceholder"),...x})})})]})}),e.jsxs(Pe,{children:[e.jsx(Gs,{asChild:!0,children:e.jsx(L,{variant:"outline",children:n("form.cancel")})}),e.jsx(L,{type:"submit",onClick:()=>{const x=i.getValues(),u={...x,match:Array.isArray(x.match)?x.match.filter(c=>c.trim()!==""):[]};Oa.save(u).then(({data:c})=>{c&&(o(!1),s&&s(),q.success(n(r==="edit"?"messages.updateSuccess":"messages.createSuccess")),i.reset())})},children:n("form.submit")})]})]})]})]})}function Ex({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:r}=I("route");return e.jsx("div",{className:"flex items-center justify-between ",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-2",children:[e.jsx(ni,{refetch:a}),e.jsx(T,{placeholder:r("toolbar.searchPlaceholder"),value:s.getColumn("remarks")?.getFilterValue()??"",onChange:n=>s.getColumn("remarks")?.setFilterValue(n.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})})}function Fx({columns:s,data:a,refetch:t}){const[r,n]=d.useState({}),[i,l]=d.useState({}),[o,x]=d.useState([]),[u,c]=d.useState([]),m=ss({data:a,columns:s,state:{sorting:u,columnVisibility:i,rowSelection:r,columnFilters:o},enableRowSelection:!0,onRowSelectionChange:n,onSortingChange:c,onColumnFiltersChange:x,onColumnVisibilityChange:l,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:m,toolbar:p=>e.jsx(Ex,{table:p,refetch:t})})}const Ix=s=>{const{t:a}=I("route"),t={block:{icon:Jc,variant:"destructive",className:"bg-red-100 text-red-700 dark:bg-red-900 dark:text-red-400 hover:bg-red-200 dark:hover:bg-red-800"},dns:{icon:Qc,variant:"secondary",className:"bg-blue-100 text-blue-700 dark:bg-blue-900 dark:text-blue-400 hover:bg-blue-200 dark:hover:bg-blue-800"}};return[{accessorKey:"id",header:({column:r})=>e.jsx(A,{column:r,title:a("columns.id")}),cell:({row:r})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(U,{variant:"outline",children:r.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"remarks",header:({column:r})=>e.jsx(A,{column:r,title:a("columns.remarks")}),cell:({row:r})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:r.original.remarks})}),enableHiding:!1,enableSorting:!1},{accessorKey:"action_value",header:({column:r})=>e.jsx(A,{column:r,title:a("columns.action_value.title")}),cell:({row:r})=>{const n=r.original.action,i=r.original.action_value,l=r.original.match?.length||0;return e.jsxs("div",{className:"flex flex-col space-y-1",children:[e.jsx("span",{className:"text-sm font-medium",children:n==="dns"&&i?a("columns.action_value.dns",{value:i}):n==="block"?e.jsx("span",{className:"text-destructive",children:a("columns.action_value.block")}):a("columns.action_value.direct")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a("columns.matchRules",{count:l})})]})},enableHiding:!1,enableSorting:!1,size:300},{accessorKey:"action",header:({column:r})=>e.jsx(A,{column:r,title:a("columns.action")}),cell:({row:r})=>{const n=r.getValue("action"),i=t[n]?.icon;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(U,{variant:t[n]?.variant||"default",className:_("flex items-center gap-1.5 px-3 py-1 capitalize",t[n]?.className),children:[i&&e.jsx(i,{className:"h-3.5 w-3.5"}),a(`actions.${n}`)]})})},enableSorting:!1,size:9e3},{id:"actions",header:()=>e.jsx("div",{className:"text-right",children:a("columns.actions")}),cell:({row:r})=>e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(ni,{defaultValues:r.original,refetch:s,type:"edit",dialogTrigger:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("form.edit")})]})}),e.jsx(ps,{title:a("messages.deleteConfirm"),description:a("messages.deleteDescription"),confirmText:a("messages.deleteButton"),variant:"destructive",onConfirm:async()=>{Oa.drop({id:r.original.id}).then(({data:n})=>{n&&(q.success(a("messages.deleteSuccess")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("messages.deleteButton")})]})})]})}]};function Vx(){const{t:s}=I("route"),[a,t]=d.useState([]);function r(){Oa.getList().then(({data:n})=>{t(n)})}return d.useEffect(()=>{r()},[]),e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Fx,{data:a,columns:Ix(r),refetch:r})})]})]})}const Mx=Object.freeze(Object.defineProperty({__proto__:null,default:Vx},Symbol.toStringTag,{value:"Module"})),ri=d.createContext(void 0);function Ox({children:s,refreshData:a}){const[t,r]=d.useState(!1),[n,i]=d.useState(null);return e.jsx(ri.Provider,{value:{isOpen:t,setIsOpen:r,editingPlan:n,setEditingPlan:i,refreshData:a},children:s})}function qn(){const s=d.useContext(ri);if(s===void 0)throw new Error("usePlanEdit must be used within a PlanEditProvider");return s}function zx({table:s,saveOrder:a,isSortMode:t}){const{setIsOpen:r}=qn(),{t:n}=I("subscribe");return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsxs(L,{variant:"outline",className:"space-x-2",size:"sm",onClick:()=>r(!0),children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:n("plan.add")})]}),e.jsx(T,{placeholder:n("plan.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:i=>s.getColumn("name")?.setFilterValue(i.target.value),className:"h-8 w-[150px] lg:w-[250px]"})]}),s.getRowCount()>0&&e.jsx("div",{className:"flex items-center gap-2",children:e.jsx(L,{variant:t?"default":"outline",onClick:a,size:"sm",children:n(t?"plan.sort.save":"plan.sort.edit")})})]})}const vr={monthly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},quarterly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},half_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},two_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},three_yearly:{color:"text-slate-700",bgColor:"bg-slate-100/80"},onetime:{color:"text-slate-700",bgColor:"bg-slate-100/80"},reset_traffic:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},$x=s=>{const{t:a}=I("subscribe");return[{id:"drag-handle",header:()=>null,cell:()=>e.jsx("div",{className:"cursor-move",children:e.jsx(Ia,{className:"size-4"})}),size:40,enableSorting:!1},{accessorKey:"id",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.id")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(U,{variant:"outline",children:t.getValue("id")})}),enableSorting:!0,enableHiding:!1},{accessorKey:"show",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.show")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("show"),onCheckedChange:r=>{gs.update({id:t.original.id,show:r}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"sell",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.sell")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("sell"),onCheckedChange:r=>{gs.update({id:t.original.id,sell:r}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"renew",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.renew"),tooltip:a("plan.columns.renew_tooltip")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.getValue("renew"),onCheckedChange:r=>{gs.update({id:t.original.id,renew:r}).then(({data:n})=>{!n&&s()})}}),enableSorting:!1,enableHiding:!1},{accessorKey:"name",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium sm:max-w-72 md:max-w-[31rem]",children:t.getValue("name")})}),enableSorting:!1,enableHiding:!1,size:900},{accessorKey:"users_count",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.stats")}),cell:({row:t})=>{const r=t.getValue("users_count")||0,n=t.original.active_users_count||0,i=r>0?Math.round(n/r*100):0;return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"flex items-center gap-1 rounded-md bg-slate-50 px-2 py-1 hover:bg-slate-100 transition-colors cursor-help",children:[e.jsx(va,{className:"h-3.5 w-3.5 text-slate-500"}),e.jsx("span",{className:"text-sm font-medium text-slate-700",children:r})]})}),e.jsx(oe,{side:"top",className:"max-w-xs",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"总用户数"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"所有使用该套餐的用户(包括已过期)"})]})})]})}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"flex items-center gap-1 rounded-md bg-green-50 px-2 py-1 hover:bg-green-100 transition-colors cursor-help",children:[e.jsx(Xc,{className:"h-3.5 w-3.5 text-green-600"}),e.jsx("span",{className:"text-sm font-medium text-green-700",children:n})]})}),e.jsx(oe,{side:"top",className:"max-w-xs",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"font-medium",children:"有效期内用户"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"当前仍在有效期内的活跃用户"}),r>0&&e.jsxs("p",{className:"text-xs font-medium text-green-600",children:["活跃率:",i,"%"]})]})})]})})]})},enableSorting:!0,size:120},{accessorKey:"group",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.group")}),cell:({row:t})=>e.jsx("div",{className:"flex max-w-[600px] flex-wrap items-center gap-1.5 text-nowrap",children:e.jsx(U,{variant:"secondary",className:_("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5"),children:t.getValue("group")?.name})}),enableSorting:!1,enableHiding:!1},{accessorKey:"prices",header:({column:t})=>e.jsx(A,{column:t,title:a("plan.columns.price")}),cell:({row:t})=>{const r=t.getValue("prices"),n=[{period:a("plan.columns.price_period.monthly"),key:"monthly",unit:a("plan.columns.price_period.unit.month")},{period:a("plan.columns.price_period.quarterly"),key:"quarterly",unit:a("plan.columns.price_period.unit.quarter")},{period:a("plan.columns.price_period.half_yearly"),key:"half_yearly",unit:a("plan.columns.price_period.unit.half_year")},{period:a("plan.columns.price_period.yearly"),key:"yearly",unit:a("plan.columns.price_period.unit.year")},{period:a("plan.columns.price_period.two_yearly"),key:"two_yearly",unit:a("plan.columns.price_period.unit.two_year")},{period:a("plan.columns.price_period.three_yearly"),key:"three_yearly",unit:a("plan.columns.price_period.unit.three_year")},{period:a("plan.columns.price_period.onetime"),key:"onetime",unit:""},{period:a("plan.columns.price_period.reset_traffic"),key:"reset_traffic",unit:a("plan.columns.price_period.unit.times")}];return e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:n.map(({period:i,key:l,unit:o})=>r[l]!=null&&e.jsxs(U,{variant:"secondary",className:_("px-2 py-0.5 font-medium transition-colors text-nowrap",vr[l].color,vr[l].bgColor,"border border-border/50","hover:bg-slate-200/80"),children:[i," ¥",r[l],o]},l))})},enableSorting:!1,size:9e3},{id:"actions",header:({column:t})=>e.jsx(A,{className:"justify-end",column:t,title:a("plan.columns.actions")}),cell:({row:t})=>{const{setIsOpen:r,setEditingPlan:n}=qn();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>{n(t.original),r(!0)},children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("plan.columns.edit")})]}),e.jsx(ps,{title:a("plan.columns.delete_confirm.title"),description:a("plan.columns.delete_confirm.description"),confirmText:a("plan.columns.delete"),variant:"destructive",onConfirm:async()=>{gs.drop({id:t.original.id}).then(({data:i})=>{i&&(q.success(a("plan.columns.delete_confirm.success")),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("plan.columns.delete")})]})})]})}}]},Ax=h.object({id:h.number().nullable(),group_id:h.union([h.number(),h.string()]).nullable().optional(),name:h.string().min(1).max(250),content:h.string().nullable().optional(),transfer_enable:h.union([h.number().min(0),h.string().min(1)]),prices:h.object({monthly:h.union([h.number(),h.string()]).nullable().optional(),quarterly:h.union([h.number(),h.string()]).nullable().optional(),half_yearly:h.union([h.number(),h.string()]).nullable().optional(),yearly:h.union([h.number(),h.string()]).nullable().optional(),two_yearly:h.union([h.number(),h.string()]).nullable().optional(),three_yearly:h.union([h.number(),h.string()]).nullable().optional(),onetime:h.union([h.number(),h.string()]).nullable().optional(),reset_traffic:h.union([h.number(),h.string()]).nullable().optional()}).default({}),speed_limit:h.union([h.number(),h.string()]).nullable().optional(),capacity_limit:h.union([h.number(),h.string()]).nullable().optional(),device_limit:h.union([h.number(),h.string()]).nullable().optional(),force_update:h.boolean().optional(),reset_traffic_method:h.number().nullable(),users_count:h.number().optional(),active_users_count:h.number().optional(),group:h.object({id:h.number(),name:h.string()}).optional()}),Hn=d.forwardRef(({className:s,...a},t)=>e.jsx(bl,{ref:t,className:_("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",s),...a,children:e.jsx(Zc,{className:_("flex items-center justify-center text-current"),children:e.jsx(ot,{className:"h-4 w-4"})})}));Hn.displayName=bl.displayName;const ua={id:null,group_id:null,name:"",content:"",transfer_enable:"",prices:{monthly:"",quarterly:"",half_yearly:"",yearly:"",two_yearly:"",three_yearly:"",onetime:"",reset_traffic:""},speed_limit:"",capacity_limit:"",device_limit:"",force_update:!1,reset_traffic_method:null},xa={monthly:{label:"月付",months:1,discount:1},quarterly:{label:"季付",months:3,discount:.95},half_yearly:{label:"半年付",months:6,discount:.9},yearly:{label:"年付",months:12,discount:.85},two_yearly:{label:"两年付",months:24,discount:.8},three_yearly:{label:"三年付",months:36,discount:.75},onetime:{label:"流量包",months:1,discount:1},reset_traffic:{label:"重置包",months:1,discount:1}},qx=[{value:null,label:"follow_system"},{value:0,label:"monthly_first"},{value:1,label:"monthly_reset"},{value:2,label:"no_reset"},{value:3,label:"yearly_first"},{value:4,label:"yearly_reset"}];function Hx(){const{isOpen:s,setIsOpen:a,editingPlan:t,setEditingPlan:r,refreshData:n}=qn(),[i,l]=d.useState(!1),{t:o}=I("subscribe"),x=we({resolver:Ce(Ax),defaultValues:{...ua,...t||{}},mode:"onChange"});d.useEffect(()=>{t?x.reset({...ua,...t}):x.reset(ua)},[t,x]);const u=new Ln({html:!0}),[c,m]=d.useState();async function p(){mt.getList().then(({data:f})=>{m(f)})}d.useEffect(()=>{s&&p()},[s]);const k=f=>{if(isNaN(f))return;const w=Object.entries(xa).reduce((C,[V,F])=>{const g=f*F.months*F.discount;return{...C,[V]:g.toFixed(2)}},{});x.setValue("prices",w,{shouldDirty:!0})},S=()=>{a(!1),r(null),x.reset(ua)};return e.jsx(ge,{open:s,onOpenChange:S,children:e.jsxs(ue,{children:[e.jsxs(be,{children:[e.jsx(fe,{children:o(t?"plan.form.edit_title":"plan.form.add_title")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...x,children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(b,{control:x.control,name:"name",render:({field:f})=>e.jsxs(j,{children:[e.jsx(v,{children:o("plan.form.name.label")}),e.jsx(N,{children:e.jsx(T,{placeholder:o("plan.form.name.placeholder"),...f})}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"group_id",render:({field:f})=>e.jsxs(j,{children:[e.jsxs(v,{className:"flex items-center justify-between",children:[o("plan.form.group.label"),e.jsx(Ga,{dialogTrigger:e.jsx(L,{variant:"link",children:o("plan.form.group.add")}),refetch:p})]}),e.jsxs(J,{value:f.value?.toString()??"",onValueChange:w=>f.onChange(w?Number(w):null),children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:o("plan.form.group.placeholder")})})}),e.jsx(Y,{children:c?.map(w=>e.jsx($,{value:w.id.toString(),children:w.name},w.id))})]}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"transfer_enable",render:({field:f})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:o("plan.form.transfer.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(T,{type:"number",min:0,placeholder:o("plan.form.transfer.placeholder"),className:"rounded-r-none",...f})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:o("plan.form.transfer.unit")})]}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"speed_limit",render:({field:f})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:o("plan.form.speed.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(T,{type:"number",min:0,placeholder:o("plan.form.speed.placeholder"),className:"rounded-r-none",...f,value:f.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:o("plan.form.speed.unit")})]}),e.jsx(P,{})]})}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-1 items-center",children:[e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"}),e.jsx("h3",{className:"mx-4 text-sm font-medium text-gray-500 dark:text-gray-400",children:o("plan.form.price.title")}),e.jsx("div",{className:"flex-grow border-t border-gray-200 dark:border-gray-700"})]}),e.jsxs("div",{className:"ml-4 flex items-center gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(T,{type:"number",placeholder:o("plan.form.price.base_price"),className:"h-7 w-32 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500",onChange:f=>{const w=parseFloat(f.target.value);k(w)}})]}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:()=>{const f=Object.keys(xa).reduce((w,C)=>({...w,[C]:""}),{});x.setValue("prices",f,{shouldDirty:!0})},children:o("plan.form.price.clear.button")})}),e.jsx(oe,{side:"top",align:"end",children:e.jsx("p",{className:"text-xs",children:o("plan.form.price.clear.tooltip")})})]})})]})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-3",children:Object.entries(xa).filter(([f])=>!["onetime","reset_traffic"].includes(f)).map(([f,w])=>e.jsx("div",{className:"group relative rounded-md bg-card p-2 ring-1 ring-gray-200 transition-all hover:ring-primary dark:ring-gray-800",children:e.jsx(b,{control:x.control,name:`prices.${f}`,render:({field:C})=>e.jsxs(j,{children:[e.jsxs(v,{className:"text-xs font-medium text-muted-foreground",children:[o(`plan.columns.price_period.${f}`),e.jsxs("span",{className:"ml-1 text-[10px] text-gray-400",children:["(",w.months===1?o("plan.form.price.period.monthly"):o("plan.form.price.period.months",{count:w.months}),")"]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:"0.00",min:0,...C,value:C.value??"",onChange:V=>C.onChange(V.target.value),className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})},f))}),e.jsx("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Object.entries(xa).filter(([f])=>["onetime","reset_traffic"].includes(f)).map(([f,w])=>e.jsx("div",{className:"rounded-md border border-dashed border-gray-200 bg-muted/30 p-3 dark:border-gray-700",children:e.jsx(b,{control:x.control,name:`prices.${f}`,render:({field:C})=>e.jsx(j,{children:e.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"space-y-0",children:[e.jsx(v,{className:"text-xs font-medium",children:o(`plan.columns.price_period.${f}`)}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:o(f==="onetime"?"plan.form.price.onetime_desc":"plan.form.price.reset_desc")})]}),e.jsxs("div",{className:"relative w-full md:w-32",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2",children:e.jsx("span",{className:"text-sm font-medium text-gray-400",children:"¥"})}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:"0.00",min:0,...C,className:"h-7 border-0 bg-gray-50 pl-6 pr-2 text-sm shadow-none ring-1 ring-gray-200 transition-shadow focus-visible:ring-2 focus-visible:ring-primary dark:bg-gray-800/50 dark:ring-gray-700 dark:placeholder:text-gray-500"})})]})]})})})},f))})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(b,{control:x.control,name:"device_limit",render:({field:f})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:o("plan.form.device.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(T,{type:"number",min:0,placeholder:o("plan.form.device.placeholder"),className:"rounded-r-none",...f,value:f.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:o("plan.form.device.unit")})]}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"capacity_limit",render:({field:f})=>e.jsxs(j,{className:"flex-1",children:[e.jsx(v,{children:o("plan.form.capacity.label")}),e.jsxs("div",{className:"relative flex",children:[e.jsx(N,{children:e.jsx(T,{type:"number",min:0,placeholder:o("plan.form.capacity.placeholder"),className:"rounded-r-none",...f,value:f.value??""})}),e.jsx("div",{className:"flex items-center rounded-r-md border border-l-0 border-input bg-muted px-3 text-sm text-muted-foreground",children:o("plan.form.capacity.unit")})]}),e.jsx(P,{})]})})]}),e.jsx(b,{control:x.control,name:"reset_traffic_method",render:({field:f})=>e.jsxs(j,{children:[e.jsx(v,{children:o("plan.form.reset_method.label")}),e.jsxs(J,{value:f.value?.toString()??"null",onValueChange:w=>f.onChange(w=="null"?null:Number(w)),children:[e.jsx(N,{children:e.jsx(W,{children:e.jsx(Q,{placeholder:o("plan.form.reset_method.placeholder")})})}),e.jsx(Y,{children:qx.map(w=>e.jsx($,{value:w.value?.toString()??"null",children:o(`plan.form.reset_method.options.${w.label}`)},w.value))})]}),e.jsx(O,{className:"text-xs",children:o("plan.form.reset_method.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:x.control,name:"content",render:({field:f})=>{const[w,C]=d.useState(!1);return e.jsxs(j,{className:"space-y-2",children:[e.jsxs(v,{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[o("plan.form.content.label"),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>C(!w),children:w?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{d:"M10 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z"}),e.jsx("path",{fillRule:"evenodd",d:"M.664 10.59a1.651 1.651 0 010-1.186A10.004 10.004 0 0110 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0110 17c-4.257 0-7.893-2.66-9.336-6.41zM14 10a4 4 0 11-8 0 4 4 0 018 0z",clipRule:"evenodd"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-4 w-4",children:[e.jsx("path",{fillRule:"evenodd",d:"M3.28 2.22a.75.75 0 00-1.06 1.06l14.5 14.5a.75.75 0 101.06-1.06l-1.745-1.745a10.029 10.029 0 003.3-4.38 1.651 1.651 0 000-1.185A10.004 10.004 0 009.999 3a9.956 9.956 0 00-4.744 1.194L3.28 2.22zM7.752 6.69l1.092 1.092a2.5 2.5 0 013.374 3.373l1.091 1.092a4 4 0 00-5.557-5.557z",clipRule:"evenodd"}),e.jsx("path",{d:"M10.748 13.93l2.523 2.523a9.987 9.987 0 01-3.27.547c-4.258 0-7.894-2.66-9.337-6.41a1.651 1.651 0 010-1.186A10.007 10.007 0 012.839 6.02L6.07 9.252a4 4 0 004.678 4.678z"})]})})}),e.jsx(oe,{side:"top",children:e.jsx("p",{className:"text-xs",children:o(w?"plan.form.content.preview_button.hide":"plan.form.content.preview_button.show")})})]})})]}),e.jsx(pe,{children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",onClick:()=>{f.onChange(o("plan.form.content.template.content"))},children:o("plan.form.content.template.button")})}),e.jsx(oe,{side:"left",align:"center",children:e.jsx("p",{className:"text-xs",children:o("plan.form.content.template.tooltip")})})]})})]}),e.jsxs("div",{className:`grid gap-4 ${w?"grid-cols-1 lg:grid-cols-2":"grid-cols-1"}`,children:[e.jsx("div",{className:"space-y-2",children:e.jsx(N,{children:e.jsx(Pn,{style:{height:"400px"},value:f.value||"",renderHTML:V=>u.render(V),onChange:({text:V})=>f.onChange(V),config:{view:{menu:!0,md:!0,html:!1},canView:{menu:!0,md:!0,html:!1,fullScreen:!1,hideMenu:!1}},placeholder:o("plan.form.content.placeholder"),className:"rounded-md border"})})}),w&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-sm text-muted-foreground",children:o("plan.form.content.preview")}),e.jsx("div",{className:"prose prose-sm dark:prose-invert h-[400px] max-w-none overflow-y-auto rounded-md border p-4",children:e.jsx("div",{dangerouslySetInnerHTML:{__html:u.render(f.value||"")}})})]})]}),e.jsx(O,{className:"text-xs",children:o("plan.form.content.description")}),e.jsx(P,{})]})}})]}),e.jsx(Pe,{className:"mt-6",children:e.jsxs("div",{className:"flex w-full items-center justify-between",children:[e.jsx("div",{className:"flex-shrink-0",children:t&&e.jsx(b,{control:x.control,name:"force_update",render:({field:f})=>e.jsxs(j,{className:"flex flex-row items-center space-x-2 space-y-0",children:[e.jsx(N,{children:e.jsx(Hn,{checked:f.value,onCheckedChange:f.onChange})}),e.jsx("div",{className:"",children:e.jsx(v,{className:"text-sm",children:o("plan.form.force_update.label")})})]})})}),e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(L,{type:"button",variant:"outline",onClick:S,children:o("plan.form.submit.cancel")}),e.jsx(L,{type:"submit",disabled:i,onClick:()=>{x.handleSubmit(async f=>{l(!0),gs.save(f).then(({data:w})=>{w&&(q.success(o(t?"plan.form.submit.success.update":"plan.form.submit.success.add")),S(),n())}).finally(()=>{l(!1)})})()},children:o(i?"plan.form.submit.submitting":"plan.form.submit.submit")})]})]})})]})]})})}function Ux(){const[s,a]=d.useState({}),[t,r]=d.useState({"drag-handle":!1}),[n,i]=d.useState([]),[l,o]=d.useState([]),[x,u]=d.useState(!1),[c,m]=d.useState({pageSize:20,pageIndex:0}),[p,k]=d.useState([]),{refetch:S}=ne({queryKey:["planList"],queryFn:async()=>{const{data:F}=await gs.getList();return k(F),F}});d.useEffect(()=>{r({"drag-handle":x}),m({pageSize:x?99999:10,pageIndex:0})},[x]);const f=(F,g)=>{x&&(F.dataTransfer.setData("text/plain",g.toString()),F.currentTarget.classList.add("opacity-50"))},w=(F,g)=>{if(!x)return;F.preventDefault(),F.currentTarget.classList.remove("bg-muted");const y=parseInt(F.dataTransfer.getData("text/plain"));if(y===g)return;const D=[...p],[z]=D.splice(y,1);D.splice(g,0,z),k(D)},C=async()=>{if(!x){u(!0);return}const F=p?.map(g=>g.id);gs.sort(F).then(()=>{q.success("排序保存成功"),u(!1),S()}).finally(()=>{u(!1)})},V=ss({data:p||[],columns:$x(S),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:c},enableRowSelection:!0,onPaginationChange:m,onRowSelectionChange:a,onSortingChange:o,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}},pageCount:x?1:void 0});return e.jsx(Ox,{refreshData:S,children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(xs,{table:V,toolbar:F=>e.jsx(zx,{table:F,refetch:S,saveOrder:C,isSortMode:x}),draggable:x,onDragStart:f,onDragEnd:F=>F.currentTarget.classList.remove("opacity-50"),onDragOver:F=>{F.preventDefault(),F.currentTarget.classList.add("bg-muted")},onDragLeave:F=>F.currentTarget.classList.remove("bg-muted"),onDrop:w,showPagination:!x}),e.jsx(Hx,{})]})})}function Kx(){const{t:s}=I("subscribe");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("plan.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("plan.page.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(Ux,{})})]})]})}const Bx=Object.freeze(Object.defineProperty({__proto__:null,default:Kx},Symbol.toStringTag,{value:"Module"})),bt=[{value:le.PENDING,label:Mt[le.PENDING],icon:ed,color:Ot[le.PENDING]},{value:le.PROCESSING,label:Mt[le.PROCESSING],icon:yl,color:Ot[le.PROCESSING]},{value:le.COMPLETED,label:Mt[le.COMPLETED],icon:pn,color:Ot[le.COMPLETED]},{value:le.CANCELLED,label:Mt[le.CANCELLED],icon:Nl,color:Ot[le.CANCELLED]},{value:le.DISCOUNTED,label:Mt[le.DISCOUNTED],icon:pn,color:Ot[le.DISCOUNTED]}],qt=[{value:Ne.PENDING,label:oa[Ne.PENDING],icon:sd,color:ca[Ne.PENDING]},{value:Ne.PROCESSING,label:oa[Ne.PROCESSING],icon:yl,color:ca[Ne.PROCESSING]},{value:Ne.VALID,label:oa[Ne.VALID],icon:pn,color:ca[Ne.VALID]},{value:Ne.INVALID,label:oa[Ne.INVALID],icon:Nl,color:ca[Ne.INVALID]}];function ha({column:s,title:a,options:t}){const r=s?.getFacetedUniqueValues(),n=s?.getFilterValue(),i=Array.isArray(n)?new Set(n):n!==void 0?new Set([n]):new Set;return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),a,i?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:i.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:i.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[i.size," selected"]}):t.filter(l=>i.has(l.value)).map(l=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:l.label},l.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:a}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(l=>{const o=i.has(l.value);return e.jsxs(We,{onSelect:()=>{const x=new Set(i);o?x.delete(l.value):x.add(l.value);const u=Array.from(x);s?.setFilterValue(u.length?u:void 0)},children:[e.jsx("div",{className:_("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",o?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:_("h-4 w-4")})}),l.icon&&e.jsx(l.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${l.color}`}),e.jsx("span",{children:l.label}),r?.get(l.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(l.value)})]},l.value)})}),i.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Gx=h.object({email:h.string().min(1),plan_id:h.number(),period:h.string(),total_amount:h.number()}),Wx={email:"",plan_id:0,total_amount:0,period:""};function li({refetch:s,trigger:a,defaultValues:t}){const{t:r}=I("order"),[n,i]=d.useState(!1),l=we({resolver:Ce(Gx),defaultValues:{...Wx,...t},mode:"onChange"}),[o,x]=d.useState([]);return d.useEffect(()=>{n&&gs.getList().then(({data:u})=>{x(u)})},[n]),e.jsxs(ge,{open:n,onOpenChange:i,children:[e.jsx(as,{asChild:!0,children:a||e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:r("dialog.addOrder")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:r("dialog.assignOrder")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...l,children:[e.jsx(b,{control:l.control,name:"email",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dialog.fields.userEmail")}),e.jsx(N,{children:e.jsx(T,{placeholder:r("dialog.placeholders.email"),...u})})]})}),e.jsx(b,{control:l.control,name:"plan_id",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dialog.fields.subscriptionPlan")}),e.jsx(N,{children:e.jsxs(J,{value:u.value?u.value?.toString():void 0,onValueChange:c=>u.onChange(parseInt(c)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dialog.placeholders.plan")})}),e.jsx(Y,{children:o.map(c=>e.jsx($,{value:c.id.toString(),children:c.name},c.id))})]})})]})}),e.jsx(b,{control:l.control,name:"period",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dialog.fields.orderPeriod")}),e.jsx(N,{children:e.jsxs(J,{value:u.value,onValueChange:u.onChange,children:[e.jsx(W,{children:e.jsx(Q,{placeholder:r("dialog.placeholders.period")})}),e.jsx(Y,{children:Object.keys(jm).map(c=>e.jsx($,{value:c,children:r(`period.${c}`)},c))})]})})]})}),e.jsx(b,{control:l.control,name:"total_amount",render:({field:u})=>e.jsxs(j,{children:[e.jsx(v,{children:r("dialog.fields.paymentAmount")}),e.jsx(N,{children:e.jsx(T,{type:"number",placeholder:r("dialog.placeholders.amount"),value:u.value/100,onChange:c=>u.onChange(parseFloat(c.currentTarget.value)*100)})}),e.jsx(P,{})]})}),e.jsxs(Pe,{children:[e.jsx(L,{variant:"outline",onClick:()=>i(!1),children:r("dialog.actions.cancel")}),e.jsx(L,{type:"submit",onClick:()=>{l.handleSubmit(u=>{tt.assign(u).then(({data:c})=>{c&&(s&&s(),l.reset(),i(!1),q.success(r("dialog.messages.addSuccess")))})})()},children:r("dialog.actions.confirm")})]})]})]})]})}function Yx({table:s,refetch:a}){const{t}=I("order"),r=s.getState().columnFilters.length>0,n=Object.values(Ss).filter(x=>typeof x=="number").map(x=>({label:t(`type.${Ss[x]}`),value:x,color:x===Ss.NEW?"green-500":x===Ss.RENEWAL?"blue-500":x===Ss.UPGRADE?"purple-500":"orange-500"})),i=Object.values(qe).map(x=>({label:t(`period.${x}`),value:x,color:x===qe.MONTH_PRICE?"slate-500":x===qe.QUARTER_PRICE?"cyan-500":x===qe.HALF_YEAR_PRICE?"indigo-500":x===qe.YEAR_PRICE?"violet-500":x===qe.TWO_YEAR_PRICE?"fuchsia-500":x===qe.THREE_YEAR_PRICE?"pink-500":x===qe.ONETIME_PRICE?"rose-500":"orange-500"})),l=Object.values(le).filter(x=>typeof x=="number").map(x=>({label:t(`status.${le[x]}`),value:x,icon:x===le.PENDING?bt[0].icon:x===le.PROCESSING?bt[1].icon:x===le.COMPLETED?bt[2].icon:x===le.CANCELLED?bt[3].icon:bt[4].icon,color:x===le.PENDING?"yellow-500":x===le.PROCESSING?"blue-500":x===le.COMPLETED?"green-500":x===le.CANCELLED?"red-500":"green-500"})),o=Object.values(Ne).filter(x=>typeof x=="number").map(x=>({label:t(`commission.${Ne[x]}`),value:x,icon:x===Ne.PENDING?qt[0].icon:x===Ne.PROCESSING?qt[1].icon:x===Ne.VALID?qt[2].icon:qt[3].icon,color:x===Ne.PENDING?"yellow-500":x===Ne.PROCESSING?"blue-500":x===Ne.VALID?"green-500":"red-500"}));return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(li,{refetch:a}),e.jsx(T,{placeholder:t("search.placeholder"),value:s.getColumn("trade_no")?.getFilterValue()??"",onChange:x=>s.getColumn("trade_no")?.setFilterValue(x.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs("div",{className:"flex flex-wrap gap-x-2",children:[s.getColumn("type")&&e.jsx(ha,{column:s.getColumn("type"),title:t("table.columns.type"),options:n}),s.getColumn("period")&&e.jsx(ha,{column:s.getColumn("period"),title:t("table.columns.period"),options:i}),s.getColumn("status")&&e.jsx(ha,{column:s.getColumn("status"),title:t("table.columns.status"),options:l}),s.getColumn("commission_status")&&e.jsx(ha,{column:s.getColumn("commission_status"),title:t("table.columns.commissionStatus"),options:o})]}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[t("actions.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})}function Ke({label:s,value:a,className:t,valueClassName:r}){return e.jsxs("div",{className:_("flex items-center py-1.5",t),children:[e.jsx("div",{className:"w-28 shrink-0 text-sm text-muted-foreground",children:s}),e.jsx("div",{className:_("text-sm",r),children:a||"-"})]})}function Jx({status:s}){const{t:a}=I("order"),t={[le.PENDING]:"bg-yellow-100 text-yellow-800 hover:bg-yellow-100",[le.PROCESSING]:"bg-blue-100 text-blue-800 hover:bg-blue-100",[le.CANCELLED]:"bg-red-100 text-red-800 hover:bg-red-100",[le.COMPLETED]:"bg-green-100 text-green-800 hover:bg-green-100",[le.DISCOUNTED]:"bg-gray-100 text-gray-800 hover:bg-gray-100"};return e.jsx(U,{variant:"secondary",className:_("font-medium",t[s]),children:a(`status.${le[s]}`)})}function Qx({id:s,trigger:a}){const[t,r]=d.useState(!1),[n,i]=d.useState(),{t:l}=I("order");return d.useEffect(()=>{(async()=>{if(t){const{data:x}=await tt.getInfo({id:s});i(x)}})()},[t,s]),e.jsxs(ge,{onOpenChange:r,open:t,children:[e.jsx(as,{asChild:!0,children:a}),e.jsxs(ue,{className:"max-w-xl",children:[e.jsxs(be,{className:"space-y-2",children:[e.jsx(fe,{className:"text-lg font-medium",children:l("dialog.title")}),e.jsx("div",{className:"flex items-center justify-between text-sm",children:e.jsxs("div",{className:"flex items-center space-x-6",children:[e.jsxs("div",{className:"text-muted-foreground",children:[l("table.columns.tradeNo"),":",n?.trade_no]}),!!n?.status&&e.jsx(Jx,{status:n.status})]})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.basicInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.userEmail"),value:n?.user?.email?e.jsxs(Ys,{to:`/user/manage?email=${n.user.email}`,className:"group inline-flex items-center gap-1 text-primary hover:underline",children:[n.user.email,e.jsx(jn,{className:"h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100"})]}):"-"}),e.jsx(Ke,{label:l("dialog.fields.orderPeriod"),value:n&&l(`period.${n.period}`)}),e.jsx(Ke,{label:l("dialog.fields.subscriptionPlan"),value:n?.plan?.name,valueClassName:"font-medium"}),e.jsx(Ke,{label:l("dialog.fields.callbackNo"),value:n?.callback_no,valueClassName:"font-mono text-xs"})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.amountInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.paymentAmount"),value:Ms(n?.total_amount||0),valueClassName:"font-medium text-primary"}),e.jsx(Te,{className:"my-2"}),e.jsx(Ke,{label:l("dialog.fields.balancePayment"),value:Ms(n?.balance_amount||0)}),e.jsx(Ke,{label:l("dialog.fields.discountAmount"),value:Ms(n?.discount_amount||0),valueClassName:"text-green-600"}),e.jsx(Ke,{label:l("dialog.fields.refundAmount"),value:Ms(n?.refund_amount||0),valueClassName:"text-red-600"}),e.jsx(Ke,{label:l("dialog.fields.deductionAmount"),value:Ms(n?.surplus_amount||0)})]})]}),e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.timeInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.createdAt"),value:xe(n?.created_at),valueClassName:"font-mono text-xs"}),e.jsx(Ke,{label:l("dialog.fields.updatedAt"),value:xe(n?.updated_at),valueClassName:"font-mono text-xs"})]})]}),n?.commission_status===1&&n?.commission_balance&&e.jsxs("div",{className:"rounded-lg border p-4",children:[e.jsx("div",{className:"mb-2 text-sm font-medium",children:l("dialog.commissionInfo")}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(Ke,{label:l("dialog.fields.commissionStatus"),value:e.jsx(U,{variant:"secondary",className:"bg-orange-100 font-medium text-orange-800 hover:bg-orange-100",children:l("dialog.commissionStatusActive")})}),e.jsx(Ke,{label:l("dialog.fields.commissionAmount"),value:Ms(n?.commission_balance||0),valueClassName:"font-medium text-orange-600"}),n?.actual_commission_balance&&e.jsx(Ke,{label:l("dialog.fields.actualCommissionAmount"),value:Ms(n?.actual_commission_balance||0),valueClassName:"font-medium text-orange-700"}),n?.invite_user&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{className:"my-2"}),e.jsx(Ke,{label:l("dialog.fields.inviteUser"),value:e.jsxs(Ys,{to:`/user/manage?email=${n.invite_user.email}`,className:"group inline-flex items-center gap-1 text-primary hover:underline",children:[n.invite_user.email,e.jsx(jn,{className:"h-3.5 w-3.5 opacity-0 transition-opacity group-hover:opacity-100"})]})}),e.jsx(Ke,{label:l("dialog.fields.inviteUserId"),value:n?.invite_user?.id,valueClassName:"font-mono text-xs"})]})]})]})]})]})]})}const Xx={[Ss.NEW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ss.RENEWAL]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ss.UPGRADE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[Ss.RESET_FLOW]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},Zx={[qe.MONTH_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.QUARTER_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.HALF_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.TWO_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.THREE_YEAR_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.ONETIME_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"},[qe.RESET_PRICE]:{color:"text-slate-700",bgColor:"bg-slate-100/80"}},eh=s=>le[s],sh=s=>Ne[s],th=s=>Ss[s],ah=s=>{const{t:a}=I("order");return[{accessorKey:"trade_no",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.tradeNo")}),cell:({row:t})=>{const r=t.original.trade_no,n=r.length>6?`${r.slice(0,3)}...${r.slice(-3)}`:r;return e.jsx("div",{className:"flex items-center",children:e.jsx(Qx,{trigger:e.jsxs(G,{variant:"ghost",size:"sm",className:"flex h-8 items-center gap-1.5 px-2 font-medium text-primary transition-colors hover:bg-primary/10 hover:text-primary/80",children:[e.jsx("span",{className:"font-mono",children:n}),e.jsx(jn,{className:"h-3.5 w-3.5 opacity-70"})]}),id:t.original.id})})},enableSorting:!1,enableHiding:!1},{accessorKey:"type",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.type")}),cell:({row:t})=>{const r=t.getValue("type"),n=Xx[r];return e.jsx(U,{variant:"secondary",className:_("font-medium transition-colors text-nowrap",n.color,n.bgColor,"border border-border/50","hover:bg-slate-200/80"),children:a(`type.${th(r)}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"plan.name",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.plan")}),cell:({row:t})=>e.jsx("div",{className:"flex space-x-2",children:e.jsx("span",{className:"max-w-32 truncate font-medium text-foreground/90 sm:max-w-72 md:max-w-[31rem]",children:t.original.plan?.name||"-"})}),enableSorting:!1,enableHiding:!1},{accessorKey:"period",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.period")}),cell:({row:t})=>{const r=t.getValue("period"),n=Zx[r];return e.jsx(U,{variant:"secondary",className:_("font-medium transition-colors text-nowrap",n?.color,n?.bgColor,"hover:bg-opacity-80"),children:a(`period.${r}`)})},enableSorting:!1,enableHiding:!1},{accessorKey:"total_amount",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.amount")}),cell:({row:t})=>{const r=t.getValue("total_amount"),n=typeof r=="number"?(r/100).toFixed(2):"N/A";return e.jsxs("div",{className:"flex items-center font-mono text-foreground/90",children:["¥",n]})},enableSorting:!0,enableHiding:!1},{accessorKey:"status",header:({column:t})=>e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(A,{column:t,title:a("table.columns.status")}),e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsx(Xl,{className:"h-4 w-4 text-muted-foreground/70 transition-colors hover:text-muted-foreground"})}),e.jsx(oe,{side:"top",className:"max-w-[200px] text-sm",children:a("status.tooltip")})]})})]}),cell:({row:t})=>{const r=bt.find(n=>n.value===t.getValue("status"));return r?e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[r.icon&&e.jsx(r.icon,{className:`h-4 w-4 text-${r.color}`}),e.jsx("span",{className:"text-sm font-medium",children:a(`status.${eh(r.value)}`)})]}),r.value===le.PENDING&&e.jsxs($s,{modal:!0,children:[e.jsx(As,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(Ca,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:a("actions.openMenu")})]})}),e.jsxs(Rs,{align:"end",className:"w-[140px]",children:[e.jsx(_e,{className:"cursor-pointer",onClick:async()=>{await tt.markPaid({trade_no:t.original.trade_no}),s()},children:a("actions.markAsPaid")}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await tt.makeCancel({trade_no:t.original.trade_no}),s()},children:a("actions.cancel")})]})]})]}):null},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_balance",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.commission")}),cell:({row:t})=>{const r=t.getValue("commission_balance"),n=r?(r/100).toFixed(2):"-";return e.jsx("div",{className:"flex items-center font-mono text-foreground/90",children:r?`¥${n}`:"-"})},enableSorting:!0,enableHiding:!1},{accessorKey:"commission_status",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.commissionStatus")}),cell:({row:t})=>{const r=t.original.status,n=t.original.commission_balance,i=qt.find(l=>l.value===t.getValue("commission_status"));return n==0||!i?e.jsx("span",{className:"text-muted-foreground",children:"-"}):e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[i.icon&&e.jsx(i.icon,{className:`h-4 w-4 text-${i.color}`}),e.jsx("span",{className:"text-sm font-medium",children:a(`commission.${sh(i.value)}`)})]}),i.value===Ne.PENDING&&r===le.COMPLETED&&e.jsxs($s,{modal:!0,children:[e.jsx(As,{asChild:!0,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 hover:bg-muted/60",children:[e.jsx(Ca,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:a("actions.openMenu")})]})}),e.jsxs(Rs,{align:"end",className:"w-[120px]",children:[e.jsx(_e,{className:"cursor-pointer",onClick:async()=>{await tt.update({trade_no:t.original.trade_no,commission_status:Ne.PROCESSING}),s()},children:a("commission.PROCESSING")}),e.jsx(_e,{className:"cursor-pointer text-destructive focus:text-destructive",onClick:async()=>{await tt.update({trade_no:t.original.trade_no,commission_status:Ne.INVALID}),s()},children:a("commission.INVALID")})]})]})]})},enableSorting:!0,enableHiding:!1},{accessorKey:"created_at",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.createdAt")}),cell:({row:t})=>e.jsx("div",{className:"text-nowrap font-mono text-sm text-muted-foreground",children:xe(t.getValue("created_at"),"YYYY/MM/DD HH:mm:ss")}),enableSorting:!0,enableHiding:!1}]};function nh(){const[s]=_l(),[a,t]=d.useState({}),[r,n]=d.useState({}),[i,l]=d.useState([]),[o,x]=d.useState([]),[u,c]=d.useState({pageIndex:0,pageSize:20});d.useEffect(()=>{const w=Object.entries({user_id:"string",order_id:"string",commission_status:"number",status:"number",commission_balance:"string"}).map(([C,V])=>{const F=s.get(C);return F?{id:C,value:V==="number"?parseInt(F):F}:null}).filter(Boolean);w.length>0&&l(w)},[s]);const{refetch:m,data:p,isLoading:k}=ne({queryKey:["orderList",u,i,o],queryFn:()=>tt.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:i,sort:o})}),S=ss({data:p?.data??[],columns:ah(m),state:{sorting:o,columnVisibility:r,rowSelection:a,columnFilters:i,pagination:u},rowCount:p?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:t,onSortingChange:x,onColumnFiltersChange:l,onColumnVisibilityChange:n,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:c,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(xs,{table:S,toolbar:e.jsx(Yx,{table:S,refetch:m}),showPagination:!0})}function rh(){const{t:s}=I("order");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(nh,{})})]})]})}const lh=Object.freeze(Object.defineProperty({__proto__:null,default:rh},Symbol.toStringTag,{value:"Module"}));function ih({column:s,title:a,options:t}){const r=s?.getFacetedUniqueValues(),n=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(Va,{className:"mr-2 h-4 w-4"}),a,n?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:n.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:n.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[n.size," selected"]}):t.filter(i=>n.has(i.value)).map(i=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:i.label},i.value))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:a}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(i=>{const l=n.has(i.value);return e.jsxs(We,{onSelect:()=>{l?n.delete(i.value):n.add(i.value);const o=Array.from(n);s?.setFilterValue(o.length?o:void 0)},children:[e.jsx("div",{className:_("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",l?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ot,{className:_("h-4 w-4")})}),i.icon&&e.jsx(i.icon,{className:`mr-2 h-4 w-4 text-muted-foreground text-${i.color}`}),e.jsx("span",{children:i.label}),r?.get(i.value)&&e.jsx("span",{className:"ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs",children:r.get(i.value)})]},i.value)})}),n.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const oh=s=>h.object({id:h.coerce.number().nullable().optional(),name:h.string().min(1,s("form.name.required")),code:h.string().nullable(),type:h.coerce.number(),value:h.coerce.number(),started_at:h.coerce.number(),ended_at:h.coerce.number(),limit_use:h.union([h.string(),h.number()]).nullable(),limit_use_with_user:h.union([h.string(),h.number()]).nullable(),generate_count:h.coerce.number().nullable().optional(),limit_plan_ids:h.array(h.coerce.number()).default([]).nullable(),limit_period:h.array(h.nativeEnum(Wt)).default([]).nullable()}).refine(a=>a.ended_at>a.started_at,{message:s("form.validity.endTimeError"),path:["ended_at"]}),br={name:"",code:null,type:hs.AMOUNT,value:0,started_at:Math.floor(Date.now()/1e3),ended_at:Math.floor(Date.now()/1e3)+7*24*60*60,limit_use:null,limit_use_with_user:null,limit_plan_ids:[],limit_period:[],generate_count:null},ch=s=>[{label:s("form.timeRange.presets.1week"),days:7},{label:s("form.timeRange.presets.2weeks"),days:14},{label:s("form.timeRange.presets.1month"),days:30},{label:s("form.timeRange.presets.3months"),days:90},{label:s("form.timeRange.presets.6months"),days:180},{label:s("form.timeRange.presets.1year"),days:365}];function ii({defaultValues:s,refetch:a,type:t="create",dialogTrigger:r=null,open:n,onOpenChange:i}){const{t:l}=I("coupon"),[o,x]=d.useState(!1),u=n??o,c=i??x,[m,p]=d.useState([]),k=oh(l),S=ch(l),f=we({resolver:Ce(k),defaultValues:s||br});d.useEffect(()=>{s&&f.reset(s)},[s,f]),d.useEffect(()=>{gs.getList().then(({data:g})=>p(g))},[]);const w=g=>{if(!g)return;const y=(D,z)=>{const R=new Date(z*1e3);return D.setHours(R.getHours(),R.getMinutes(),R.getSeconds()),Math.floor(D.getTime()/1e3)};g.from&&f.setValue("started_at",y(g.from,f.watch("started_at"))),g.to&&f.setValue("ended_at",y(g.to,f.watch("ended_at")))},C=g=>{const y=new Date,D=Math.floor(y.getTime()/1e3),z=Math.floor((y.getTime()+g*24*60*60*1e3)/1e3);f.setValue("started_at",D),f.setValue("ended_at",z)},V=async g=>{const y=await Ta.save(g);if(g.generate_count&&typeof y=="string"){const D=new Blob([y],{type:"text/csv;charset=utf-8;"}),z=document.createElement("a");z.href=window.URL.createObjectURL(D),z.download=`coupons_${new Date().getTime()}.csv`,z.click(),window.URL.revokeObjectURL(z.href)}c(!1),t==="create"&&f.reset(br),a()},F=(g,y)=>e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx("div",{className:"text-sm font-medium text-muted-foreground",children:y}),e.jsx(T,{type:"datetime-local",step:"1",value:xe(f.watch(g),"YYYY-MM-DDTHH:mm:ss"),onChange:D=>{const z=new Date(D.target.value);f.setValue(g,Math.floor(z.getTime()/1e3))},className:"h-8 [&::-webkit-calendar-picker-indicator]:hidden"})]});return e.jsxs(ge,{open:u,onOpenChange:c,children:[r&&e.jsx(as,{asChild:!0,children:r}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsx(be,{children:e.jsx(fe,{children:l(t==="create"?"form.add":"form.edit")})}),e.jsx(Se,{...f,children:e.jsxs("form",{onSubmit:f.handleSubmit(V),className:"space-y-4",children:[e.jsx(b,{control:f.control,name:"name",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.name.label")}),e.jsx(T,{placeholder:l("form.name.placeholder"),...g}),e.jsx(P,{})]})}),t==="create"&&e.jsx(b,{control:f.control,name:"generate_count",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.generateCount.label")}),e.jsx(T,{type:"number",min:0,placeholder:l("form.generateCount.placeholder"),...g,value:g.value??"",onChange:y=>g.onChange(y.target.value===""?null:parseInt(y.target.value)),className:"h-9"}),e.jsx(O,{className:"text-xs",children:l("form.generateCount.description")}),e.jsx(P,{})]})}),(!f.watch("generate_count")||f.watch("generate_count")==null)&&e.jsx(b,{control:f.control,name:"code",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.code.label")}),e.jsx(T,{placeholder:l("form.code.placeholder"),...g,value:g.value??"",className:"h-9"}),e.jsx(O,{className:"text-xs",children:l("form.code.description")}),e.jsx(P,{})]})}),e.jsxs(j,{children:[e.jsx(v,{children:l("form.type.label")}),e.jsxs("div",{className:"flex",children:[e.jsx(b,{control:f.control,name:"type",render:({field:g})=>e.jsxs(J,{value:g.value.toString(),onValueChange:y=>{const D=g.value,z=parseInt(y);g.onChange(z);const R=f.getValues("value");R&&(D===hs.AMOUNT&&z===hs.PERCENTAGE?f.setValue("value",R/100):D===hs.PERCENTAGE&&z===hs.AMOUNT&&f.setValue("value",R*100))},children:[e.jsx(W,{className:"flex-[1.2] rounded-r-none border-r-0 focus:z-10",children:e.jsx(Q,{placeholder:l("form.type.placeholder")})}),e.jsx(Y,{children:Object.entries(vm).map(([y,D])=>e.jsx($,{value:y,children:l(`table.toolbar.types.${y}`)},y))})]})}),e.jsx(b,{control:f.control,name:"value",render:({field:g})=>{const y=g.value==null?"":f.watch("type")===hs.AMOUNT&&typeof g.value=="number"?(g.value/100).toString():g.value.toString();return e.jsx(T,{type:"number",placeholder:l("form.value.placeholder"),...g,value:y,onChange:D=>{const z=D.target.value;if(z===""){g.onChange("");return}const R=parseFloat(z);isNaN(R)||g.onChange(f.watch("type")===hs.AMOUNT?Math.round(R*100):R)},step:"any",min:0,className:"flex-[2] rounded-none border-x-0 text-left"})}}),e.jsx("div",{className:"flex min-w-[40px] items-center justify-center rounded-md rounded-l-none border border-l-0 border-input bg-muted/50 px-3 font-medium text-muted-foreground",children:e.jsx("span",{children:f.watch("type")==hs.AMOUNT?"¥":"%"})})]})]}),e.jsxs(j,{children:[e.jsx(v,{children:l("form.validity.label")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:_("w-full justify-start text-left font-normal",!f.watch("started_at")&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),e.jsxs("span",{className:"truncate",children:[xe(f.watch("started_at"),"YYYY-MM-DD HH:mm:ss")," ",l("form.validity.to")," ",xe(f.watch("ended_at"),"YYYY-MM-DD HH:mm:ss")]})]})}),e.jsxs(Ze,{className:"w-auto p-0",align:"start",children:[e.jsxs("div",{className:"border-b border-border p-3",children:[e.jsx("div",{className:"mb-2 text-sm font-medium text-muted-foreground",children:l("form.timeRange.quickSet")}),e.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-6",children:S.map(g=>e.jsx(L,{variant:"outline",size:"sm",className:"h-8 px-2 text-xs",onClick:()=>C(g.days),type:"button",children:g.label},g.days))})]}),e.jsx("div",{className:"hidden border-b border-border sm:block",children:e.jsx(vs,{mode:"range",selected:{from:new Date(f.watch("started_at")*1e3),to:new Date(f.watch("ended_at")*1e3)},onSelect:w,numberOfMonths:2})}),e.jsx("div",{className:"border-b border-border sm:hidden",children:e.jsx(vs,{mode:"range",selected:{from:new Date(f.watch("started_at")*1e3),to:new Date(f.watch("ended_at")*1e3)},onSelect:w,numberOfMonths:1})}),e.jsx("div",{className:"p-3",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center",children:[F("started_at",l("table.validity.startTime")),e.jsx("div",{className:"text-center text-sm text-muted-foreground sm:mt-6",children:l("form.validity.to")}),F("ended_at",l("table.validity.endTime"))]})})]})]}),e.jsx(P,{})]}),e.jsx(b,{control:f.control,name:"limit_use",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.limitUse.label")}),e.jsx(T,{type:"number",min:0,placeholder:l("form.limitUse.placeholder"),...g,value:g.value??"",onChange:y=>g.onChange(y.target.value===""?null:parseInt(y.target.value)),className:"h-9"}),e.jsx(O,{className:"text-xs",children:l("form.limitUse.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:f.control,name:"limit_use_with_user",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.limitUseWithUser.label")}),e.jsx(T,{type:"number",min:0,placeholder:l("form.limitUseWithUser.placeholder"),...g,value:g.value??"",onChange:y=>g.onChange(y.target.value===""?null:parseInt(y.target.value)),className:"h-9"}),e.jsx(O,{className:"text-xs",children:l("form.limitUseWithUser.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:f.control,name:"limit_period",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.limitPeriod.label")}),e.jsx(Tt,{options:Object.entries(Wt).filter(([y])=>isNaN(Number(y))).map(([y,D])=>({label:l(`coupon:period.${D}`),value:y})),onChange:y=>{if(y.length===0){g.onChange([]);return}const D=y.map(z=>Wt[z.value]);g.onChange(D)},value:(g.value||[]).map(y=>({label:l(`coupon:period.${y}`),value:Object.entries(Wt).find(([D,z])=>z===y)?.[0]||""})),placeholder:l("form.limitPeriod.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:l("form.limitPeriod.empty")})}),e.jsx(O,{className:"text-xs",children:l("form.limitPeriod.description")}),e.jsx(P,{})]})}),e.jsx(b,{control:f.control,name:"limit_plan_ids",render:({field:g})=>e.jsxs(j,{children:[e.jsx(v,{children:l("form.limitPlan.label")}),e.jsx(Tt,{options:m?.map(y=>({label:y.name,value:y.id.toString()}))||[],onChange:y=>g.onChange(y.map(D=>Number(D.value))),value:(m||[]).filter(y=>(g.value||[]).includes(y.id)).map(y=>({label:y.name,value:y.id.toString()})),placeholder:l("form.limitPlan.placeholder"),emptyIndicator:e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:l("form.limitPlan.empty")})}),e.jsx(P,{})]})}),e.jsx(Pe,{children:e.jsx(L,{type:"submit",disabled:f.formState.isSubmitting,children:f.formState.isSubmitting?l("form.submit.saving"):l("form.submit.save")})})]})})]})]})}function dh({table:s,refetch:a}){const t=s.getState().columnFilters.length>0,{t:r}=I("coupon");return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ii,{refetch:a,dialogTrigger:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:r("form.add")})]})}),e.jsx(T,{placeholder:r("table.toolbar.search"),value:s.getColumn("name")?.getFilterValue()??"",onChange:n=>s.getColumn("name")?.setFilterValue(n.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),s.getColumn("type")&&e.jsx(ih,{column:s.getColumn("type"),title:r("table.toolbar.type"),options:[{value:hs.AMOUNT,label:r(`table.toolbar.types.${hs.AMOUNT}`)},{value:hs.PERCENTAGE,label:r(`table.toolbar.types.${hs.PERCENTAGE}`)}]}),t&&e.jsxs(L,{variant:"ghost",onClick:()=>s.resetColumnFilters(),className:"h-8 px-2 lg:px-3",children:[r("table.toolbar.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]})}const oi=d.createContext(void 0);function mh({children:s,refetch:a}){const[t,r]=d.useState(!1),[n,i]=d.useState(null),l=x=>{i(x),r(!0)},o=()=>{r(!1),i(null)};return e.jsxs(oi.Provider,{value:{isOpen:t,currentCoupon:n,openEdit:l,closeEdit:o},children:[s,n&&e.jsx(ii,{defaultValues:n,refetch:a,type:"edit",open:t,onOpenChange:r})]})}function uh(){const s=d.useContext(oi);if(s===void 0)throw new Error("useCouponEdit must be used within a CouponEditProvider");return s}const xh=s=>{const{t:a}=I("coupon");return[{accessorKey:"id",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.id")}),cell:({row:t})=>e.jsx(U,{children:t.original.id}),enableSorting:!0},{accessorKey:"show",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.show")}),cell:({row:t})=>e.jsx(Z,{defaultChecked:t.original.show,onCheckedChange:r=>{Ta.update({id:t.original.id,show:r}).then(({data:n})=>!n&&s())}}),enableSorting:!1},{accessorKey:"name",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.name")}),cell:({row:t})=>e.jsx("div",{className:"flex items-center",children:e.jsx("span",{children:t.original.name})}),enableSorting:!1,size:800},{accessorKey:"type",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.type")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:a(`table.toolbar.types.${t.original.type}`)}),enableSorting:!0},{accessorKey:"code",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.code")}),cell:({row:t})=>e.jsx(U,{variant:"secondary",children:t.original.code}),enableSorting:!0},{accessorKey:"limit_use",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.limitUse")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:t.original.limit_use===null?a("table.validity.unlimited"):t.original.limit_use}),enableSorting:!0},{accessorKey:"limit_use_with_user",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.limitUseWithUser")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:t.original.limit_use_with_user===null?a("table.validity.noLimit"):t.original.limit_use_with_user}),enableSorting:!0},{accessorKey:"#",header:({column:t})=>e.jsx(A,{column:t,title:a("table.columns.validity")}),cell:({row:t})=>{const[r,n]=d.useState(!1),i=Date.now(),l=t.original.started_at*1e3,o=t.original.ended_at*1e3,x=i>o,u=ie.jsx(A,{className:"justify-end",column:t,title:a("table.columns.actions")}),cell:({row:t})=>{const{openEdit:r}=uh();return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-muted",onClick:()=>r(t.original),children:[e.jsx(ct,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),e.jsx("span",{className:"sr-only",children:a("table.actions.edit")})]}),e.jsx(ps,{title:a("table.actions.deleteConfirm.title"),description:a("table.actions.deleteConfirm.description"),confirmText:a("table.actions.deleteConfirm.confirmText"),variant:"destructive",onConfirm:async()=>{Ta.drop({id:t.original.id}).then(({data:n})=>{n&&(q.success("删除成功"),s())})},children:e.jsxs(L,{variant:"ghost",size:"icon",className:"h-8 w-8 hover:bg-red-100 dark:hover:bg-red-900",children:[e.jsx(ds,{className:"h-4 w-4 text-muted-foreground hover:text-red-600 dark:hover:text-red-400"}),e.jsx("span",{className:"sr-only",children:a("table.actions.delete")})]})})]})}}]};function hh(){const[s,a]=d.useState({}),[t,r]=d.useState({}),[n,i]=d.useState([]),[l,o]=d.useState([]),[x,u]=d.useState({pageIndex:0,pageSize:20}),{refetch:c,data:m}=ne({queryKey:["couponList",x,n,l],queryFn:()=>Ta.getList({pageSize:x.pageSize,current:x.pageIndex+1,filter:n,sort:l})}),p=ss({data:m?.data??[],columns:xh(c),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:x},pageCount:Math.ceil((m?.total??0)/x.pageSize),rowCount:m?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:o,onColumnFiltersChange:i,onColumnVisibilityChange:r,onPaginationChange:u,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsx(mh,{refetch:c,children:e.jsx("div",{className:"space-y-4",children:e.jsx(xs,{table:p,toolbar:e.jsx(dh,{table:p,refetch:c})})})})}function gh(){const{t:s}=I("coupon");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"text-muted-foreground mt-2",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(hh,{})})]})]})}const fh=Object.freeze(Object.defineProperty({__proto__:null,default:gh},Symbol.toStringTag,{value:"Module"})),ph=1,jh=1e6;let cn=0;function vh(){return cn=(cn+1)%Number.MAX_SAFE_INTEGER,cn.toString()}const dn=new Map,yr=s=>{if(dn.has(s))return;const a=setTimeout(()=>{dn.delete(s),Yt({type:"REMOVE_TOAST",toastId:s})},jh);dn.set(s,a)},bh=(s,a)=>{switch(a.type){case"ADD_TOAST":return{...s,toasts:[a.toast,...s.toasts].slice(0,ph)};case"UPDATE_TOAST":return{...s,toasts:s.toasts.map(t=>t.id===a.toast.id?{...t,...a.toast}:t)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?yr(t):s.toasts.forEach(r=>{yr(r.id)}),{...s,toasts:s.toasts.map(r=>r.id===t||t===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return a.toastId===void 0?{...s,toasts:[]}:{...s,toasts:s.toasts.filter(t=>t.id!==a.toastId)}}},pa=[];let ja={toasts:[]};function Yt(s){ja=bh(ja,s),pa.forEach(a=>{a(ja)})}function yh({...s}){const a=vh(),t=n=>Yt({type:"UPDATE_TOAST",toast:{...n,id:a}}),r=()=>Yt({type:"DISMISS_TOAST",toastId:a});return Yt({type:"ADD_TOAST",toast:{...s,id:a,open:!0,onOpenChange:n=>{n||r()}}}),{id:a,dismiss:r,update:t}}function ci(){const[s,a]=d.useState(ja);return d.useEffect(()=>(pa.push(a),()=>{const t=pa.indexOf(a);t>-1&&pa.splice(t,1)}),[s]),{...s,toast:yh,dismiss:t=>Yt({type:"DISMISS_TOAST",toastId:t})}}function Nh({open:s,onOpenChange:a,table:t}){const{t:r}=I("user"),{toast:n}=ci(),[i,l]=d.useState(!1),[o,x]=d.useState(""),[u,c]=d.useState(""),m=async()=>{if(!o||!u){n({title:r("messages.error"),description:r("messages.send_mail.required_fields"),variant:"destructive"});return}try{l(!0),await Ps.sendMail({subject:o,content:u,filter:t.getState().columnFilters,sort:t.getState().sorting[0]?.id,sort_type:t.getState().sorting[0]?.desc?"DESC":"ASC"}),n({title:r("messages.success"),description:r("messages.send_mail.success")}),a(!1),x(""),c("")}catch{n({title:r("messages.error"),description:r("messages.send_mail.failed"),variant:"destructive"})}finally{l(!1)}};return e.jsx(ge,{open:s,onOpenChange:a,children:e.jsxs(ue,{className:"sm:max-w-[500px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:r("send_mail.title")}),e.jsx(Ve,{children:r("send_mail.description")})]}),e.jsxs("div",{className:"grid gap-4 py-4",children:[e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"subject",className:"text-right",children:r("send_mail.subject")}),e.jsx(T,{id:"subject",value:o,onChange:p=>x(p.target.value),className:"col-span-3"})]}),e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx("label",{htmlFor:"content",className:"text-right",children:r("send_mail.content")}),e.jsx(Ls,{id:"content",value:u,onChange:p=>c(p.target.value),className:"col-span-3",rows:6})]})]}),e.jsx(Pe,{children:e.jsx(G,{type:"submit",onClick:m,disabled:i,children:r(i?"send_mail.sending":"send_mail.send")})})]})})}function _h({trigger:s}){const{t:a}=I("user"),[t,r]=d.useState(!1),[n,i]=d.useState(30),{data:l,isLoading:o}=ne({queryKey:["trafficResetStats",n],queryFn:()=>Zt.getStats({days:n}),enabled:t}),x=[{title:a("traffic_reset.stats.total_resets"),value:l?.data?.total_resets||0,icon:Kt,color:"text-blue-600",bgColor:"bg-blue-100"},{title:a("traffic_reset.stats.auto_resets"),value:l?.data?.auto_resets||0,icon:_a,color:"text-green-600",bgColor:"bg-green-100"},{title:a("traffic_reset.stats.manual_resets"),value:l?.data?.manual_resets||0,icon:ks,color:"text-orange-600",bgColor:"bg-orange-100"},{title:a("traffic_reset.stats.cron_resets"),value:l?.data?.cron_resets||0,icon:Rn,color:"text-purple-600",bgColor:"bg-purple-100"}],u=[{value:7,label:a("traffic_reset.stats.days_options.week")},{value:30,label:a("traffic_reset.stats.days_options.month")},{value:90,label:a("traffic_reset.stats.days_options.quarter")},{value:365,label:a("traffic_reset.stats.days_options.year")}];return e.jsxs(ge,{open:t,onOpenChange:r,children:[e.jsx(as,{asChild:!0,children:s}),e.jsxs(ue,{className:"max-w-2xl",children:[e.jsxs(be,{children:[e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(Dn,{className:"h-5 w-5"}),a("traffic_reset.stats.title")]}),e.jsx(Ve,{children:a("traffic_reset.stats.description")})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-lg font-medium",children:a("traffic_reset.stats.time_range")}),e.jsxs(J,{value:n.toString(),onValueChange:c=>i(Number(c)),children:[e.jsx(W,{className:"w-[180px]",children:e.jsx(Q,{})}),e.jsx(Y,{children:u.map(c=>e.jsx($,{value:c.value.toString(),children:c.label},c.value))})]})]}),o?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(Jt,{className:"h-6 w-6 animate-spin"})}):e.jsx("div",{className:"grid grid-cols-2 gap-4",children:x.map((c,m)=>e.jsxs(Re,{className:"relative overflow-hidden",children:[e.jsxs(Fe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(Ge,{className:"text-sm font-medium text-muted-foreground",children:c.title}),e.jsx("div",{className:`rounded-lg p-2 ${c.bgColor}`,children:e.jsx(c.icon,{className:`h-4 w-4 ${c.color}`})})]}),e.jsxs(Ie,{children:[e.jsx("div",{className:"text-2xl font-bold",children:c.value.toLocaleString()}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a("traffic_reset.stats.in_period",{days:n})})]})]},m))}),l?.data&&e.jsxs(Re,{children:[e.jsxs(Fe,{children:[e.jsx(Ge,{className:"text-lg",children:a("traffic_reset.stats.breakdown")}),e.jsx(zs,{children:a("traffic_reset.stats.breakdown_description")})]}),e.jsx(Ie,{children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:a("traffic_reset.stats.auto_percentage")}),e.jsxs(U,{variant:"outline",className:"border-green-200 bg-green-50 text-green-700",children:[l.data.total_resets>0?(l.data.auto_resets/l.data.total_resets*100).toFixed(1):0,"%"]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:a("traffic_reset.stats.manual_percentage")}),e.jsxs(U,{variant:"outline",className:"border-orange-200 bg-orange-50 text-orange-700",children:[l.data.total_resets>0?(l.data.manual_resets/l.data.total_resets*100).toFixed(1):0,"%"]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:a("traffic_reset.stats.cron_percentage")}),e.jsxs(U,{variant:"outline",className:"border-purple-200 bg-purple-50 text-purple-700",children:[l.data.total_resets>0?(l.data.cron_resets/l.data.total_resets*100).toFixed(1):0,"%"]})]})]})})]})]})]})]})}const wh=h.object({email_prefix:h.string().optional(),email_suffix:h.string().min(1),password:h.string().optional(),expired_at:h.number().optional().nullable(),plan_id:h.number().nullable(),generate_count:h.number().optional().nullable(),download_csv:h.boolean().optional()}).refine(s=>s.generate_count===null?s.email_prefix!==void 0&&s.email_prefix!=="":!0,{message:"Email prefix is required when generate_count is null",path:["email_prefix"]}),Ch={email_prefix:"",email_suffix:"",password:"",expired_at:null,plan_id:null,generate_count:void 0,download_csv:!1};function Sh({refetch:s}){const{t:a}=I("user"),[t,r]=d.useState(!1),n=we({resolver:Ce(wh),defaultValues:Ch,mode:"onChange"}),[i,l]=d.useState([]);return d.useEffect(()=>{t&&gs.getList().then(({data:o})=>{o&&l(o)})},[t]),e.jsxs(ge,{open:t,onOpenChange:r,children:[e.jsx(as,{asChild:!0,children:e.jsxs(G,{size:"sm",variant:"outline",className:"gap-0 space-x-2",children:[e.jsx(Be,{icon:"ion:add"}),e.jsx("div",{children:a("generate.button")})]})}),e.jsxs(ue,{className:"sm:max-w-[425px]",children:[e.jsxs(be,{children:[e.jsx(fe,{children:a("generate.title")}),e.jsx(Ve,{})]}),e.jsxs(Se,{...n,children:[e.jsxs(j,{children:[e.jsx(v,{children:a("generate.form.email")}),e.jsxs("div",{className:"flex",children:[!n.watch("generate_count")&&e.jsx(b,{control:n.control,name:"email_prefix",render:({field:o})=>e.jsx(T,{className:"flex-[5] rounded-r-none",placeholder:a("generate.form.email_prefix"),...o})}),e.jsx("div",{className:`z-[-1] border border-r-0 border-input px-3 py-1 shadow-sm ${n.watch("generate_count")?"rounded-l-md":"border-l-0"}`,children:"@"}),e.jsx(b,{control:n.control,name:"email_suffix",render:({field:o})=>e.jsx(T,{className:"flex-[4] rounded-l-none",placeholder:a("generate.form.email_domain"),...o})})]})]}),e.jsx(b,{control:n.control,name:"password",render:({field:o})=>e.jsxs(j,{children:[e.jsx(v,{children:a("generate.form.password")}),e.jsx(T,{placeholder:a("generate.form.password_placeholder"),...o}),e.jsx(P,{})]})}),e.jsx(b,{control:n.control,name:"expired_at",render:({field:o})=>e.jsxs(j,{className:"flex flex-col",children:[e.jsx(v,{children:a("generate.form.expire_time")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsx(N,{children:e.jsxs(G,{variant:"outline",className:_("w-full pl-3 text-left font-normal",!o.value&&"text-muted-foreground"),children:[o.value?xe(o.value):e.jsx("span",{children:a("generate.form.expire_time_placeholder")}),e.jsx(ks,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsxs(Ze,{className:"flex w-auto flex-col space-y-2 p-2",children:[e.jsx(ad,{asChild:!0,children:e.jsx(G,{variant:"outline",className:"w-full",onClick:()=>{o.onChange(null)},children:a("generate.form.permanent")})}),e.jsx("div",{className:"rounded-md border",children:e.jsx(vs,{mode:"single",selected:o.value?new Date(o.value*1e3):void 0,onSelect:x=>{x&&o.onChange(x?.getTime()/1e3)}})})]})]})]})}),e.jsx(b,{control:n.control,name:"plan_id",render:({field:o})=>e.jsxs(j,{children:[e.jsx(v,{children:a("generate.form.subscription")}),e.jsx(N,{children:e.jsxs(J,{value:o.value?o.value.toString():"null",onValueChange:x=>o.onChange(x==="null"?null:parseInt(x)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:a("generate.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx($,{value:"null",children:a("generate.form.subscription_none")}),i.map(x=>e.jsx($,{value:x.id.toString(),children:x.name},x.id))]})]})})]})}),!n.watch("email_prefix")&&e.jsx(b,{control:n.control,name:"generate_count",render:({field:o})=>e.jsxs(j,{children:[e.jsx(v,{children:a("generate.form.generate_count")}),e.jsx(T,{type:"number",placeholder:a("generate.form.generate_count_placeholder"),value:o.value||"",onChange:x=>o.onChange(x.target.value?parseInt(x.target.value):null)})]})}),n.watch("generate_count")&&e.jsx(b,{control:n.control,name:"download_csv",render:({field:o})=>e.jsxs(j,{className:"flex cursor-pointer flex-row items-center space-x-2 space-y-0",children:[e.jsx(N,{children:e.jsx(Hn,{checked:o.value,onCheckedChange:o.onChange})}),e.jsx(v,{children:a("generate.form.download_csv")})]})})]}),e.jsxs(Pe,{children:[e.jsx(G,{variant:"outline",onClick:()=>r(!1),children:a("generate.form.cancel")}),e.jsx(G,{onClick:()=>n.handleSubmit(async o=>{if(o.download_csv){const x=await Ps.generate(o);if(x&&x instanceof Blob){const u=window.URL.createObjectURL(x),c=document.createElement("a");c.href=u,c.download=`users_${new Date().getTime()}.csv`,document.body.appendChild(c),c.click(),c.remove(),window.URL.revokeObjectURL(u),q.success(a("generate.form.success")),n.reset(),s(),r(!1)}}else{const{data:x}=await Ps.generate(o);x&&(q.success(a("generate.form.success")),n.reset(),s(),r(!1))}})(),children:a("generate.form.submit")})]})]})]})}const Un=Lr,di=Pr,kh=Rr,mi=d.forwardRef(({className:s,...a},t)=>e.jsx(Pa,{className:_("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),...a,ref:t}));mi.displayName=Pa.displayName;const Th=it("fixed overflow-y-scroll z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-md",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-md"}},defaultVariants:{side:"right"}}),Wa=d.forwardRef(({side:s="right",className:a,children:t,...r},n)=>e.jsxs(kh,{children:[e.jsx(mi,{}),e.jsxs(Ra,{ref:n,className:_(Th({side:s}),a),...r,children:[e.jsxs(wn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(ms,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),t]})]}));Wa.displayName=Ra.displayName;const Ya=({className:s,...a})=>e.jsx("div",{className:_("flex flex-col space-y-2 text-center sm:text-left",s),...a});Ya.displayName="SheetHeader";const ui=({className:s,...a})=>e.jsx("div",{className:_("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",s),...a});ui.displayName="SheetFooter";const Ja=d.forwardRef(({className:s,...a},t)=>e.jsx(Ea,{ref:t,className:_("text-lg font-semibold text-foreground",s),...a}));Ja.displayName=Ea.displayName;const Qa=d.forwardRef(({className:s,...a},t)=>e.jsx(Fa,{ref:t,className:_("text-sm text-muted-foreground",s),...a}));Qa.displayName=Fa.displayName;function Dh({table:s,refetch:a,permissionGroups:t=[],subscriptionPlans:r=[]}){const{t:n}=I("user"),{toast:i}=ci(),l=s.getState().columnFilters.length>0,[o,x]=d.useState([]),[u,c]=d.useState(!1),[m,p]=d.useState(!1),[k,S]=d.useState(!1),[f,w]=d.useState(!1),C=async()=>{try{const ee=await Ps.dumpCSV({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),te=ee;console.log(ee);const H=new Blob([te],{type:"text/csv;charset=utf-8;"}),E=window.URL.createObjectURL(H),X=document.createElement("a");X.href=E,X.setAttribute("download",`users_${new Date().toISOString()}.csv`),document.body.appendChild(X),X.click(),X.remove(),window.URL.revokeObjectURL(E),i({title:n("messages.success"),description:n("messages.export.success")})}catch{i({title:n("messages.error"),description:n("messages.export.failed"),variant:"destructive"})}},V=async()=>{try{w(!0),await Ps.batchBan({filter:s.getState().columnFilters,sort:s.getState().sorting[0]?.id,sort_type:s.getState().sorting[0]?.desc?"DESC":"ASC"}),i({title:n("messages.success"),description:n("messages.batch_ban.success")}),a()}catch{i({title:n("messages.error"),description:n("messages.batch_ban.failed"),variant:"destructive"})}finally{w(!1),S(!1)}},F=[{label:n("filter.fields.email"),value:"email",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.id"),value:"id",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.plan_id"),value:"plan_id",type:"select",operators:[{label:n("filter.operators.eq"),value:"eq"}],useOptions:!0},{label:n("filter.fields.transfer_enable"),value:"transfer_enable",type:"number",unit:"GB",operators:[{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.total_used"),value:"total_used",type:"number",unit:"GB",operators:[{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.online_count"),value:"online_count",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"},{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.lt"),value:"lt"}]},{label:n("filter.fields.expired_at"),value:"expired_at",type:"date",operators:[{label:n("filter.operators.lt"),value:"lt"},{label:n("filter.operators.gt"),value:"gt"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.uuid"),value:"uuid",type:"text",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.token"),value:"token",type:"text",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.banned"),value:"banned",type:"select",operators:[{label:n("filter.operators.eq"),value:"eq"}],options:[{label:n("filter.status.normal"),value:"0"},{label:n("filter.status.banned"),value:"1"}]},{label:n("filter.fields.remark"),value:"remarks",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.inviter_email"),value:"invite_user.email",type:"text",operators:[{label:n("filter.operators.contains"),value:"contains"},{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.invite_user_id"),value:"invite_user_id",type:"number",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.is_admin"),value:"is_admin",type:"boolean",operators:[{label:n("filter.operators.eq"),value:"eq"}]},{label:n("filter.fields.is_staff"),value:"is_staff",type:"boolean",operators:[{label:n("filter.operators.eq"),value:"eq"}]}],g=ee=>ee*1024*1024*1024,y=ee=>ee/(1024*1024*1024),D=()=>{x([...o,{field:"",operator:"",value:""}])},z=ee=>{x(o.filter((te,H)=>H!==ee))},R=(ee,te,H)=>{const E=[...o];if(E[ee]={...E[ee],[te]:H},te==="field"){const X=F.find(Ns=>Ns.value===H);X&&(E[ee].operator=X.operators[0].value,E[ee].value=X.type==="boolean"?!1:"")}x(E)},K=(ee,te)=>{const H=F.find(E=>E.value===ee.field);if(!H)return null;switch(H.type){case"text":return e.jsx(T,{placeholder:n("filter.sheet.value"),value:ee.value,onChange:E=>R(te,"value",E.target.value)});case"number":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(T,{type:"number",placeholder:n("filter.sheet.value_number",{unit:H.unit}),value:H.unit==="GB"?y(ee.value||0):ee.value,onChange:E=>{const X=Number(E.target.value);R(te,"value",H.unit==="GB"?g(X):X)}}),H.unit&&e.jsx("span",{className:"text-sm text-muted-foreground",children:H.unit})]});case"date":return e.jsx(vs,{mode:"single",selected:ee.value,onSelect:E=>R(te,"value",E),className:"flex flex-1 justify-center rounded-md border"});case"select":return e.jsxs(J,{value:ee.value,onValueChange:E=>R(te,"value",E),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("filter.sheet.value")})}),e.jsx(Y,{children:H.useOptions?r.map(E=>e.jsx($,{value:E.value.toString(),children:E.label},E.value)):H.options?.map(E=>e.jsx($,{value:E.value.toString(),children:E.label},E.value))})]});case"boolean":return e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(Z,{checked:ee.value,onCheckedChange:E=>R(te,"value",E)}),e.jsx(Ae,{children:ee.value?n("filter.boolean.true"):n("filter.boolean.false")})]});default:return null}},ae=()=>{const ee=o.filter(te=>te.field&&te.operator&&te.value!=="").map(te=>{const H=F.find(X=>X.value===te.field);let E=te.value;return te.operator==="contains"?{id:te.field,value:E}:(H?.type==="date"&&E instanceof Date&&(E=Math.floor(E.getTime()/1e3)),H?.type==="boolean"&&(E=E?1:0),{id:te.field,value:`${te.operator}:${E}`})});s.setColumnFilters(ee),c(!1)};return e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex flex-1 flex-wrap items-center gap-2",children:[e.jsx(Sh,{refetch:a}),e.jsx(T,{placeholder:n("filter.email_search"),value:s.getColumn("email")?.getFilterValue()??"",onChange:ee=>s.getColumn("email")?.setFilterValue(ee.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs(Un,{open:u,onOpenChange:c,children:[e.jsx(di,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(nd,{className:"mr-2 h-4 w-4"}),n("filter.advanced"),o.length>0&&e.jsx(U,{variant:"secondary",className:"ml-2 rounded-sm px-1",children:o.length})]})}),e.jsxs(Wa,{className:"w-[400px] sm:w-[540px]",children:[e.jsxs(Ya,{children:[e.jsx(Ja,{children:n("filter.sheet.title")}),e.jsx(Qa,{children:n("filter.sheet.description")})]}),e.jsxs("div",{className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"font-medium",children:n("filter.sheet.conditions")}),e.jsx(L,{variant:"outline",size:"sm",onClick:D,children:n("filter.sheet.add")})]}),e.jsx(lt,{className:"h-[calc(100vh-280px)] ",children:e.jsx("div",{className:"space-y-4",children:o.map((ee,te)=>e.jsxs("div",{className:"space-y-3 rounded-lg border p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(Ae,{children:n("filter.sheet.condition",{number:te+1})}),e.jsx(L,{variant:"ghost",size:"sm",onClick:()=>z(te),children:e.jsx(ms,{className:"h-4 w-4"})})]}),e.jsxs(J,{value:ee.field,onValueChange:H=>R(te,"field",H),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("filter.sheet.field")})}),e.jsx(Y,{children:e.jsx(rs,{children:F.map(H=>e.jsx($,{value:H.value,className:"cursor-pointer",children:H.label},H.value))})})]}),ee.field&&e.jsxs(J,{value:ee.operator,onValueChange:H=>R(te,"operator",H),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:n("filter.sheet.operator")})}),e.jsx(Y,{children:F.find(H=>H.value===ee.field)?.operators.map(H=>e.jsx($,{value:H.value,children:H.label},H.value))})]}),ee.field&&ee.operator&&K(ee,te)]},te))})}),e.jsxs("div",{className:"flex justify-end space-x-2",children:[e.jsx(L,{variant:"outline",onClick:()=>{x([]),c(!1)},children:n("filter.sheet.reset")}),e.jsx(L,{onClick:ae,children:n("filter.sheet.apply")})]})]})]})]}),l&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),x([])},className:"h-8 px-2 lg:px-3",children:[n("filter.sheet.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]}),e.jsxs($s,{modal:!1,children:[e.jsx(As,{asChild:!0,children:e.jsx(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:n("actions.title")})}),e.jsxs(Rs,{children:[e.jsx(_e,{onClick:()=>p(!0),children:n("actions.send_email")}),e.jsx(_e,{onClick:C,children:n("actions.export_csv")}),e.jsx(rt,{}),e.jsx(_e,{asChild:!0,children:e.jsx(_h,{trigger:e.jsx("div",{className:"w-full cursor-pointer px-2 py-1.5 text-sm",children:n("actions.traffic_reset_stats")})})}),e.jsx(rt,{}),e.jsx(_e,{onClick:()=>S(!0),className:"text-red-600 focus:text-red-600",children:n("actions.batch_ban")})]})]})]}),e.jsx(Nh,{open:m,onOpenChange:p,table:s}),e.jsx($n,{open:k,onOpenChange:S,children:e.jsxs($a,{children:[e.jsxs(Aa,{children:[e.jsx(Ha,{children:n("actions.confirm_ban.title")}),e.jsx(Ua,{children:n(l?"actions.confirm_ban.filtered_description":"actions.confirm_ban.all_description")})]}),e.jsxs(qa,{children:[e.jsx(Ba,{disabled:f,children:n("actions.confirm_ban.cancel")}),e.jsx(Ka,{onClick:V,disabled:f,className:"bg-red-600 hover:bg-red-700 focus:ring-red-600",children:n(f?"actions.confirm_ban.banning":"actions.confirm_ban.confirm")})]})]})})]})}const xi=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m17.71 11.29l-5-5a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21l-5 5a1 1 0 0 0 1.42 1.42L11 9.41V17a1 1 0 0 0 2 0V9.41l3.29 3.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42"})}),hi=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.71 11.29a1 1 0 0 0-1.42 0L13 14.59V7a1 1 0 0 0-2 0v7.59l-3.29-3.3a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 .33.21a.94.94 0 0 0 .76 0a1 1 0 0 0 .33-.21l5-5a1 1 0 0 0 0-1.42"})}),Lh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17 11H9.41l3.3-3.29a1 1 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33a1 1 0 0 0 0 .76a1 1 0 0 0 .21.33l5 5a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42L9.41 13H17a1 1 0 0 0 0-2"})}),Ph=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76"})}),mn=[{accessorKey:"record_at",header:"时间",cell:({row:s})=>e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx("time",{className:"text-sm text-muted-foreground",children:Cd(s.original.record_at)})})},{accessorKey:"u",header:"上行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(xi,{className:"h-4 w-4 text-emerald-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.u/parseFloat(s.original.server_rate))})]})},{accessorKey:"d",header:"下行流量",cell:({row:s})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(hi,{className:"h-4 w-4 text-blue-500"}),e.jsx("span",{className:"font-mono text-sm",children:Oe(s.original.d/parseFloat(s.original.server_rate))})]})},{accessorKey:"server_rate",header:"倍率",cell:({row:s})=>{const a=s.original.server_rate;return e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(U,{variant:"outline",className:"font-mono",children:[a,"x"]})})}},{id:"total",header:"总计",cell:({row:s})=>{const a=s.original.u+s.original.d;return e.jsx("div",{className:"flex items-center justify-end font-mono text-sm",children:Oe(a)})}}];function gi({user_id:s,dialogTrigger:a}){const{t}=I(["traffic"]),[r,n]=d.useState(!1),[i,l]=d.useState({pageIndex:0,pageSize:20}),{data:o,isLoading:x}=ne({queryKey:["userStats",s,i,r],queryFn:()=>r?Ps.getStats({user_id:s,pageSize:i.pageSize,page:i.pageIndex+1}):null}),u=ss({data:o?.data??[],columns:mn,pageCount:Math.ceil((o?.total??0)/i.pageSize),state:{pagination:i},manualPagination:!0,getCoreRowModel:ts(),onPaginationChange:l});return e.jsxs(ge,{open:r,onOpenChange:n,children:[e.jsx(as,{asChild:!0,children:a}),e.jsxs(ue,{className:"sm:max-w-[700px]",children:[e.jsx(be,{children:e.jsx(fe,{children:t("trafficRecord.title")})}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"rounded-md border",children:e.jsxs(In,{children:[e.jsx(Vn,{children:u.getHeaderGroups().map(c=>e.jsx(Bs,{children:c.headers.map(m=>e.jsx(On,{className:_("h-10 px-2 text-xs",m.id==="total"&&"text-right"),children:m.isPlaceholder?null:ya(m.column.columnDef.header,m.getContext())},m.id))},c.id))}),e.jsx(Mn,{children:x?Array.from({length:i.pageSize}).map((c,m)=>e.jsx(Bs,{children:Array.from({length:mn.length}).map((p,k)=>e.jsx(wt,{className:"p-2",children:e.jsx(ve,{className:"h-6 w-full"})},k))},m)):u.getRowModel().rows?.length?u.getRowModel().rows.map(c=>e.jsx(Bs,{"data-state":c.getIsSelected()&&"selected",className:"h-10",children:c.getVisibleCells().map(m=>e.jsx(wt,{className:"px-2",children:ya(m.column.columnDef.cell,m.getContext())},m.id))},c.id)):e.jsx(Bs,{children:e.jsx(wt,{colSpan:mn.length,className:"h-24 text-center",children:t("trafficRecord.noRecords")})})})]})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.perPage")}),e.jsxs(J,{value:`${u.getState().pagination.pageSize}`,onValueChange:c=>{u.setPageSize(Number(c))},children:[e.jsx(W,{className:"h-8 w-[70px]",children:e.jsx(Q,{placeholder:u.getState().pagination.pageSize})}),e.jsx(Y,{side:"top",children:[10,20,30,40,50].map(c=>e.jsx($,{value:`${c}`,children:c},c))})]}),e.jsx("p",{className:"text-sm font-medium",children:t("trafficRecord.records")})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("div",{className:"flex w-[100px] items-center justify-center text-sm",children:t("trafficRecord.page",{current:u.getState().pagination.pageIndex+1,total:u.getPageCount()})}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>u.previousPage(),disabled:!u.getCanPreviousPage()||x,children:e.jsx(Lh,{className:"h-4 w-4"})}),e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",onClick:()=>u.nextPage(),disabled:!u.getCanNextPage()||x,children:e.jsx(Ph,{className:"h-4 w-4"})})]})]})]})]})]})]})}function Rh({user:s,trigger:a,onSuccess:t}){const{t:r}=I("user"),[n,i]=d.useState(!1),[l,o]=d.useState(""),[x,u]=d.useState(!1),{data:c,isLoading:m}=ne({queryKey:["trafficResetHistory",s.id],queryFn:()=>Zt.getUserHistory(s.id,{limit:10}),enabled:n}),p=async()=>{try{u(!0);const{data:f}=await Zt.resetUser({user_id:s.id,reason:l.trim()||void 0});f&&(q.success(r("traffic_reset.reset_success")),i(!1),o(""),t?.())}finally{u(!1)}},k=f=>{switch(f){case"manual":return"bg-blue-100 text-blue-800 border-blue-200";case"monthly":return"bg-green-100 text-green-800 border-green-200";case"yearly":return"bg-purple-100 text-purple-800 border-purple-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},S=f=>{switch(f){case"manual":return"bg-orange-100 text-orange-800 border-orange-200";case"cron":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"auto":return"bg-emerald-100 text-emerald-800 border-emerald-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}};return e.jsxs(ge,{open:n,onOpenChange:i,children:[e.jsx(as,{asChild:!0,children:a}),e.jsxs(ue,{className:"max-h-[90vh] max-w-4xl overflow-hidden",children:[e.jsxs(be,{children:[e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(Kt,{className:"h-5 w-5"}),r("traffic_reset.title")]}),e.jsx(Ve,{children:r("traffic_reset.description",{email:s.email})})]}),e.jsxs(Lt,{defaultValue:"reset",className:"w-full",children:[e.jsxs(dt,{className:"grid w-full grid-cols-2",children:[e.jsxs(Xe,{value:"reset",className:"flex items-center gap-2",children:[e.jsx(Kt,{className:"h-4 w-4"}),r("traffic_reset.tabs.reset")]}),e.jsxs(Xe,{value:"history",className:"flex items-center gap-2",children:[e.jsx(lr,{className:"h-4 w-4"}),r("traffic_reset.tabs.history")]})]}),e.jsxs(Ts,{value:"reset",className:"space-y-4",children:[e.jsxs(Re,{children:[e.jsx(Fe,{className:"pb-3",children:e.jsxs(Ge,{className:"flex items-center gap-2 text-lg",children:[e.jsx(wl,{className:"h-5 w-5"}),r("traffic_reset.user_info")]})}),e.jsx(Ie,{className:"space-y-3",children:e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.email")}),e.jsx("p",{className:"font-medium",children:s.email})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.used_traffic")}),e.jsx("p",{className:"font-medium",children:Oe(s.total_used)})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.total_traffic")}),e.jsx("p",{className:"font-medium",children:Oe(s.transfer_enable)})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("columns.expire_time")}),e.jsx("p",{className:"font-medium",children:s.expired_at?xe(s.expired_at):r("columns.expire_status.permanent")})]})]})})]}),e.jsxs(Re,{className:"border-amber-200 bg-amber-50",children:[e.jsx(Fe,{className:"pb-3",children:e.jsxs(Ge,{className:"flex items-center gap-2 text-lg text-amber-800",children:[e.jsx(Ut,{className:"h-5 w-5"}),r("traffic_reset.warning.title")]})}),e.jsx(Ie,{children:e.jsxs("ul",{className:"space-y-2 text-sm text-amber-700",children:[e.jsxs("li",{children:["• ",r("traffic_reset.warning.irreversible")]}),e.jsxs("li",{children:["• ",r("traffic_reset.warning.reset_to_zero")]}),e.jsxs("li",{children:["• ",r("traffic_reset.warning.logged")]})]})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(Ae,{htmlFor:"reason",children:r("traffic_reset.reason.label")}),e.jsx(Ls,{id:"reason",placeholder:r("traffic_reset.reason.placeholder"),value:l,onChange:f=>o(f.target.value),className:"min-h-[80px]"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("traffic_reset.reason.optional")})]}),e.jsxs(Pe,{children:[e.jsx(G,{variant:"outline",onClick:()=>i(!1),children:r("common:cancel")}),e.jsx(G,{onClick:p,disabled:x,className:"bg-destructive hover:bg-destructive/90",children:x?e.jsxs(e.Fragment,{children:[e.jsx(Jt,{className:"mr-2 h-4 w-4 animate-spin"}),r("traffic_reset.resetting")]}):e.jsxs(e.Fragment,{children:[e.jsx(Kt,{className:"mr-2 h-4 w-4"}),r("traffic_reset.confirm_reset")]})})]})]}),e.jsx(Ts,{value:"history",className:"space-y-4",children:m?e.jsx("div",{className:"flex items-center justify-center py-8",children:e.jsx(Jt,{className:"h-6 w-6 animate-spin"})}):e.jsxs("div",{className:"space-y-4",children:[c?.data?.user&&e.jsxs(Re,{children:[e.jsx(Fe,{className:"pb-3",children:e.jsx(Ge,{className:"text-lg",children:r("traffic_reset.history.summary")})}),e.jsx(Ie,{children:e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.reset_count")}),e.jsx("p",{className:"font-medium",children:c.data.user.reset_count})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.last_reset")}),e.jsx("p",{className:"font-medium",children:c.data.user.last_reset_at?xe(c.data.user.last_reset_at):r("traffic_reset.history.never")})]}),e.jsxs("div",{className:"col-span-2",children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.next_reset")}),e.jsx("p",{className:"font-medium",children:c.data.user.next_reset_at?xe(c.data.user.next_reset_at):r("traffic_reset.history.no_schedule")})]})]})})]}),e.jsxs(Re,{children:[e.jsxs(Fe,{className:"pb-3",children:[e.jsx(Ge,{className:"text-lg",children:r("traffic_reset.history.records")}),e.jsx(zs,{children:r("traffic_reset.history.recent_records")})]}),e.jsx(Ie,{children:e.jsx(lt,{className:"h-[300px]",children:c?.data?.history?.length?e.jsx("div",{className:"space-y-3",children:c.data.history.map((f,w)=>e.jsxs("div",{children:[e.jsx("div",{className:"flex items-start justify-between rounded-lg border bg-card p-3",children:e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(U,{className:k(f.reset_type),children:f.reset_type_name}),e.jsx(U,{variant:"outline",className:S(f.trigger_source),children:f.trigger_source_name})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[e.jsxs("div",{children:[e.jsxs(Ae,{className:"flex items-center gap-1 text-muted-foreground",children:[e.jsx(Rn,{className:"h-3 w-3"}),r("traffic_reset.history.reset_time")]}),e.jsx("p",{className:"font-medium",children:xe(f.reset_time)})]}),e.jsxs("div",{children:[e.jsx(Ae,{className:"text-muted-foreground",children:r("traffic_reset.history.traffic_cleared")}),e.jsx("p",{className:"font-medium text-destructive",children:f.old_traffic.formatted})]})]})]})}),we.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M5 18h4.24a1 1 0 0 0 .71-.29l6.92-6.93L19.71 8a1 1 0 0 0 0-1.42l-4.24-4.29a1 1 0 0 0-1.42 0l-2.82 2.83l-6.94 6.93a1 1 0 0 0-.29.71V17a1 1 0 0 0 1 1m9.76-13.59l2.83 2.83l-1.42 1.42l-2.83-2.83ZM6 13.17l5.93-5.93l2.83 2.83L8.83 16H6ZM21 20H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2"})}),Ih=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2"})}),Vh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 8.94a1.3 1.3 0 0 0-.06-.27v-.09a1 1 0 0 0-.19-.28l-6-6a1 1 0 0 0-.28-.19a.3.3 0 0 0-.09 0a.9.9 0 0 0-.33-.11H10a3 3 0 0 0-3 3v1H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-1h1a3 3 0 0 0 3-3zm-6-3.53L17.59 8H16a1 1 0 0 1-1-1ZM15 19a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h1v7a3 3 0 0 0 3 3h5Zm4-4a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3v3a3 3 0 0 0 3 3h3Z"})}),Nr=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21 11a1 1 0 0 0-1 1a8.05 8.05 0 1 1-2.22-5.5h-2.4a1 1 0 0 0 0 2h4.53a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1.77A10 10 0 1 0 22 12a1 1 0 0 0-1-1"})}),Mh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9.5 10.5H12a1 1 0 0 0 0-2h-1V8a1 1 0 0 0-2 0v.55a2.5 2.5 0 0 0 .5 4.95h1a.5.5 0 0 1 0 1H8a1 1 0 0 0 0 2h1v.5a1 1 0 0 0 2 0v-.55a2.5 2.5 0 0 0-.5-4.95h-1a.5.5 0 0 1 0-1M21 12h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Z"})}),Oh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12.3 12.22A4.92 4.92 0 0 0 14 8.5a5 5 0 0 0-10 0a4.92 4.92 0 0 0 1.7 3.72A8 8 0 0 0 1 19.5a1 1 0 0 0 2 0a6 6 0 0 1 12 0a1 1 0 0 0 2 0a8 8 0 0 0-4.7-7.28M9 11.5a3 3 0 1 1 3-3a3 3 0 0 1-3 3m9.74.32A5 5 0 0 0 15 3.5a1 1 0 0 0 0 2a3 3 0 0 1 3 3a3 3 0 0 1-1.5 2.59a1 1 0 0 0-.5.84a1 1 0 0 0 .45.86l.39.26l.13.07a7 7 0 0 1 4 6.38a1 1 0 0 0 2 0a9 9 0 0 0-4.23-7.68"})}),zh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M12 2a10 10 0 0 0-6.88 2.77V3a1 1 0 0 0-2 0v4.5a1 1 0 0 0 1 1h4.5a1 1 0 0 0 0-2h-2.4A8 8 0 1 1 4 12a1 1 0 0 0-2 0A10 10 0 1 0 12 2m0 6a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2h-1V9a1 1 0 0 0-1-1"})}),$h=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2M10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Z"})}),Ah=(s,a,t,r)=>{const{t:n}=I("user");return[{accessorKey:"is_admin",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.is_admin")}),enableSorting:!1,enableHiding:!0,filterFn:(i,l,o)=>o.includes(i.getValue(l)),size:0},{accessorKey:"is_staff",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.is_staff")}),enableSorting:!1,enableHiding:!0,filterFn:(i,l,o)=>o.includes(i.getValue(l)),size:0},{accessorKey:"id",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.id")}),cell:({row:i})=>e.jsx(U,{variant:"outline",children:i.original.id}),enableSorting:!0,enableHiding:!1},{accessorKey:"email",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.email")}),cell:({row:i})=>{const l=i.original.t||0,o=Date.now()/1e3-l<120,x=Math.floor(Date.now()/1e3-l);let u=o?n("columns.online_status.online"):l===0?n("columns.online_status.never"):n("columns.online_status.last_online",{time:xe(l)});if(!o&&l!==0){const c=Math.floor(x/60),m=Math.floor(c/60),p=Math.floor(m/24);p>0?u+=` +`+n("columns.online_status.offline_duration.days",{count:p}):m>0?u+=` +`+n("columns.online_status.offline_duration.hours",{count:m}):c>0?u+=` +`+n("columns.online_status.offline_duration.minutes",{count:c}):u+=` +`+n("columns.online_status.offline_duration.seconds",{count:x})}return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:_("size-2.5 rounded-full ring-2 ring-offset-2",o?"bg-green-500 ring-green-500/20":"bg-gray-300 ring-gray-300/20","transition-all duration-300")}),e.jsx("span",{className:"font-medium text-foreground/90",children:i.original.email})]})}),e.jsx(oe,{side:"bottom",className:"max-w-[280px]",children:e.jsx("p",{className:"whitespace-pre-line text-sm",children:u})})]})})},enableSorting:!1,enableHiding:!1},{accessorKey:"online_count",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.online_count")}),cell:({row:i})=>{const l=i.original.device_limit,o=i.original.online_count||0;return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{children:e.jsx("div",{className:"flex items-center gap-1.5",children:e.jsxs(U,{variant:"outline",className:_("min-w-[4rem] justify-center",l!==null&&o>=l?"border-destructive/50 bg-destructive/10 text-destructive":"border-primary/40 bg-primary/5 text-primary/90"),children:[o," / ",l===null?"∞":l]})})}),e.jsx(oe,{side:"bottom",children:e.jsx("p",{className:"text-sm",children:l===null?n("columns.device_limit.unlimited"):n("columns.device_limit.limited",{count:l})})})]})})},enableSorting:!0,enableHiding:!1},{accessorKey:"banned",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.status")}),cell:({row:i})=>{const l=i.original.banned;return e.jsx("div",{className:"flex justify-center",children:e.jsx(U,{className:_("min-w-20 justify-center transition-colors",l?"bg-destructive/15 text-destructive hover:bg-destructive/25":"bg-success/15 text-success hover:bg-success/25"),children:n(l?"columns.status_text.banned":"columns.status_text.normal")})})},enableSorting:!0,filterFn:(i,l,o)=>o.includes(i.getValue(l))},{accessorKey:"plan_id",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.subscription")}),cell:({row:i})=>e.jsx("div",{className:"min-w-[10em] break-all",children:i.original?.plan?.name||"-"}),enableSorting:!1,enableHiding:!1},{accessorKey:"group_id",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.group")}),cell:({row:i})=>e.jsx("div",{className:"flex flex-wrap gap-1",children:e.jsx(U,{variant:"outline",className:_("px-2 py-0.5 font-medium","bg-secondary/50 hover:bg-secondary/70","border border-border/50","transition-all duration-200","cursor-default select-none","flex items-center gap-1.5 whitespace-nowrap"),children:i.original?.group?.name||"-"})}),enableSorting:!1},{accessorKey:"total_used",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.used_traffic")}),cell:({row:i})=>{const l=Oe(i.original?.total_used),o=Oe(i.original?.transfer_enable),x=i.original?.total_used/i.original?.transfer_enable*100||0;return e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{className:"w-full",children:e.jsxs("div",{className:"w-full space-y-1",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:l}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[x.toFixed(1),"%"]})]}),e.jsx("div",{className:"h-1.5 w-full rounded-full bg-secondary",children:e.jsx("div",{className:_("h-full rounded-full transition-all",x>90?"bg-destructive":"bg-primary"),style:{width:`${Math.min(x,100)}%`}})})]})}),e.jsx(oe,{side:"bottom",children:e.jsxs("p",{className:"text-sm",children:[n("columns.total_traffic"),": ",o]})})]})})}},{accessorKey:"transfer_enable",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.total_traffic")}),cell:({row:i})=>e.jsx("div",{className:"font-medium text-muted-foreground",children:Oe(i.original?.transfer_enable)})},{accessorKey:"expired_at",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.expire_time")}),cell:({row:i})=>{const l=i.original.expired_at,o=Date.now()/1e3,x=l!=null&&le.jsx(A,{column:i,title:n("columns.balance")}),cell:({row:i})=>{const l=yt(i.original?.balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:l})]})}},{accessorKey:"commission_balance",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.commission")}),cell:({row:i})=>{const l=yt(i.original?.commission_balance);return e.jsxs("div",{className:"flex items-center gap-1 font-medium",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"¥"}),e.jsx("span",{className:"tabular-nums text-foreground",children:l})]})}},{accessorKey:"created_at",header:({column:i})=>e.jsx(A,{column:i,title:n("columns.register_time")}),cell:({row:i})=>e.jsx("div",{className:"truncate",children:xe(i.original?.created_at)}),size:1e3},{id:"actions",header:({column:i})=>e.jsx(A,{column:i,className:"justify-end",title:n("columns.actions")}),cell:({row:i,table:l})=>e.jsxs($s,{modal:!1,children:[e.jsx(As,{asChild:!0,children:e.jsx("div",{className:"text-center",children:e.jsx(G,{variant:"ghost",className:"h-8 w-8 p-0 hover:bg-muted","aria-label":n("columns.actions"),children:e.jsx(Ca,{className:"size-4"})})})}),e.jsxs(Rs,{align:"end",className:"min-w-[40px]",children:[e.jsx(_e,{onSelect:o=>{o.preventDefault(),t(i.original),r(!0)},className:"p-0",children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Fh,{className:"mr-2"}),n("columns.actions_menu.edit")]})}),e.jsx(_e,{onSelect:o=>o.preventDefault(),className:"p-0",children:e.jsx(li,{defaultValues:{email:i.original.email},trigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Ih,{className:"mr-2 "}),n("columns.actions_menu.assign_order")]})})}),e.jsx(_e,{onSelect:()=>{Sa(i.original.subscribe_url).then(()=>{q.success(n("common:copy.success"))})},className:"p-0",children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Vh,{className:"mr-2"}),n("columns.actions_menu.copy_url")]})}),e.jsx(_e,{onSelect:()=>{Ps.resetSecret(i.original.id).then(({data:o})=>{o&&q.success("重置成功")})},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Nr,{className:"mr-2 "}),n("columns.actions_menu.reset_secret")]})}),e.jsx(_e,{onSelect:()=>{},className:"p-0",children:e.jsxs(Ys,{className:"flex items-center px-2 py-1.5",to:`/finance/order?user_id=eq:${i.original?.id}`,children:[e.jsx(Mh,{className:"mr-2"}),n("columns.actions_menu.orders")]})}),e.jsx(_e,{onSelect:()=>{l.setColumnFilters([{id:"invite_user_id",value:"eq:"+i.original?.id}])},children:e.jsxs("div",{className:"flex items-center",children:[e.jsx(Oh,{className:"mr-2 "}),n("columns.actions_menu.invites")]})}),e.jsx(_e,{onSelect:o=>o.preventDefault(),className:"p-0",children:e.jsx(gi,{user_id:i.original?.id,dialogTrigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(zh,{className:"mr-2 "}),n("columns.actions_menu.traffic_records")]})})}),e.jsx(_e,{onSelect:o=>o.preventDefault(),className:"p-0",children:e.jsx(Rh,{user:i.original,onSuccess:s,trigger:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5",children:[e.jsx(Nr,{className:"mr-2"}),n("columns.actions_menu.reset_traffic")]})})}),e.jsx(_e,{onSelect:o=>o.preventDefault(),className:"p-0",children:e.jsx(Eh,{title:n("columns.actions_menu.delete_confirm_title"),description:n("columns.actions_menu.delete_confirm_description",{email:i.original.email}),cancelText:n("common:cancel"),confirmText:n("common:confirm"),variant:"destructive",onConfirm:async()=>{try{const{data:o}=await Ps.destroy(i.original.id);o&&(q.success(n("common:delete.success")),s())}catch{q.error(n("common:delete.failed"))}},children:e.jsxs(G,{variant:"ghost",className:"w-full justify-start px-2 py-1.5 text-destructive hover:text-destructive",children:[e.jsx($h,{className:"mr-2"}),n("columns.actions_menu.delete")]})})})]})]})}]},fi=d.createContext(void 0),Kn=()=>{const s=d.useContext(fi);if(!s)throw new Error("useUserEdit must be used within an UserEditProvider");return s},pi=({children:s,refreshData:a})=>{const[t,r]=d.useState(!1),[n,i]=d.useState(null),l={isOpen:t,setIsOpen:r,editingUser:n,setEditingUser:i,refreshData:a};return e.jsx(fi.Provider,{value:l,children:s})},qh=h.object({id:h.number().default(0),email:h.string().email().default(""),invite_user_email:h.string().email().nullable().optional().default(null),password:h.string().optional().nullable().default(null),balance:h.coerce.number().default(0),commission_balance:h.coerce.number().default(0),u:h.number().default(0),d:h.number().default(0),transfer_enable:h.number().default(0),expired_at:h.number().nullable().default(null),plan_id:h.number().nullable().default(null),banned:h.boolean().default(!1),commission_type:h.number().default(0),commission_rate:h.number().nullable().default(null),discount:h.number().nullable().default(null),speed_limit:h.number().nullable().default(null),device_limit:h.number().nullable().default(null),is_admin:h.boolean().default(!1),is_staff:h.boolean().default(!1),remarks:h.string().nullable().default(null)});function ji(){const{t:s}=I("user"),{isOpen:a,setIsOpen:t,editingUser:r,refreshData:n}=Kn(),[i,l]=d.useState(!1),[o,x]=d.useState([]),u=we({resolver:Ce(qh)});return d.useEffect(()=>{a&&gs.getList().then(({data:c})=>{x(c)})},[a]),d.useEffect(()=>{if(r){const c=r.invite_user?.email,{invite_user:m,...p}=r;u.reset({...p,invite_user_email:c||null,password:null})}},[r,u]),e.jsx(Un,{open:a,onOpenChange:t,children:e.jsxs(Wa,{className:"max-w-[90%] space-y-4",children:[e.jsxs(Ya,{children:[e.jsx(Ja,{children:s("edit.title")}),e.jsx(Qa,{})]}),e.jsxs(Se,{...u,children:[e.jsx(b,{control:u.control,name:"email",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.email")}),e.jsx(N,{children:e.jsx(T,{...c,placeholder:s("edit.form.email_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...c})]})}),e.jsx(b,{control:u.control,name:"invite_user_email",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.inviter_email")}),e.jsx(N,{children:e.jsx(T,{value:c.value||"",onChange:m=>c.onChange(m.target.value?m.target.value:null),placeholder:s("edit.form.inviter_email_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...c})]})}),e.jsx(b,{control:u.control,name:"password",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.password")}),e.jsx(N,{children:e.jsx(T,{type:"password",value:c.value||"",onChange:c.onChange,placeholder:s("edit.form.password_placeholder"),autoComplete:"off","data-form-type":"other"})}),e.jsx(P,{...c})]})}),e.jsxs("div",{className:"grid gap-2 md:grid-cols-2",children:[e.jsx(b,{control:u.control,name:"balance",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.balance")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value||"",onChange:c.onChange,placeholder:s("edit.form.balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...c})]})}),e.jsx(b,{control:u.control,name:"commission_balance",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.commission_balance")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value||"",onChange:c.onChange,placeholder:s("edit.form.commission_balance_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"¥"})]})}),e.jsx(P,{...c})]})}),e.jsx(b,{control:u.control,name:"u",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.upload")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{value:c.value/1024/1024/1024||"",onChange:m=>c.onChange(parseInt(m.target.value)*1024*1024*1024),placeholder:s("edit.form.upload_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...c})]})}),e.jsx(b,{control:u.control,name:"d",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.download")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value/1024/1024/1024||"",onChange:m=>c.onChange(parseInt(m.target.value)*1024*1024*1024),placeholder:s("edit.form.download_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{...c})]})})]}),e.jsx(b,{control:u.control,name:"transfer_enable",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.total_traffic")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value/1024/1024/1024||"",onChange:m=>c.onChange(parseInt(m.target.value)*1024*1024*1024),placeholder:s("edit.form.total_traffic_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"GB"})]})}),e.jsx(P,{})]})}),e.jsx(b,{control:u.control,name:"expired_at",render:({field:c})=>e.jsxs(j,{className:"flex flex-col",children:[e.jsx(v,{children:s("edit.form.expire_time")}),e.jsxs(os,{open:i,onOpenChange:l,children:[e.jsx(cs,{asChild:!0,children:e.jsx(N,{children:e.jsxs(L,{type:"button",variant:"outline",className:_("w-full pl-3 text-left font-normal",!c.value&&"text-muted-foreground"),onClick:()=>l(!0),children:[c.value?xe(c.value):e.jsx("span",{children:s("edit.form.expire_time_placeholder")}),e.jsx(ks,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",side:"top",sideOffset:4,onInteractOutside:m=>{m.preventDefault()},onEscapeKeyDown:m=>{m.preventDefault()},children:e.jsxs("div",{className:"flex flex-col space-y-3 p-3",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{c.onChange(null),l(!1)},children:s("edit.form.expire_time_permanent")}),e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const m=new Date;m.setMonth(m.getMonth()+1),m.setHours(23,59,59,999),c.onChange(Math.floor(m.getTime()/1e3)),l(!1)},children:s("edit.form.expire_time_1month")}),e.jsx(L,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{const m=new Date;m.setMonth(m.getMonth()+3),m.setHours(23,59,59,999),c.onChange(Math.floor(m.getTime()/1e3)),l(!1)},children:s("edit.form.expire_time_3months")})]}),e.jsx("div",{className:"rounded-md border",children:e.jsx(vs,{mode:"single",selected:c.value?new Date(c.value*1e3):void 0,onSelect:m=>{if(m){const p=new Date(c.value?c.value*1e3:Date.now());m.setHours(p.getHours(),p.getMinutes(),p.getSeconds()),c.onChange(Math.floor(m.getTime()/1e3))}},disabled:m=>m{const m=new Date;m.setHours(23,59,59,999),c.onChange(Math.floor(m.getTime()/1e3))},className:"h-6 px-2 text-xs",children:s("edit.form.expire_time_today")})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(T,{type:"datetime-local",step:"1",value:xe(c.value,"YYYY-MM-DDTHH:mm:ss"),onChange:m=>{const p=new Date(m.target.value);isNaN(p.getTime())||c.onChange(Math.floor(p.getTime()/1e3))},className:"flex-1"}),e.jsx(L,{type:"button",variant:"outline",onClick:()=>l(!1),children:s("edit.form.expire_time_confirm")})]})]})]})})]}),e.jsx(P,{})]})}),e.jsx(b,{control:u.control,name:"plan_id",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.subscription")}),e.jsx(N,{children:e.jsxs(J,{value:c.value!==null?String(c.value):"null",onValueChange:m=>c.onChange(m==="null"?null:parseInt(m)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx($,{value:"null",children:s("edit.form.subscription_none")}),o.map(m=>e.jsx($,{value:String(m.id),children:m.name},m.id))]})]})})]})}),e.jsx(b,{control:u.control,name:"banned",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.account_status")}),e.jsx(N,{children:e.jsxs(J,{value:c.value.toString(),onValueChange:m=>c.onChange(m==="true"),children:[e.jsx(W,{children:e.jsx(Q,{})}),e.jsxs(Y,{children:[e.jsx($,{value:"true",children:s("columns.status_text.banned")}),e.jsx($,{value:"false",children:s("columns.status_text.normal")})]})]})})]})}),e.jsx(b,{control:u.control,name:"commission_type",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.commission_type")}),e.jsx(N,{children:e.jsxs(J,{value:c.value.toString(),onValueChange:m=>c.onChange(parseInt(m)),children:[e.jsx(W,{children:e.jsx(Q,{placeholder:s("edit.form.subscription_none")})}),e.jsxs(Y,{children:[e.jsx($,{value:"0",children:s("edit.form.commission_type_system")}),e.jsx($,{value:"1",children:s("edit.form.commission_type_cycle")}),e.jsx($,{value:"2",children:s("edit.form.commission_type_onetime")})]})]})})]})}),e.jsx(b,{control:u.control,name:"commission_rate",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.commission_rate")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value||"",onChange:m=>c.onChange(parseInt(m.currentTarget.value)||null),placeholder:s("edit.form.commission_rate_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})})]})}),e.jsx(b,{control:u.control,name:"discount",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.discount")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value||"",onChange:m=>c.onChange(parseInt(m.currentTarget.value)||null),placeholder:s("edit.form.discount_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"%"})]})}),e.jsx(P,{})]})}),e.jsx(b,{control:u.control,name:"speed_limit",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.speed_limit")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value||"",onChange:m=>c.onChange(parseInt(m.currentTarget.value)||null),placeholder:s("edit.form.speed_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"Mbps"})]})}),e.jsx(P,{})]})}),e.jsx(b,{control:u.control,name:"device_limit",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.device_limit")}),e.jsx(N,{children:e.jsxs("div",{className:"flex",children:[e.jsx(T,{type:"number",value:c.value||"",onChange:m=>c.onChange(parseInt(m.currentTarget.value)||null),placeholder:s("edit.form.device_limit_placeholder"),className:"rounded-r-none"}),e.jsx("div",{className:"z-[-1] rounded-md rounded-l-none border border-l-0 border-input px-3 py-1 shadow-sm",children:"台"})]})}),e.jsx(P,{})]})}),e.jsx(b,{control:u.control,name:"is_admin",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.is_admin")}),e.jsx("div",{className:"py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:c.value,onCheckedChange:m=>c.onChange(m)})})}),e.jsx(P,{})]})}),e.jsx(b,{control:u.control,name:"is_staff",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.is_staff")}),e.jsx("div",{className:"py-2",children:e.jsx(N,{children:e.jsx(Z,{checked:c.value,onCheckedChange:m=>c.onChange(m)})})})]})}),e.jsx(b,{control:u.control,name:"remarks",render:({field:c})=>e.jsxs(j,{children:[e.jsx(v,{children:s("edit.form.remarks")}),e.jsx(N,{children:e.jsx(Ls,{className:"h-24",value:c.value||"",onChange:m=>c.onChange(m.currentTarget.value??null),placeholder:s("edit.form.remarks_placeholder")})}),e.jsx(P,{})]})}),e.jsxs(ui,{children:[e.jsx(L,{variant:"outline",onClick:()=>t(!1),children:s("edit.form.cancel")}),e.jsx(L,{type:"submit",onClick:()=>{u.handleSubmit(c=>{Ps.update(c).then(({data:m})=>{m&&(q.success(s("edit.form.success")),t(!1),n())})})()},children:s("edit.form.submit")})]})]})]})})}function Hh(){const[s]=_l(),[a,t]=d.useState({}),[r,n]=d.useState({is_admin:!1,is_staff:!1}),[i,l]=d.useState([]),[o,x]=d.useState([]),[u,c]=d.useState({pageIndex:0,pageSize:20});d.useEffect(()=>{const g=s.get("email");g&&l(y=>y.some(z=>z.id==="email")?y:[...y,{id:"email",value:g}])},[s]);const{refetch:m,data:p,isLoading:k}=ne({queryKey:["userList",u,i,o],queryFn:()=>Ps.getList({pageSize:u.pageSize,current:u.pageIndex+1,filter:i,sort:o})}),[S,f]=d.useState([]),[w,C]=d.useState([]);d.useEffect(()=>{mt.getList().then(({data:g})=>{f(g)}),gs.getList().then(({data:g})=>{C(g)})},[]);const V=S.map(g=>({label:g.name,value:g.id})),F=w.map(g=>({label:g.name,value:g.id}));return e.jsxs(pi,{refreshData:m,children:[e.jsx(Uh,{data:p?.data??[],rowCount:p?.total??0,sorting:o,setSorting:x,columnVisibility:r,setColumnVisibility:n,rowSelection:a,setRowSelection:t,columnFilters:i,setColumnFilters:l,pagination:u,setPagination:c,refetch:m,serverGroupList:S,permissionGroups:V,subscriptionPlans:F,isLoading:k}),e.jsx(ji,{})]})}function Uh({data:s,rowCount:a,sorting:t,setSorting:r,columnVisibility:n,setColumnVisibility:i,rowSelection:l,setRowSelection:o,columnFilters:x,setColumnFilters:u,pagination:c,setPagination:m,refetch:p,serverGroupList:k,permissionGroups:S,subscriptionPlans:f,isLoading:w}){const{setIsOpen:C,setEditingUser:V}=Kn(),F=ss({data:s,columns:Ah(p,k,V,C),state:{sorting:t,columnVisibility:n,rowSelection:l,columnFilters:x,pagination:c},rowCount:a,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:o,onSortingChange:r,onColumnFiltersChange:u,onColumnVisibilityChange:i,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:m,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnVisibility:{commission_balance:!1,created_at:!1,is_admin:!1,is_staff:!1,permission_group:!1,plan_id:!1},columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Dh,{table:F,refetch:p,serverGroupList:k,permissionGroups:S,subscriptionPlans:f}),e.jsx(xs,{table:F,isLoading:w})]})}function Kh(){const{t:s}=I("user");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("manage.title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("manage.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx("div",{className:"w-full",children:e.jsx(Hh,{})})})]})]})}const Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Kh},Symbol.toStringTag,{value:"Module"}));function Gh({column:s,title:a,options:t}){const r=new Set(s?.getFilterValue());return e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(G,{variant:"outline",size:"sm",className:"h-8 border-dashed",children:[e.jsx(rd,{className:"mr-2 h-4 w-4"}),a,r?.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Te,{orientation:"vertical",className:"mx-2 h-4"}),e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal lg:hidden",children:r.size}),e.jsx("div",{className:"hidden space-x-1 lg:flex",children:r.size>2?e.jsxs(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:[r.size," selected"]}):t.filter(n=>r.has(n.value)).map(n=>e.jsx(U,{variant:"secondary",className:"rounded-sm px-1 font-normal",children:n.label},`selected-${n.value}`))})]})]})}),e.jsx(Ze,{className:"w-[200px] p-0",align:"start",children:e.jsxs(Js,{children:[e.jsx(ut,{placeholder:a}),e.jsxs(Qs,{children:[e.jsx(xt,{children:"No results found."}),e.jsx(fs,{children:t.map(n=>{const i=r.has(n.value);return e.jsxs(We,{onSelect:()=>{i?r.delete(n.value):r.add(n.value);const l=Array.from(r);s?.setFilterValue(l.length?l:void 0)},children:[e.jsx("div",{className:_("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",i?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(ld,{className:_("h-4 w-4")})}),n.icon&&e.jsx(n.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:n.label})]},`option-${n.value}`)})}),r.size>0&&e.jsxs(e.Fragment,{children:[e.jsx(Pt,{}),e.jsx(fs,{children:e.jsx(We,{onSelect:()=>s?.setFilterValue(void 0),className:"justify-center text-center",children:"Clear filters"})})]})]})]})})]})}const Wh=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 11H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})});function Yh({table:s}){const{t:a}=I("ticket");return e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex flex-1 flex-col-reverse items-start gap-y-2 sm:flex-row sm:items-center sm:space-x-4",children:[e.jsx(Lt,{defaultValue:s.getColumn("status")?.getFilterValue(),onValueChange:t=>s.getColumn("status")?.setFilterValue(t),children:e.jsxs(dt,{className:"grid w-full grid-cols-2",children:[e.jsx(Xe,{value:"0",children:a("status.pending")}),e.jsx(Xe,{value:"1",children:a("status.closed")})]})}),s.getColumn("level")&&e.jsx(Gh,{column:s.getColumn("level"),title:a("columns.level"),options:[{label:a("level.low"),value:Qe.LOW,icon:Wh,color:"gray"},{label:a("level.medium"),value:Qe.MIDDLE,icon:xi,color:"yellow"},{label:a("level.high"),value:Qe.HIGH,icon:hi,color:"red"}]})]})})}function Jh(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"text-foreground",children:[e.jsx("circle",{cx:"4",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_qFRN",begin:"0;spinner_OcgL.end+0.25s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{begin:"spinner_qFRN.begin+0.1s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})}),e.jsx("circle",{cx:"20",cy:"12",r:"2",fill:"currentColor",children:e.jsx("animate",{id:"spinner_OcgL",begin:"spinner_qFRN.begin+0.2s",attributeName:"cy",calcMode:"spline",dur:"0.6s",values:"12;6;12",keySplines:".33,.66,.66,1;.33,0,.66,.33"})})]})}const Qh=it("flex gap-2 max-w-[60%] items-end relative group",{variants:{variant:{received:"self-start",sent:"self-end flex-row-reverse"},layout:{default:"",ai:"max-w-full w-full items-center"}},defaultVariants:{variant:"received",layout:"default"}}),vi=d.forwardRef(({className:s,variant:a,layout:t,children:r,...n},i)=>e.jsx("div",{className:_(Qh({variant:a,layout:t,className:s}),"relative group"),ref:i,...n,children:d.Children.map(r,l=>d.isValidElement(l)&&typeof l.type!="string"?d.cloneElement(l,{variant:a,layout:t}):l)}));vi.displayName="ChatBubble";const Xh=it("p-4",{variants:{variant:{received:"bg-secondary text-secondary-foreground rounded-r-lg rounded-tl-lg",sent:"bg-primary text-primary-foreground rounded-l-lg rounded-tr-lg"},layout:{default:"",ai:"border-t w-full rounded-none bg-transparent"}},defaultVariants:{variant:"received",layout:"default"}}),bi=d.forwardRef(({className:s,variant:a,layout:t,isLoading:r=!1,children:n,...i},l)=>e.jsx("div",{className:_(Xh({variant:a,layout:t,className:s}),"break-words max-w-full whitespace-pre-wrap"),ref:l,...i,children:r?e.jsx("div",{className:"flex items-center space-x-2",children:e.jsx(Jh,{})}):n}));bi.displayName="ChatBubbleMessage";const Zh=d.forwardRef(({variant:s,className:a,children:t,...r},n)=>e.jsx("div",{ref:n,className:_("absolute top-1/2 -translate-y-1/2 flex opacity-0 group-hover:opacity-100 transition-opacity duration-200",s==="sent"?"-left-1 -translate-x-full flex-row-reverse":"-right-1 translate-x-full",a),...r,children:t}));Zh.displayName="ChatBubbleActionWrapper";const yi=d.forwardRef(({className:s,...a},t)=>e.jsx(Ls,{autoComplete:"off",ref:t,name:"message",className:_("max-h-12 px-4 py-3 bg-background text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 w-full rounded-md flex items-center h-16 resize-none",s),...a}));yi.displayName="ChatInput";const Ni=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"})}),_i=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M15.098 12.634L13 11.423V7a1 1 0 0 0-2 0v5a1 1 0 0 0 .5.866l2.598 1.5a1 1 0 1 0 1-1.732M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8"})}),_r=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"m11.29 12l3.54-3.54a1 1 0 0 0 0-1.41a1 1 0 0 0-1.42 0l-4.24 4.24a1 1 0 0 0 0 1.42L13.41 17a1 1 0 0 0 .71.29a1 1 0 0 0 .71-.29a1 1 0 0 0 0-1.41Z"})}),eg=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39M11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7"})}),sg=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M3.71 16.29a1 1 0 0 0-.33-.21a1 1 0 0 0-.76 0a1 1 0 0 0-.33.21a1 1 0 0 0-.21.33a1 1 0 0 0 .21 1.09a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1 1 0 0 0 .21-1.09a1 1 0 0 0-.21-.33M7 8h14a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2m-3.29 3.29a1 1 0 0 0-1.09-.21a1.2 1.2 0 0 0-.33.21a1 1 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1 1 0 0 0-.21-.33M21 11H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2M3.71 6.29a1 1 0 0 0-.33-.21a1 1 0 0 0-1.09.21a1.2 1.2 0 0 0-.21.33a.94.94 0 0 0 0 .76a1.2 1.2 0 0 0 .21.33a1.2 1.2 0 0 0 .33.21a1 1 0 0 0 1.09-.21a1.2 1.2 0 0 0 .21-.33a.94.94 0 0 0 0-.76a1.2 1.2 0 0 0-.21-.33M21 16H7a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2"})}),tg=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M9 12H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-1-2h4a1 1 0 0 0 0-2H8a1 1 0 0 0 0 2m1 6H7a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m12-4h-3V3a1 1 0 0 0-.5-.87a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0l-3 1.72l-3-1.72a1 1 0 0 0-1 0A1 1 0 0 0 2 3v16a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1M5 20a1 1 0 0 1-1-1V4.73l2 1.14a1.08 1.08 0 0 0 1 0l3-1.72l3 1.72a1.08 1.08 0 0 0 1 0l2-1.14V19a3 3 0 0 0 .18 1Zm15-1a1 1 0 0 1-2 0v-5h2Zm-6.44-2.83a.8.8 0 0 0-.18-.09a.6.6 0 0 0-.19-.06a1 1 0 0 0-.9.27A1.05 1.05 0 0 0 12 17a1 1 0 0 0 .07.38a1.2 1.2 0 0 0 .22.33a1.2 1.2 0 0 0 .33.21a.94.94 0 0 0 .76 0a1.2 1.2 0 0 0 .33-.21A1 1 0 0 0 14 17a1.05 1.05 0 0 0-.29-.71a2 2 0 0 0-.15-.12m.14-3.88a1 1 0 0 0-1.62.33A1 1 0 0 0 13 14a1 1 0 0 0 1-1a1 1 0 0 0-.08-.38a.9.9 0 0 0-.22-.33"})});function ag(){return e.jsxs("div",{className:"flex h-full flex-col space-y-4 p-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(ve,{className:"h-8 w-3/4"}),e.jsx(ve,{className:"h-4 w-1/2"})]}),e.jsx("div",{className:"flex-1 space-y-4",children:[1,2,3].map(s=>e.jsx(ve,{className:"h-20 w-2/3"},s))})]})}function ng(){return e.jsx("div",{className:"space-y-4 p-4",children:[1,2,3,4].map(s=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(ve,{className:"h-5 w-4/5"}),e.jsx(ve,{className:"h-4 w-2/3"}),e.jsx(ve,{className:"h-3 w-1/2"})]},s))})}function rg({ticket:s,isActive:a,onClick:t}){const{t:r}=I("ticket"),n=i=>{switch(i){case Qe.HIGH:return"bg-red-50 text-red-600 border-red-200";case Qe.MIDDLE:return"bg-yellow-50 text-yellow-600 border-yellow-200";case Qe.LOW:return"bg-green-50 text-green-600 border-green-200";default:return"bg-gray-50 text-gray-600 border-gray-200"}};return e.jsxs("div",{className:_("flex cursor-pointer flex-col border-b p-4 hover:bg-accent/50",a&&"bg-accent"),onClick:t,children:[e.jsxs("div",{className:"flex max-w-[280px] items-center justify-between gap-2",children:[e.jsx("h4",{className:"flex-1 truncate font-medium",children:s.subject}),e.jsx(U,{variant:s.status===Ws.CLOSED?"secondary":"default",className:"shrink-0",children:s.status===Ws.CLOSED?r("status.closed"):r("status.processing")})]}),e.jsx("div",{className:"mt-1 max-w-[280px] truncate text-sm text-muted-foreground",children:s.user?.email}),e.jsxs("div",{className:"mt-2 flex items-center justify-between text-xs",children:[e.jsx("time",{className:"text-muted-foreground",children:xe(s.updated_at)}),e.jsx("div",{className:_("rounded-full border px-2 py-0.5 text-xs font-medium",n(s.level)),children:r(`level.${s.level===Qe.LOW?"low":s.level===Qe.MIDDLE?"medium":"high"}`)})]})]})}function lg({ticketId:s,dialogTrigger:a}){const{t}=I("ticket"),r=qs(),n=d.useRef(null),i=d.useRef(null),[l,o]=d.useState(!1),[x,u]=d.useState(""),[c,m]=d.useState(!1),[p,k]=d.useState(s),[S,f]=d.useState(""),[w,C]=d.useState(!1),{setIsOpen:V,setEditingUser:F}=Kn(),{data:g,isLoading:y,refetch:D}=ne({queryKey:["tickets",l],queryFn:()=>l?_t.getList({filter:[{id:"status",value:[Ws.OPENING]}]}):Promise.resolve(null),enabled:l}),{data:z,refetch:R,isLoading:K}=ne({queryKey:["ticket",p,l],queryFn:()=>l?_t.getInfo(p):Promise.resolve(null),refetchInterval:l?5e3:!1,retry:3}),ae=z?.data,te=(g?.data||[]).filter(ie=>ie.subject.toLowerCase().includes(S.toLowerCase())||ie.user?.email.toLowerCase().includes(S.toLowerCase())),H=(ie="smooth")=>{if(n.current){const{scrollHeight:_s,clientHeight:Is}=n.current;n.current.scrollTo({top:_s-Is,behavior:ie})}};d.useEffect(()=>{if(!l)return;const ie=requestAnimationFrame(()=>{H("instant"),setTimeout(()=>H(),1e3)});return()=>{cancelAnimationFrame(ie)}},[l,ae?.messages]);const E=async()=>{const ie=x.trim();!ie||c||(m(!0),_t.reply({id:p,message:ie}).then(()=>{u(""),R(),H(),setTimeout(()=>{i.current?.focus()},0)}).finally(()=>{m(!1)}))},X=async()=>{_t.close(p).then(()=>{q.success(t("actions.close_success")),R(),D()})},Ns=()=>{ae?.user&&r("/finance/order?user_id="+ae.user.id)},De=ae?.status===Ws.CLOSED;return e.jsxs(ge,{open:l,onOpenChange:o,children:[e.jsx(as,{asChild:!0,children:a??e.jsx(G,{variant:"outline",children:t("actions.view_ticket")})}),e.jsxs(ue,{className:"flex h-[90vh] max-w-6xl flex-col gap-0 p-0",children:[e.jsx(fe,{}),e.jsxs("div",{className:"flex h-full",children:[e.jsx(G,{variant:"ghost",size:"icon",className:"absolute left-2 top-2 z-50 md:hidden",onClick:()=>C(!w),children:e.jsx(_r,{className:_("h-4 w-4 transition-transform",!w&&"rotate-180")})}),e.jsxs("div",{className:_("absolute inset-y-0 left-0 z-40 flex flex-col border-r bg-background transition-transform duration-200 ease-in-out md:relative",w?"-translate-x-full":"translate-x-0","w-80 md:w-80 md:translate-x-0"),children:[e.jsxs("div",{className:"space-y-4 border-b p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"font-semibold",children:t("list.title")}),e.jsx(G,{variant:"ghost",size:"icon",className:"hidden h-8 w-8 md:flex",onClick:()=>C(!w),children:e.jsx(_r,{className:_("h-4 w-4 transition-transform",!w&&"rotate-180")})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(eg,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),e.jsx(T,{placeholder:t("list.search_placeholder"),value:S,onChange:ie=>f(ie.target.value),className:"pl-8"})]})]}),e.jsx(lt,{className:"flex-1",children:e.jsx("div",{className:"w-full",children:y?e.jsx(ng,{}):te.length===0?e.jsx("div",{className:"flex h-full items-center justify-center p-4 text-muted-foreground",children:t(S?"list.no_search_results":"list.no_tickets")}):te.map(ie=>e.jsx(rg,{ticket:ie,isActive:ie.id===p,onClick:()=>{k(ie.id),window.innerWidth<768&&C(!0)}},ie.id))})})]}),e.jsxs("div",{className:"relative flex flex-1 flex-col",children:[!w&&e.jsx("div",{className:"absolute inset-0 z-30 bg-black/20 md:hidden",onClick:()=>C(!0)}),K?e.jsx(ag,{}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex flex-col space-y-4 border-b p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("h2",{className:"text-2xl font-semibold",children:ae?.subject}),e.jsx(U,{variant:De?"secondary":"default",children:t(De?"status.closed":"status.processing")}),!De&&e.jsx(ps,{title:t("actions.close_confirm_title"),description:t("actions.close_confirm_description"),confirmText:t("actions.close_confirm_button"),variant:"destructive",onConfirm:X,children:e.jsxs(G,{variant:"ghost",size:"sm",className:"gap-1 text-muted-foreground hover:text-destructive",children:[e.jsx(Ni,{className:"h-4 w-4"}),t("actions.close_ticket")]})})]}),e.jsxs("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(La,{className:"h-4 w-4"}),e.jsx("span",{children:ae?.user?.email})]}),e.jsx(Te,{orientation:"vertical",className:"h-4"}),e.jsxs("div",{className:"flex items-center space-x-1",children:[e.jsx(_i,{className:"h-4 w-4"}),e.jsxs("span",{children:[t("detail.created_at")," ",xe(ae?.created_at)]})]}),e.jsx(Te,{orientation:"vertical",className:"h-4"}),e.jsx(U,{variant:"outline",children:ae?.level!=null&&t(`level.${ae.level===Qe.LOW?"low":ae.level===Qe.MIDDLE?"medium":"high"}`)})]})]}),ae?.user&&e.jsxs("div",{className:"flex space-x-2",children:[e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.user_info"),onClick:()=>{F(ae.user),V(!0)},children:e.jsx(La,{className:"h-4 w-4"})}),e.jsx(gi,{user_id:ae.user.id,dialogTrigger:e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.traffic_records"),children:e.jsx(sg,{className:"h-4 w-4"})})}),e.jsx(G,{variant:"outline",size:"icon",className:"h-8 w-8",title:t("detail.order_records"),onClick:Ns,children:e.jsx(tg,{className:"h-4 w-4"})})]})]})}),e.jsx("div",{className:"flex-1 overflow-hidden",children:e.jsx("div",{ref:n,className:"h-full space-y-4 overflow-y-auto p-6",children:ae?.messages?.length===0?e.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:t("detail.no_messages")}):ae?.messages?.map(ie=>e.jsx(vi,{variant:ie.is_from_admin?"sent":"received",className:ie.is_from_admin?"ml-auto":"mr-auto",children:e.jsx(bi,{children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"whitespace-pre-wrap break-words",children:ie.message}),e.jsx("div",{className:"text-right",children:e.jsx("time",{className:"text-[10px] text-muted-foreground",children:xe(ie.created_at)})})]})})},ie.id))})}),e.jsx("div",{className:"border-t p-4",children:e.jsxs("div",{className:"relative flex items-center space-x-2",children:[e.jsx(yi,{ref:i,disabled:De||c,placeholder:t(De?"detail.input.closed_placeholder":"detail.input.reply_placeholder"),className:"flex-1 resize-none rounded-lg border bg-background p-3 focus-visible:ring-1",value:x,onChange:ie=>u(ie.target.value),onKeyDown:ie=>{ie.key==="Enter"&&!ie.shiftKey&&(ie.preventDefault(),E())}}),e.jsx(G,{disabled:De||c||!x.trim(),onClick:E,children:t(c?"detail.input.sending":"detail.input.send")})]})})]})]})]})]})]})}const ig=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3m-.41 2l-5.88 5.88a1 1 0 0 1-1.42 0L5.41 6ZM20 17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7.41l5.88 5.88a3 3 0 0 0 4.24 0L20 7.41Z"})}),og=s=>e.jsx("svg",{className:"inline-block",viewBox:"0 0 24 24",width:"1.2em",height:"1.2em",...s,children:e.jsx("path",{fill:"currentColor",d:"M21.92 11.6C19.9 6.91 16.1 4 12 4s-7.9 2.91-9.92 7.6a1 1 0 0 0 0 .8C4.1 17.09 7.9 20 12 20s7.9-2.91 9.92-7.6a1 1 0 0 0 0-.8M12 18c-3.17 0-6.17-2.29-7.9-6C5.83 8.29 8.83 6 12 6s6.17 2.29 7.9 6c-1.73 3.71-4.73 6-7.9 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4m0 6a2 2 0 1 1 2-2a2 2 0 0 1-2 2"})}),cg=s=>{const{t:a}=I("ticket");return[{accessorKey:"id",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.id")}),cell:({row:t})=>e.jsx(U,{variant:"outline",children:t.getValue("id")}),enableSorting:!1,enableHiding:!1},{accessorKey:"subject",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.subject")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(ig,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"max-w-[500px] truncate font-medium",children:t.getValue("subject")})]}),enableSorting:!1,enableHiding:!1,size:4e3},{accessorKey:"level",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.level")}),cell:({row:t})=>{const r=t.getValue("level"),n=r===Qe.LOW?"default":r===Qe.MIDDLE?"secondary":"destructive";return e.jsx(U,{variant:n,className:"whitespace-nowrap",children:a(`level.${r===Qe.LOW?"low":r===Qe.MIDDLE?"medium":"high"}`)})},filterFn:(t,r,n)=>n.includes(t.getValue(r))},{accessorKey:"status",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.status")}),cell:({row:t})=>{const r=t.getValue("status"),n=t.original.reply_status,i=r===Ws.CLOSED?a("status.closed"):a(n===0?"status.replied":"status.pending"),l=r===Ws.CLOSED?"default":n===0?"secondary":"destructive";return e.jsx(U,{variant:l,className:"whitespace-nowrap",children:i})}},{accessorKey:"updated_at",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.updated_at")}),cell:({row:t})=>e.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[e.jsx(_i,{className:"h-4 w-4"}),e.jsx("span",{className:"text-sm",children:xe(t.getValue("updated_at"))})]}),enableSorting:!0},{accessorKey:"created_at",header:({column:t})=>e.jsx(A,{column:t,title:a("columns.created_at")}),cell:({row:t})=>e.jsx("div",{className:"text-sm text-muted-foreground",children:xe(t.getValue("created_at"))}),enableSorting:!0,meta:{isFlexGrow:!0}},{id:"actions",header:({column:t})=>e.jsx(A,{className:"justify-end",column:t,title:a("columns.actions")}),cell:({row:t})=>{const r=t.original.status!==Ws.CLOSED;return e.jsxs("div",{className:"flex items-center justify-center",children:[e.jsx(lg,{ticketId:t.original.id,dialogTrigger:e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8",title:a("actions.view_details"),children:e.jsx(og,{className:"h-4 w-4"})})}),r&&e.jsx(ps,{title:a("actions.close_confirm_title"),description:a("actions.close_confirm_description"),confirmText:a("actions.close_confirm_button"),variant:"destructive",onConfirm:async()=>{_t.close(t.original.id).then(()=>{q.success(a("actions.close_success")),s()})},children:e.jsx(G,{variant:"ghost",size:"icon",className:"h-8 w-8",title:a("actions.close_ticket"),children:e.jsx(Ni,{className:"h-4 w-4"})})})]})}}]};function dg(){const[s,a]=d.useState({}),[t,r]=d.useState({}),[n,i]=d.useState([{id:"status",value:"0"}]),[l,o]=d.useState([]),[x,u]=d.useState({pageIndex:0,pageSize:20}),{refetch:c,data:m}=ne({queryKey:["orderList",x,n,l],queryFn:()=>_t.getList({pageSize:x.pageSize,current:x.pageIndex+1,filter:n,sort:l})}),p=ss({data:m?.data??[],columns:cg(c),state:{sorting:l,columnVisibility:t,rowSelection:s,columnFilters:n,pagination:x},rowCount:m?.total??0,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:a,onSortingChange:o,onColumnFiltersChange:i,onColumnVisibilityChange:r,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:u,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnPinning:{right:["actions"]}}});return e.jsxs("div",{className:"space-y-4",children:[e.jsx(Yh,{table:p,refetch:c}),e.jsx(xs,{table:p,showPagination:!0})]})}function mg(){const{t:s}=I("ticket");return e.jsxs(pi,{refreshData:()=>{},children:[e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx(ns,{}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-2 flex items-center justify-between space-y-2",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s("title")}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:s("description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-auto px-4 py-1 lg:flex-row lg:space-x-12 lg:space-y-0",children:e.jsx(dg,{})})]})]}),e.jsx(ji,{})]})}const ug=Object.freeze(Object.defineProperty({__proto__:null,default:mg},Symbol.toStringTag,{value:"Module"}));function xg({table:s,refetch:a}){const{t}=I("user"),r=s.getState().columnFilters.length>0,[n,i]=d.useState(),[l,o]=d.useState(),[x,u]=d.useState(!1),c=[{value:"monthly",label:t("traffic_reset_logs.filters.reset_types.monthly")},{value:"first_day_month",label:t("traffic_reset_logs.filters.reset_types.first_day_month")},{value:"yearly",label:t("traffic_reset_logs.filters.reset_types.yearly")},{value:"first_day_year",label:t("traffic_reset_logs.filters.reset_types.first_day_year")},{value:"manual",label:t("traffic_reset_logs.filters.reset_types.manual")}],m=[{value:"auto",label:t("traffic_reset_logs.filters.trigger_sources.auto")},{value:"manual",label:t("traffic_reset_logs.filters.trigger_sources.manual")},{value:"cron",label:t("traffic_reset_logs.filters.trigger_sources.cron")}],p=()=>{let w=s.getState().columnFilters.filter(C=>C.id!=="date_range");(n||l)&&w.push({id:"date_range",value:{start:n?Le(n,"yyyy-MM-dd"):null,end:l?Le(l,"yyyy-MM-dd"):null}}),s.setColumnFilters(w)},k=async()=>{try{u(!0);const w=s.getState().columnFilters.reduce((R,K)=>{if(K.value)if(K.id==="date_range"){const ae=K.value;ae.start&&(R.start_date=ae.start),ae.end&&(R.end_date=ae.end)}else R[K.id]=K.value;return R},{}),V=(await Zt.getLogs({...w,page:1,per_page:1e4})).data.map(R=>({ID:R.id,用户邮箱:R.user_email,用户ID:R.user_id,重置类型:R.reset_type_name,触发源:R.trigger_source_name,清零流量:R.old_traffic.formatted,"上传流量(GB)":(R.old_traffic.upload/1024**3).toFixed(2),"下载流量(GB)":(R.old_traffic.download/1024**3).toFixed(2),重置时间:Le(new Date(R.reset_time),"yyyy-MM-dd HH:mm:ss"),记录时间:Le(new Date(R.created_at),"yyyy-MM-dd HH:mm:ss"),原因:R.reason||""})),F=Object.keys(V[0]||{}),g=[F.join(","),...V.map(R=>F.map(K=>{const ae=R[K];return typeof ae=="string"&&ae.includes(",")?`"${ae}"`:ae}).join(","))].join(` +`),y=new Blob([g],{type:"text/csv;charset=utf-8;"}),D=document.createElement("a"),z=URL.createObjectURL(y);D.setAttribute("href",z),D.setAttribute("download",`traffic-reset-logs-${Le(new Date,"yyyy-MM-dd")}.csv`),D.style.visibility="hidden",document.body.appendChild(D),D.click(),document.body.removeChild(D),q.success(t("traffic_reset_logs.actions.export_success"))}catch(f){console.error("导出失败:",f),q.error(t("traffic_reset_logs.actions.export_failed"))}finally{u(!1)}},S=()=>e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.search_user")}),e.jsx(T,{placeholder:t("traffic_reset_logs.filters.search_user"),value:s.getColumn("user_email")?.getFilterValue()??"",onChange:f=>s.getColumn("user_email")?.setFilterValue(f.target.value),className:"h-9"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.reset_type")}),e.jsxs(J,{value:s.getColumn("reset_type")?.getFilterValue()??"",onValueChange:f=>s.getColumn("reset_type")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-9",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.reset_type")})}),e.jsxs(Y,{children:[e.jsx($,{value:"all",children:t("traffic_reset_logs.filters.all_types")}),c.map(f=>e.jsx($,{value:f.value,children:f.label},f.value))]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.trigger_source")}),e.jsxs(J,{value:s.getColumn("trigger_source")?.getFilterValue()??"",onValueChange:f=>s.getColumn("trigger_source")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-9",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.trigger_source")})}),e.jsxs(Y,{children:[e.jsx($,{value:"all",children:t("traffic_reset_logs.filters.all_sources")}),m.map(f=>e.jsx($,{value:f.value,children:f.label},f.value))]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.start_date")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:_("h-9 w-full justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),n?Le(n,"MM-dd"):t("traffic_reset_logs.filters.start_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:n,onSelect:i,initialFocus:!0})})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:t("traffic_reset_logs.filters.end_date")}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",className:_("h-9 w-full justify-start text-left font-normal",!l&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),l?Le(l,"MM-dd"):t("traffic_reset_logs.filters.end_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:l,onSelect:o,initialFocus:!0})})]})]})]}),(n||l)&&e.jsxs(L,{variant:"outline",className:"w-full",onClick:p,children:[e.jsx(ir,{className:"mr-2 h-4 w-4"}),t("traffic_reset_logs.filters.apply_date")]}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),i(void 0),o(void 0)},className:"w-full",children:[t("traffic_reset_logs.filters.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between md:hidden",children:[e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(Un,{children:[e.jsx(di,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8",children:[e.jsx(id,{className:"mr-2 h-4 w-4"}),t("traffic_reset_logs.filters.reset_type"),r&&e.jsx("div",{className:"ml-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary text-xs text-primary-foreground",children:s.getState().columnFilters.length})]})}),e.jsxs(Wa,{side:"bottom",className:"h-[85vh]",children:[e.jsxs(Ya,{className:"mb-4",children:[e.jsx(Ja,{children:t("traffic_reset_logs.filters.filter_title")}),e.jsx(Qa,{children:t("traffic_reset_logs.filters.filter_description")})]}),e.jsx("div",{className:"max-h-[calc(85vh-120px)] overflow-y-auto",children:e.jsx(S,{})})]})]})}),e.jsxs(L,{variant:"outline",size:"sm",className:"h-8",onClick:k,disabled:x,children:[e.jsx(ba,{className:"mr-2 h-4 w-4"}),t(x?"traffic_reset_logs.actions.exporting":"traffic_reset_logs.actions.export")]})]}),e.jsxs("div",{className:"hidden items-center justify-between md:flex",children:[e.jsxs("div",{className:"flex flex-1 items-center space-x-2",children:[e.jsx(T,{placeholder:t("traffic_reset_logs.filters.search_user"),value:s.getColumn("user_email")?.getFilterValue()??"",onChange:f=>s.getColumn("user_email")?.setFilterValue(f.target.value),className:"h-8 w-[150px] lg:w-[250px]"}),e.jsxs(J,{value:s.getColumn("reset_type")?.getFilterValue()??"",onValueChange:f=>s.getColumn("reset_type")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-8 w-[180px]",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.reset_type")})}),e.jsxs(Y,{children:[e.jsx($,{value:"all",children:t("traffic_reset_logs.filters.all_types")}),c.map(f=>e.jsx($,{value:f.value,children:f.label},f.value))]})]}),e.jsxs(J,{value:s.getColumn("trigger_source")?.getFilterValue()??"",onValueChange:f=>s.getColumn("trigger_source")?.setFilterValue(f==="all"?"":f),children:[e.jsx(W,{className:"h-8 w-[180px]",children:e.jsx(Q,{placeholder:t("traffic_reset_logs.filters.trigger_source")})}),e.jsxs(Y,{children:[e.jsx($,{value:"all",children:t("traffic_reset_logs.filters.all_sources")}),m.map(f=>e.jsx($,{value:f.value,children:f.label},f.value))]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:_("h-8 w-[140px] justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),n?Le(n,"yyyy-MM-dd"):t("traffic_reset_logs.filters.start_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:n,onSelect:i,initialFocus:!0})})]}),e.jsxs(os,{children:[e.jsx(cs,{asChild:!0,children:e.jsxs(L,{variant:"outline",size:"sm",className:_("h-8 w-[140px] justify-start text-left font-normal",!l&&"text-muted-foreground"),children:[e.jsx(ks,{className:"mr-2 h-4 w-4"}),l?Le(l,"yyyy-MM-dd"):t("traffic_reset_logs.filters.end_date")]})}),e.jsx(Ze,{className:"w-auto p-0",align:"start",children:e.jsx(vs,{mode:"single",selected:l,onSelect:o,initialFocus:!0})})]}),(n||l)&&e.jsxs(L,{variant:"outline",size:"sm",className:"h-8",onClick:p,children:[e.jsx(ir,{className:"mr-2 h-4 w-4"}),t("traffic_reset_logs.filters.apply_date")]})]}),r&&e.jsxs(L,{variant:"ghost",onClick:()=>{s.resetColumnFilters(),i(void 0),o(void 0)},className:"h-8 px-2 lg:px-3",children:[t("traffic_reset_logs.filters.reset"),e.jsx(ms,{className:"ml-2 h-4 w-4"})]})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs(L,{variant:"outline",size:"sm",className:"h-8 border-dashed",onClick:k,disabled:x,children:[e.jsx(ba,{className:"mr-2 h-4 w-4"}),t(x?"traffic_reset_logs.actions.exporting":"traffic_reset_logs.actions.export")]})})]})]})}const hg=()=>{const{t:s}=I("user"),a=n=>{switch(n){case"manual":return"bg-blue-100 text-blue-800 border-blue-200";case"monthly":return"bg-green-100 text-green-800 border-green-200";case"yearly":return"bg-purple-100 text-purple-800 border-purple-200";case"first_day_month":return"bg-orange-100 text-orange-800 border-orange-200";case"first_day_year":return"bg-indigo-100 text-indigo-800 border-indigo-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},t=n=>{switch(n){case"manual":return"bg-orange-100 text-orange-800 border-orange-200";case"cron":return"bg-indigo-100 text-indigo-800 border-indigo-200";case"auto":return"bg-emerald-100 text-emerald-800 border-emerald-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},r=n=>{switch(n){case"manual":return e.jsx(_a,{className:"h-3 w-3"});case"cron":return e.jsx(cd,{className:"h-3 w-3"});case"auto":return e.jsx(od,{className:"h-3 w-3"});default:return e.jsx(_a,{className:"h-3 w-3"})}};return[{accessorKey:"id",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.id"),className:"w-[60px]"}),cell:({row:n})=>e.jsx("div",{className:"w-[60px]",children:e.jsx(U,{variant:"outline",className:"text-xs",children:n.original.id})}),enableSorting:!0,enableHiding:!0,size:60},{accessorKey:"user_email",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.user"),className:"min-w-[200px]"}),cell:({row:n})=>e.jsxs("div",{className:"flex min-w-[200px] items-start gap-2",children:[e.jsx(wl,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"truncate text-sm font-medium",children:n.original.user_email}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["ID: ",n.original.user_id]})]})]}),enableSorting:!1,enableHiding:!1,size:100},{accessorKey:"trigger_source",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.trigger_source"),className:"w-[120px]"}),cell:({row:n})=>e.jsx("div",{className:"w-[120px]",children:e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsx("div",{className:"cursor-pointer",children:e.jsxs(U,{variant:"outline",className:_("flex items-center gap-1.5 border text-xs",t(n.original.trigger_source)),children:[r(n.original.trigger_source),e.jsx("span",{className:"truncate",children:n.original.trigger_source_name})]})})}),e.jsx(oe,{side:"bottom",className:"max-w-[200px]",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",children:n.original.trigger_source_name}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[n.original.trigger_source==="manual"&&s("traffic_reset_logs.trigger_descriptions.manual"),n.original.trigger_source==="cron"&&s("traffic_reset_logs.trigger_descriptions.cron"),n.original.trigger_source==="auto"&&s("traffic_reset_logs.trigger_descriptions.auto"),!["manual","cron","auto"].includes(n.original.trigger_source)&&s("traffic_reset_logs.trigger_descriptions.other")]})]})})]})})}),enableSorting:!0,enableHiding:!1,filterFn:(n,i,l)=>l.includes(n.getValue(i)),size:120},{accessorKey:"reset_type",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.reset_type"),className:"w-[120px]"}),cell:({row:n})=>e.jsx("div",{className:"w-[120px]",children:e.jsx(U,{className:_("border text-xs",a(n.original.reset_type)),children:e.jsx("span",{className:"truncate",children:n.original.reset_type_name})})}),enableSorting:!0,enableHiding:!1,filterFn:(n,i,l)=>l.includes(n.getValue(i)),size:120},{accessorKey:"old_traffic",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.cleared_traffic"),className:"w-[120px]"}),cell:({row:n})=>{const i=n.original.old_traffic;return e.jsx("div",{className:"w-[120px]",children:e.jsx(pe,{delayDuration:100,children:e.jsxs(de,{children:[e.jsx(me,{asChild:!0,children:e.jsxs("div",{className:"cursor-pointer text-center",children:[e.jsx("div",{className:"text-sm font-medium text-destructive",children:i.formatted}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s("traffic_reset_logs.columns.cleared")})]})}),e.jsxs(oe,{side:"bottom",className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(Ct,{className:"h-3 w-3"}),e.jsxs("span",{children:[s("traffic_reset_logs.columns.upload"),":"," ",(i.upload/1024**3).toFixed(2)," GB"]})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(ba,{className:"h-3 w-3"}),e.jsxs("span",{children:[s("traffic_reset_logs.columns.download"),":"," ",(i.download/1024**3).toFixed(2)," GB"]})]})]})]})})})},enableSorting:!1,enableHiding:!1,size:120},{accessorKey:"reset_time",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.reset_time"),className:"w-[140px]"}),cell:({row:n})=>e.jsx("div",{className:"w-[140px]",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Kt,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-medium",children:xe(n.original.reset_time,"MM-DD")}),e.jsx("div",{className:"text-xs text-muted-foreground",children:xe(n.original.reset_time,"HH:mm")})]})]})}),enableSorting:!0,enableHiding:!0,size:140},{accessorKey:"created_at",header:({column:n})=>e.jsx(A,{column:n,title:s("traffic_reset_logs.columns.log_time"),className:"w-[140px]"}),cell:({row:n})=>e.jsx("div",{className:"w-[140px]",children:e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Rn,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-sm font-medium",children:xe(n.original.created_at,"YYYY-MM-DD")}),e.jsx("div",{className:"text-xs text-muted-foreground",children:xe(n.original.created_at,"H:m:s")})]})]})}),enableSorting:!0,enableHiding:!1,size:1400}]};function gg(){const[s,a]=d.useState({}),[t,r]=d.useState({reset_time:!1}),[n,i]=d.useState([]),[l,o]=d.useState([{id:"created_at",desc:!0}]),[x,u]=d.useState({pageIndex:0,pageSize:20}),c={page:x.pageIndex+1,per_page:x.pageSize,...n.reduce((S,f)=>{if(f.value)if(f.id==="date_range"){const w=f.value;w.start&&(S.start_date=w.start),w.end&&(S.end_date=w.end)}else S[f.id]=f.value;return S},{})},{refetch:m,data:p,isLoading:k}=ne({queryKey:["trafficResetLogs",x,n,l],queryFn:()=>Zt.getLogs(c)});return e.jsx(fg,{data:p?.data??[],rowCount:p?.total??0,sorting:l,setSorting:o,columnVisibility:t,setColumnVisibility:r,rowSelection:s,setRowSelection:a,columnFilters:n,setColumnFilters:i,pagination:x,setPagination:u,refetch:m,isLoading:k})}function fg({data:s,rowCount:a,sorting:t,setSorting:r,columnVisibility:n,setColumnVisibility:i,rowSelection:l,setRowSelection:o,columnFilters:x,setColumnFilters:u,pagination:c,setPagination:m,refetch:p,isLoading:k}){const S=ss({data:s,columns:hg(),state:{sorting:t,columnVisibility:n,rowSelection:l,columnFilters:x,pagination:c},rowCount:a,manualPagination:!0,manualFiltering:!0,manualSorting:!0,enableRowSelection:!0,onRowSelectionChange:o,onSortingChange:r,onColumnFiltersChange:u,onColumnVisibilityChange:i,getCoreRowModel:ts(),getFilteredRowModel:bs(),getPaginationRowModel:us(),onPaginationChange:m,getSortedRowModel:ys(),getFacetedRowModel:Es(),getFacetedUniqueValues:Fs(),initialState:{columnVisibility:{reset_time:!1}}});return e.jsxs("div",{className:"h-full space-y-4",children:[e.jsx(xg,{table:S,refetch:p}),e.jsx(xs,{table:S,isLoading:k})]})}function pg(){const{t:s}=I("user");return e.jsxs(ze,{children:[e.jsxs($e,{children:[e.jsx("div",{className:"hidden md:block",children:e.jsx(ns,{})}),e.jsxs("div",{className:"ml-auto flex items-center space-x-4",children:[e.jsx(Ye,{}),e.jsx(Je,{})]})]}),e.jsxs(He,{className:"flex flex-col",fixedHeight:!0,children:[e.jsx("div",{className:"mb-4 space-y-2 md:mb-2 md:flex md:items-center md:justify-between md:space-y-0",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx("h2",{className:"text-xl font-bold tracking-tight md:text-2xl",children:s("traffic_reset_logs.title")}),e.jsx("p",{className:"text-sm text-muted-foreground md:mt-2",children:s("traffic_reset_logs.description")})]})}),e.jsx("div",{className:"-mx-4 flex-1 overflow-hidden px-4 py-1",children:e.jsx("div",{className:"h-full w-full",children:e.jsx(gg,{})})})]})]})}const jg=Object.freeze(Object.defineProperty({__proto__:null,default:pg},Symbol.toStringTag,{value:"Module"}));export{wg as a,Ng as c,_g as g,Cg as r}; diff --git a/public/assets/admin/index.html b/public/assets/admin/index.html index 3dba3a1..e0b1e0a 100644 --- a/public/assets/admin/index.html +++ b/public/assets/admin/index.html @@ -16,7 +16,7 @@ title: 'Xboard', version: '1.0.0', logo: 'https://xboard.io/i6mages/logo.png', - secure_path: '/6a416b7a', + secure_path: '/22aba88a', } diff --git a/public/assets/admin/locales/en-US.js b/public/assets/admin/locales/en-US.js index 4b176ee..23d9ccc 100644 --- a/public/assets/admin/locales/en-US.js +++ b/public/assets/admin/locales/en-US.js @@ -416,20 +416,60 @@ window.XBOARD_TRANSLATIONS['en-US'] = { "description": "Enter the allowed email suffixes, one per line" } }, - "recaptcha": { + "captcha": { "enable": { - "label": "Enable reCAPTCHA", - "description": "When enabled, users will need to pass reCAPTCHA verification when registering." + "label": "Enable Captcha", + "description": "When enabled, users will need to pass captcha verification when registering." }, - "key": { - "label": "reCAPTCHA Key", - "placeholder": "Enter reCAPTCHA key", - "description": "Enter your reCAPTCHA key" + "type": { + "label": "Captcha Type", + "description": "Select the captcha service type to use", + "options": { + "recaptcha": "Google reCAPTCHA v2", + "recaptcha-v3": "Google reCAPTCHA v3", + "turnstile": "Cloudflare Turnstile" + } }, - "siteKey": { - "label": "reCAPTCHA Site Key", - "placeholder": "Enter reCAPTCHA site key", - "description": "Enter your reCAPTCHA site key" + "recaptcha": { + "key": { + "label": "reCAPTCHA Key", + "placeholder": "Enter reCAPTCHA key", + "description": "Enter your reCAPTCHA key" + }, + "siteKey": { + "label": "reCAPTCHA Site Key", + "placeholder": "Enter reCAPTCHA site key", + "description": "Enter your reCAPTCHA site key" + } + }, + "recaptcha_v3": { + "secretKey": { + "label": "reCAPTCHA v3 Key", + "placeholder": "Enter reCAPTCHA v3 key", + "description": "Enter your reCAPTCHA v3 server key" + }, + "siteKey": { + "label": "reCAPTCHA v3 Site Key", + "placeholder": "Enter reCAPTCHA v3 site key", + "description": "Enter your reCAPTCHA v3 site key" + }, + "scoreThreshold": { + "label": "Score Threshold", + "placeholder": "0.5", + "description": "Set verification score threshold (0-1), higher scores indicate more likely human behavior" + } + }, + "turnstile": { + "secretKey": { + "label": "Turnstile Key", + "placeholder": "Enter Turnstile key", + "description": "Enter your Cloudflare Turnstile key" + }, + "siteKey": { + "label": "Turnstile Site Key", + "placeholder": "Enter Turnstile site key", + "description": "Enter your Cloudflare Turnstile site key" + } } }, "registerLimit": { diff --git a/public/assets/admin/locales/ko-KR.js b/public/assets/admin/locales/ko-KR.js index 8bedb20..7aec68e 100644 --- a/public/assets/admin/locales/ko-KR.js +++ b/public/assets/admin/locales/ko-KR.js @@ -414,20 +414,42 @@ window.XBOARD_TRANSLATIONS['ko-KR'] = { "description": "허용된 이메일 접미사를 한 줄에 하나씩 입력하세요" } }, - "recaptcha": { + "captcha": { "enable": { - "label": "reCAPTCHA 활성화", - "description": "활성화하면 사용자는 등록 시 reCAPTCHA 인증을 통과해야 합니다." + "label": "캡차 활성화", + "description": "활성화하면 사용자는 등록 시 캡차 인증을 통과해야 합니다." }, - "key": { - "label": "reCAPTCHA 키", - "placeholder": "reCAPTCHA 키 입력", - "description": "reCAPTCHA 키를 입력하세요" + "type": { + "label": "캡차 유형", + "description": "사용할 캡차 서비스 유형을 선택하세요", + "options": { + "recaptcha": "Google reCAPTCHA v2", + "turnstile": "Cloudflare Turnstile" + } }, - "siteKey": { - "label": "reCAPTCHA 사이트 키", - "placeholder": "reCAPTCHA 사이트 키 입력", - "description": "reCAPTCHA 사이트 키를 입력하세요" + "recaptcha": { + "key": { + "label": "reCAPTCHA 키", + "placeholder": "reCAPTCHA 키 입력", + "description": "reCAPTCHA 키를 입력하세요" + }, + "siteKey": { + "label": "reCAPTCHA 사이트 키", + "placeholder": "reCAPTCHA 사이트 키 입력", + "description": "reCAPTCHA 사이트 키를 입력하세요" + } + }, + "turnstile": { + "secretKey": { + "label": "Turnstile 키", + "placeholder": "Turnstile 키 입력", + "description": "Cloudflare Turnstile 키를 입력하세요" + }, + "siteKey": { + "label": "Turnstile 사이트 키", + "placeholder": "Turnstile 사이트 키 입력", + "description": "Cloudflare Turnstile 사이트 키를 입력하세요" + } } }, "registerLimit": { diff --git a/public/assets/admin/locales/zh-CN.js b/public/assets/admin/locales/zh-CN.js index 73fdf6f..b5cd8eb 100644 --- a/public/assets/admin/locales/zh-CN.js +++ b/public/assets/admin/locales/zh-CN.js @@ -336,20 +336,60 @@ window.XBOARD_TRANSLATIONS['zh-CN'] = { "description": "输入允许的邮箱后缀,每行一个" } }, - "recaptcha": { + "captcha": { "enable": { - "label": "启用reCAPTCHA", - "description": "开启后用户注册时需要通过reCAPTCHA验证。" + "label": "启用验证码", + "description": "开启后用户注册时需要通过验证码验证。" }, - "key": { - "label": "reCAPTCHA密钥", - "placeholder": "输入reCAPTCHA密钥", - "description": "输入您的reCAPTCHA密钥" + "type": { + "label": "验证码类型", + "description": "选择要使用的验证码服务类型", + "options": { + "recaptcha": "Google reCAPTCHA v2", + "recaptcha-v3": "Google reCAPTCHA v3", + "turnstile": "Cloudflare Turnstile" + } }, - "siteKey": { - "label": "reCAPTCHA站点密钥", - "placeholder": "输入reCAPTCHA站点密钥", - "description": "输入您的reCAPTCHA站点密钥" + "recaptcha": { + "key": { + "label": "reCAPTCHA密钥", + "placeholder": "输入reCAPTCHA密钥", + "description": "输入您的reCAPTCHA密钥" + }, + "siteKey": { + "label": "reCAPTCHA站点密钥", + "placeholder": "输入reCAPTCHA站点密钥", + "description": "输入您的reCAPTCHA站点密钥" + } + }, + "recaptcha_v3": { + "secretKey": { + "label": "reCAPTCHA v3密钥", + "placeholder": "输入reCAPTCHA v3密钥", + "description": "输入您的reCAPTCHA v3服务器密钥" + }, + "siteKey": { + "label": "reCAPTCHA v3站点密钥", + "placeholder": "输入reCAPTCHA v3站点密钥", + "description": "输入您的reCAPTCHA v3站点密钥" + }, + "scoreThreshold": { + "label": "分数阈值", + "placeholder": "0.5", + "description": "设置验证分数阈值(0-1),分数越高表示越可能是真人操作" + } + }, + "turnstile": { + "secretKey": { + "label": "Turnstile密钥", + "placeholder": "输入Turnstile密钥", + "description": "输入您的Cloudflare Turnstile密钥" + }, + "siteKey": { + "label": "Turnstile站点密钥", + "placeholder": "输入Turnstile站点密钥", + "description": "输入您的Cloudflare Turnstile站点密钥" + } } }, "registerLimit": { diff --git a/theme/Xboard/assets/umi.js b/theme/Xboard/assets/umi.js index d9927c1..32187e4 100644 --- a/theme/Xboard/assets/umi.js +++ b/theme/Xboard/assets/umi.js @@ -1,89 +1,89 @@ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@charset "UTF-8";.xboard-nav-mask{position:fixed;top:0;bottom:0;right:0;left:0;background:#000;z-index:999;opacity:.5;display:none}.xboard-plan-features{padding:0;list-style:none;font-size:16px;flex:1 0 auto}.xboard-plan-features>li{padding:6px 0;color:#7c8088;text-align:left}.xboard-plan-features>li>b{color:#2a2e36;font-weight:500}.xboard-plan-content{padding-top:20px;padding-left:20px}.xboard-plan-features>li:before{font-family:Font Awesome\\ 5 Free;content:"";padding-right:10px;color:#425b94;font-weight:900}.xboard-email-whitelist-enable{display:flex}.xboard-email-whitelist-enable input{flex:2 1;border-top-right-radius:0;border-bottom-right-radius:0}.xboard-email-whitelist-enable select{flex:1 1;border-top-left-radius:0;border-bottom-left-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-position:right 50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M3.862 7.931L0 4.069h7.725z'/%3E%3C/svg%3E");padding-right:1.5em}.block.block-mode-loading:before{background:hsla(0,0%,100%,.7)}#server .ant-drawer-content-wrapper{max-width:500px}.xboard-trade-no{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xboard-lang-item{padding:10px 20px}.xboard-lang-item:hover{background:#eee}.xboard-auth-lang-btn{position:absolute;right:0;top:0}.xboard-no-access{color:#855c0d;background-color:#ffefd1;position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent;border-radius:.25rem}.xboard-notice-background{height:100%;position:absolute;top:0;right:0;left:0;bottom:0;z-index:80;opacity:.1}.xboard-auth-box{position:fixed;right:0;left:0;top:0;bottom:0;display:flex;align-items:center;overflow-y:auto}.content-header{height:3.25rem}#page-container.page-header-fixed #main-container{padding-top:3.25rem}.xboard-copyright{position:absolute;bottom:10px;right:0;left:15px;font-size:10px;opacity:.2}.ant-table-thead>tr>th{background:#fff!important}.xboard-container-title{flex:1 1;color:#fff}.xboard-order-info>div{display:flex;font-size:14px;margin-bottom:5px}.xboard-order-info>div>span:first-child{flex:1 1;opacity:.5}.xboard-order-info>div>span:last-child{flex:2 1;font-family:menlo}.xboard-bg-pixels{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjIwMCIgd2lkdGg9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwIDgpIj48Y2lyY2xlIGN4PSIxNzYiIGN5PSIxMiIgcj0iNCIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNMjAuNS41bDIzIDExbS0yOSA4NGwtMy43OSAxMC4zNzdNMjcuMDM3IDEzMS40bDUuODk4IDIuMjAzLTMuNDYgNS45NDcgNi4wNzIgMi4zOTItMy45MzMgNS43NThtMTI4LjczMyAzNS4zN2wuNjkzLTkuMzE2IDEwLjI5Mi4wNTIuNDE2LTkuMjIyIDkuMjc0LjMzMk0uNSA0OC41czYuMTMxIDYuNDEzIDYuODQ3IDE0LjgwNWMuNzE1IDguMzkzLTIuNTIgMTQuODA2LTIuNTIgMTQuODA2TTEyNC41NTUgOTBzLTcuNDQ0IDAtMTMuNjcgNi4xOTJjLTYuMjI3IDYuMTkyLTQuODM4IDEyLjAxMi00LjgzOCAxMi4wMTJtMi4yNCA2OC42MjZzLTQuMDI2LTkuMDI1LTE4LjE0NS05LjAyNS0xOC4xNDUgNS43LTE4LjE0NSA1LjciIHN0cm9rZT0iI2RkZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNODUuNzE2IDM2LjE0Nmw1LjI0My05LjUyMWgxMS4wOTNsNS40MTYgOS41MjEtNS40MSA5LjE4NUg5MC45NTN6bTYzLjkwOSAxNS40NzloMTAuNzV2MTAuNzVoLTEwLjc1eiIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48ZyBmaWxsPSIjZGRkIj48Y2lyY2xlIGN4PSI3MS41IiBjeT0iNy41IiByPSIxLjUiLz48Y2lyY2xlIGN4PSIxNzAuNSIgY3k9Ijk1LjUiIHI9IjEuNSIvPjxjaXJjbGUgY3g9IjgxLjUiIGN5PSIxMzQuNSIgcj0iMS41Ii8+PGNpcmNsZSBjeD0iMTMuNSIgY3k9IjIzLjUiIHI9IjEuNSIvPjxwYXRoIGQ9Ik05MyA3MWgzdjNoLTN6bTMzIDg0aDN2M2gtM3ptLTg1IDE4aDN2M2gtM3oiLz48L2c+PHBhdGggZD0iTTM5LjM4NCA1MS4xMjJsNS43NTgtNC40NTQgNi40NTMgNC4yMDUtMi4yOTQgNy4zNjNoLTcuNzl6TTEzMC4xOTUgNC4wM2wxMy44MyA1LjA2Mi0xMC4wOSA3LjA0OHptLTgzIDk1bDE0LjgzIDUuNDI5LTEwLjgyIDcuNTU3LTQuMDEtMTIuOTg3ek01LjIxMyAxNjEuNDk1bDExLjMyOCAyMC44OTdMMi4yNjUgMTgweiIgc3Ryb2tlPSIjZGRkIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48cGF0aCBkPSJNMTQ5LjA1IDEyNy40NjhzLS41MSAyLjE4My45OTUgMy4zNjZjMS41NiAxLjIyNiA4LjY0Mi0xLjg5NSAzLjk2Ny03Ljc4NS0yLjM2Ny0yLjQ3Ny02LjUtMy4yMjYtOS4zMyAwLTUuMjA4IDUuOTM2IDAgMTcuNTEgMTEuNjEgMTMuNzMgMTIuNDU4LTYuMjU3IDUuNjMzLTIxLjY1Ni01LjA3My0yMi42NTQtNi42MDItLjYwNi0xNC4wNDMgMS43NTYtMTYuMTU3IDEwLjI2OC0xLjcxOCA2LjkyIDEuNTg0IDE3LjM4NyAxMi40NSAyMC40NzYgMTAuODY2IDMuMDkgMTkuMzMxLTQuMzEgMTkuMzMxLTQuMzEiIHN0cm9rZT0iI2RkZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuMjUiLz48L2c+PC9zdmc+);background-size:auto}#page-container{min-height:100%}#page-container .content,#main-container{background-color:#f0f3f8!important}a:not([href]):hover{color:unset}.xboard-login-i18n-btn{cursor:pointer;margin-top:2.5;float:right}.custom-control-label:after{left:-1.25rem}.xboard-shortcuts-item{cursor:pointer;padding:20px;border-bottom:1px solid #eee;position:relative}.xboard-shortcuts-item>.description{font-size:12px;opacity:.5}.xboard-shortcuts-item i{position:absolute;top:25px;font-size:30px;right:20px;opacity:.5}.xboard-shortcuts-item:hover{background:#f6f6f6}.btn{border:0}.xboard-plan-tabs{border:1px solid #000;padding:8px 4px;border-radius:100px}.xboard-plan-tabs>span{cursor:pointer;padding:5px 12px}.xboard-plan-tabs>.active{background:#000;border-radius:100px;color:#fff}.xboard-sold-out-tag{background-color:#c12c1f;border-radius:100px;padding:2px 8px;font-size:13px;color:#fff}.xboard-payment-qrcode path[fill="#FFFFFF"]{--darkreader-inline-fill: #fff!important}.alert-success{color:#445e27;background-color:#e6f0db;border-color:#dceacd}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent;border-radius:.25rem}.custom-html-style{color:#333}.custom-html-style h1{font-size:32px;padding:0;border:none;font-weight:700;margin:32px 0;line-height:1.2}.custom-html-style h2{font-size:24px;padding:0;border:none;font-weight:700;margin:24px 0;line-height:1.7}.custom-html-style h3{font-size:18px;margin:18px 0;padding:0;line-height:1.7;border:none}.custom-html-style p{font-size:14px;line-height:1.7;margin:8px 0}.custom-html-style a{color:#0052d9}.custom-html-style a:hover{text-decoration:none}.custom-html-style strong{font-weight:700}.custom-html-style ol,.custom-html-style ul{font-size:14px;line-height:28px;padding-left:36px}.custom-html-style li{margin-bottom:8px;line-height:1.7}.custom-html-style hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.custom-html-style pre{display:block;padding:20px;line-height:28px;word-break:break-word}.custom-html-style code,.custom-html-style pre{background-color:#f5f5f5;font-size:14px;border-radius:0;overflow-x:auto}.custom-html-style code{padding:3px 0;margin:0;word-break:normal}.custom-html-style code:after,.custom-html-style code:before{letter-spacing:0}.custom-html-style blockquote{position:relative;margin:16px 0;padding:5px 8px 5px 30px;background:none repeat scroll 0 0 rgba(102,128,153,.05);color:#333;border:none;border-left:10px solid #d6dbdf}.custom-html-style img,.custom-html-style video{max-width:100%}.custom-html-style table{font-size:14px;line-height:1.7;max-width:100%;overflow:auto;border:1px solid #f6f6f6;border-collapse:collapse;border-spacing:0;box-sizing:border-box}.custom-html-style table td,.custom-html-style table th{word-break:break-all;word-wrap:break-word;white-space:normal}.custom-html-style table tr{border:1px solid #efefef}.custom-html-style table tr:nth-child(2n){background-color:transparent}.custom-html-style table th{text-align:center;font-weight:700;border:1px solid #efefef;padding:10px 6px;background-color:#f5f7fa;word-break:break-word}.custom-html-style table td{border:1px solid #efefef;text-align:left;padding:10px 15px;word-break:break-word;min-width:60px}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}.btn{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Liberation Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.btn.btn-square{border-radius:0}.btn.btn-rounded{border-radius:2rem}.btn .fa,.btn .si{position:relative;top:1px}.btn-group-sm>.btn .fa,.btn.btn-sm .fa{top:0}.btn-alt-primary{color:#054d9e;background-color:#cde4fe;border-color:#cde4fe}.btn-alt-primary:hover{color:#054d9e;background-color:#a8d0fc;border-color:#a8d0fc}.btn-alt-primary.focus,.btn-alt-primary:focus{color:#054d9e;background-color:#a8d0fc;border-color:#a8d0fc;box-shadow:0 0 0 .2rem #92c4fc40}.btn-alt-primary.disabled,.btn-alt-primary:disabled{color:#212529;background-color:#cde4fe;border-color:#cde4fe}.btn-alt-primary:not(:disabled):not(.disabled).active,.btn-alt-primary:not(:disabled):not(.disabled):active,.show>.btn-alt-primary.dropdown-toggle{color:#022954;background-color:#92c4fc;border-color:#92c4fc}.btn-alt-primary:not(:disabled):not(.disabled).active:focus,.btn-alt-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #92c4fc40}.btn-alt-secondary{color:#495057;background-color:#f0f3f8;border-color:#f0f3f8}.btn-alt-secondary:hover{color:#495057;background-color:#d6deec;border-color:#d6deec}.btn-alt-secondary.focus,.btn-alt-secondary:focus{color:#495057;background-color:#d6deec;border-color:#d6deec;box-shadow:0 0 0 .2rem #c6d1e540}.btn-alt-secondary.disabled,.btn-alt-secondary:disabled{color:#212529;background-color:#f0f3f8;border-color:#f0f3f8}.btn-alt-secondary:not(:disabled):not(.disabled).active,.btn-alt-secondary:not(:disabled):not(.disabled):active,.show>.btn-alt-secondary.dropdown-toggle{color:#262a2d;background-color:#c6d1e5;border-color:#c6d1e5}.btn-alt-secondary:not(:disabled):not(.disabled).active:focus,.btn-alt-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #c6d1e540}.btn-alt-success{color:#415b25;background-color:#d7e8c6;border-color:#d7e8c6}.btn-alt-success:hover{color:#415b25;background-color:#c5dcab;border-color:#c5dcab}.btn-alt-success.focus,.btn-alt-success:focus{color:#415b25;background-color:#c5dcab;border-color:#c5dcab;box-shadow:0 0 0 .2rem #b9d69b40}.btn-alt-success.disabled,.btn-alt-success:disabled{color:#212529;background-color:#d7e8c6;border-color:#d7e8c6}.btn-alt-success:not(:disabled):not(.disabled).active,.btn-alt-success:not(:disabled):not(.disabled):active,.show>.btn-alt-success.dropdown-toggle{color:#1a250f;background-color:#b9d69b;border-color:#b9d69b}.btn-alt-success:not(:disabled):not(.disabled).active:focus,.btn-alt-success:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #b9d69b40}.btn-alt-info{color:#164f86;background-color:#d1e5f7;border-color:#d1e5f7}.btn-alt-info:hover{color:#164f86;background-color:#b0d2f2;border-color:#b0d2f2}.btn-alt-info.focus,.btn-alt-info:focus{color:#164f86;background-color:#b0d2f2;border-color:#b0d2f2;box-shadow:0 0 0 .2rem #9cc7ef40}.btn-alt-info.disabled,.btn-alt-info:disabled{color:#212529;background-color:#d1e5f7;border-color:#d1e5f7}.btn-alt-info:not(:disabled):not(.disabled).active,.btn-alt-info:not(:disabled):not(.disabled):active,.show>.btn-alt-info.dropdown-toggle{color:#0b2844;background-color:#9cc7ef;border-color:#9cc7ef}.btn-alt-info:not(:disabled):not(.disabled).active:focus,.btn-alt-info:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #9cc7ef40}.btn-alt-warning{color:#996500;background-color:#ffecc6;border-color:#ffecc6}.btn-alt-warning:hover{color:#996500;background-color:#ffdfa0;border-color:#ffdfa0}.btn-alt-warning.focus,.btn-alt-warning:focus{color:#996500;background-color:#ffdfa0;border-color:#ffdfa0;box-shadow:0 0 0 .2rem #ffd78940}.btn-alt-warning.disabled,.btn-alt-warning:disabled{color:#212529;background-color:#ffecc6;border-color:#ffecc6}.btn-alt-warning:not(:disabled):not(.disabled).active,.btn-alt-warning:not(:disabled):not(.disabled):active,.show>.btn-alt-warning.dropdown-toggle{color:#4c3200;background-color:#ffd789;border-color:#ffd789}.btn-alt-warning:not(:disabled):not(.disabled).active:focus,.btn-alt-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #ffd78940}.btn-alt-danger{color:#6e270d;background-color:#f6c4b1;border-color:#f6c4b1}.btn-alt-danger:hover{color:#6e270d;background-color:#f2aa8f;border-color:#f2aa8f}.btn-alt-danger.focus,.btn-alt-danger:focus{color:#6e270d;background-color:#f2aa8f;border-color:#f2aa8f;box-shadow:0 0 0 .2rem #f09a7b40}.btn-alt-danger.disabled,.btn-alt-danger:disabled{color:#212529;background-color:#f6c4b1;border-color:#f6c4b1}.btn-alt-danger:not(:disabled):not(.disabled).active,.btn-alt-danger:not(:disabled):not(.disabled):active,.show>.btn-alt-danger.dropdown-toggle{color:#290f05;background-color:#f09a7b;border-color:#f09a7b}.btn-alt-danger:not(:disabled):not(.disabled).active:focus,.btn-alt-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #f09a7b40}.btn-alt-dark{color:#343a40;background-color:#ced3d8;border-color:#ced3d8}.btn-alt-dark:hover{color:#343a40;background-color:#b9c0c6;border-color:#b9c0c6}.btn-alt-dark.focus,.btn-alt-dark:focus{color:#343a40;background-color:#b9c0c6;border-color:#b9c0c6;box-shadow:0 0 0 .2rem #adb4bc40}.btn-alt-dark.disabled,.btn-alt-dark:disabled{color:#212529;background-color:#ced3d8;border-color:#ced3d8}.btn-alt-dark:not(:disabled):not(.disabled).active,.btn-alt-dark:not(:disabled):not(.disabled):active,.show>.btn-alt-dark.dropdown-toggle{color:#121416;background-color:#adb4bc;border-color:#adb4bc}.btn-alt-dark:not(:disabled):not(.disabled).active:focus,.btn-alt-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #adb4bc40}.btn-alt-light{color:#343a40;background-color:#f8f9fa;border-color:#f8f9fa}.btn-alt-light:hover{color:#343a40;background-color:#e2e6ea;border-color:#e2e6ea}.btn-alt-light.focus,.btn-alt-light:focus{color:#343a40;background-color:#e2e6ea;border-color:#e2e6ea;box-shadow:0 0 0 .2rem #d4dae140}.btn-alt-light.disabled,.btn-alt-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-alt-light:not(:disabled):not(.disabled).active,.btn-alt-light:not(:disabled):not(.disabled):active,.show>.btn-alt-light.dropdown-toggle{color:#121416;background-color:#d4dae1;border-color:#d4dae1}.btn-alt-light:not(:disabled):not(.disabled).active:focus,.btn-alt-light:not(:disabled):not(.disabled):active:focus,.show>.btn-alt-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem #d4dae140}.btn-hero-primary{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#0665d0;border:none;box-shadow:0 .125rem .75rem #04418640;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-primary:hover{color:#fff;background-color:#117ef8;box-shadow:0 .375rem .75rem #04418666;transform:translateY(-1px)}.btn-hero-primary.focus,.btn-hero-primary:focus{color:#fff;background-color:#117ef8;box-shadow:0 .125rem .75rem #04418640}.btn-hero-primary.disabled,.btn-hero-primary:disabled{color:#fff;background-color:#0665d0;box-shadow:0 .125rem .75rem #04418640;transform:translateY(0)}.btn-hero-primary:not(:disabled):not(.disabled).active,.btn-hero-primary:not(:disabled):not(.disabled):active,.show>.btn-hero-primary.dropdown-toggle{color:#fff;background-color:#044186;box-shadow:0 .125rem .75rem #04418640;transform:translateY(0)}.btn-hero-primary:not(:disabled):not(.disabled).active:focus,.btn-hero-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-primary.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #04418640}.btn-hero-secondary{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#6c757d;border:none;box-shadow:0 .125rem .75rem #494f5440;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-secondary:hover{color:#fff;background-color:#868e96;box-shadow:0 .375rem .75rem #494f5466;transform:translateY(-1px)}.btn-hero-secondary.focus,.btn-hero-secondary:focus{color:#fff;background-color:#868e96;box-shadow:0 .125rem .75rem #494f5440}.btn-hero-secondary.disabled,.btn-hero-secondary:disabled{color:#fff;background-color:#6c757d;box-shadow:0 .125rem .75rem #494f5440;transform:translateY(0)}.btn-hero-secondary:not(:disabled):not(.disabled).active,.btn-hero-secondary:not(:disabled):not(.disabled):active,.show>.btn-hero-secondary.dropdown-toggle{color:#fff;background-color:#494f54;box-shadow:0 .125rem .75rem #494f5440;transform:translateY(0)}.btn-hero-secondary:not(:disabled):not(.disabled).active:focus,.btn-hero-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-secondary.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #494f5440}.btn-hero-success{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#82b54b;border:none;box-shadow:0 .125rem .75rem #5b7f3440;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-success:hover{color:#fff;background-color:#9bc46f;box-shadow:0 .375rem .75rem #5b7f3466;transform:translateY(-1px)}.btn-hero-success.focus,.btn-hero-success:focus{color:#fff;background-color:#9bc46f;box-shadow:0 .125rem .75rem #5b7f3440}.btn-hero-success.disabled,.btn-hero-success:disabled{color:#fff;background-color:#82b54b;box-shadow:0 .125rem .75rem #5b7f3440;transform:translateY(0)}.btn-hero-success:not(:disabled):not(.disabled).active,.btn-hero-success:not(:disabled):not(.disabled):active,.show>.btn-hero-success.dropdown-toggle{color:#fff;background-color:#5b7f34;box-shadow:0 .125rem .75rem #5b7f3440;transform:translateY(0)}.btn-hero-success:not(:disabled):not(.disabled).active:focus,.btn-hero-success:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-success.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #5b7f3440}.btn-hero-info{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#3c90df;border:none;box-shadow:0 .125rem .75rem #1d6ab140;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-info:hover{color:#fff;background-color:#68a9e6;box-shadow:0 .375rem .75rem #1d6ab166;transform:translateY(-1px)}.btn-hero-info.focus,.btn-hero-info:focus{color:#fff;background-color:#68a9e6;box-shadow:0 .125rem .75rem #1d6ab140}.btn-hero-info.disabled,.btn-hero-info:disabled{color:#fff;background-color:#3c90df;box-shadow:0 .125rem .75rem #1d6ab140;transform:translateY(0)}.btn-hero-info:not(:disabled):not(.disabled).active,.btn-hero-info:not(:disabled):not(.disabled):active,.show>.btn-hero-info.dropdown-toggle{color:#fff;background-color:#1d6ab1;box-shadow:0 .125rem .75rem #1d6ab140;transform:translateY(0)}.btn-hero-info:not(:disabled):not(.disabled).active:focus,.btn-hero-info:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-info.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #1d6ab140}.btn-hero-warning{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#ffb119;border:none;box-shadow:0 .125rem .75rem #cc860040;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-warning:hover{color:#fff;background-color:#ffc24c;box-shadow:0 .375rem .75rem #cc860066;transform:translateY(-1px)}.btn-hero-warning.focus,.btn-hero-warning:focus{color:#fff;background-color:#ffc24c;box-shadow:0 .125rem .75rem #cc860040}.btn-hero-warning.disabled,.btn-hero-warning:disabled{color:#fff;background-color:#ffb119;box-shadow:0 .125rem .75rem #cc860040;transform:translateY(0)}.btn-hero-warning:not(:disabled):not(.disabled).active,.btn-hero-warning:not(:disabled):not(.disabled):active,.show>.btn-hero-warning.dropdown-toggle{color:#fff;background-color:#cc8600;box-shadow:0 .125rem .75rem #cc860040;transform:translateY(0)}.btn-hero-warning:not(:disabled):not(.disabled).active:focus,.btn-hero-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-warning.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #cc860040}.btn-hero-danger{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#e04f1a;border:none;box-shadow:0 .125rem .75rem #9b371240;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-danger:hover{color:#fff;background-color:#e97044;box-shadow:0 .375rem .75rem #9b371266;transform:translateY(-1px)}.btn-hero-danger.focus,.btn-hero-danger:focus{color:#fff;background-color:#e97044;box-shadow:0 .125rem .75rem #9b371240}.btn-hero-danger.disabled,.btn-hero-danger:disabled{color:#fff;background-color:#e04f1a;box-shadow:0 .125rem .75rem #9b371240;transform:translateY(0)}.btn-hero-danger:not(:disabled):not(.disabled).active,.btn-hero-danger:not(:disabled):not(.disabled):active,.show>.btn-hero-danger.dropdown-toggle{color:#fff;background-color:#9b3712;box-shadow:0 .125rem .75rem #9b371240;transform:translateY(0)}.btn-hero-danger:not(:disabled):not(.disabled).active:focus,.btn-hero-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-danger.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #9b371240}.btn-hero-dark{color:#fff;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#343a40;border:none;box-shadow:0 .125rem .75rem #12141640;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-dark:hover{color:#fff;background-color:#4b545c;box-shadow:0 .375rem .75rem #12141666;transform:translateY(-1px)}.btn-hero-dark.focus,.btn-hero-dark:focus{color:#fff;background-color:#4b545c;box-shadow:0 .125rem .75rem #12141640}.btn-hero-dark.disabled,.btn-hero-dark:disabled{color:#fff;background-color:#343a40;box-shadow:0 .125rem .75rem #12141640;transform:translateY(0)}.btn-hero-dark:not(:disabled):not(.disabled).active,.btn-hero-dark:not(:disabled):not(.disabled):active,.show>.btn-hero-dark.dropdown-toggle{color:#fff;background-color:#121416;box-shadow:0 .125rem .75rem #12141640;transform:translateY(0)}.btn-hero-dark:not(:disabled):not(.disabled).active:focus,.btn-hero-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-dark.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #12141640}.btn-hero-light{color:#212529;text-transform:uppercase;letter-spacing:.0625rem;font-weight:700;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem;background-color:#f8f9fa;border:none;box-shadow:0 .125rem .75rem #cbd3da40;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,transform .12s ease-out}.btn-hero-light:hover{color:#212529;background-color:#fff;box-shadow:0 .375rem .75rem #cbd3da66;transform:translateY(-1px)}.btn-hero-light.focus,.btn-hero-light:focus{color:#212529;background-color:#fff;box-shadow:0 .125rem .75rem #cbd3da40}.btn-hero-light.disabled,.btn-hero-light:disabled{color:#212529;background-color:#f8f9fa;box-shadow:0 .125rem .75rem #cbd3da40;transform:translateY(0)}.btn-hero-light:not(:disabled):not(.disabled).active,.btn-hero-light:not(:disabled):not(.disabled):active,.show>.btn-hero-light.dropdown-toggle{color:#212529;background-color:#cbd3da;box-shadow:0 .125rem .75rem #cbd3da40;transform:translateY(0)}.btn-hero-light:not(:disabled):not(.disabled).active:focus,.btn-hero-light:not(:disabled):not(.disabled):active:focus,.show>.btn-hero-light.dropdown-toggle:focus{box-shadow:0 .125rem .75rem #cbd3da40}.btn-hero-lg{padding:.875rem 2.25rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.btn-hero-sm{padding:.375rem 1.25rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.btn-dual{color:#16181a;background-color:#f8f9fc;border-color:#f8f9fc}.btn-dual.focus,.btn-dual:focus,.btn-dual:hover{color:#16181a;background-color:#cdd6e8;border-color:#cdd6e8;box-shadow:none}.btn-dual.disabled,.btn-dual:disabled{background-color:transparent;border-color:transparent}.btn-dual.active,.btn-dual:active{color:#16181a;background-color:#f8f9fc;border-color:#f8f9fc}.btn-dual:not(:disabled):not(.disabled).active,.btn-dual:not(:disabled):not(.disabled):active,.show>.btn-dual.dropdown-toggle{color:#16181a;background-color:#cdd6e8;border-color:#cdd6e8}html.dark .markdown-body{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #e6edf3;--color-fg-muted: #7d8590;--color-fg-subtle: #6e7681;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110,118,129,.4);--color-accent-fg: #2f81f7;--color-accent-emphasis: #1f6feb;--color-attention-fg: #d29922;--color-attention-subtle: rgba(187,128,9,.15);--color-danger-fg: #f85149;--color-done-fg: #a371f7}html:not(.dark) .markdown-body{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #6639ba;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #1F2328;--color-fg-muted: #656d76;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsla(210,18%,87%,1);--color-neutral-muted: rgba(175,184,193,.2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-fg: #9a6700;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-done-fg: #8250df}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold, 600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold, 600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold, 600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold, 600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold, 600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold, 600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .color-fg-accent{color:var(--color-accent-fg)!important}.markdown-body .color-fg-attention{color:var(--color-attention-fg)!important}.markdown-body .color-fg-done{color:var(--color-done-fg)!important}.markdown-body .flex-items-center{align-items:center!important}.markdown-body .mb-1{margin-bottom:var(--base-size-4, 4px)!important}.markdown-body .text-semibold{font-weight:var(--base-text-weight-medium, 500)!important}.markdown-body .d-inline-flex{display:inline-flex!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold, 600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold, 600)}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:var(--color-fg-default);background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold, 600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal, 400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal, 400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body .QueryBuilder .qb-entity{color:var(--color-prettylights-syntax-entity)}.markdown-body .QueryBuilder .qb-constant{color:var(--color-prettylights-syntax-constant)}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:0 1em;margin-bottom:16px;color:inherit;border-left:.25em solid var(--color-border-default)}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:var(--color-accent-fg)}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:var(--color-done-fg)}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:var(--color-attention-fg)}*,:before,:after{box-sizing:border-box;background-repeat:no-repeat}:before,:after{text-decoration:inherit;vertical-align:inherit}:where(:root){cursor:default;line-height:1.5;overflow-wrap:break-word;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}:where(body){margin:0}:where(h1){font-size:2em;margin:.67em 0}:where(dl,ol,ul) :where(dl,ol,ul){margin:0}:where(hr){color:inherit;height:0}:where(nav) :where(ol,ul){list-style-type:none;padding:0}:where(nav li):before{content:"​";float:left}:where(pre){font-family:monospace,monospace;font-size:1em;overflow:auto}:where(abbr[title]){text-decoration:underline;text-decoration:underline dotted}:where(b,strong){font-weight:bolder}:where(code,kbd,samp){font-family:monospace,monospace;font-size:1em}:where(small){font-size:80%}:where(audio,canvas,iframe,img,svg,video){vertical-align:baseline}:where(iframe){border-style:none}:where(svg:not([fill])){fill:currentColor}:where(table){border-collapse:collapse;border-color:inherit;text-indent:0}:where(button,input,select){margin:0}:where(button,[type=button i],[type=reset i],[type=submit i]){-webkit-appearance:button}:where(fieldset){border:1px solid #a0a0a0}:where(progress){vertical-align:baseline}:where(textarea){margin:0;resize:vertical}:where([type=search i]){-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(dialog){background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:fit-content}:where(dialog:not([open])){display:none}:where(details>summary:first-of-type){display:list-item}:where([aria-busy=true i]){cursor:progress}:where([aria-controls]){cursor:pointer}:where([aria-disabled=true i],[disabled]){cursor:not-allowed}:where([aria-hidden=false i][hidden]){display:initial}:where([aria-hidden=false i][hidden]:not(:focus)){clip:rect(0,0,0,0);position:absolute}html{font-size:16px}html,body{width:100%;height:100%;overflow:hidden;background-color:#f2f2f2;font-family:Encode Sans Condensed,sans-serif}html.dark body{background-color:#292b2b}::-webkit-scrollbar{width:8px;background-color:#eee}::-webkit-scrollbar-thumb{background-color:#c1c1c1}::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8}html,body{width:100%;height:100%;overflow:hidden;font-size:16px}#app{width:100%;height:100%}.fade-slide-leave-active,.fade-slide-enter-active{transition:all .3s}.fade-slide-enter-from{opacity:0;transform:translate(-30px)}.fade-slide-leave-to{opacity:0;transform:translate(30px)}.cus-scroll{overflow:auto}.cus-scroll::-webkit-scrollbar{width:8px;height:8px}.cus-scroll-x{overflow-x:auto}.cus-scroll-x::-webkit-scrollbar{width:0;height:8px}.cus-scroll-y{overflow-y:auto}.cus-scroll-y::-webkit-scrollbar{width:8px;height:0}.cus-scroll::-webkit-scrollbar-thumb,.cus-scroll-x::-webkit-scrollbar-thumb,.cus-scroll-y::-webkit-scrollbar-thumb{background-color:transparent;border-radius:4px}.cus-scroll:hover::-webkit-scrollbar-thumb,.cus-scroll-x:hover::-webkit-scrollbar-thumb,.cus-scroll-y:hover::-webkit-scrollbar-thumb{background:#bfbfbf}.cus-scroll:hover::-webkit-scrollbar-thumb:hover,.cus-scroll-x:hover::-webkit-scrollbar-thumb:hover,.cus-scroll-y:hover::-webkit-scrollbar-thumb:hover{background:var(--primary-color)}#--unocss--{layer:__ALL__}#app{height:100%}#app .n-config-provider{height:inherit}.side-menu:not(.n-menu--collapsed) .n-menu-item-content:before{left:5px;right:5px}.side-menu:not(.n-menu--collapsed) .n-menu-item-content.n-menu-item-content--selected:before,.side-menu:not(.n-menu--collapsed) .n-menu-item-content:hover:before{border-left:4px solid var(--primary-color)}.carousel-img[data-v-94f2350e]{width:100%;height:240px;object-fit:cover}.pay-qrcode{width:100%;height:100%}.pay-qrcode>canvas{width:100%!important;height:100%!important}.card-container[data-v-16d7c058]{display:grid;justify-content:space-between;grid-template-columns:repeat(auto-fit,minmax(calc(100% - 1rem),1fr));row-gap:20px;min-width:100%}.card-item[data-v-16d7c058]{max-width:100%}@media screen and (min-width: 768px){.card-container[data-v-16d7c058]{grid-template-columns:repeat(auto-fit,minmax(calc(50% - 1rem),1fr));column-gap:20px;min-width:375px}}@media screen and (min-width: 1200px){.card-container[data-v-16d7c058]{grid-template-columns:repeat(auto-fit,minmax(calc(33.33% - 1rem),1fr));padding:0 10px;column-gap:20px;min-width:375px}}#--unocss-layer-start--__ALL__--{start:__ALL__}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.wh-full,[wh-full=""]{width:100%;height:100%}.f-c-c,[f-c-c=""]{display:flex;align-items:center;justify-content:center}.flex-col,[flex-col=""]{display:flex;flex-direction:column}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.right-0{right:0}.right-4{right:16px}[bottom~="20"]{bottom:80px}.z-99999{z-index:99999}.grid{display:grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.m-0{margin:0}.m-0\\!{margin:0!important}.m-3{margin:12px}.m-auto,[m-auto=""]{margin:auto}.mx-2\\.5{margin-left:10px;margin-right:10px}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:4px}.mb-1em{margin-bottom:1em}.mb-2{margin-bottom:8px}.mb-2\\.5{margin-bottom:10px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:20px}.ml-1{margin-left:4px}.ml-2\\.5{margin-left:10px}.ml-5{margin-left:20px}.ml-auto,[ml-auto=""]{margin-left:auto}.mr-0{margin-right:0}.mr-1\\.2{margin-right:4.8px}.mr-1\\.3{margin-right:5.2px}.mr-5{margin-right:20px}.mr-auto{margin-right:auto}.mr10,[mr10=""]{margin-right:40px}.mt-1{margin-top:4px}.mt-15,[mt-15=""]{margin-top:60px}.mt-2{margin-top:8px}.mt-2\\.5{margin-top:10px}.mt-4{margin-top:16px}.mt-5,[mt-5=""]{margin-top:20px}.mt-8{margin-top:32px}.inline-block{display:inline-block}.hidden{display:none}.h-1\\.5{height:6px}.h-15{height:60px}.h-35,[h-35=""]{height:140px}.h-5,.h5{height:20px}.h-60,[h-60=""]{height:240px}.h-8{height:32px}.h-9{height:36px}.h-auto{height:auto}.h-full,[h-full=""]{height:100%}.h-full\\!{height:100%!important}.h1{height:4px}.h2{height:8px}.h3{height:12px}.max-h-8{max-height:32px}.max-w-1200{max-width:4800px}.max-w-125{max-width:500px}.max-w-35{max-width:140px}.max-w-full{max-width:100%}.max-w-md{max-width:448px}.min-w-75{min-width:300px}.w-1\\.5{width:6px}.w-150{width:600px}.w-16{width:64px}.w-35,[w-35=""]{width:140px}.w-375{width:1500px}.w-5{width:20px}.w-75{width:300px}.w-8{width:32px}.w-auto{width:auto}.w-full{width:100%}.w-full\\!{width:100%!important}.flex,[flex=""]{display:flex}.flex-\\[1\\]{flex:1}.flex-\\[2\\]{flex:2}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}[transform-origin~=center]{transform-origin:center}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.resize{resize:both}.items-center,[items-center=""]{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:12px}.gap-5{gap:20px}.space-x-4>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(16px * calc(1 - var(--un-space-x-reverse)));margin-right:calc(16px * var(--un-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(16px * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(16px * var(--un-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(20px * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(20px * var(--un-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.break-anywhere{overflow-wrap:anywhere}.b{border-width:1px}.border-0,.dark [dark~=border-0]{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-\\[\\#646669\\]{--un-border-opacity:1;border-color:rgb(100 102 105 / var(--un-border-opacity))}.border-gray-600{--un-border-opacity:1;border-color:rgb(75 85 99 / var(--un-border-opacity))}.border-primary{border-color:var(--primary-color)}.border-transparent{border-color:transparent}.border-rounded-5,[border-rounded-5=""]{border-radius:20px}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.border-none{border-style:none}.border-solid{border-style:solid}.bg-\\[--n-color-embedded\\]{background-color:var(--n-color-embedded)}.bg-\\[--n-color\\]{background-color:var(--n-color)}.bg-\\[\\#f5f6fb\\],.bg-hex-f5f6fb{--un-bg-opacity:1;background-color:rgb(245 246 251 / var(--un-bg-opacity))}.bg-blue-500{--un-bg-opacity:1;background-color:rgb(59 130 246 / var(--un-bg-opacity))}.bg-dark,.dark [dark~=bg-dark]{--un-bg-opacity:1;background-color:rgb(24 24 28 / var(--un-bg-opacity))}.bg-gray-50{--un-bg-opacity:1;background-color:rgb(249 250 251 / var(--un-bg-opacity))}.bg-gray-800{--un-bg-opacity:1;background-color:rgb(31 41 55 / var(--un-bg-opacity))}.bg-green-500{--un-bg-opacity:1;background-color:rgb(34 197 94 / var(--un-bg-opacity))}.bg-orange-600{--un-bg-opacity:1;background-color:rgb(234 88 12 / var(--un-bg-opacity))}.bg-red-500{--un-bg-opacity:1;background-color:rgb(239 68 68 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\\:bg-hex-101014{--un-bg-opacity:1;background-color:rgb(16 16 20 / var(--un-bg-opacity))}.dark .dark\\:bg-hex-121212{--un-bg-opacity:1;background-color:rgb(18 18 18 / var(--un-bg-opacity))}.dark .dark\\:bg-primary\\/20,.dark .dark\\:hover\\:bg-primary\\/20:hover{background-color:var(--primary-color)}.hover\\:bg-gray-100:hover{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.p-0{padding:0}.p-0\\!{padding:0!important}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2\\.5{padding:10px}.p-5{padding:20px}.p-6{padding:24px}.px,.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}.pb-1{padding-bottom:4px}.pb-2\\.5{padding-bottom:10px}.pb-4{padding-bottom:16px}.pb-8{padding-bottom:32px}.pl-1{padding-left:4px}.pl-4{padding-left:16px}.pr-4{padding-right:16px}.pt-1{padding-top:4px}.pt-2{padding-top:8px}.pt-2\\.5{padding-top:10px}.pt-4{padding-top:16px}.pt-5{padding-top:20px}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.indent{text-indent:24px}[indent~="0"]{text-indent:0}.root-indent:root{text-indent:24px}[root-indent~="18"]:root{text-indent:72px}.vertical-bottom{vertical-align:bottom}.text-14,[text-14=""]{font-size:56px}.text-3xl{font-size:30px;line-height:36px}.text-4xl{font-size:36px;line-height:40px}.text-5xl{font-size:48px;line-height:1}.text-9xl{font-size:128px;line-height:1}.text-base{font-size:16px;line-height:24px}.text-lg{font-size:18px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.color-\\[hsla\\(0\\,0\\%\\,100\\%\\,\\.75\\)\\]{--un-text-opacity:.75;color:hsla(0,0%,100%,var(--un-text-opacity))}.color-\\#48bc19{--un-text-opacity:1;color:rgb(72 188 25 / var(--un-text-opacity))}.color-\\#f8f9fa{--un-text-opacity:1;color:rgb(248 249 250 / var(--un-text-opacity))}.color-\\#f8f9fa41{--un-text-opacity:.25;color:rgb(248 249 250 / var(--un-text-opacity))}.color-\\#f9a314{--un-text-opacity:1;color:rgb(249 163 20 / var(--un-text-opacity))}.color-primary,.text-\\[--primary-color\\]{color:var(--primary-color)}[color~="#343a40"]{--un-text-opacity:1;color:rgb(52 58 64 / var(--un-text-opacity))}[color~="#6a6a6a"]{--un-text-opacity:1;color:rgb(106 106 106 / var(--un-text-opacity))}[color~="#6c757d"]{--un-text-opacity:1;color:rgb(108 117 125 / var(--un-text-opacity))}[color~="#db4619"]{--un-text-opacity:1;color:rgb(219 70 25 / var(--un-text-opacity))}[hover~=color-primary]:hover{color:var(--primary-color)}.dark .dark\\:text-gray-100{--un-text-opacity:1;color:rgb(243 244 246 / var(--un-text-opacity))}.dark .dark\\:text-gray-300,.text-gray-300{--un-text-opacity:1;color:rgb(209 213 219 / var(--un-text-opacity))}.text-\\[rgba\\(0\\,0\\,0\\,0\\.45\\)\\]{--un-text-opacity:.45;color:rgba(0,0,0,var(--un-text-opacity))}.text-gray-400{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.text-gray-600{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.text-gray-700{--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.text-gray-900{--un-text-opacity:1;color:rgb(17 24 39 / var(--un-text-opacity))}.text-green-400{--un-text-opacity:1;color:rgb(74 222 128 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.decoration-underline,[hover~=decoration-underline]:hover{text-decoration-line:underline}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-85{opacity:.85}.hover\\:opacity-75:hover{opacity:.75}.shadow-black{--un-shadow-opacity:1;--un-shadow-color:rgb(0 0 0 / var(--un-shadow-opacity))}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}[duration~="500"]{transition-duration:.5s}[content~="$t("]{content:var(--t\\()}.placeholder-gray-400::placeholder{--un-placeholder-opacity:1;color:rgb(156 163 175 / var(--un-placeholder-opacity))}[placeholder~="$t("]::placeholder{color:var(--t\\()}@media (min-width: 768px){.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:mb-10{margin-bottom:40px}.md\\:ml-5{margin-left:20px}.md\\:mr-2\\.5{margin-right:10px}.md\\:mt-10{margin-top:40px}.md\\:mt-5{margin-top:20px}.md\\:block{display:block}.md\\:hidden{display:none}.md\\:h-8{height:32px}.md\\:w-8{width:32px}.md\\:flex-\\[1\\]{flex:1}.md\\:flex-\\[2\\]{flex:2}.md\\:p-4{padding:16px}.md\\:pl-5{padding-left:20px}}@media (min-width: 1024px){.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}#--unocss-layer-end--__ALL__--{end:__ALL__}`)),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); -var l3=Object.defineProperty;var c3=(e,t,n)=>t in e?l3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var u3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fd=(e,t,n)=>(c3(e,typeof t!="symbol"?t+"":t,n),n);var O7e=u3((Yn,Qn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** +var v3=Object.defineProperty;var b3=(e,t,n)=>t in e?v3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var y3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vd=(e,t,n)=>(b3(e,typeof t!="symbol"?t+"":t,n),n);var J7e=y3((Yn,Qn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** * @vue/shared v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Vh(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const nn={},da=[],Gn=()=>{},d3=()=>!1,jc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wh=e=>e.startsWith("onUpdate:"),wn=Object.assign,qh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f3=Object.prototype.hasOwnProperty,Mt=(e,t)=>f3.call(e,t),ct=Array.isArray,fa=e=>Uc(e)==="[object Map]",ry=e=>Uc(e)==="[object Set]",pt=e=>typeof e=="function",ln=e=>typeof e=="string",Wr=e=>typeof e=="symbol",Qt=e=>e!==null&&typeof e=="object",iy=e=>(Qt(e)||pt(e))&&pt(e.then)&&pt(e.catch),ay=Object.prototype.toString,Uc=e=>ay.call(e),h3=e=>Uc(e).slice(8,-1),sy=e=>Uc(e)==="[object Object]",Kh=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ms=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},p3=/-(\w)/g,Eo=Vc(e=>e.replace(p3,(t,n)=>n?n.toUpperCase():"")),m3=/\B([A-Z])/g,qr=Vc(e=>e.replace(m3,"-$1").toLowerCase()),Wc=Vc(e=>e.charAt(0).toUpperCase()+e.slice(1)),hd=Vc(e=>e?`on${Wc(e)}`:""),Br=(e,t)=>!Object.is(e,t),Zl=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},kf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},g3=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let Ym;const cy=()=>Ym||(Ym=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fi(e){if(ct(e)){const t={};for(let n=0;n{if(n){const o=n.split(b3);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function qn(e){let t="";if(ln(e))t=e;else if(ct(e))for(let n=0;n!!(e&&e.__v_isRef===!0),he=e=>ln(e)?e:e==null?"":ct(e)||Qt(e)&&(e.toString===ay||!pt(e.toString))?dy(e)?he(e.value):JSON.stringify(e,fy,2):String(e),fy=(e,t)=>dy(t)?fy(e,t.value):fa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[pd(o,i)+" =>"]=r,n),{})}:ry(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>pd(n))}:Wr(t)?pd(t):Qt(t)&&!ct(t)&&!sy(t)?String(t):t,pd=(e,t="")=>{var n;return Wr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Qh(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const nn={},ha=[],Gn=()=>{},x3=()=>!1,Kc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jh=e=>e.startsWith("onUpdate:"),wn=Object.assign,Zh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},C3=Object.prototype.hasOwnProperty,Mt=(e,t)=>C3.call(e,t),ct=Array.isArray,pa=e=>Gc(e)==="[object Map]",fy=e=>Gc(e)==="[object Set]",pt=e=>typeof e=="function",ln=e=>typeof e=="string",Kr=e=>typeof e=="symbol",Qt=e=>e!==null&&typeof e=="object",hy=e=>(Qt(e)||pt(e))&&pt(e.then)&&pt(e.catch),py=Object.prototype.toString,Gc=e=>py.call(e),w3=e=>Gc(e).slice(8,-1),my=e=>Gc(e)==="[object Object]",ep=e=>ln(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bs=Qh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_3=/-(\w)/g,Ao=Xc(e=>e.replace(_3,(t,n)=>n?n.toUpperCase():"")),S3=/\B([A-Z])/g,Gr=Xc(e=>e.replace(S3,"-$1").toLowerCase()),Yc=Xc(e=>e.charAt(0).toUpperCase()+e.slice(1)),bd=Xc(e=>e?`on${Yc(e)}`:""),Nr=(e,t)=>!Object.is(e,t),rc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},$f=e=>{const t=parseFloat(e);return isNaN(t)?e:t},k3=e=>{const t=ln(e)?Number(e):NaN;return isNaN(t)?e:t};let og;const vy=()=>og||(og=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Li(e){if(ct(e)){const t={};for(let n=0;n{if(n){const o=n.split(T3);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function qn(e){let t="";if(ln(e))t=e;else if(ct(e))for(let n=0;n!!(e&&e.__v_isRef===!0),pe=e=>ln(e)?e:e==null?"":ct(e)||Qt(e)&&(e.toString===py||!pt(e.toString))?yy(e)?pe(e.value):JSON.stringify(e,xy,2):String(e),xy=(e,t)=>yy(t)?xy(e,t.value):pa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[yd(o,i)+" =>"]=r,n),{})}:fy(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>yd(n))}:Kr(t)?yd(t):Qt(t)&&!ct(t)&&!my(t)?String(t):t,yd=(e,t="")=>{var n;return Kr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Wn;class hy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wn,!t&&Wn&&(this.index=(Wn.scopes||(Wn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wn;try{return Wn=this,t()}finally{Wn=n}}}on(){Wn=this}off(){Wn=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Gr()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Dr,n=xi;try{return Dr=!0,xi=this,this._runnings++,Qm(this),this.fn()}finally{Jm(this),this._runnings--,xi=n,Dr=t}}stop(){this.active&&(Qm(this),Jm(this),this.onStop&&this.onStop(),this.active=!1)}}function S3(e){return e.value}function Qm(e){e._trackId++,e._depsLength=0}function Jm(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},fc=new WeakMap,Ci=Symbol(""),Ef=Symbol("");function jn(e,t,n){if(Dr&&xi){let o=fc.get(e);o||fc.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yy(()=>o.delete(n))),vy(xi,r)}}function lr(e,t,n,o,r,i){const a=fc.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&ct(e)){const l=Number(o);a.forEach((c,u)=>{(u==="length"||!Wr(u)&&u>=l)&&s.push(c)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":ct(e)?Kh(n)&&s.push(a.get("length")):(s.push(a.get(Ci)),fa(e)&&s.push(a.get(Ef)));break;case"delete":ct(e)||(s.push(a.get(Ci)),fa(e)&&s.push(a.get(Ef)));break;case"set":fa(e)&&s.push(a.get(Ci));break}Qh();for(const l of s)l&&by(l,4);Jh()}function k3(e,t){const n=fc.get(e);return n&&n.get(t)}const P3=Vh("__proto__,__v_isRef,__isVue"),xy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wr)),Zm=T3();function T3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=It(this);for(let i=0,a=this.length;i{e[t]=function(...n){Kr(),Qh();const o=It(this)[t].apply(this,n);return Jh(),Gr(),o}}),e}function E3(e){Wr(e)||(e=String(e));const t=It(this);return jn(t,"has",e),t.hasOwnProperty(e)}class Cy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?H3:ky:i?Sy:_y).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=ct(t);if(!r){if(a&&Mt(Zm,n))return Reflect.get(Zm,n,o);if(n==="hasOwnProperty")return E3}const s=Reflect.get(t,n,o);return(Wr(n)?xy.has(n):P3(n))||(r||jn(t,"get",n),i)?s:cn(s)?a&&Kh(n)?s:s.value:Qt(s)?r?uo(s):to(s):s}}class wy extends Cy{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const l=Ei(i);if(!ba(o)&&!Ei(o)&&(i=It(i),o=It(o)),!ct(t)&&cn(i)&&!cn(o))return l?!1:(i.value=o,!0)}const a=ct(t)&&Kh(n)?Number(n)e,qc=e=>Reflect.getPrototypeOf(e);function xl(e,t,n=!1,o=!1){e=e.__v_raw;const r=It(e),i=It(t);n||(Br(t,i)&&jn(r,"get",t),jn(r,"get",i));const{has:a}=qc(r),s=o?Zh:n?np:zs;if(a.call(r,t))return s(e.get(t));if(a.call(r,i))return s(e.get(i));e!==r&&e.get(t)}function Cl(e,t=!1){const n=this.__v_raw,o=It(n),r=It(e);return t||(Br(e,r)&&jn(o,"has",e),jn(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function wl(e,t=!1){return e=e.__v_raw,!t&&jn(It(e),"iterate",Ci),Reflect.get(e,"size",e)}function eg(e,t=!1){!t&&!ba(e)&&!Ei(e)&&(e=It(e));const n=It(this);return qc(n).has.call(n,e)||(n.add(e),lr(n,"add",e,e)),this}function tg(e,t,n=!1){!n&&!ba(t)&&!Ei(t)&&(t=It(t));const o=It(this),{has:r,get:i}=qc(o);let a=r.call(o,e);a||(e=It(e),a=r.call(o,e));const s=i.call(o,e);return o.set(e,t),a?Br(t,s)&&lr(o,"set",e,t):lr(o,"add",e,t),this}function ng(e){const t=It(this),{has:n,get:o}=qc(t);let r=n.call(t,e);r||(e=It(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&lr(t,"delete",e,void 0),i}function og(){const e=It(this),t=e.size!==0,n=e.clear();return t&&lr(e,"clear",void 0,void 0),n}function _l(e,t){return function(o,r){const i=this,a=i.__v_raw,s=It(a),l=t?Zh:e?np:zs;return!e&&jn(s,"iterate",Ci),a.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function Sl(e,t,n){return function(...o){const r=this.__v_raw,i=It(r),a=fa(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=r[e](...o),u=n?Zh:t?np:zs;return!t&&jn(i,"iterate",l?Ef:Ci),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:s?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Cr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function O3(){const e={get(i){return xl(this,i)},get size(){return wl(this)},has:Cl,add:eg,set:tg,delete:ng,clear:og,forEach:_l(!1,!1)},t={get(i){return xl(this,i,!1,!0)},get size(){return wl(this)},has:Cl,add(i){return eg.call(this,i,!0)},set(i,a){return tg.call(this,i,a,!0)},delete:ng,clear:og,forEach:_l(!1,!0)},n={get(i){return xl(this,i,!0)},get size(){return wl(this,!0)},has(i){return Cl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:_l(!0,!1)},o={get(i){return xl(this,i,!0,!0)},get size(){return wl(this,!0)},has(i){return Cl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:_l(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Sl(i,!1,!1),n[i]=Sl(i,!0,!1),t[i]=Sl(i,!1,!0),o[i]=Sl(i,!0,!0)}),[e,n,t,o]}const[M3,z3,F3,D3]=O3();function ep(e,t){const n=t?e?D3:F3:e?z3:M3;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Mt(n,r)&&r in o?n:o,r,i)}const L3={get:ep(!1,!1)},B3={get:ep(!1,!0)},N3={get:ep(!0,!1)},_y=new WeakMap,Sy=new WeakMap,ky=new WeakMap,H3=new WeakMap;function j3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function U3(e){return e.__v_skip||!Object.isExtensible(e)?0:j3(h3(e))}function to(e){return Ei(e)?e:tp(e,!1,A3,L3,_y)}function Py(e){return tp(e,!1,I3,B3,Sy)}function uo(e){return tp(e,!0,$3,N3,ky)}function tp(e,t,n,o,r){if(!Qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=U3(e);if(a===0)return e;const s=new Proxy(e,a===2?o:n);return r.set(e,s),s}function wi(e){return Ei(e)?wi(e.__v_raw):!!(e&&e.__v_isReactive)}function Ei(e){return!!(e&&e.__v_isReadonly)}function ba(e){return!!(e&&e.__v_isShallow)}function Ty(e){return e?!!e.__v_raw:!1}function It(e){const t=e&&e.__v_raw;return t?It(t):e}function Ms(e){return Object.isExtensible(e)&&ly(e,"__v_skip",!0),e}const zs=e=>Qt(e)?to(e):e,np=e=>Qt(e)?uo(e):e;class Ey{constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Yh(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=It(this);return(!t._cacheable||t.effect.dirty)&&Br(t._value,t._value=t.effect.run())&&gs(t,4),op(t),t.effect._dirtyLevel>=2&&gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function V3(e,t,n=!1){let o,r;const i=pt(e);return i?(o=e,r=Gn):(o=e.get,r=e.set),new Ey(o,r,i||!r,n)}function op(e){var t;Dr&&xi&&(e=It(e),vy(xi,(t=e.dep)!=null?t:e.dep=yy(()=>e.dep=void 0,e instanceof Ey?e:void 0)))}function gs(e,t=4,n,o){e=It(e);const r=e.dep;r&&by(r,t)}function cn(e){return!!(e&&e.__v_isRef===!0)}function U(e){return Ry(e,!1)}function Ia(e){return Ry(e,!0)}function Ry(e,t){return cn(e)?e:new W3(e,t)}class W3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:It(t),this._value=n?t:zs(t)}get value(){return op(this),this._value}set value(t){const n=this.__v_isShallow||ba(t)||Ei(t);t=n?t:It(t),Br(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:zs(t),gs(this,4))}}function Se(e){return cn(e)?e.value:e}const q3={get:(e,t,n)=>Se(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return cn(r)&&!cn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Ay(e){return wi(e)?e:new Proxy(e,q3)}class K3{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>op(this),()=>gs(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function G3(e){return new K3(e)}function X3(e){const t=ct(e)?new Array(e.length):{};for(const n in e)t[n]=$y(e,n);return t}class Y3{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return k3(It(this._object),this._key)}}class Q3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ue(e,t,n){return cn(e)?e:pt(e)?new Q3(e):Qt(e)&&arguments.length>1?$y(e,t,n):U(e)}function $y(e,t,n){const o=e[t];return cn(o)?o:new Y3(e,t,n)}/** +**/let Wn;class Cy{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wn,!t&&Wn&&(this.index=(Wn.scopes||(Wn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wn;try{return Wn=this,t()}finally{Wn=n}}}on(){Wn=this}off(){Wn=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Yr()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Lr,n=wi;try{return Lr=!0,wi=this,this._runnings++,rg(this),this.fn()}finally{ig(this),this._runnings--,wi=n,Lr=t}}stop(){this.active&&(rg(this),ig(this),this.onStop&&this.onStop(),this.active=!1)}}function O3(e){return e.value}function rg(e){e._trackId++,e._depsLength=0}function ig(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},vc=new WeakMap,_i=Symbol(""),Mf=Symbol("");function jn(e,t,n){if(Lr&&wi){let o=vc.get(e);o||vc.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Ty(()=>o.delete(n))),ky(wi,r)}}function lr(e,t,n,o,r,i){const a=vc.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(n==="length"&&ct(e)){const l=Number(o);a.forEach((c,u)=>{(u==="length"||!Kr(u)&&u>=l)&&s.push(c)})}else switch(n!==void 0&&s.push(a.get(n)),t){case"add":ct(e)?ep(n)&&s.push(a.get("length")):(s.push(a.get(_i)),pa(e)&&s.push(a.get(Mf)));break;case"delete":ct(e)||(s.push(a.get(_i)),pa(e)&&s.push(a.get(Mf)));break;case"set":pa(e)&&s.push(a.get(_i));break}rp();for(const l of s)l&&Py(l,4);ip()}function M3(e,t){const n=vc.get(e);return n&&n.get(t)}const z3=Qh("__proto__,__v_isRef,__isVue"),Ay=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kr)),ag=F3();function F3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=It(this);for(let i=0,a=this.length;i{e[t]=function(...n){Xr(),rp();const o=It(this)[t].apply(this,n);return ip(),Yr(),o}}),e}function D3(e){Kr(e)||(e=String(e));const t=It(this);return jn(t,"has",e),t.hasOwnProperty(e)}class Ry{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Y3:Oy:i?Iy:$y).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=ct(t);if(!r){if(a&&Mt(ag,n))return Reflect.get(ag,n,o);if(n==="hasOwnProperty")return D3}const s=Reflect.get(t,n,o);return(Kr(n)?Ay.has(n):z3(n))||(r||jn(t,"get",n),i)?s:cn(s)?a&&ep(n)?s:s.value:Qt(s)?r?uo(s):to(s):s}}class Ey extends Ry{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const l=Ei(i);if(!xa(o)&&!Ei(o)&&(i=It(i),o=It(o)),!ct(t)&&cn(i)&&!cn(o))return l?!1:(i.value=o,!0)}const a=ct(t)&&ep(n)?Number(n)e,Qc=e=>Reflect.getPrototypeOf(e);function Sl(e,t,n=!1,o=!1){e=e.__v_raw;const r=It(e),i=It(t);n||(Nr(t,i)&&jn(r,"get",t),jn(r,"get",i));const{has:a}=Qc(r),s=o?ap:n?cp:Ls;if(a.call(r,t))return s(e.get(t));if(a.call(r,i))return s(e.get(i));e!==r&&e.get(t)}function kl(e,t=!1){const n=this.__v_raw,o=It(n),r=It(e);return t||(Nr(e,r)&&jn(o,"has",e),jn(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Pl(e,t=!1){return e=e.__v_raw,!t&&jn(It(e),"iterate",_i),Reflect.get(e,"size",e)}function sg(e,t=!1){!t&&!xa(e)&&!Ei(e)&&(e=It(e));const n=It(this);return Qc(n).has.call(n,e)||(n.add(e),lr(n,"add",e,e)),this}function lg(e,t,n=!1){!n&&!xa(t)&&!Ei(t)&&(t=It(t));const o=It(this),{has:r,get:i}=Qc(o);let a=r.call(o,e);a||(e=It(e),a=r.call(o,e));const s=i.call(o,e);return o.set(e,t),a?Nr(t,s)&&lr(o,"set",e,t):lr(o,"add",e,t),this}function cg(e){const t=It(this),{has:n,get:o}=Qc(t);let r=n.call(t,e);r||(e=It(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&lr(t,"delete",e,void 0),i}function ug(){const e=It(this),t=e.size!==0,n=e.clear();return t&&lr(e,"clear",void 0,void 0),n}function Tl(e,t){return function(o,r){const i=this,a=i.__v_raw,s=It(a),l=t?ap:e?cp:Ls;return!e&&jn(s,"iterate",_i),a.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function Al(e,t,n){return function(...o){const r=this.__v_raw,i=It(r),a=pa(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=r[e](...o),u=n?ap:t?cp:Ls;return!t&&jn(i,"iterate",l?Mf:_i),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:s?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Cr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function j3(){const e={get(i){return Sl(this,i)},get size(){return Pl(this)},has:kl,add:sg,set:lg,delete:cg,clear:ug,forEach:Tl(!1,!1)},t={get(i){return Sl(this,i,!1,!0)},get size(){return Pl(this)},has:kl,add(i){return sg.call(this,i,!0)},set(i,a){return lg.call(this,i,a,!0)},delete:cg,clear:ug,forEach:Tl(!1,!0)},n={get(i){return Sl(this,i,!0)},get size(){return Pl(this,!0)},has(i){return kl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:Tl(!0,!1)},o={get(i){return Sl(this,i,!0,!0)},get size(){return Pl(this,!0)},has(i){return kl.call(this,i,!0)},add:Cr("add"),set:Cr("set"),delete:Cr("delete"),clear:Cr("clear"),forEach:Tl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Al(i,!1,!1),n[i]=Al(i,!0,!1),t[i]=Al(i,!1,!0),o[i]=Al(i,!0,!0)}),[e,n,t,o]}const[U3,V3,W3,q3]=j3();function sp(e,t){const n=t?e?q3:W3:e?V3:U3;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Mt(n,r)&&r in o?n:o,r,i)}const K3={get:sp(!1,!1)},G3={get:sp(!1,!0)},X3={get:sp(!0,!1)},$y=new WeakMap,Iy=new WeakMap,Oy=new WeakMap,Y3=new WeakMap;function Q3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function J3(e){return e.__v_skip||!Object.isExtensible(e)?0:Q3(w3(e))}function to(e){return Ei(e)?e:lp(e,!1,B3,K3,$y)}function My(e){return lp(e,!1,H3,G3,Iy)}function uo(e){return lp(e,!0,N3,X3,Oy)}function lp(e,t,n,o,r){if(!Qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=J3(e);if(a===0)return e;const s=new Proxy(e,a===2?o:n);return r.set(e,s),s}function Si(e){return Ei(e)?Si(e.__v_raw):!!(e&&e.__v_isReactive)}function Ei(e){return!!(e&&e.__v_isReadonly)}function xa(e){return!!(e&&e.__v_isShallow)}function zy(e){return e?!!e.__v_raw:!1}function It(e){const t=e&&e.__v_raw;return t?It(t):e}function Ds(e){return Object.isExtensible(e)&&gy(e,"__v_skip",!0),e}const Ls=e=>Qt(e)?to(e):e,cp=e=>Qt(e)?uo(e):e;class Fy{constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new op(()=>t(this._value),()=>ys(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=It(this);return(!t._cacheable||t.effect.dirty)&&Nr(t._value,t._value=t.effect.run())&&ys(t,4),up(t),t.effect._dirtyLevel>=2&&ys(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Z3(e,t,n=!1){let o,r;const i=pt(e);return i?(o=e,r=Gn):(o=e.get,r=e.set),new Fy(o,r,i||!r,n)}function up(e){var t;Lr&&wi&&(e=It(e),ky(wi,(t=e.dep)!=null?t:e.dep=Ty(()=>e.dep=void 0,e instanceof Fy?e:void 0)))}function ys(e,t=4,n,o){e=It(e);const r=e.dep;r&&Py(r,t)}function cn(e){return!!(e&&e.__v_isRef===!0)}function j(e){return Dy(e,!1)}function za(e){return Dy(e,!0)}function Dy(e,t){return cn(e)?e:new eP(e,t)}class eP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:It(t),this._value=n?t:Ls(t)}get value(){return up(this),this._value}set value(t){const n=this.__v_isShallow||xa(t)||Ei(t);t=n?t:It(t),Nr(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Ls(t),ys(this,4))}}function ke(e){return cn(e)?e.value:e}const tP={get:(e,t,n)=>ke(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return cn(r)&&!cn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Ly(e){return Si(e)?e:new Proxy(e,tP)}class nP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>up(this),()=>ys(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function oP(e){return new nP(e)}function rP(e){const t=ct(e)?new Array(e.length):{};for(const n in e)t[n]=By(e,n);return t}class iP{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return M3(It(this._object),this._key)}}class aP{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ue(e,t,n){return cn(e)?e:pt(e)?new aP(e):Qt(e)&&arguments.length>1?By(e,t,n):j(e)}function By(e,t,n){const o=e[t];return cn(o)?o:new iP(e,t,n)}/** * @vue/runtime-core v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Lr(e,t,n,o){try{return o?e(...o):e()}catch(r){Kc(r,t,n)}}function so(e,t,n,o){if(pt(e)){const r=Lr(e,t,n,o);return r&&iy(r)&&r.catch(i=>{Kc(i,t,n)}),r}if(ct(e)){const r=[];for(let i=0;i>>1,r=An[o],i=Ds(r);iNo&&An.splice(t,1)}function tP(e){ct(e)?ha.push(...e):(!Ar||!Ar.includes(e,e.allowRecurse?hi+1:hi))&&ha.push(e),Oy()}function rg(e,t,n=Fs?No+1:0){for(;nDs(n)-Ds(o));if(ha.length=0,Ar){Ar.push(...t);return}for(Ar=t,hi=0;hie.id==null?1/0:e.id,nP=(e,t)=>{const n=Ds(e)-Ds(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function zy(e){Rf=!1,Fs=!0,An.sort(nP);const t=Gn;try{for(No=0;No{o._d&&gg(-1);const i=hc(t);let a;try{a=e(...r)}finally{hc(i),o._d&&gg(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function dn(e,t){if(xn===null)return e;const n=nu(xn),o=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),on(()=>{e.isUnmounting=!0}),e}const ro=[Function,Array],Ly={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ro,onEnter:ro,onAfterEnter:ro,onEnterCancelled:ro,onBeforeLeave:ro,onLeave:ro,onAfterLeave:ro,onLeaveCancelled:ro,onBeforeAppear:ro,onAppear:ro,onAfterAppear:ro,onAppearCancelled:ro},By=e=>{const t=e.subTree;return t.component?By(t.component):t},oP={name:"BaseTransition",props:Ly,setup(e,{slots:t}){const n=no(),o=Dy();return()=>{const r=t.default&&ap(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const f of r)if(f.type!==_n){i=f;break}}const a=It(e),{mode:s}=a;if(o.isLeaving)return md(i);const l=ig(i);if(!l)return md(i);let c=Ls(l,a,o,n,f=>c=f);ya(l,c);const u=n.subTree,d=u&&ig(u);if(d&&d.type!==_n&&!pi(l,d)&&By(n).type!==_n){const f=Ls(d,a,o,n);if(ya(d,f),s==="out-in"&&l.type!==_n)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},md(i);s==="in-out"&&l.type!==_n&&(f.delayLeave=(h,p,g)=>{const m=Ny(o,d);m[String(d.key)]=d,h[$r]=()=>{p(),h[$r]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return i}}},rP=oP;function Ny(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ls(e,t,n,o,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:b,onAfterAppear:w,onAppearCancelled:C}=t,_=String(e.key),S=Ny(n,e),y=(k,T)=>{k&&so(k,o,9,T)},x=(k,T)=>{const R=T[1];y(k,T),ct(k)?k.every(E=>E.length<=1)&&R():k.length<=1&&R()},P={mode:a,persisted:s,beforeEnter(k){let T=l;if(!n.isMounted)if(i)T=m||l;else return;k[$r]&&k[$r](!0);const R=S[_];R&&pi(e,R)&&R.el[$r]&&R.el[$r](),y(T,[k])},enter(k){let T=c,R=u,E=d;if(!n.isMounted)if(i)T=b||c,R=w||u,E=C||d;else return;let q=!1;const D=k[kl]=B=>{q||(q=!0,B?y(E,[k]):y(R,[k]),P.delayedLeave&&P.delayedLeave(),k[kl]=void 0)};T?x(T,[k,D]):D()},leave(k,T){const R=String(e.key);if(k[kl]&&k[kl](!0),n.isUnmounting)return T();y(f,[k]);let E=!1;const q=k[$r]=D=>{E||(E=!0,T(),D?y(g,[k]):y(p,[k]),k[$r]=void 0,S[R]===e&&delete S[R])};S[R]=e,h?x(h,[k,q]):q()},clone(k){const T=Ls(k,t,n,o,r);return r&&r(T),T}};return P}function md(e){if(Gc(e))return e=fo(e),e.children=null,e}function ig(e){if(!Gc(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pt(n.default))return n.default()}}function ya(e,t){e.shapeFlag&6&&e.component?ya(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ap(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iwn({name:e.name},t,{setup:e}))():e}const vs=e=>!!e.type.__asyncLoader,Gc=e=>e.type.__isKeepAlive;function sp(e,t){Hy(e,"a",t)}function Xc(e,t){Hy(e,"da",t)}function Hy(e,t,n=Sn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Yc(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Gc(r.parent.vnode)&&iP(o,t,n,r),r=r.parent}}function iP(e,t,n,o){const r=Yc(t,e,o,!0);Oa(()=>{qh(o[t],r)},n)}function Yc(e,t,n=Sn,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Kr();const s=ol(n),l=so(t,n,e,a);return s(),Gr(),l});return o?r.unshift(i):r.push(i),i}}const fr=e=>(t,n=Sn)=>{(!tu||e==="sp")&&Yc(e,(...o)=>t(...o),n)},hn=fr("bm"),jt=fr("m"),jy=fr("bu"),lp=fr("u"),on=fr("bum"),Oa=fr("um"),aP=fr("sp"),sP=fr("rtg"),lP=fr("rtc");function cP(e,t=Sn){Yc("ec",e,t)}const cp="components";function Qc(e,t){return Vy(cp,e,!0,t)||e}const Uy=Symbol.for("v-ndc");function xa(e){return ln(e)?Vy(cp,e,!1)||e:e||Uy}function Vy(e,t,n=!0,o=!1){const r=xn||Sn;if(r){const i=r.type;if(e===cp){const s=ZP(i,!1);if(s&&(s===t||s===Eo(t)||s===Wc(Eo(t))))return i}const a=ag(r[e]||i[e],t)||ag(r.appContext[e],t);return!a&&o?i:a}}function ag(e,t){return e&&(e[t]||e[Eo(t)]||e[Wc(Eo(t))])}function Fn(e,t,n,o){let r;const i=n&&n[o];if(ct(e)||ln(e)){r=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,l=a.length;sNs(t)?!(t.type===_n||t.type===rt&&!Wy(t.children)):!0)?e:null}const Af=e=>e?dx(e)?nu(e):Af(e.parent):null,bs=wn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Af(e.parent),$root:e=>Af(e.root),$emit:e=>e.emit,$options:e=>up(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,ip(e.update)}),$nextTick:e=>e.n||(e.n=Ht.bind(e.proxy)),$watch:e=>MP.bind(e)}),gd=(e,t)=>e!==nn&&!e.__isScriptSetup&&Mt(e,t),uP={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(gd(o,t))return a[t]=1,o[t];if(r!==nn&&Mt(r,t))return a[t]=2,r[t];if((c=e.propsOptions[0])&&Mt(c,t))return a[t]=3,i[t];if(n!==nn&&Mt(n,t))return a[t]=4,n[t];$f&&(a[t]=0)}}const u=bs[t];let d,f;if(u)return t==="$attrs"&&jn(e.attrs,"get",""),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==nn&&Mt(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,Mt(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return gd(r,t)?(r[t]=n,!0):o!==nn&&Mt(o,t)?(o[t]=n,!0):Mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},a){let s;return!!n[a]||e!==nn&&Mt(e,a)||gd(t,a)||(s=i[0])&&Mt(s,a)||Mt(o,a)||Mt(bs,a)||Mt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function sg(e){return ct(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $f=!0;function dP(e){const t=up(e),n=e.proxy,o=e.ctx;$f=!1,t.beforeCreate&&lg(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:m,beforeDestroy:b,beforeUnmount:w,destroyed:C,unmounted:_,render:S,renderTracked:y,renderTriggered:x,errorCaptured:P,serverPrefetch:k,expose:T,inheritAttrs:R,components:E,directives:q,filters:D}=t;if(c&&fP(c,o,null),a)for(const K in a){const V=a[K];pt(V)&&(o[K]=V.bind(n))}if(r){const K=r.call(n,n);Qt(K)&&(e.data=to(K))}if($f=!0,i)for(const K in i){const V=i[K],ae=pt(V)?V.bind(n,n):pt(V.get)?V.get.bind(n,n):Gn,pe=!pt(V)&&pt(V.set)?V.set.bind(n):Gn,Z=I({get:ae,set:pe});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>Z.value,set:N=>Z.value=N})}if(s)for(const K in s)qy(s[K],o,n,K);if(l){const K=pt(l)?l.call(n):l;Reflect.ownKeys(K).forEach(V=>{at(V,K[V])})}u&&lg(u,e,"c");function M(K,V){ct(V)?V.forEach(ae=>K(ae.bind(n))):V&&K(V.bind(n))}if(M(hn,d),M(jt,f),M(jy,h),M(lp,p),M(sp,g),M(Xc,m),M(cP,P),M(lP,y),M(sP,x),M(on,w),M(Oa,_),M(aP,k),ct(T))if(T.length){const K=e.exposed||(e.exposed={});T.forEach(V=>{Object.defineProperty(K,V,{get:()=>n[V],set:ae=>n[V]=ae})})}else e.exposed||(e.exposed={});S&&e.render===Gn&&(e.render=S),R!=null&&(e.inheritAttrs=R),E&&(e.components=E),q&&(e.directives=q)}function fP(e,t,n=Gn){ct(e)&&(e=If(e));for(const o in e){const r=e[o];let i;Qt(r)?"default"in r?i=Ve(r.from||o,r.default,!0):i=Ve(r.from||o):i=Ve(r),cn(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function lg(e,t,n){so(ct(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function qy(e,t,n,o){const r=o.includes(".")?sx(n,o):()=>n[o];if(ln(e)){const i=t[e];pt(i)&&ft(r,i)}else if(pt(e))ft(r,e.bind(n));else if(Qt(e))if(ct(e))e.forEach(i=>qy(i,t,n,o));else{const i=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(i)&&ft(r,i,e)}}function up(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>pc(l,c,a,!0)),pc(l,t,a)),Qt(t)&&i.set(t,l),l}function pc(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&pc(e,i,n,!0),r&&r.forEach(a=>pc(e,a,n,!0));for(const a in t)if(!(o&&a==="expose")){const s=hP[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const hP={data:cg,props:ug,emits:ug,methods:ds,computed:ds,beforeCreate:In,created:In,beforeMount:In,mounted:In,beforeUpdate:In,updated:In,beforeDestroy:In,beforeUnmount:In,destroyed:In,unmounted:In,activated:In,deactivated:In,errorCaptured:In,serverPrefetch:In,components:ds,directives:ds,watch:mP,provide:cg,inject:pP};function cg(e,t){return t?e?function(){return wn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function pP(e,t){return ds(If(e),If(t))}function If(e){if(ct(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(o&&o.proxy):t}}function bP(){return!!(Sn||xn||_i)}const Gy={},Xy=()=>Object.create(Gy),Yy=e=>Object.getPrototypeOf(e)===Gy;function yP(e,t,n,o=!1){const r={},i=Xy();e.propsDefaults=Object.create(null),Qy(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=o?r:Py(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xP(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,s=It(r),[l]=e.propsOptions;let c=!1;if((o||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=Jy(d,t,!0);wn(a,f),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Qt(e)&&o.set(e,da),da;if(ct(i))for(let u=0;ue[0]==="_"||e==="$stable",dp=e=>ct(e)?e.map(Bo):[Bo(e)],wP=(e,t,n)=>{if(t._n)return t;const o=me((...r)=>dp(t(...r)),n);return o._c=!1,o},ex=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Zy(r))continue;const i=e[r];if(pt(i))t[r]=wP(r,i,o);else if(i!=null){const a=dp(i);t[r]=()=>a}}},tx=(e,t)=>{const n=dp(t);e.slots.default=()=>n},nx=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},_P=(e,t,n)=>{const o=e.slots=Xy();if(e.vnode.shapeFlag&32){const r=t._;r?(nx(o,t,n),n&&ly(o,"_",r,!0)):ex(t,o)}else t&&tx(e,t)},SP=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,a=nn;if(o.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:nx(r,t,n):(i=!t.$stable,ex(t,r)),a=t}else t&&(tx(e,t),a={default:1});if(i)for(const s in r)!Zy(s)&&a[s]==null&&delete r[s]};function Mf(e,t,n,o,r=!1){if(ct(e)){e.forEach((f,h)=>Mf(f,t&&(ct(t)?t[h]:t),n,o,r));return}if(vs(o)&&!r)return;const i=o.shapeFlag&4?nu(o.component):o.el,a=r?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===nn?s.refs={}:s.refs,d=s.setupState;if(c!=null&&c!==l&&(ln(c)?(u[c]=null,Mt(d,c)&&(d[c]=null)):cn(c)&&(c.value=null)),pt(l))Lr(l,s,12,[a,u]);else{const f=ln(l),h=cn(l);if(f||h){const p=()=>{if(e.f){const g=f?Mt(d,l)?d[l]:u[l]:l.value;r?ct(g)&&qh(g,i):ct(g)?g.includes(i)||g.push(i):f?(u[l]=[i],Mt(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=a,Mt(d,l)&&(d[l]=a)):h&&(l.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,Hn(p,n)):p()}}}const ox=Symbol("_vte"),kP=e=>e.__isTeleport,ys=e=>e&&(e.disabled||e.disabled===""),fg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,hg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zf=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},PP={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,a,s,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:m}}=c,b=ys(t.props);let{shapeFlag:w,children:C,dynamicChildren:_}=t;if(e==null){const S=t.el=g(""),y=t.anchor=g("");h(S,n,o),h(y,n,o);const x=t.target=zf(t.props,p),P=ix(x,t,g,h);x&&(a==="svg"||fg(x)?a="svg":(a==="mathml"||hg(x))&&(a="mathml"));const k=(T,R)=>{w&16&&u(C,T,R,r,i,a,s,l)};b?k(n,y):x&&k(x,P)}else{t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,y=t.target=e.target,x=t.targetAnchor=e.targetAnchor,P=ys(e.props),k=P?n:y,T=P?S:x;if(a==="svg"||fg(y)?a="svg":(a==="mathml"||hg(y))&&(a="mathml"),_?(f(e.dynamicChildren,_,k,r,i,a,s),fp(e,t,!0)):l||d(e,t,k,T,r,i,a,s,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Pl(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=zf(t.props,p);R&&Pl(t,R,null,c,0)}else P&&Pl(t,y,x,c,1)}rx(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),i&&r(l),a&16){const h=i||!ys(f);for(let p=0;p{if(F===A)return;F&&!pi(F,A)&&(we=X(F),N(F,oe,ve,!0),F=null),A.patchFlag===-2&&(H=!1,A.dynamicChildren=null);const{type:te,ref:Ce,shapeFlag:de}=A;switch(te){case Ma:m(F,A,re,we);break;case _n:b(F,A,re,we);break;case yd:F==null&&w(A,re,we,ke);break;case rt:E(F,A,re,we,oe,ve,ke,$,H);break;default:de&1?S(F,A,re,we,oe,ve,ke,$,H):de&6?q(F,A,re,we,oe,ve,ke,$,H):(de&64||de&128)&&te.process(F,A,re,we,oe,ve,ke,$,H,be)}Ce!=null&&oe&&Mf(Ce,F&&F.ref,ve,A||F,!A)},m=(F,A,re,we)=>{if(F==null)o(A.el=s(A.children),re,we);else{const oe=A.el=F.el;A.children!==F.children&&c(oe,A.children)}},b=(F,A,re,we)=>{F==null?o(A.el=l(A.children||""),re,we):A.el=F.el},w=(F,A,re,we)=>{[F.el,F.anchor]=p(F.children,A,re,we,F.el,F.anchor)},C=({el:F,anchor:A},re,we)=>{let oe;for(;F&&F!==A;)oe=f(F),o(F,re,we),F=oe;o(A,re,we)},_=({el:F,anchor:A})=>{let re;for(;F&&F!==A;)re=f(F),r(F),F=re;r(A)},S=(F,A,re,we,oe,ve,ke,$,H)=>{A.type==="svg"?ke="svg":A.type==="math"&&(ke="mathml"),F==null?y(A,re,we,oe,ve,ke,$,H):k(F,A,oe,ve,ke,$,H)},y=(F,A,re,we,oe,ve,ke,$)=>{let H,te;const{props:Ce,shapeFlag:de,transition:ue,dirs:ie}=F;if(H=F.el=a(F.type,ve,Ce&&Ce.is,Ce),de&8?u(H,F.children):de&16&&P(F.children,H,null,we,oe,vd(F,ve),ke,$),ie&&ri(F,null,we,"created"),x(H,F,F.scopeId,ke,we),Ce){for(const Fe in Ce)Fe!=="value"&&!ms(Fe)&&i(H,Fe,null,Ce[Fe],ve,we);"value"in Ce&&i(H,"value",null,Ce.value,ve),(te=Ce.onVnodeBeforeMount)&&Fo(te,we,F)}ie&&ri(F,null,we,"beforeMount");const fe=AP(oe,ue);fe&&ue.beforeEnter(H),o(H,A,re),((te=Ce&&Ce.onVnodeMounted)||fe||ie)&&Hn(()=>{te&&Fo(te,we,F),fe&&ue.enter(H),ie&&ri(F,null,we,"mounted")},oe)},x=(F,A,re,we,oe)=>{if(re&&h(F,re),we)for(let ve=0;ve{for(let te=H;te{const $=A.el=F.el;let{patchFlag:H,dynamicChildren:te,dirs:Ce}=A;H|=F.patchFlag&16;const de=F.props||nn,ue=A.props||nn;let ie;if(re&&ii(re,!1),(ie=ue.onVnodeBeforeUpdate)&&Fo(ie,re,A,F),Ce&&ri(A,F,re,"beforeUpdate"),re&&ii(re,!0),(de.innerHTML&&ue.innerHTML==null||de.textContent&&ue.textContent==null)&&u($,""),te?T(F.dynamicChildren,te,$,re,we,vd(A,oe),ve):ke||V(F,A,$,null,re,we,vd(A,oe),ve,!1),H>0){if(H&16)R($,de,ue,re,oe);else if(H&2&&de.class!==ue.class&&i($,"class",null,ue.class,oe),H&4&&i($,"style",de.style,ue.style,oe),H&8){const fe=A.dynamicProps;for(let Fe=0;Fe{ie&&Fo(ie,re,A,F),Ce&&ri(A,F,re,"updated")},we)},T=(F,A,re,we,oe,ve,ke)=>{for(let $=0;${if(A!==re){if(A!==nn)for(const ve in A)!ms(ve)&&!(ve in re)&&i(F,ve,A[ve],null,oe,we);for(const ve in re){if(ms(ve))continue;const ke=re[ve],$=A[ve];ke!==$&&ve!=="value"&&i(F,ve,$,ke,oe,we)}"value"in re&&i(F,"value",A.value,re.value,oe)}},E=(F,A,re,we,oe,ve,ke,$,H)=>{const te=A.el=F?F.el:s(""),Ce=A.anchor=F?F.anchor:s("");let{patchFlag:de,dynamicChildren:ue,slotScopeIds:ie}=A;ie&&($=$?$.concat(ie):ie),F==null?(o(te,re,we),o(Ce,re,we),P(A.children||[],re,Ce,oe,ve,ke,$,H)):de>0&&de&64&&ue&&F.dynamicChildren?(T(F.dynamicChildren,ue,re,oe,ve,ke,$),(A.key!=null||oe&&A===oe.subTree)&&fp(F,A,!0)):V(F,A,re,Ce,oe,ve,ke,$,H)},q=(F,A,re,we,oe,ve,ke,$,H)=>{A.slotScopeIds=$,F==null?A.shapeFlag&512?oe.ctx.activate(A,re,we,ke,H):D(A,re,we,oe,ve,ke,H):B(F,A,H)},D=(F,A,re,we,oe,ve,ke)=>{const $=F.component=GP(F,we,oe);if(Gc(F)&&($.ctx.renderer=be),XP($,!1,ke),$.asyncDep){if(oe&&oe.registerDep($,M,ke),!F.el){const H=$.subTree=se(_n);b(null,H,A,re)}}else M($,F,A,re,oe,ve,ke)},B=(F,A,re)=>{const we=A.component=F.component;if(BP(F,A,re))if(we.asyncDep&&!we.asyncResolved){K(we,A,re);return}else we.next=A,eP(we.update),we.effect.dirty=!0,we.update();else A.el=F.el,we.vnode=A},M=(F,A,re,we,oe,ve,ke)=>{const $=()=>{if(F.isMounted){let{next:Ce,bu:de,u:ue,parent:ie,vnode:fe}=F;{const et=ax(F);if(et){Ce&&(Ce.el=fe.el,K(F,Ce,ke)),et.asyncDep.then(()=>{F.isUnmounted||$()});return}}let Fe=Ce,De;ii(F,!1),Ce?(Ce.el=fe.el,K(F,Ce,ke)):Ce=fe,de&&Zl(de),(De=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Fo(De,ie,Ce,fe),ii(F,!0);const Me=bd(F),Ne=F.subTree;F.subTree=Me,g(Ne,Me,d(Ne.el),X(Ne),F,oe,ve),Ce.el=Me.el,Fe===null&&NP(F,Me.el),ue&&Hn(ue,oe),(De=Ce.props&&Ce.props.onVnodeUpdated)&&Hn(()=>Fo(De,ie,Ce,fe),oe)}else{let Ce;const{el:de,props:ue}=A,{bm:ie,m:fe,parent:Fe}=F,De=vs(A);if(ii(F,!1),ie&&Zl(ie),!De&&(Ce=ue&&ue.onVnodeBeforeMount)&&Fo(Ce,Fe,A),ii(F,!0),de&&je){const Me=()=>{F.subTree=bd(F),je(de,F.subTree,F,oe,null)};De?A.type.__asyncLoader().then(()=>!F.isUnmounted&&Me()):Me()}else{const Me=F.subTree=bd(F);g(null,Me,re,we,F,oe,ve),A.el=Me.el}if(fe&&Hn(fe,oe),!De&&(Ce=ue&&ue.onVnodeMounted)){const Me=A;Hn(()=>Fo(Ce,Fe,Me),oe)}(A.shapeFlag&256||Fe&&vs(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&F.a&&Hn(F.a,oe),F.isMounted=!0,A=re=we=null}},H=F.effect=new Yh($,Gn,()=>ip(te),F.scope),te=F.update=()=>{H.dirty&&H.run()};te.i=F,te.id=F.uid,ii(F,!0),te()},K=(F,A,re)=>{A.component=F;const we=F.vnode.props;F.vnode=A,F.next=null,xP(F,A.props,we,re),SP(F,A.children,re),Kr(),rg(F),Gr()},V=(F,A,re,we,oe,ve,ke,$,H=!1)=>{const te=F&&F.children,Ce=F?F.shapeFlag:0,de=A.children,{patchFlag:ue,shapeFlag:ie}=A;if(ue>0){if(ue&128){pe(te,de,re,we,oe,ve,ke,$,H);return}else if(ue&256){ae(te,de,re,we,oe,ve,ke,$,H);return}}ie&8?(Ce&16&&ne(te,oe,ve),de!==te&&u(re,de)):Ce&16?ie&16?pe(te,de,re,we,oe,ve,ke,$,H):ne(te,oe,ve,!0):(Ce&8&&u(re,""),ie&16&&P(de,re,we,oe,ve,ke,$,H))},ae=(F,A,re,we,oe,ve,ke,$,H)=>{F=F||da,A=A||da;const te=F.length,Ce=A.length,de=Math.min(te,Ce);let ue;for(ue=0;ueCe?ne(F,oe,ve,!0,!1,de):P(A,re,we,oe,ve,ke,$,H,de)},pe=(F,A,re,we,oe,ve,ke,$,H)=>{let te=0;const Ce=A.length;let de=F.length-1,ue=Ce-1;for(;te<=de&&te<=ue;){const ie=F[te],fe=A[te]=H?Ir(A[te]):Bo(A[te]);if(pi(ie,fe))g(ie,fe,re,null,oe,ve,ke,$,H);else break;te++}for(;te<=de&&te<=ue;){const ie=F[de],fe=A[ue]=H?Ir(A[ue]):Bo(A[ue]);if(pi(ie,fe))g(ie,fe,re,null,oe,ve,ke,$,H);else break;de--,ue--}if(te>de){if(te<=ue){const ie=ue+1,fe=ieue)for(;te<=de;)N(F[te],oe,ve,!0),te++;else{const ie=te,fe=te,Fe=new Map;for(te=fe;te<=ue;te++){const Q=A[te]=H?Ir(A[te]):Bo(A[te]);Q.key!=null&&Fe.set(Q.key,te)}let De,Me=0;const Ne=ue-fe+1;let et=!1,$e=0;const Xe=new Array(Ne);for(te=0;te=Ne){N(Q,oe,ve,!0);continue}let ye;if(Q.key!=null)ye=Fe.get(Q.key);else for(De=fe;De<=ue;De++)if(Xe[De-fe]===0&&pi(Q,A[De])){ye=De;break}ye===void 0?N(Q,oe,ve,!0):(Xe[ye-fe]=te+1,ye>=$e?$e=ye:et=!0,g(Q,A[ye],re,null,oe,ve,ke,$,H),Me++)}const gt=et?$P(Xe):da;for(De=gt.length-1,te=Ne-1;te>=0;te--){const Q=fe+te,ye=A[Q],Ae=Q+1{const{el:ve,type:ke,transition:$,children:H,shapeFlag:te}=F;if(te&6){Z(F.component.subTree,A,re,we);return}if(te&128){F.suspense.move(A,re,we);return}if(te&64){ke.move(F,A,re,be);return}if(ke===rt){o(ve,A,re);for(let de=0;de$.enter(ve),oe);else{const{leave:de,delayLeave:ue,afterLeave:ie}=$,fe=()=>o(ve,A,re),Fe=()=>{de(ve,()=>{fe(),ie&&ie()})};ue?ue(ve,fe,Fe):Fe()}else o(ve,A,re)},N=(F,A,re,we=!1,oe=!1)=>{const{type:ve,props:ke,ref:$,children:H,dynamicChildren:te,shapeFlag:Ce,patchFlag:de,dirs:ue,cacheIndex:ie}=F;if(de===-2&&(oe=!1),$!=null&&Mf($,null,re,F,!0),ie!=null&&(A.renderCache[ie]=void 0),Ce&256){A.ctx.deactivate(F);return}const fe=Ce&1&&ue,Fe=!vs(F);let De;if(Fe&&(De=ke&&ke.onVnodeBeforeUnmount)&&Fo(De,A,F),Ce&6)G(F.component,re,we);else{if(Ce&128){F.suspense.unmount(re,we);return}fe&&ri(F,null,A,"beforeUnmount"),Ce&64?F.type.remove(F,A,re,be,we):te&&!te.hasOnce&&(ve!==rt||de>0&&de&64)?ne(te,A,re,!1,!0):(ve===rt&&de&384||!oe&&Ce&16)&&ne(H,A,re),we&&O(F)}(Fe&&(De=ke&&ke.onVnodeUnmounted)||fe)&&Hn(()=>{De&&Fo(De,A,F),fe&&ri(F,null,A,"unmounted")},re)},O=F=>{const{type:A,el:re,anchor:we,transition:oe}=F;if(A===rt){ee(re,we);return}if(A===yd){_(F);return}const ve=()=>{r(re),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(F.shapeFlag&1&&oe&&!oe.persisted){const{leave:ke,delayLeave:$}=oe,H=()=>ke(re,ve);$?$(F.el,ve,H):H()}else ve()},ee=(F,A)=>{let re;for(;F!==A;)re=f(F),r(F),F=re;r(A)},G=(F,A,re)=>{const{bum:we,scope:oe,update:ve,subTree:ke,um:$,m:H,a:te}=F;pg(H),pg(te),we&&Zl(we),oe.stop(),ve&&(ve.active=!1,N(ke,F,A,re)),$&&Hn($,A),Hn(()=>{F.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},ne=(F,A,re,we=!1,oe=!1,ve=0)=>{for(let ke=ve;ke{if(F.shapeFlag&6)return X(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const A=f(F.anchor||F.el),re=A&&A[ox];return re?f(re):A};let ce=!1;const L=(F,A,re)=>{F==null?A._vnode&&N(A._vnode,null,null,!0):g(A._vnode||null,F,A,null,null,null,re),A._vnode=F,ce||(ce=!0,rg(),My(),ce=!1)},be={p:g,um:N,m:Z,r:O,mt:D,mc:P,pc:V,pbc:T,n:X,o:e};let Oe,je;return t&&([Oe,je]=t(be)),{render:L,hydrate:Oe,createApp:vP(L,Oe)}}function vd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ii({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function AP(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fp(e,t,n=!1){const o=e.children,r=t.children;if(ct(o)&&ct(r))for(let i=0;i>1,e[n[s]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function ax(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ax(t)}function pg(e){if(e)for(let t=0;tVe(IP);function Yt(e,t){return hp(e,null,t)}const Tl={};function ft(e,t,n){return hp(e,t,n)}function hp(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:a,onTrigger:s}=nn){if(t&&i){const y=t;t=(...x)=>{y(...x),S()}}const l=Sn,c=y=>o===!0?y:zr(y,o===!1?1:void 0);let u,d=!1,f=!1;if(cn(e)?(u=()=>e.value,d=ba(e)):wi(e)?(u=()=>c(e),d=!0):ct(e)?(f=!0,d=e.some(y=>wi(y)||ba(y)),u=()=>e.map(y=>{if(cn(y))return y.value;if(wi(y))return c(y);if(pt(y))return Lr(y,l,2)})):pt(e)?t?u=()=>Lr(e,l,2):u=()=>(h&&h(),so(e,l,3,[p])):u=Gn,t&&o){const y=u;u=()=>zr(y())}let h,p=y=>{h=C.onStop=()=>{Lr(y,l,4),h=C.onStop=void 0}},g;if(tu)if(p=Gn,t?n&&so(t,l,3,[u(),f?[]:void 0,p]):u(),r==="sync"){const y=OP();g=y.__watcherHandles||(y.__watcherHandles=[])}else return Gn;let m=f?new Array(e.length).fill(Tl):Tl;const b=()=>{if(!(!C.active||!C.dirty))if(t){const y=C.run();(o||d||(f?y.some((x,P)=>Br(x,m[P])):Br(y,m)))&&(h&&h(),so(t,l,3,[y,m===Tl?void 0:f&&m[0]===Tl?[]:m,p]),m=y)}else C.run()};b.allowRecurse=!!t;let w;r==="sync"?w=b:r==="post"?w=()=>Hn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),w=()=>ip(b));const C=new Yh(u,Gn,w),_=Xh(),S=()=>{C.stop(),_&&qh(_.effects,C)};return t?n?b():m=C.run():r==="post"?Hn(C.run.bind(C),l&&l.suspense):C.run(),g&&g.push(S),S}function MP(e,t,n){const o=this.proxy,r=ln(e)?e.includes(".")?sx(o,e):()=>o[e]:e.bind(o,o);let i;pt(t)?i=t:(i=t.handler,n=t);const a=ol(this),s=hp(r,i.bind(o),n);return a(),s}function sx(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r{zr(o,t,n)});else if(sy(e)){for(const o in e)zr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&zr(e[o],t,n)}return e}const zP=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Eo(t)}Modifiers`]||e[`${qr(t)}Modifiers`];function FP(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||nn;let r=n;const i=t.startsWith("update:"),a=i&&zP(o,t.slice(7));a&&(a.trim&&(r=n.map(u=>ln(u)?u.trim():u)),a.number&&(r=n.map(kf)));let s,l=o[s=hd(t)]||o[s=hd(Eo(t))];!l&&i&&(l=o[s=hd(qr(t))]),l&&so(l,e,6,r);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,so(c,e,6,r)}}function lx(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let a={},s=!1;if(!pt(e)){const l=c=>{const u=lx(c,t,!0);u&&(s=!0,wn(a,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Qt(e)&&o.set(e,null),null):(ct(i)?i.forEach(l=>a[l]=null):wn(a,i),Qt(e)&&o.set(e,a),a)}function eu(e,t){return!e||!jc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(e,t[0].toLowerCase()+t.slice(1))||Mt(e,qr(t))||Mt(e,t))}function bd(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,m=hc(e);let b,w;try{if(n.shapeFlag&4){const _=r||o,S=_;b=Bo(c.call(S,_,u,d,h,f,p)),w=s}else{const _=t;b=Bo(_.length>1?_(d,{attrs:s,slots:a,emit:l}):_(d,null)),w=t.props?s:DP(s)}}catch(_){xs.length=0,Kc(_,e,1),b=se(_n)}let C=b;if(w&&g!==!1){const _=Object.keys(w),{shapeFlag:S}=C;_.length&&S&7&&(i&&_.some(Wh)&&(w=LP(w,i)),C=fo(C,w,!1,!0))}return n.dirs&&(C=fo(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),b=C,hc(m),b}const DP=e=>{let t;for(const n in e)(n==="class"||n==="style"||jc(n))&&((t||(t={}))[n]=e[n]);return t},LP=(e,t)=>{const n={};for(const o in e)(!Wh(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function BP(e,t,n){const{props:o,children:r,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?mg(o,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function jP(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):tP(e)}const rt=Symbol.for("v-fgt"),Ma=Symbol.for("v-txt"),_n=Symbol.for("v-cmt"),yd=Symbol.for("v-stc"),xs=[];let Xn=null;function ge(e=!1){xs.push(Xn=e?null:[])}function UP(){xs.pop(),Xn=xs[xs.length-1]||null}let Bs=1;function gg(e){Bs+=e,e<0&&Xn&&(Xn.hasOnce=!0)}function cx(e){return e.dynamicChildren=Bs>0?Xn||da:null,UP(),Bs>0&&Xn&&Xn.push(e),e}function ze(e,t,n,o,r,i){return cx(Y(e,t,n,o,r,i,!0))}function We(e,t,n,o,r){return cx(se(e,t,n,o,r,!0))}function Ns(e){return e?e.__v_isVNode===!0:!1}function pi(e,t){return e.type===t.type&&e.key===t.key}const ux=({key:e})=>e??null,ec=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ln(e)||cn(e)||pt(e)?{i:xn,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,i=e===rt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ux(t),ref:t&&ec(t),scopeId:Fy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:xn};return s?(pp(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ln(n)?8:16),Bs>0&&!a&&Xn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Xn.push(l),l}const se=VP;function VP(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Uy)&&(e=_n),Ns(e)){const s=fo(e,t,!0);return n&&pp(s,n),Bs>0&&!i&&Xn&&(s.shapeFlag&6?Xn[Xn.indexOf(e)]=s:Xn.push(s)),s.patchFlag=-2,s}if(eT(e)&&(e=e.__vccOpts),t){t=WP(t);let{class:s,style:l}=t;s&&!ln(s)&&(t.class=qn(s)),Qt(l)&&(Ty(l)&&!ct(l)&&(l=wn({},l)),t.style=Fi(l))}const a=ln(e)?1:HP(e)?128:kP(e)?64:Qt(e)?4:pt(e)?2:0;return Y(e,t,n,o,r,a,i,!0)}function WP(e){return e?Ty(e)||Yy(e)?wn({},e):e:null}function fo(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?Ln(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ux(c),ref:t&&t.ref?n&&i?ct(i)?i.concat(ec(t)):[i,ec(t)]:ec(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&ya(u,l.clone(u)),u}function nt(e=" ",t=0){return se(Ma,null,e,t)}function Ct(e="",t=!1){return t?(ge(),We(_n,null,e)):se(_n,null,e)}function Bo(e){return e==null||typeof e=="boolean"?se(_n):ct(e)?se(rt,null,e.slice()):typeof e=="object"?Ir(e):se(Ma,null,String(e))}function Ir(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function pp(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ct(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),pp(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Yy(t)?t._ctx=xn:r===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),o&64?(n=16,t=[nt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ln(...e){const t={};for(let n=0;nSn||xn;let mc,Ff;{const e=cy(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};mc=t("__VUE_INSTANCE_SETTERS__",n=>Sn=n),Ff=t("__VUE_SSR_SETTERS__",n=>tu=n)}const ol=e=>{const t=Sn;return mc(e),e.scope.on(),()=>{e.scope.off(),mc(t)}},vg=()=>{Sn&&Sn.scope.off(),mc(null)};function dx(e){return e.vnode.shapeFlag&4}let tu=!1;function XP(e,t=!1,n=!1){t&&Ff(t);const{props:o,children:r}=e.vnode,i=dx(e);yP(e,o,i,t),_P(e,r,n);const a=i?YP(e,t):void 0;return t&&Ff(!1),a}function YP(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uP);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?JP(e):null,i=ol(e);Kr();const a=Lr(o,e,0,[e.props,r]);if(Gr(),i(),iy(a)){if(a.then(vg,vg),t)return a.then(s=>{bg(e,s,t)}).catch(s=>{Kc(s,e,0)});e.asyncDep=a}else bg(e,a,t)}else fx(e,t)}function bg(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qt(t)&&(e.setupState=Ay(t)),fx(e,n)}let yg;function fx(e,t,n){const o=e.type;if(!e.render){if(!t&&yg&&!o.render){const r=o.template||up(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=o,c=wn(wn({isCustomElement:i,delimiters:s},a),l);o.render=yg(r,c)}}e.render=o.render||Gn}{const r=ol(e);Kr();try{dP(e)}finally{Gr(),r()}}}const QP={get(e,t){return jn(e,"get",""),e[t]}};function JP(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,QP),slots:e.slots,emit:e.emit,expose:t}}function nu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ay(Ms(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}})):e.proxy}function ZP(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function eT(e){return pt(e)&&"__vccOpts"in e}const I=(e,t)=>V3(e,t,tu);function v(e,t,n){const o=arguments.length;return o===2?Qt(t)&&!ct(t)?Ns(t)?se(e,null,[t]):se(e,t):se(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Ns(n)&&(n=[n]),se(e,t,n))}const tT="3.4.38";/** +**/function Br(e,t,n,o){try{return o?e(...o):e()}catch(r){Jc(r,t,n)}}function so(e,t,n,o){if(pt(e)){const r=Br(e,t,n,o);return r&&hy(r)&&r.catch(i=>{Jc(i,t,n)}),r}if(ct(e)){const r=[];for(let i=0;i>>1,r=En[o],i=Ns(r);iNo&&En.splice(t,1)}function uP(e){ct(e)?ma.push(...e):(!Er||!Er.includes(e,e.allowRecurse?mi+1:mi))&&ma.push(e),Hy()}function dg(e,t,n=Bs?No+1:0){for(;nNs(n)-Ns(o));if(ma.length=0,Er){Er.push(...t);return}for(Er=t,mi=0;mie.id==null?1/0:e.id,dP=(e,t)=>{const n=Ns(e)-Ns(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uy(e){zf=!1,Bs=!0,En.sort(dP);const t=Gn;try{for(No=0;No{o._d&&_g(-1);const i=bc(t);let a;try{a=e(...r)}finally{bc(i),o._d&&_g(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function dn(e,t){if(xn===null)return e;const n=su(xn),o=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),on(()=>{e.isUnmounting=!0}),e}const ro=[Function,Array],qy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ro,onEnter:ro,onAfterEnter:ro,onEnterCancelled:ro,onBeforeLeave:ro,onLeave:ro,onAfterLeave:ro,onLeaveCancelled:ro,onBeforeAppear:ro,onAppear:ro,onAfterAppear:ro,onAppearCancelled:ro},Ky=e=>{const t=e.subTree;return t.component?Ky(t.component):t},fP={name:"BaseTransition",props:qy,setup(e,{slots:t}){const n=no(),o=Wy();return()=>{const r=t.default&&hp(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const f of r)if(f.type!==_n){i=f;break}}const a=It(e),{mode:s}=a;if(o.isLeaving)return xd(i);const l=fg(i);if(!l)return xd(i);let c=Hs(l,a,o,n,f=>c=f);Ca(l,c);const u=n.subTree,d=u&&fg(u);if(d&&d.type!==_n&&!gi(l,d)&&Ky(n).type!==_n){const f=Hs(d,a,o,n);if(Ca(d,f),s==="out-in"&&l.type!==_n)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},xd(i);s==="in-out"&&l.type!==_n&&(f.delayLeave=(h,p,g)=>{const m=Gy(o,d);m[String(d.key)]=d,h[$r]=()=>{p(),h[$r]=void 0,delete c.delayedLeave},c.delayedLeave=g})}return i}}},hP=fP;function Gy(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Hs(e,t,n,o,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:b,onAfterAppear:w,onAppearCancelled:C}=t,_=String(e.key),S=Gy(n,e),y=(P,T)=>{P&&so(P,o,9,T)},x=(P,T)=>{const $=T[1];y(P,T),ct(P)?P.every(E=>E.length<=1)&&$():P.length<=1&&$()},k={mode:a,persisted:s,beforeEnter(P){let T=l;if(!n.isMounted)if(i)T=m||l;else return;P[$r]&&P[$r](!0);const $=S[_];$&&gi(e,$)&&$.el[$r]&&$.el[$r](),y(T,[P])},enter(P){let T=c,$=u,E=d;if(!n.isMounted)if(i)T=b||c,$=w||u,E=C||d;else return;let G=!1;const B=P[Rl]=D=>{G||(G=!0,D?y(E,[P]):y($,[P]),k.delayedLeave&&k.delayedLeave(),P[Rl]=void 0)};T?x(T,[P,B]):B()},leave(P,T){const $=String(e.key);if(P[Rl]&&P[Rl](!0),n.isUnmounting)return T();y(f,[P]);let E=!1;const G=P[$r]=B=>{E||(E=!0,T(),B?y(g,[P]):y(p,[P]),P[$r]=void 0,S[$]===e&&delete S[$])};S[$]=e,h?x(h,[P,G]):G()},clone(P){const T=Hs(P,t,n,o,r);return r&&r(T),T}};return k}function xd(e){if(Zc(e))return e=fo(e),e.children=null,e}function fg(e){if(!Zc(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pt(n.default))return n.default()}}function Ca(e,t){e.shapeFlag&6&&e.component?Ca(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hp(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iwn({name:e.name},t,{setup:e}))():e}const xs=e=>!!e.type.__asyncLoader,Zc=e=>e.type.__isKeepAlive;function pp(e,t){Xy(e,"a",t)}function eu(e,t){Xy(e,"da",t)}function Xy(e,t,n=Sn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(tu(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zc(r.parent.vnode)&&pP(o,t,n,r),r=r.parent}}function pP(e,t,n,o){const r=tu(t,e,o,!0);Fa(()=>{Zh(o[t],r)},n)}function tu(e,t,n=Sn,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Xr();const s=al(n),l=so(t,n,e,a);return s(),Yr(),l});return o?r.unshift(i):r.push(i),i}}const fr=e=>(t,n=Sn)=>{(!au||e==="sp")&&tu(e,(...o)=>t(...o),n)},hn=fr("bm"),jt=fr("m"),Yy=fr("bu"),mp=fr("u"),on=fr("bum"),Fa=fr("um"),mP=fr("sp"),gP=fr("rtg"),vP=fr("rtc");function bP(e,t=Sn){tu("ec",e,t)}const gp="components";function nu(e,t){return Jy(gp,e,!0,t)||e}const Qy=Symbol.for("v-ndc");function wa(e){return ln(e)?Jy(gp,e,!1)||e:e||Qy}function Jy(e,t,n=!0,o=!1){const r=xn||Sn;if(r){const i=r.type;if(e===gp){const s=lT(i,!1);if(s&&(s===t||s===Ao(t)||s===Yc(Ao(t))))return i}const a=hg(r[e]||i[e],t)||hg(r.appContext[e],t);return!a&&o?i:a}}function hg(e,t){return e&&(e[t]||e[Ao(t)]||e[Yc(Ao(t))])}function Fn(e,t,n,o){let r;const i=n&&n[o];if(ct(e)||ln(e)){r=new Array(e.length);for(let a=0,s=e.length;at(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,l=a.length;sUs(t)?!(t.type===_n||t.type===rt&&!Zy(t.children)):!0)?e:null}const Ff=e=>e?yx(e)?su(e):Ff(e.parent):null,Cs=wn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ff(e.parent),$root:e=>Ff(e.root),$emit:e=>e.emit,$options:e=>vp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,fp(e.update)}),$nextTick:e=>e.n||(e.n=Ht.bind(e.proxy)),$watch:e=>UP.bind(e)}),Cd=(e,t)=>e!==nn&&!e.__isScriptSetup&&Mt(e,t),yP={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Cd(o,t))return a[t]=1,o[t];if(r!==nn&&Mt(r,t))return a[t]=2,r[t];if((c=e.propsOptions[0])&&Mt(c,t))return a[t]=3,i[t];if(n!==nn&&Mt(n,t))return a[t]=4,n[t];Df&&(a[t]=0)}}const u=Cs[t];let d,f;if(u)return t==="$attrs"&&jn(e.attrs,"get",""),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==nn&&Mt(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,Mt(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Cd(r,t)?(r[t]=n,!0):o!==nn&&Mt(o,t)?(o[t]=n,!0):Mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},a){let s;return!!n[a]||e!==nn&&Mt(e,a)||Cd(t,a)||(s=i[0])&&Mt(s,a)||Mt(o,a)||Mt(Cs,a)||Mt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function pg(e){return ct(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Df=!0;function xP(e){const t=vp(e),n=e.proxy,o=e.ctx;Df=!1,t.beforeCreate&&mg(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:m,beforeDestroy:b,beforeUnmount:w,destroyed:C,unmounted:_,render:S,renderTracked:y,renderTriggered:x,errorCaptured:k,serverPrefetch:P,expose:T,inheritAttrs:$,components:E,directives:G,filters:B}=t;if(c&&CP(c,o,null),a)for(const X in a){const V=a[X];pt(V)&&(o[X]=V.bind(n))}if(r){const X=r.call(n,n);Qt(X)&&(e.data=to(X))}if(Df=!0,i)for(const X in i){const V=i[X],ae=pt(V)?V.bind(n,n):pt(V.get)?V.get.bind(n,n):Gn,ue=!pt(V)&&pt(V.set)?V.set.bind(n):Gn,ee=M({get:ae,set:ue});Object.defineProperty(o,X,{enumerable:!0,configurable:!0,get:()=>ee.value,set:R=>ee.value=R})}if(s)for(const X in s)ex(s[X],o,n,X);if(l){const X=pt(l)?l.call(n):l;Reflect.ownKeys(X).forEach(V=>{at(V,X[V])})}u&&mg(u,e,"c");function L(X,V){ct(V)?V.forEach(ae=>X(ae.bind(n))):V&&X(V.bind(n))}if(L(hn,d),L(jt,f),L(Yy,h),L(mp,p),L(pp,g),L(eu,m),L(bP,k),L(vP,y),L(gP,x),L(on,w),L(Fa,_),L(mP,P),ct(T))if(T.length){const X=e.exposed||(e.exposed={});T.forEach(V=>{Object.defineProperty(X,V,{get:()=>n[V],set:ae=>n[V]=ae})})}else e.exposed||(e.exposed={});S&&e.render===Gn&&(e.render=S),$!=null&&(e.inheritAttrs=$),E&&(e.components=E),G&&(e.directives=G)}function CP(e,t,n=Gn){ct(e)&&(e=Lf(e));for(const o in e){const r=e[o];let i;Qt(r)?"default"in r?i=Ve(r.from||o,r.default,!0):i=Ve(r.from||o):i=Ve(r),cn(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function mg(e,t,n){so(ct(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ex(e,t,n,o){const r=o.includes(".")?mx(n,o):()=>n[o];if(ln(e)){const i=t[e];pt(i)&&ut(r,i)}else if(pt(e))ut(r,e.bind(n));else if(Qt(e))if(ct(e))e.forEach(i=>ex(i,t,n,o));else{const i=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(i)&&ut(r,i,e)}}function vp(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>yc(l,c,a,!0)),yc(l,t,a)),Qt(t)&&i.set(t,l),l}function yc(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&yc(e,i,n,!0),r&&r.forEach(a=>yc(e,a,n,!0));for(const a in t)if(!(o&&a==="expose")){const s=wP[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const wP={data:gg,props:vg,emits:vg,methods:ps,computed:ps,beforeCreate:In,created:In,beforeMount:In,mounted:In,beforeUpdate:In,updated:In,beforeDestroy:In,beforeUnmount:In,destroyed:In,unmounted:In,activated:In,deactivated:In,errorCaptured:In,serverPrefetch:In,components:ps,directives:ps,watch:SP,provide:gg,inject:_P};function gg(e,t){return t?e?function(){return wn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function _P(e,t){return ps(Lf(e),Lf(t))}function Lf(e){if(ct(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(o&&o.proxy):t}}function TP(){return!!(Sn||xn||ki)}const nx={},ox=()=>Object.create(nx),rx=e=>Object.getPrototypeOf(e)===nx;function AP(e,t,n,o=!1){const r={},i=ox();e.propsDefaults=Object.create(null),ix(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=o?r:My(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function RP(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,s=It(r),[l]=e.propsOptions;let c=!1;if((o||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=ax(d,t,!0);wn(a,f),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Qt(e)&&o.set(e,ha),ha;if(ct(i))for(let u=0;ue[0]==="_"||e==="$stable",bp=e=>ct(e)?e.map(Bo):[Bo(e)],$P=(e,t,n)=>{if(t._n)return t;const o=ge((...r)=>bp(t(...r)),n);return o._c=!1,o},lx=(e,t,n)=>{const o=e._ctx;for(const r in e){if(sx(r))continue;const i=e[r];if(pt(i))t[r]=$P(r,i,o);else if(i!=null){const a=bp(i);t[r]=()=>a}}},cx=(e,t)=>{const n=bp(t);e.slots.default=()=>n},ux=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},IP=(e,t,n)=>{const o=e.slots=ox();if(e.vnode.shapeFlag&32){const r=t._;r?(ux(o,t,n),n&&gy(o,"_",r,!0)):lx(t,o)}else t&&cx(e,t)},OP=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,a=nn;if(o.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:ux(r,t,n):(i=!t.$stable,lx(t,r)),a=t}else t&&(cx(e,t),a={default:1});if(i)for(const s in r)!sx(s)&&a[s]==null&&delete r[s]};function Nf(e,t,n,o,r=!1){if(ct(e)){e.forEach((f,h)=>Nf(f,t&&(ct(t)?t[h]:t),n,o,r));return}if(xs(o)&&!r)return;const i=o.shapeFlag&4?su(o.component):o.el,a=r?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===nn?s.refs={}:s.refs,d=s.setupState;if(c!=null&&c!==l&&(ln(c)?(u[c]=null,Mt(d,c)&&(d[c]=null)):cn(c)&&(c.value=null)),pt(l))Br(l,s,12,[a,u]);else{const f=ln(l),h=cn(l);if(f||h){const p=()=>{if(e.f){const g=f?Mt(d,l)?d[l]:u[l]:l.value;r?ct(g)&&Zh(g,i):ct(g)?g.includes(i)||g.push(i):f?(u[l]=[i],Mt(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=a,Mt(d,l)&&(d[l]=a)):h&&(l.value=a,e.k&&(u[e.k]=a))};a?(p.id=-1,Hn(p,n)):p()}}}const dx=Symbol("_vte"),MP=e=>e.__isTeleport,ws=e=>e&&(e.disabled||e.disabled===""),yg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,xg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hf=(e,t)=>{const n=e&&e.to;return ln(n)?t?t(n):null:n},zP={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,a,s,l,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:m}}=c,b=ws(t.props);let{shapeFlag:w,children:C,dynamicChildren:_}=t;if(e==null){const S=t.el=g(""),y=t.anchor=g("");h(S,n,o),h(y,n,o);const x=t.target=Hf(t.props,p),k=hx(x,t,g,h);x&&(a==="svg"||yg(x)?a="svg":(a==="mathml"||xg(x))&&(a="mathml"));const P=(T,$)=>{w&16&&u(C,T,$,r,i,a,s,l)};b?P(n,y):x&&P(x,k)}else{t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,y=t.target=e.target,x=t.targetAnchor=e.targetAnchor,k=ws(e.props),P=k?n:y,T=k?S:x;if(a==="svg"||yg(y)?a="svg":(a==="mathml"||xg(y))&&(a="mathml"),_?(f(e.dynamicChildren,_,P,r,i,a,s),yp(e,t,!0)):l||d(e,t,P,T,r,i,a,s,!1),b)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):El(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=Hf(t.props,p);$&&El(t,$,null,c,0)}else k&&El(t,y,x,c,1)}fx(t)},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),i&&r(l),a&16){const h=i||!ws(f);for(let p=0;p{if(F===I)return;F&&!gi(F,I)&&(_e=K(F),R(F,ne,me,!0),F=null),I.patchFlag===-2&&(H=!1,I.dynamicChildren=null);const{type:te,ref:Ce,shapeFlag:fe}=I;switch(te){case Da:m(F,I,re,_e);break;case _n:b(F,I,re,_e);break;case Sd:F==null&&w(I,re,_e,we);break;case rt:E(F,I,re,_e,ne,me,we,O,H);break;default:fe&1?S(F,I,re,_e,ne,me,we,O,H):fe&6?G(F,I,re,_e,ne,me,we,O,H):(fe&64||fe&128)&&te.process(F,I,re,_e,ne,me,we,O,H,be)}Ce!=null&&ne&&Nf(Ce,F&&F.ref,me,I||F,!I)},m=(F,I,re,_e)=>{if(F==null)o(I.el=s(I.children),re,_e);else{const ne=I.el=F.el;I.children!==F.children&&c(ne,I.children)}},b=(F,I,re,_e)=>{F==null?o(I.el=l(I.children||""),re,_e):I.el=F.el},w=(F,I,re,_e)=>{[F.el,F.anchor]=p(F.children,I,re,_e,F.el,F.anchor)},C=({el:F,anchor:I},re,_e)=>{let ne;for(;F&&F!==I;)ne=f(F),o(F,re,_e),F=ne;o(I,re,_e)},_=({el:F,anchor:I})=>{let re;for(;F&&F!==I;)re=f(F),r(F),F=re;r(I)},S=(F,I,re,_e,ne,me,we,O,H)=>{I.type==="svg"?we="svg":I.type==="math"&&(we="mathml"),F==null?y(I,re,_e,ne,me,we,O,H):P(F,I,ne,me,we,O,H)},y=(F,I,re,_e,ne,me,we,O)=>{let H,te;const{props:Ce,shapeFlag:fe,transition:de,dirs:ie}=F;if(H=F.el=a(F.type,me,Ce&&Ce.is,Ce),fe&8?u(H,F.children):fe&16&&k(F.children,H,null,_e,ne,wd(F,me),we,O),ie&&ai(F,null,_e,"created"),x(H,F,F.scopeId,we,_e),Ce){for(const Fe in Ce)Fe!=="value"&&!bs(Fe)&&i(H,Fe,null,Ce[Fe],me,_e);"value"in Ce&&i(H,"value",null,Ce.value,me),(te=Ce.onVnodeBeforeMount)&&Fo(te,_e,F)}ie&&ai(F,null,_e,"beforeMount");const he=BP(ne,de);he&&de.beforeEnter(H),o(H,I,re),((te=Ce&&Ce.onVnodeMounted)||he||ie)&&Hn(()=>{te&&Fo(te,_e,F),he&&de.enter(H),ie&&ai(F,null,_e,"mounted")},ne)},x=(F,I,re,_e,ne)=>{if(re&&h(F,re),_e)for(let me=0;me<_e.length;me++)h(F,_e[me]);if(ne){let me=ne.subTree;if(I===me){const we=ne.vnode;x(F,we,we.scopeId,we.slotScopeIds,ne.parent)}}},k=(F,I,re,_e,ne,me,we,O,H=0)=>{for(let te=H;te{const O=I.el=F.el;let{patchFlag:H,dynamicChildren:te,dirs:Ce}=I;H|=F.patchFlag&16;const fe=F.props||nn,de=I.props||nn;let ie;if(re&&si(re,!1),(ie=de.onVnodeBeforeUpdate)&&Fo(ie,re,I,F),Ce&&ai(I,F,re,"beforeUpdate"),re&&si(re,!0),(fe.innerHTML&&de.innerHTML==null||fe.textContent&&de.textContent==null)&&u(O,""),te?T(F.dynamicChildren,te,O,re,_e,wd(I,ne),me):we||V(F,I,O,null,re,_e,wd(I,ne),me,!1),H>0){if(H&16)$(O,fe,de,re,ne);else if(H&2&&fe.class!==de.class&&i(O,"class",null,de.class,ne),H&4&&i(O,"style",fe.style,de.style,ne),H&8){const he=I.dynamicProps;for(let Fe=0;Fe{ie&&Fo(ie,re,I,F),Ce&&ai(I,F,re,"updated")},_e)},T=(F,I,re,_e,ne,me,we)=>{for(let O=0;O{if(I!==re){if(I!==nn)for(const me in I)!bs(me)&&!(me in re)&&i(F,me,I[me],null,ne,_e);for(const me in re){if(bs(me))continue;const we=re[me],O=I[me];we!==O&&me!=="value"&&i(F,me,O,we,ne,_e)}"value"in re&&i(F,"value",I.value,re.value,ne)}},E=(F,I,re,_e,ne,me,we,O,H)=>{const te=I.el=F?F.el:s(""),Ce=I.anchor=F?F.anchor:s("");let{patchFlag:fe,dynamicChildren:de,slotScopeIds:ie}=I;ie&&(O=O?O.concat(ie):ie),F==null?(o(te,re,_e),o(Ce,re,_e),k(I.children||[],re,Ce,ne,me,we,O,H)):fe>0&&fe&64&&de&&F.dynamicChildren?(T(F.dynamicChildren,de,re,ne,me,we,O),(I.key!=null||ne&&I===ne.subTree)&&yp(F,I,!0)):V(F,I,re,Ce,ne,me,we,O,H)},G=(F,I,re,_e,ne,me,we,O,H)=>{I.slotScopeIds=O,F==null?I.shapeFlag&512?ne.ctx.activate(I,re,_e,we,H):B(I,re,_e,ne,me,we,H):D(F,I,H)},B=(F,I,re,_e,ne,me,we)=>{const O=F.component=oT(F,_e,ne);if(Zc(F)&&(O.ctx.renderer=be),rT(O,!1,we),O.asyncDep){if(ne&&ne.registerDep(O,L,we),!F.el){const H=O.subTree=se(_n);b(null,H,I,re)}}else L(O,F,I,re,ne,me,we)},D=(F,I,re)=>{const _e=I.component=F.component;if(GP(F,I,re))if(_e.asyncDep&&!_e.asyncResolved){X(_e,I,re);return}else _e.next=I,cP(_e.update),_e.effect.dirty=!0,_e.update();else I.el=F.el,_e.vnode=I},L=(F,I,re,_e,ne,me,we)=>{const O=()=>{if(F.isMounted){let{next:Ce,bu:fe,u:de,parent:ie,vnode:he}=F;{const et=px(F);if(et){Ce&&(Ce.el=he.el,X(F,Ce,we)),et.asyncDep.then(()=>{F.isUnmounted||O()});return}}let Fe=Ce,De;si(F,!1),Ce?(Ce.el=he.el,X(F,Ce,we)):Ce=he,fe&&rc(fe),(De=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Fo(De,ie,Ce,he),si(F,!0);const Me=_d(F),He=F.subTree;F.subTree=Me,g(He,Me,d(He.el),K(He),F,ne,me),Ce.el=Me.el,Fe===null&&XP(F,Me.el),de&&Hn(de,ne),(De=Ce.props&&Ce.props.onVnodeUpdated)&&Hn(()=>Fo(De,ie,Ce,he),ne)}else{let Ce;const{el:fe,props:de}=I,{bm:ie,m:he,parent:Fe}=F,De=xs(I);if(si(F,!1),ie&&rc(ie),!De&&(Ce=de&&de.onVnodeBeforeMount)&&Fo(Ce,Fe,I),si(F,!0),fe&&Ne){const Me=()=>{F.subTree=_d(F),Ne(fe,F.subTree,F,ne,null)};De?I.type.__asyncLoader().then(()=>!F.isUnmounted&&Me()):Me()}else{const Me=F.subTree=_d(F);g(null,Me,re,_e,F,ne,me),I.el=Me.el}if(he&&Hn(he,ne),!De&&(Ce=de&&de.onVnodeMounted)){const Me=I;Hn(()=>Fo(Ce,Fe,Me),ne)}(I.shapeFlag&256||Fe&&xs(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&F.a&&Hn(F.a,ne),F.isMounted=!0,I=re=_e=null}},H=F.effect=new op(O,Gn,()=>fp(te),F.scope),te=F.update=()=>{H.dirty&&H.run()};te.i=F,te.id=F.uid,si(F,!0),te()},X=(F,I,re)=>{I.component=F;const _e=F.vnode.props;F.vnode=I,F.next=null,RP(F,I.props,_e,re),OP(F,I.children,re),Xr(),dg(F),Yr()},V=(F,I,re,_e,ne,me,we,O,H=!1)=>{const te=F&&F.children,Ce=F?F.shapeFlag:0,fe=I.children,{patchFlag:de,shapeFlag:ie}=I;if(de>0){if(de&128){ue(te,fe,re,_e,ne,me,we,O,H);return}else if(de&256){ae(te,fe,re,_e,ne,me,we,O,H);return}}ie&8?(Ce&16&&oe(te,ne,me),fe!==te&&u(re,fe)):Ce&16?ie&16?ue(te,fe,re,_e,ne,me,we,O,H):oe(te,ne,me,!0):(Ce&8&&u(re,""),ie&16&&k(fe,re,_e,ne,me,we,O,H))},ae=(F,I,re,_e,ne,me,we,O,H)=>{F=F||ha,I=I||ha;const te=F.length,Ce=I.length,fe=Math.min(te,Ce);let de;for(de=0;deCe?oe(F,ne,me,!0,!1,fe):k(I,re,_e,ne,me,we,O,H,fe)},ue=(F,I,re,_e,ne,me,we,O,H)=>{let te=0;const Ce=I.length;let fe=F.length-1,de=Ce-1;for(;te<=fe&&te<=de;){const ie=F[te],he=I[te]=H?Ir(I[te]):Bo(I[te]);if(gi(ie,he))g(ie,he,re,null,ne,me,we,O,H);else break;te++}for(;te<=fe&&te<=de;){const ie=F[fe],he=I[de]=H?Ir(I[de]):Bo(I[de]);if(gi(ie,he))g(ie,he,re,null,ne,me,we,O,H);else break;fe--,de--}if(te>fe){if(te<=de){const ie=de+1,he=iede)for(;te<=fe;)R(F[te],ne,me,!0),te++;else{const ie=te,he=te,Fe=new Map;for(te=he;te<=de;te++){const J=I[te]=H?Ir(I[te]):Bo(I[te]);J.key!=null&&Fe.set(J.key,te)}let De,Me=0;const He=de-he+1;let et=!1,$e=0;const Xe=new Array(He);for(te=0;te=He){R(J,ne,me,!0);continue}let xe;if(J.key!=null)xe=Fe.get(J.key);else for(De=he;De<=de;De++)if(Xe[De-he]===0&&gi(J,I[De])){xe=De;break}xe===void 0?R(J,ne,me,!0):(Xe[xe-he]=te+1,xe>=$e?$e=xe:et=!0,g(J,I[xe],re,null,ne,me,we,O,H),Me++)}const gt=et?NP(Xe):ha;for(De=gt.length-1,te=He-1;te>=0;te--){const J=he+te,xe=I[J],Ee=J+1{const{el:me,type:we,transition:O,children:H,shapeFlag:te}=F;if(te&6){ee(F.component.subTree,I,re,_e);return}if(te&128){F.suspense.move(I,re,_e);return}if(te&64){we.move(F,I,re,be);return}if(we===rt){o(me,I,re);for(let fe=0;feO.enter(me),ne);else{const{leave:fe,delayLeave:de,afterLeave:ie}=O,he=()=>o(me,I,re),Fe=()=>{fe(me,()=>{he(),ie&&ie()})};de?de(me,he,Fe):Fe()}else o(me,I,re)},R=(F,I,re,_e=!1,ne=!1)=>{const{type:me,props:we,ref:O,children:H,dynamicChildren:te,shapeFlag:Ce,patchFlag:fe,dirs:de,cacheIndex:ie}=F;if(fe===-2&&(ne=!1),O!=null&&Nf(O,null,re,F,!0),ie!=null&&(I.renderCache[ie]=void 0),Ce&256){I.ctx.deactivate(F);return}const he=Ce&1&&de,Fe=!xs(F);let De;if(Fe&&(De=we&&we.onVnodeBeforeUnmount)&&Fo(De,I,F),Ce&6)W(F.component,re,_e);else{if(Ce&128){F.suspense.unmount(re,_e);return}he&&ai(F,null,I,"beforeUnmount"),Ce&64?F.type.remove(F,I,re,be,_e):te&&!te.hasOnce&&(me!==rt||fe>0&&fe&64)?oe(te,I,re,!1,!0):(me===rt&&fe&384||!ne&&Ce&16)&&oe(H,I,re),_e&&A(F)}(Fe&&(De=we&&we.onVnodeUnmounted)||he)&&Hn(()=>{De&&Fo(De,I,F),he&&ai(F,null,I,"unmounted")},re)},A=F=>{const{type:I,el:re,anchor:_e,transition:ne}=F;if(I===rt){Y(re,_e);return}if(I===Sd){_(F);return}const me=()=>{r(re),ne&&!ne.persisted&&ne.afterLeave&&ne.afterLeave()};if(F.shapeFlag&1&&ne&&!ne.persisted){const{leave:we,delayLeave:O}=ne,H=()=>we(re,me);O?O(F.el,me,H):H()}else me()},Y=(F,I)=>{let re;for(;F!==I;)re=f(F),r(F),F=re;r(I)},W=(F,I,re)=>{const{bum:_e,scope:ne,update:me,subTree:we,um:O,m:H,a:te}=F;Cg(H),Cg(te),_e&&rc(_e),ne.stop(),me&&(me.active=!1,R(we,F,I,re)),O&&Hn(O,I),Hn(()=>{F.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},oe=(F,I,re,_e=!1,ne=!1,me=0)=>{for(let we=me;we{if(F.shapeFlag&6)return K(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const I=f(F.anchor||F.el),re=I&&I[dx];return re?f(re):I};let le=!1;const N=(F,I,re)=>{F==null?I._vnode&&R(I._vnode,null,null,!0):g(I._vnode||null,F,I,null,null,null,re),I._vnode=F,le||(le=!0,dg(),jy(),le=!1)},be={p:g,um:R,m:ee,r:A,mt:B,mc:k,pc:V,pbc:T,n:K,o:e};let Ie,Ne;return t&&([Ie,Ne]=t(be)),{render:N,hydrate:Ie,createApp:PP(N,Ie)}}function wd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function si({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function BP(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function yp(e,t,n=!1){const o=e.children,r=t.children;if(ct(o)&&ct(r))for(let i=0;i>1,e[n[s]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function px(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:px(t)}function Cg(e){if(e)for(let t=0;tVe(HP);function Yt(e,t){return xp(e,null,t)}const $l={};function ut(e,t,n){return xp(e,t,n)}function xp(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:a,onTrigger:s}=nn){if(t&&i){const y=t;t=(...x)=>{y(...x),S()}}const l=Sn,c=y=>o===!0?y:Fr(y,o===!1?1:void 0);let u,d=!1,f=!1;if(cn(e)?(u=()=>e.value,d=xa(e)):Si(e)?(u=()=>c(e),d=!0):ct(e)?(f=!0,d=e.some(y=>Si(y)||xa(y)),u=()=>e.map(y=>{if(cn(y))return y.value;if(Si(y))return c(y);if(pt(y))return Br(y,l,2)})):pt(e)?t?u=()=>Br(e,l,2):u=()=>(h&&h(),so(e,l,3,[p])):u=Gn,t&&o){const y=u;u=()=>Fr(y())}let h,p=y=>{h=C.onStop=()=>{Br(y,l,4),h=C.onStop=void 0}},g;if(au)if(p=Gn,t?n&&so(t,l,3,[u(),f?[]:void 0,p]):u(),r==="sync"){const y=jP();g=y.__watcherHandles||(y.__watcherHandles=[])}else return Gn;let m=f?new Array(e.length).fill($l):$l;const b=()=>{if(!(!C.active||!C.dirty))if(t){const y=C.run();(o||d||(f?y.some((x,k)=>Nr(x,m[k])):Nr(y,m)))&&(h&&h(),so(t,l,3,[y,m===$l?void 0:f&&m[0]===$l?[]:m,p]),m=y)}else C.run()};b.allowRecurse=!!t;let w;r==="sync"?w=b:r==="post"?w=()=>Hn(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),w=()=>fp(b));const C=new op(u,Gn,w),_=np(),S=()=>{C.stop(),_&&Zh(_.effects,C)};return t?n?b():m=C.run():r==="post"?Hn(C.run.bind(C),l&&l.suspense):C.run(),g&&g.push(S),S}function UP(e,t,n){const o=this.proxy,r=ln(e)?e.includes(".")?mx(o,e):()=>o[e]:e.bind(o,o);let i;pt(t)?i=t:(i=t.handler,n=t);const a=al(this),s=xp(r,i.bind(o),n);return a(),s}function mx(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r{Fr(o,t,n)});else if(my(e)){for(const o in e)Fr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Fr(e[o],t,n)}return e}const VP=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ao(t)}Modifiers`]||e[`${Gr(t)}Modifiers`];function WP(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||nn;let r=n;const i=t.startsWith("update:"),a=i&&VP(o,t.slice(7));a&&(a.trim&&(r=n.map(u=>ln(u)?u.trim():u)),a.number&&(r=n.map($f)));let s,l=o[s=bd(t)]||o[s=bd(Ao(t))];!l&&i&&(l=o[s=bd(Gr(t))]),l&&so(l,e,6,r);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,so(c,e,6,r)}}function gx(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let a={},s=!1;if(!pt(e)){const l=c=>{const u=gx(c,t,!0);u&&(s=!0,wn(a,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Qt(e)&&o.set(e,null),null):(ct(i)?i.forEach(l=>a[l]=null):wn(a,i),Qt(e)&&o.set(e,a),a)}function iu(e,t){return!e||!Kc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(e,t[0].toLowerCase()+t.slice(1))||Mt(e,Gr(t))||Mt(e,t))}function _d(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,m=bc(e);let b,w;try{if(n.shapeFlag&4){const _=r||o,S=_;b=Bo(c.call(S,_,u,d,h,f,p)),w=s}else{const _=t;b=Bo(_.length>1?_(d,{attrs:s,slots:a,emit:l}):_(d,null)),w=t.props?s:qP(s)}}catch(_){_s.length=0,Jc(_,e,1),b=se(_n)}let C=b;if(w&&g!==!1){const _=Object.keys(w),{shapeFlag:S}=C;_.length&&S&7&&(i&&_.some(Jh)&&(w=KP(w,i)),C=fo(C,w,!1,!0))}return n.dirs&&(C=fo(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),b=C,bc(m),b}const qP=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kc(n))&&((t||(t={}))[n]=e[n]);return t},KP=(e,t)=>{const n={};for(const o in e)(!Jh(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function GP(e,t,n){const{props:o,children:r,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?wg(o,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function QP(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):uP(e)}const rt=Symbol.for("v-fgt"),Da=Symbol.for("v-txt"),_n=Symbol.for("v-cmt"),Sd=Symbol.for("v-stc"),_s=[];let Xn=null;function ve(e=!1){_s.push(Xn=e?null:[])}function JP(){_s.pop(),Xn=_s[_s.length-1]||null}let js=1;function _g(e){js+=e,e<0&&Xn&&(Xn.hasOnce=!0)}function vx(e){return e.dynamicChildren=js>0?Xn||ha:null,JP(),js>0&&Xn&&Xn.push(e),e}function ze(e,t,n,o,r,i){return vx(Q(e,t,n,o,r,i,!0))}function We(e,t,n,o,r){return vx(se(e,t,n,o,r,!0))}function Us(e){return e?e.__v_isVNode===!0:!1}function gi(e,t){return e.type===t.type&&e.key===t.key}const bx=({key:e})=>e??null,ic=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ln(e)||cn(e)||pt(e)?{i:xn,r:e,k:t,f:!!n}:e:null);function Q(e,t=null,n=null,o=0,r=null,i=e===rt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bx(t),ref:t&&ic(t),scopeId:Vy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:xn};return s?(Cp(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ln(n)?8:16),js>0&&!a&&Xn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Xn.push(l),l}const se=ZP;function ZP(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Qy)&&(e=_n),Us(e)){const s=fo(e,t,!0);return n&&Cp(s,n),js>0&&!i&&Xn&&(s.shapeFlag&6?Xn[Xn.indexOf(e)]=s:Xn.push(s)),s.patchFlag=-2,s}if(cT(e)&&(e=e.__vccOpts),t){t=eT(t);let{class:s,style:l}=t;s&&!ln(s)&&(t.class=qn(s)),Qt(l)&&(zy(l)&&!ct(l)&&(l=wn({},l)),t.style=Li(l))}const a=ln(e)?1:YP(e)?128:MP(e)?64:Qt(e)?4:pt(e)?2:0;return Q(e,t,n,o,r,a,i,!0)}function eT(e){return e?zy(e)||rx(e)?wn({},e):e:null}function fo(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?Ln(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&bx(c),ref:t&&t.ref?n&&i?ct(i)?i.concat(ic(t)):[i,ic(t)]:ic(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==rt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&fo(e.ssContent),ssFallback:e.ssFallback&&fo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&Ca(u,l.clone(u)),u}function nt(e=" ",t=0){return se(Da,null,e,t)}function Ct(e="",t=!1){return t?(ve(),We(_n,null,e)):se(_n,null,e)}function Bo(e){return e==null||typeof e=="boolean"?se(_n):ct(e)?se(rt,null,e.slice()):typeof e=="object"?Ir(e):se(Da,null,String(e))}function Ir(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:fo(e)}function Cp(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ct(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Cp(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!rx(t)?t._ctx=xn:r===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),o&64?(n=16,t=[nt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ln(...e){const t={};for(let n=0;nSn||xn;let xc,jf;{const e=vy(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};xc=t("__VUE_INSTANCE_SETTERS__",n=>Sn=n),jf=t("__VUE_SSR_SETTERS__",n=>au=n)}const al=e=>{const t=Sn;return xc(e),e.scope.on(),()=>{e.scope.off(),xc(t)}},Sg=()=>{Sn&&Sn.scope.off(),xc(null)};function yx(e){return e.vnode.shapeFlag&4}let au=!1;function rT(e,t=!1,n=!1){t&&jf(t);const{props:o,children:r}=e.vnode,i=yx(e);AP(e,o,i,t),IP(e,r,n);const a=i?iT(e,t):void 0;return t&&jf(!1),a}function iT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yP);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?sT(e):null,i=al(e);Xr();const a=Br(o,e,0,[e.props,r]);if(Yr(),i(),hy(a)){if(a.then(Sg,Sg),t)return a.then(s=>{kg(e,s,t)}).catch(s=>{Jc(s,e,0)});e.asyncDep=a}else kg(e,a,t)}else xx(e,t)}function kg(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qt(t)&&(e.setupState=Ly(t)),xx(e,n)}let Pg;function xx(e,t,n){const o=e.type;if(!e.render){if(!t&&Pg&&!o.render){const r=o.template||vp(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=o,c=wn(wn({isCustomElement:i,delimiters:s},a),l);o.render=Pg(r,c)}}e.render=o.render||Gn}{const r=al(e);Xr();try{xP(e)}finally{Yr(),r()}}}const aT={get(e,t){return jn(e,"get",""),e[t]}};function sT(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,aT),slots:e.slots,emit:e.emit,expose:t}}function su(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ly(Ds(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cs)return Cs[n](e)},has(t,n){return n in t||n in Cs}})):e.proxy}function lT(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function cT(e){return pt(e)&&"__vccOpts"in e}const M=(e,t)=>Z3(e,t,au);function v(e,t,n){const o=arguments.length;return o===2?Qt(t)&&!ct(t)?Us(t)?se(e,null,[t]):se(e,t):se(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Us(n)&&(n=[n]),se(e,t,n))}const uT="3.4.38";/** * @vue/runtime-dom v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const nT="http://www.w3.org/2000/svg",oT="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,xg=ar&&ar.createElement("template"),rT={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?ar.createElementNS(nT,e):t==="mathml"?ar.createElementNS(oT,e):n?ar.createElement(e,{is:n}):ar.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>ar.createTextNode(e),createComment:e=>ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{xg.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const s=xg.content;if(o==="svg"||o==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wr="transition",ts="animation",Ca=Symbol("_vtc"),fn=(e,{slots:t})=>v(rP,px(e),t);fn.displayName="Transition";const hx={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},iT=fn.props=wn({},Ly,hx),ai=(e,t=[])=>{ct(e)?e.forEach(n=>n(...t)):e&&e(...t)},Cg=e=>e?ct(e)?e.some(t=>t.length>1):e.length>1:!1;function px(e){const t={};for(const E in e)E in hx||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=aT(r),g=p&&p[0],m=p&&p[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:C,onLeave:_,onLeaveCancelled:S,onBeforeAppear:y=b,onAppear:x=w,onAppearCancelled:P=C}=t,k=(E,q,D)=>{Er(E,q?u:s),Er(E,q?c:a),D&&D()},T=(E,q)=>{E._isLeaving=!1,Er(E,d),Er(E,h),Er(E,f),q&&q()},R=E=>(q,D)=>{const B=E?x:w,M=()=>k(q,E,D);ai(B,[q,M]),wg(()=>{Er(q,E?l:i),ir(q,E?u:s),Cg(B)||_g(q,o,g,M)})};return wn(t,{onBeforeEnter(E){ai(b,[E]),ir(E,i),ir(E,a)},onBeforeAppear(E){ai(y,[E]),ir(E,l),ir(E,c)},onEnter:R(!1),onAppear:R(!0),onLeave(E,q){E._isLeaving=!0;const D=()=>T(E,q);ir(E,d),ir(E,f),gx(),wg(()=>{E._isLeaving&&(Er(E,d),ir(E,h),Cg(_)||_g(E,o,m,D))}),ai(_,[E,D])},onEnterCancelled(E){k(E,!1),ai(C,[E])},onAppearCancelled(E){k(E,!0),ai(P,[E])},onLeaveCancelled(E){T(E),ai(S,[E])}})}function aT(e){if(e==null)return null;if(Qt(e))return[xd(e.enter),xd(e.leave)];{const t=xd(e);return[t,t]}}function xd(e){return g3(e)}function ir(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ca]||(e[Ca]=new Set)).add(t)}function Er(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Ca];n&&(n.delete(t),n.size||(e[Ca]=void 0))}function wg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sT=0;function _g(e,t,n,o){const r=e._endId=++sT,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=mx(e,t);if(!a)return o();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[p]||"").split(", "),r=o(`${wr}Delay`),i=o(`${wr}Duration`),a=Sg(r,i),s=o(`${ts}Delay`),l=o(`${ts}Duration`),c=Sg(s,l);let u=null,d=0,f=0;t===wr?a>0&&(u=wr,d=a,f=i.length):t===ts?c>0&&(u=ts,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?wr:ts:null,f=u?u===wr?i.length:l.length:0);const h=u===wr&&/\b(transform|all)(,|$)/.test(o(`${wr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function Sg(e,t){for(;e.lengthkg(n)+kg(e[o])))}function kg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function gx(){return document.body.offsetHeight}function lT(e,t,n){const o=e[Ca];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gc=Symbol("_vod"),vx=Symbol("_vsh"),Mn={beforeMount(e,{value:t},{transition:n}){e[gc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ns(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ns(e,!0),o.enter(e)):o.leave(e,()=>{ns(e,!1)}):ns(e,t))},beforeUnmount(e,{value:t}){ns(e,t)}};function ns(e,t){e.style.display=t?e[gc]:"none",e[vx]=!t}const cT=Symbol(""),uT=/(^|;)\s*display\s*:/;function dT(e,t,n){const o=e.style,r=ln(n);let i=!1;if(n&&!r){if(t)if(ln(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&tc(o,s,"")}else for(const a in t)n[a]==null&&tc(o,a,"");for(const a in n)a==="display"&&(i=!0),tc(o,a,n[a])}else if(r){if(t!==n){const a=o[cT];a&&(n+=";"+a),o.cssText=n,i=uT.test(n)}}else t&&e.removeAttribute("style");gc in e&&(e[gc]=i?o.display:"",e[vx]&&(o.display="none"))}const Pg=/\s*!important$/;function tc(e,t,n){if(ct(n))n.forEach(o=>tc(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=fT(e,t);Pg.test(n)?e.setProperty(qr(o),n.replace(Pg,""),"important"):e[o]=n}}const Tg=["Webkit","Moz","ms"],Cd={};function fT(e,t){const n=Cd[t];if(n)return n;let o=Eo(t);if(o!=="filter"&&o in e)return Cd[t]=o;o=Wc(o);for(let r=0;rwd||(vT.then(()=>wd=0),wd=Date.now());function yT(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;so(xT(o,n.value),t,5,[o])};return n.value=e,n.attached=bT(),n}function xT(e,t){if(ct(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ig=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,CT=(e,t,n,o,r,i)=>{const a=r==="svg";t==="class"?lT(e,o,a):t==="style"?dT(e,n,o):jc(t)?Wh(t)||mT(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wT(e,t,o,a))?(hT(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rg(e,t,o,a,i,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Rg(e,t,o,a))};function wT(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ig(t)&&pt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ig(t)&&ln(n)?!1:t in e}const bx=new WeakMap,yx=new WeakMap,vc=Symbol("_moveCb"),Og=Symbol("_enterCb"),xx={name:"TransitionGroup",props:wn({},iT,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=no(),o=Dy();let r,i;return lp(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!ET(r[0].el,n.vnode.el,a))return;r.forEach(kT),r.forEach(PT);const s=r.filter(TT);gx(),s.forEach(l=>{const c=l.el,u=c.style;ir(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[vc]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[vc]=null,Er(c,a))};c.addEventListener("transitionend",d)})}),()=>{const a=It(e),s=px(a);let l=a.tag||rt;if(r=[],i)for(let c=0;cdelete e.mode;xx.props;const ST=xx;function kT(e){const t=e.el;t[vc]&&t[vc](),t[Og]&&t[Og]()}function PT(e){yx.set(e,e.el.getBoundingClientRect())}function TT(e){const t=bx.get(e),n=yx.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${r}px)`,i.transitionDuration="0s",e}}function ET(e,t,n){const o=e.cloneNode(),r=e[Ca];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:a}=mx(o);return i.removeChild(o),a}const Mg=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ct(t)?n=>Zl(t,n):t};function RT(e){e.target.composing=!0}function zg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _d=Symbol("_assign"),AT={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[_d]=Mg(r);const i=o||r.props&&r.props.type==="number";ia(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=kf(s)),e[_d](s)}),n&&ia(e,"change",()=>{e.value=e.value.trim()}),t||(ia(e,"compositionstart",RT),ia(e,"compositionend",zg),ia(e,"change",zg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},a){if(e[_d]=Mg(a),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?kf(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===l)||(e.value=l))}},$T=["ctrl","shift","alt","meta"],IT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>$T.some(n=>e[`${n}Key`]&&!t.includes(n))},OT=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=qr(r.key);if(t.some(a=>a===i||MT[a]===i))return e(r)})},zT=wn({patchProp:CT},rT);let Fg;function FT(){return Fg||(Fg=EP(zT))}const Cx=(...e)=>{const t=FT().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=LT(o);if(!r)return;const i=t._component;!pt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,DT(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function DT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function LT(e){return ln(e)?document.querySelector(e):e}/*! +**/const dT="http://www.w3.org/2000/svg",fT="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,Tg=ar&&ar.createElement("template"),hT={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?ar.createElementNS(dT,e):t==="mathml"?ar.createElementNS(fT,e):n?ar.createElement(e,{is:n}):ar.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>ar.createTextNode(e),createComment:e=>ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Tg.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const s=Tg.content;if(o==="svg"||o==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wr="transition",rs="animation",_a=Symbol("_vtc"),fn=(e,{slots:t})=>v(hP,wx(e),t);fn.displayName="Transition";const Cx={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},pT=fn.props=wn({},qy,Cx),li=(e,t=[])=>{ct(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ag=e=>e?ct(e)?e.some(t=>t.length>1):e.length>1:!1;function wx(e){const t={};for(const E in e)E in Cx||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=mT(r),g=p&&p[0],m=p&&p[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:C,onLeave:_,onLeaveCancelled:S,onBeforeAppear:y=b,onAppear:x=w,onAppearCancelled:k=C}=t,P=(E,G,B)=>{Ar(E,G?u:s),Ar(E,G?c:a),B&&B()},T=(E,G)=>{E._isLeaving=!1,Ar(E,d),Ar(E,h),Ar(E,f),G&&G()},$=E=>(G,B)=>{const D=E?x:w,L=()=>P(G,E,B);li(D,[G,L]),Rg(()=>{Ar(G,E?l:i),ir(G,E?u:s),Ag(D)||Eg(G,o,g,L)})};return wn(t,{onBeforeEnter(E){li(b,[E]),ir(E,i),ir(E,a)},onBeforeAppear(E){li(y,[E]),ir(E,l),ir(E,c)},onEnter:$(!1),onAppear:$(!0),onLeave(E,G){E._isLeaving=!0;const B=()=>T(E,G);ir(E,d),ir(E,f),Sx(),Rg(()=>{E._isLeaving&&(Ar(E,d),ir(E,h),Ag(_)||Eg(E,o,m,B))}),li(_,[E,B])},onEnterCancelled(E){P(E,!1),li(C,[E])},onAppearCancelled(E){P(E,!0),li(k,[E])},onLeaveCancelled(E){T(E),li(S,[E])}})}function mT(e){if(e==null)return null;if(Qt(e))return[kd(e.enter),kd(e.leave)];{const t=kd(e);return[t,t]}}function kd(e){return k3(e)}function ir(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[_a]||(e[_a]=new Set)).add(t)}function Ar(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[_a];n&&(n.delete(t),n.size||(e[_a]=void 0))}function Rg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gT=0;function Eg(e,t,n,o){const r=e._endId=++gT,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=_x(e,t);if(!a)return o();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[p]||"").split(", "),r=o(`${wr}Delay`),i=o(`${wr}Duration`),a=$g(r,i),s=o(`${rs}Delay`),l=o(`${rs}Duration`),c=$g(s,l);let u=null,d=0,f=0;t===wr?a>0&&(u=wr,d=a,f=i.length):t===rs?c>0&&(u=rs,d=c,f=l.length):(d=Math.max(a,c),u=d>0?a>c?wr:rs:null,f=u?u===wr?i.length:l.length:0);const h=u===wr&&/\b(transform|all)(,|$)/.test(o(`${wr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function $g(e,t){for(;e.lengthIg(n)+Ig(e[o])))}function Ig(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sx(){return document.body.offsetHeight}function vT(e,t,n){const o=e[_a];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cc=Symbol("_vod"),kx=Symbol("_vsh"),Mn={beforeMount(e,{value:t},{transition:n}){e[Cc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):is(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),is(e,!0),o.enter(e)):o.leave(e,()=>{is(e,!1)}):is(e,t))},beforeUnmount(e,{value:t}){is(e,t)}};function is(e,t){e.style.display=t?e[Cc]:"none",e[kx]=!t}const bT=Symbol(""),yT=/(^|;)\s*display\s*:/;function xT(e,t,n){const o=e.style,r=ln(n);let i=!1;if(n&&!r){if(t)if(ln(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&ac(o,s,"")}else for(const a in t)n[a]==null&&ac(o,a,"");for(const a in n)a==="display"&&(i=!0),ac(o,a,n[a])}else if(r){if(t!==n){const a=o[bT];a&&(n+=";"+a),o.cssText=n,i=yT.test(n)}}else t&&e.removeAttribute("style");Cc in e&&(e[Cc]=i?o.display:"",e[kx]&&(o.display="none"))}const Og=/\s*!important$/;function ac(e,t,n){if(ct(n))n.forEach(o=>ac(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=CT(e,t);Og.test(n)?e.setProperty(Gr(o),n.replace(Og,""),"important"):e[o]=n}}const Mg=["Webkit","Moz","ms"],Pd={};function CT(e,t){const n=Pd[t];if(n)return n;let o=Ao(t);if(o!=="filter"&&o in e)return Pd[t]=o;o=Yc(o);for(let r=0;rTd||(PT.then(()=>Td=0),Td=Date.now());function AT(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;so(RT(o,n.value),t,5,[o])};return n.value=e,n.attached=TT(),n}function RT(e,t){if(ct(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Bg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ET=(e,t,n,o,r,i)=>{const a=r==="svg";t==="class"?vT(e,o,a):t==="style"?xT(e,n,o):Kc(t)?Jh(t)||ST(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$T(e,t,o,a))?(wT(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fg(e,t,o,a,i,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Fg(e,t,o,a))};function $T(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bg(t)&&pt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Bg(t)&&ln(n)?!1:t in e}const Px=new WeakMap,Tx=new WeakMap,wc=Symbol("_moveCb"),Ng=Symbol("_enterCb"),Ax={name:"TransitionGroup",props:wn({},pT,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=no(),o=Wy();let r,i;return mp(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!DT(r[0].el,n.vnode.el,a))return;r.forEach(MT),r.forEach(zT);const s=r.filter(FT);Sx(),s.forEach(l=>{const c=l.el,u=c.style;ir(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[wc]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[wc]=null,Ar(c,a))};c.addEventListener("transitionend",d)})}),()=>{const a=It(e),s=wx(a);let l=a.tag||rt;if(r=[],i)for(let c=0;cdelete e.mode;Ax.props;const OT=Ax;function MT(e){const t=e.el;t[wc]&&t[wc](),t[Ng]&&t[Ng]()}function zT(e){Tx.set(e,e.el.getBoundingClientRect())}function FT(e){const t=Px.get(e),n=Tx.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${r}px)`,i.transitionDuration="0s",e}}function DT(e,t,n){const o=e.cloneNode(),r=e[_a];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:a}=_x(o);return i.removeChild(o),a}const Hg=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ct(t)?n=>rc(t,n):t};function LT(e){e.target.composing=!0}function jg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ad=Symbol("_assign"),BT={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Ad]=Hg(r);const i=o||r.props&&r.props.type==="number";sa(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=$f(s)),e[Ad](s)}),n&&sa(e,"change",()=>{e.value=e.value.trim()}),t||(sa(e,"compositionstart",LT),sa(e,"compositionend",jg),sa(e,"change",jg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},a){if(e[Ad]=Hg(a),e.composing)return;const s=(i||e.type==="number")&&!/^0\d/.test(e.value)?$f(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===l)||(e.value=l))}},NT=["ctrl","shift","alt","meta"],HT={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>NT.some(n=>e[`${n}Key`]&&!t.includes(n))},jT=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Gr(r.key);if(t.some(a=>a===i||UT[a]===i))return e(r)})},VT=wn({patchProp:ET},hT);let Ug;function WT(){return Ug||(Ug=DP(VT))}const Rx=(...e)=>{const t=WT().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=KT(o);if(!r)return;const i=t._component;!pt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,qT(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function qT(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function KT(e){return ln(e)?document.querySelector(e):e}/*! * vue-router v4.4.3 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const aa=typeof document<"u";function BT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ut=Object.assign;function Sd(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ro(r)?r.map(e):e(r)}return n}const ws=()=>{},Ro=Array.isArray,wx=/#/g,NT=/&/g,HT=/\//g,jT=/=/g,UT=/\?/g,_x=/\+/g,VT=/%5B/g,WT=/%5D/g,Sx=/%5E/g,qT=/%60/g,kx=/%7B/g,KT=/%7C/g,Px=/%7D/g,GT=/%20/g;function mp(e){return encodeURI(""+e).replace(KT,"|").replace(VT,"[").replace(WT,"]")}function XT(e){return mp(e).replace(kx,"{").replace(Px,"}").replace(Sx,"^")}function Df(e){return mp(e).replace(_x,"%2B").replace(GT,"+").replace(wx,"%23").replace(NT,"%26").replace(qT,"`").replace(kx,"{").replace(Px,"}").replace(Sx,"^")}function YT(e){return Df(e).replace(jT,"%3D")}function QT(e){return mp(e).replace(wx,"%23").replace(UT,"%3F")}function JT(e){return e==null?"":QT(e).replace(HT,"%2F")}function Hs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ZT=/\/$/,e4=e=>e.replace(ZT,"");function kd(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=r4(o??t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:Hs(a)}}function t4(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Dg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function n4(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&wa(t.matched[o],n.matched[r])&&Tx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Tx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!o4(e[n],t[n]))return!1;return!0}function o4(e,t){return Ro(e)?Lg(e,t):Ro(t)?Lg(t,e):e===t}function Lg(e,t){return Ro(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function r4(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,a,s;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(a).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var js;(function(e){e.pop="pop",e.push="push"})(js||(js={}));var _s;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_s||(_s={}));function i4(e){if(!e)if(aa){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),e4(e)}const a4=/^[^#]+#/;function s4(e,t){return e.replace(a4,"#")+t}function l4(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const ou=()=>({left:window.scrollX,top:window.scrollY});function c4(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=l4(r,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 Bg(e,t){return(history.state?history.state.position-t:-1)+e}const Lf=new Map;function u4(e,t){Lf.set(e,t)}function d4(e){const t=Lf.get(e);return Lf.delete(e),t}let f4=()=>location.protocol+"//"+location.host;function Ex(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),Dg(l,"")}return Dg(n,e)+o+r}function h4(e,t,n,o){let r=[],i=[],a=null;const s=({state:f})=>{const h=Ex(e,location),p=n.value,g=t.value;let m=0;if(f){if(n.value=h,t.value=f,a&&a===p){a=null;return}m=g?f.position-g.position:0}else o(h);r.forEach(b=>{b(n.value,p,{delta:m,type:js.pop,direction:m?m>0?_s.forward:_s.back:_s.unknown})})};function l(){a=n.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return i.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Ut({},f.state,{scroll:ou()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Ng(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ou():null}}function p4(e){const{history:t,location:n}=window,o={value:Ex(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:f4()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function a(l,c){const u=Ut({},t.state,Ng(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),o.value=l}function s(l,c){const u=Ut({},r.value,t.state,{forward:l,scroll:ou()});i(u.current,u,!0);const d=Ut({},Ng(o.value,l,null),{position:u.position+1},c);i(l,d,!1),o.value=l}return{location:o,state:r,push:s,replace:a}}function m4(e){e=i4(e);const t=p4(e),n=h4(e,t.state,t.location,t.replace);function o(i,a=!0){a||n.pauseListeners(),history.go(i)}const r=Ut({location:"",base:e,go:o,createHref:s4.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function g4(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),m4(e)}function v4(e){return typeof e=="string"||e&&typeof e=="object"}function Rx(e){return typeof e=="string"||typeof e=="symbol"}const Ax=Symbol("");var Hg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Hg||(Hg={}));function _a(e,t){return Ut(new Error,{type:e,[Ax]:!0},t)}function er(e,t){return e instanceof Error&&Ax in e&&(t==null||!!(e.type&t))}const jg="[^/]+?",b4={sensitive:!1,strict:!1,start:!0,end:!0},y4=/[.+*?^${}()[\]/\\]/g;function x4(e,t){const n=Ut({},b4,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function $x(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const w4={type:0,value:""},_4=/[a-zA-Z0-9_]/;function S4(e){if(!e)return[[]];if(e==="/")return[[w4]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,o=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let s=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s{a(C)}:ws}function a(d){if(Rx(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function s(){return n}function l(d){const f=A4(d,n);n.splice(f,0,d),d.record.name&&!Wg(d)&&o.set(d.record.name,d)}function c(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw _a(1,{location:d});m=h.record.name,p=Ut(Vg(f.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Vg(d.params,h.keys.map(C=>C.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(C=>C.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?o.get(f.name):n.find(C=>C.re.test(f.path)),!h)throw _a(1,{location:d,currentLocation:f});m=h.record.name,p=Ut({},f.params,d.params),g=h.stringify(p)}const b=[];let w=h;for(;w;)b.unshift(w.record),w=w.parent;return{name:m,path:g,params:p,matched:b,meta:R4(b)}}e.forEach(d=>i(d));function u(){n.length=0,o.clear()}return{addRoute:i,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:r}}function Vg(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function T4(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:E4(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function E4(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Wg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function R4(e){return e.reduce((t,n)=>Ut(t,n.meta),{})}function qg(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function A4(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;$x(e,t[i])<0?o=i:n=i+1}const r=$4(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function $4(e){let t=e;for(;t=t.parent;)if(Ix(t)&&$x(e,t)===0)return t}function Ix({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function I4(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Df(i)):[o&&Df(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function O4(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Ro(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const M4=Symbol(""),Gg=Symbol(""),ru=Symbol(""),gp=Symbol(""),Bf=Symbol("");function os(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Or(e,t,n,o,r,i=a=>a()){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(_a(4,{from:n,to:t})):f instanceof Error?l(f):v4(f)?l(_a(2,{from:t,to:f})):(a&&o.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),s())},u=i(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Pd(e,t,n,o,r=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(z4(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Or(u,n,o,a,s,r))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const d=BT(u)?u.default:u;a.components[s]=d;const h=(d.__vccOpts||d)[t];return h&&Or(h,n,o,a,s,r)()}))}}return i}function z4(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xg(e){const t=Ve(ru),n=Ve(gp),o=I(()=>{const l=Se(e.to);return t.resolve(l)}),r=I(()=>{const{matched:l}=o.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(wa.bind(null,u));if(f>-1)return f;const h=Yg(l[c-2]);return c>1&&Yg(u)===h&&d[d.length-1].path!==h?d.findIndex(wa.bind(null,l[c-2])):f}),i=I(()=>r.value>-1&&B4(n.params,o.value.params)),a=I(()=>r.value>-1&&r.value===n.matched.length-1&&Tx(n.params,o.value.params));function s(l={}){return L4(l)?t[Se(e.replace)?"replace":"push"](Se(e.to)).catch(ws):Promise.resolve()}return{route:o,href:I(()=>o.value.href),isActive:i,isExactActive:a,navigate:s}}const F4=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Xg,setup(e,{slots:t}){const n=to(Xg(e)),{options:o}=Ve(ru),r=I(()=>({[Qg(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Qg(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:v("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),D4=F4;function L4(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function B4(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!Ro(r)||r.length!==o.length||o.some((i,a)=>i!==r[a]))return!1}return!0}function Yg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qg=(e,t,n)=>e??t??n,N4=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ve(Bf),r=I(()=>e.route||o.value),i=Ve(Gg,0),a=I(()=>{let c=Se(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),s=I(()=>r.value.matched[a.value]);at(Gg,I(()=>a.value+1)),at(M4,s),at(Bf,r);const l=U();return ft(()=>[l.value,s.value,e.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!wa(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=s.value,f=d&&d.components[u];if(!f)return Jg(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,m=v(f,Ut({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Jg(n.default,{Component:m,route:c})||m}}});function Jg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const H4=N4;function j4(e){const t=P4(e.routes,e),n=e.parseQuery||I4,o=e.stringifyQuery||Kg,r=e.history,i=os(),a=os(),s=os(),l=Ia(_r);let c=_r;aa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Sd.bind(null,X=>""+X),d=Sd.bind(null,JT),f=Sd.bind(null,Hs);function h(X,ce){let L,be;return Rx(X)?(L=t.getRecordMatcher(X),be=ce):be=X,t.addRoute(be,L)}function p(X){const ce=t.getRecordMatcher(X);ce&&t.removeRoute(ce)}function g(){return t.getRoutes().map(X=>X.record)}function m(X){return!!t.getRecordMatcher(X)}function b(X,ce){if(ce=Ut({},ce||l.value),typeof X=="string"){const A=kd(n,X,ce.path),re=t.resolve({path:A.path},ce),we=r.createHref(A.fullPath);return Ut(A,re,{params:f(re.params),hash:Hs(A.hash),redirectedFrom:void 0,href:we})}let L;if(X.path!=null)L=Ut({},X,{path:kd(n,X.path,ce.path).path});else{const A=Ut({},X.params);for(const re in A)A[re]==null&&delete A[re];L=Ut({},X,{params:d(A)}),ce.params=d(ce.params)}const be=t.resolve(L,ce),Oe=X.hash||"";be.params=u(f(be.params));const je=t4(o,Ut({},X,{hash:XT(Oe),path:be.path})),F=r.createHref(je);return Ut({fullPath:je,hash:Oe,query:o===Kg?O4(X.query):X.query||{}},be,{redirectedFrom:void 0,href:F})}function w(X){return typeof X=="string"?kd(n,X,l.value.path):Ut({},X)}function C(X,ce){if(c!==X)return _a(8,{from:ce,to:X})}function _(X){return x(X)}function S(X){return _(Ut(w(X),{replace:!0}))}function y(X){const ce=X.matched[X.matched.length-1];if(ce&&ce.redirect){const{redirect:L}=ce;let be=typeof L=="function"?L(X):L;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=w(be):{path:be},be.params={}),Ut({query:X.query,hash:X.hash,params:be.path!=null?{}:X.params},be)}}function x(X,ce){const L=c=b(X),be=l.value,Oe=X.state,je=X.force,F=X.replace===!0,A=y(L);if(A)return x(Ut(w(A),{state:typeof A=="object"?Ut({},Oe,A.state):Oe,force:je,replace:F}),ce||L);const re=L;re.redirectedFrom=ce;let we;return!je&&n4(o,be,L)&&(we=_a(16,{to:re,from:be}),Z(be,be,!0,!1)),(we?Promise.resolve(we):T(re,be)).catch(oe=>er(oe)?er(oe,2)?oe:pe(oe):V(oe,re,be)).then(oe=>{if(oe){if(er(oe,2))return x(Ut({replace:F},w(oe.to),{state:typeof oe.to=="object"?Ut({},Oe,oe.to.state):Oe,force:je}),ce||re)}else oe=E(re,be,!0,F,Oe);return R(re,be,oe),oe})}function P(X,ce){const L=C(X,ce);return L?Promise.reject(L):Promise.resolve()}function k(X){const ce=ee.values().next().value;return ce&&typeof ce.runWithContext=="function"?ce.runWithContext(X):X()}function T(X,ce){let L;const[be,Oe,je]=U4(X,ce);L=Pd(be.reverse(),"beforeRouteLeave",X,ce);for(const A of be)A.leaveGuards.forEach(re=>{L.push(Or(re,X,ce))});const F=P.bind(null,X,ce);return L.push(F),ne(L).then(()=>{L=[];for(const A of i.list())L.push(Or(A,X,ce));return L.push(F),ne(L)}).then(()=>{L=Pd(Oe,"beforeRouteUpdate",X,ce);for(const A of Oe)A.updateGuards.forEach(re=>{L.push(Or(re,X,ce))});return L.push(F),ne(L)}).then(()=>{L=[];for(const A of je)if(A.beforeEnter)if(Ro(A.beforeEnter))for(const re of A.beforeEnter)L.push(Or(re,X,ce));else L.push(Or(A.beforeEnter,X,ce));return L.push(F),ne(L)}).then(()=>(X.matched.forEach(A=>A.enterCallbacks={}),L=Pd(je,"beforeRouteEnter",X,ce,k),L.push(F),ne(L))).then(()=>{L=[];for(const A of a.list())L.push(Or(A,X,ce));return L.push(F),ne(L)}).catch(A=>er(A,8)?A:Promise.reject(A))}function R(X,ce,L){s.list().forEach(be=>k(()=>be(X,ce,L)))}function E(X,ce,L,be,Oe){const je=C(X,ce);if(je)return je;const F=ce===_r,A=aa?history.state:{};L&&(be||F?r.replace(X.fullPath,Ut({scroll:F&&A&&A.scroll},Oe)):r.push(X.fullPath,Oe)),l.value=X,Z(X,ce,L,F),pe()}let q;function D(){q||(q=r.listen((X,ce,L)=>{if(!G.listening)return;const be=b(X),Oe=y(be);if(Oe){x(Ut(Oe,{replace:!0}),be).catch(ws);return}c=be;const je=l.value;aa&&u4(Bg(je.fullPath,L.delta),ou()),T(be,je).catch(F=>er(F,12)?F:er(F,2)?(x(F.to,be).then(A=>{er(A,20)&&!L.delta&&L.type===js.pop&&r.go(-1,!1)}).catch(ws),Promise.reject()):(L.delta&&r.go(-L.delta,!1),V(F,be,je))).then(F=>{F=F||E(be,je,!1),F&&(L.delta&&!er(F,8)?r.go(-L.delta,!1):L.type===js.pop&&er(F,20)&&r.go(-1,!1)),R(be,je,F)}).catch(ws)}))}let B=os(),M=os(),K;function V(X,ce,L){pe(X);const be=M.list();return be.length?be.forEach(Oe=>Oe(X,ce,L)):console.error(X),Promise.reject(X)}function ae(){return K&&l.value!==_r?Promise.resolve():new Promise((X,ce)=>{B.add([X,ce])})}function pe(X){return K||(K=!X,D(),B.list().forEach(([ce,L])=>X?L(X):ce()),B.reset()),X}function Z(X,ce,L,be){const{scrollBehavior:Oe}=e;if(!aa||!Oe)return Promise.resolve();const je=!L&&d4(Bg(X.fullPath,0))||(be||!L)&&history.state&&history.state.scroll||null;return Ht().then(()=>Oe(X,ce,je)).then(F=>F&&c4(F)).catch(F=>V(F,X,ce))}const N=X=>r.go(X);let O;const ee=new Set,G={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:b,options:e,push:_,replace:S,go:N,back:()=>N(-1),forward:()=>N(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:M.add,isReady:ae,install(X){const ce=this;X.component("RouterLink",D4),X.component("RouterView",H4),X.config.globalProperties.$router=ce,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>Se(l)}),aa&&!O&&l.value===_r&&(O=!0,_(r.location).catch(Oe=>{}));const L={};for(const Oe in _r)Object.defineProperty(L,Oe,{get:()=>l.value[Oe],enumerable:!0});X.provide(ru,ce),X.provide(gp,Py(L)),X.provide(Bf,l);const be=X.unmount;ee.add(X),X.unmount=function(){ee.delete(X),ee.size<1&&(c=_r,q&&q(),q=null,l.value=_r,O=!1,K=!1),be()}}};function ne(X){return X.reduce((ce,L)=>ce.then(()=>k(L)),Promise.resolve())}return G}function U4(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;awa(c,s))?o.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(c=>wa(c,l))||r.push(l))}return[n,o,r]}function Ox(){return Ve(ru)}function za(e){return Ve(gp)}const V4="modulepreload",W4=function(e){return"/"+e},Zg={},wt=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=W4(i),i in Zg)return;Zg[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":V4,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},q4=()=>wt(()=>Promise.resolve().then(()=>br),void 0),K4={name:"dashboard",path:"/",component:q4,redirect:"dashboard",meta:{isHidden:!1},children:[{name:"dashboard",path:"/dashboard",component:()=>wt(()=>Promise.resolve().then(()=>_Fe),void 0),meta:{title:"仪表盘",icon:"mdi:home",order:0}}]},G4=Object.freeze(Object.defineProperty({__proto__:null,default:K4},Symbol.toStringTag,{value:"Module"})),X4=()=>wt(()=>Promise.resolve().then(()=>br),void 0),Y4={name:"Invite",path:"/",component:X4,redirect:"/invite",meta:{isHidden:!1},children:[{name:"Invite",path:"invite",component:()=>wt(()=>Promise.resolve().then(()=>iDe),void 0),meta:{title:"我的邀请",icon:"mdi:invite",order:1,group:{key:"finance",label:"财务"}}}]},Q4=Object.freeze(Object.defineProperty({__proto__:null,default:Y4},Symbol.toStringTag,{value:"Module"})),J4=()=>wt(()=>Promise.resolve().then(()=>br),void 0),Z4={name:"knowledge",path:"/",component:J4,redirect:"/knowledge",meta:{isHidden:!1},children:[{name:"Knowledge",path:"knowledge",component:()=>wt(()=>Promise.resolve().then(()=>dDe),void 0),meta:{title:"使用文档",icon:"mdi-book-open-variant",order:10}}]},eE=Object.freeze(Object.defineProperty({__proto__:null,default:Z4},Symbol.toStringTag,{value:"Module"})),tE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),nE={name:"Node",path:"/",component:tE,redirect:"/node",meta:{isHidden:!1},children:[{name:"Node",path:"node",component:()=>wt(()=>Promise.resolve().then(()=>IDe),void 0),meta:{title:"节点状态",icon:"mdi-check-circle-outline",order:11,group:{key:"subscribe",label:"订阅"}}}]},oE=Object.freeze(Object.defineProperty({__proto__:null,default:nE},Symbol.toStringTag,{value:"Module"})),rE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),iE={name:"Order",path:"/",component:rE,redirect:"/order",meta:{isHidden:!1},children:[{name:"Order",path:"order",component:()=>wt(()=>Promise.resolve().then(()=>MDe),void 0),meta:{title:"我的订单",icon:"mdi-format-list-bulleted",order:0,group:{key:"finance",label:"财务"}}},{name:"OrderDetail",path:"order/:trade_no",component:()=>wt(()=>Promise.resolve().then(()=>dBe),void 0),meta:{title:"订单详情",icon:"mdi:doc",order:1,isHidden:!0}}]},aE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),sE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),lE={name:"plan",path:"/",component:sE,redirect:"/plan",meta:{isHidden:!1},children:[{name:"Plan",path:"plan",component:()=>wt(()=>Promise.resolve().then(()=>MBe),void 0),meta:{title:"购买订阅",icon:"mdi-shopping-outline",order:10,group:{key:"subscribe",label:"订阅"}}},{name:"PlanDetail",path:"plan/:plan_id",component:()=>wt(()=>Promise.resolve().then(()=>s9e),void 0),meta:{title:"配置订阅",icon:"mdi:doc",order:1,isHidden:!0}}]},cE=Object.freeze(Object.defineProperty({__proto__:null,default:lE},Symbol.toStringTag,{value:"Module"})),uE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),dE={name:"profile",path:"/",component:uE,redirect:"/profile",meta:{isHidden:!1},children:[{name:"Profile",path:"profile",component:()=>wt(()=>Promise.resolve().then(()=>$9e),void 0),meta:{title:"个人中心",icon:"mdi-account-outline",order:0,group:{key:"user",label:"用户"}}}]},fE=Object.freeze(Object.defineProperty({__proto__:null,default:dE},Symbol.toStringTag,{value:"Module"})),hE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),pE={name:"ticket",path:"/",component:hE,redirect:"/ticket",meta:{isHidden:!1},children:[{name:"Ticket",path:"ticket",component:()=>wt(()=>Promise.resolve().then(()=>M9e),void 0),meta:{title:"我的工单",icon:"mdi-comment-alert-outline",order:0,group:{key:"user",label:"用户"}}},{name:"TicketDetail",path:"ticket/:ticket_id",component:()=>wt(()=>Promise.resolve().then(()=>B9e),void 0),meta:{title:"工单详情",order:0,isHidden:!0}}]},mE=Object.freeze(Object.defineProperty({__proto__:null,default:pE},Symbol.toStringTag,{value:"Module"})),gE=()=>wt(()=>Promise.resolve().then(()=>br),void 0),vE={name:"traffic",path:"/",component:gE,redirect:"/traffic",meta:{isHidden:!1},children:[{name:"Traffic",path:"traffic",component:()=>wt(()=>Promise.resolve().then(()=>H9e),void 0),meta:{title:"流量明细",icon:"mdi-poll",order:0,group:{key:"user",label:"用户"}}}]},bE=Object.freeze(Object.defineProperty({__proto__:null,default:vE},Symbol.toStringTag,{value:"Module"})),Mx=[{name:"404",path:"/404",component:()=>wt(()=>Promise.resolve().then(()=>q9e),void 0),meta:{title:"404",isHidden:!0}},{name:"LOGIN",path:"/login",component:()=>wt(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"登录页",isHidden:!0}},{name:"Register",path:"/register",component:()=>wt(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"注册",isHidden:!0}},{name:"forgetpassword",path:"/forgetpassword",component:()=>wt(()=>Promise.resolve().then(()=>Sf),void 0),meta:{title:"重置密码",isHidden:!0}}],yE={name:"NotFound",path:"/:pathMatch(.*)*",redirect:"/404",meta:{title:"Not Found"}},ev=Object.assign({"/src/views/dashboard/route.ts":G4,"/src/views/invite/route.ts":Q4,"/src/views/knowledge/route.ts":eE,"/src/views/node/route.ts":oE,"/src/views/order/route.ts":aE,"/src/views/plan/route.ts":cE,"/src/views/profile/route.ts":fE,"/src/views/ticket/route.ts":mE,"/src/views/traffic/route.ts":bE}),zx=[];Object.keys(ev).forEach(e=>{zx.push(ev[e].default)});function xE(e){e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{setTimeout(()=>{var t;(t=window.$loadingBar)==null||t.finish()},200)}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})}var oy;const tv=((oy=window.settings)==null?void 0:oy.title)||"Xboard";function CE(e){e.afterEach(t=>{var o;const n=(o=t.meta)==null?void 0:o.title;n?document.title=`${n} | ${tv}`:document.title=tv})}var wE=!1;/*! + */const la=typeof document<"u";function GT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ut=Object.assign;function Rd(e,t){const n={};for(const o in t){const r=t[o];n[o]=Ro(r)?r.map(e):e(r)}return n}const ks=()=>{},Ro=Array.isArray,Ex=/#/g,XT=/&/g,YT=/\//g,QT=/=/g,JT=/\?/g,$x=/\+/g,ZT=/%5B/g,eA=/%5D/g,Ix=/%5E/g,tA=/%60/g,Ox=/%7B/g,nA=/%7C/g,Mx=/%7D/g,oA=/%20/g;function wp(e){return encodeURI(""+e).replace(nA,"|").replace(ZT,"[").replace(eA,"]")}function rA(e){return wp(e).replace(Ox,"{").replace(Mx,"}").replace(Ix,"^")}function Uf(e){return wp(e).replace($x,"%2B").replace(oA,"+").replace(Ex,"%23").replace(XT,"%26").replace(tA,"`").replace(Ox,"{").replace(Mx,"}").replace(Ix,"^")}function iA(e){return Uf(e).replace(QT,"%3D")}function aA(e){return wp(e).replace(Ex,"%23").replace(JT,"%3F")}function sA(e){return e==null?"":aA(e).replace(YT,"%2F")}function Vs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lA=/\/$/,cA=e=>e.replace(lA,"");function Ed(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=hA(o??t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:Vs(a)}}function uA(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dA(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Sa(t.matched[o],n.matched[r])&&zx(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Sa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zx(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fA(e[n],t[n]))return!1;return!0}function fA(e,t){return Ro(e)?Wg(e,t):Ro(t)?Wg(t,e):e===t}function Wg(e,t){return Ro(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function hA(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,a,s;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(a).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ws;(function(e){e.pop="pop",e.push="push"})(Ws||(Ws={}));var Ps;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ps||(Ps={}));function pA(e){if(!e)if(la){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cA(e)}const mA=/^[^#]+#/;function gA(e,t){return e.replace(mA,"#")+t}function vA(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const lu=()=>({left:window.scrollX,top:window.scrollY});function bA(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=vA(r,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 qg(e,t){return(history.state?history.state.position-t:-1)+e}const Vf=new Map;function yA(e,t){Vf.set(e,t)}function xA(e){const t=Vf.get(e);return Vf.delete(e),t}let CA=()=>location.protocol+"//"+location.host;function Fx(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let s=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),Vg(l,"")}return Vg(n,e)+o+r}function wA(e,t,n,o){let r=[],i=[],a=null;const s=({state:f})=>{const h=Fx(e,location),p=n.value,g=t.value;let m=0;if(f){if(n.value=h,t.value=f,a&&a===p){a=null;return}m=g?f.position-g.position:0}else o(h);r.forEach(b=>{b(n.value,p,{delta:m,type:Ws.pop,direction:m?m>0?Ps.forward:Ps.back:Ps.unknown})})};function l(){a=n.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return i.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(Ut({},f.state,{scroll:lu()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Kg(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?lu():null}}function _A(e){const{history:t,location:n}=window,o={value:Fx(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:CA()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function a(l,c){const u=Ut({},t.state,Kg(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),o.value=l}function s(l,c){const u=Ut({},r.value,t.state,{forward:l,scroll:lu()});i(u.current,u,!0);const d=Ut({},Kg(o.value,l,null),{position:u.position+1},c);i(l,d,!1),o.value=l}return{location:o,state:r,push:s,replace:a}}function SA(e){e=pA(e);const t=_A(e),n=wA(e,t.state,t.location,t.replace);function o(i,a=!0){a||n.pauseListeners(),history.go(i)}const r=Ut({location:"",base:e,go:o,createHref:gA.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function kA(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),SA(e)}function PA(e){return typeof e=="string"||e&&typeof e=="object"}function Dx(e){return typeof e=="string"||typeof e=="symbol"}const Lx=Symbol("");var Gg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Gg||(Gg={}));function ka(e,t){return Ut(new Error,{type:e,[Lx]:!0},t)}function er(e,t){return e instanceof Error&&Lx in e&&(t==null||!!(e.type&t))}const Xg="[^/]+?",TA={sensitive:!1,strict:!1,start:!0,end:!0},AA=/[.+*?^${}()[\]/\\]/g;function RA(e,t){const n=Ut({},TA,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Bx(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const $A={type:0,value:""},IA=/[a-zA-Z0-9_]/;function OA(e){if(!e)return[[]];if(e==="/")return[[$A]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,o=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let s=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;s{a(C)}:ks}function a(d){if(Dx(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function s(){return n}function l(d){const f=BA(d,n);n.splice(f,0,d),d.record.name&&!Jg(d)&&o.set(d.record.name,d)}function c(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw ka(1,{location:d});m=h.record.name,p=Ut(Qg(f.params,h.keys.filter(C=>!C.optional).concat(h.parent?h.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&Qg(d.params,h.keys.map(C=>C.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(C=>C.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?o.get(f.name):n.find(C=>C.re.test(f.path)),!h)throw ka(1,{location:d,currentLocation:f});m=h.record.name,p=Ut({},f.params,d.params),g=h.stringify(p)}const b=[];let w=h;for(;w;)b.unshift(w.record),w=w.parent;return{name:m,path:g,params:p,matched:b,meta:LA(b)}}e.forEach(d=>i(d));function u(){n.length=0,o.clear()}return{addRoute:i,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:r}}function Qg(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function FA(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:DA(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function DA(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Jg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function LA(e){return e.reduce((t,n)=>Ut(t,n.meta),{})}function Zg(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function BA(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;Bx(e,t[i])<0?o=i:n=i+1}const r=NA(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function NA(e){let t=e;for(;t=t.parent;)if(Nx(t)&&Bx(e,t)===0)return t}function Nx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function HA(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Uf(i)):[o&&Uf(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function jA(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Ro(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const UA=Symbol(""),tv=Symbol(""),cu=Symbol(""),_p=Symbol(""),Wf=Symbol("");function as(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Or(e,t,n,o,r,i=a=>a()){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((s,l)=>{const c=f=>{f===!1?l(ka(4,{from:n,to:t})):f instanceof Error?l(f):PA(f)?l(ka(2,{from:t,to:f})):(a&&o.enterCallbacks[r]===a&&typeof f=="function"&&a.push(f),s())},u=i(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function $d(e,t,n,o,r=i=>i()){const i=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(VA(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Or(u,n,o,a,s,r))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const d=GT(u)?u.default:u;a.components[s]=d;const h=(d.__vccOpts||d)[t];return h&&Or(h,n,o,a,s,r)()}))}}return i}function VA(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nv(e){const t=Ve(cu),n=Ve(_p),o=M(()=>{const l=ke(e.to);return t.resolve(l)}),r=M(()=>{const{matched:l}=o.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Sa.bind(null,u));if(f>-1)return f;const h=ov(l[c-2]);return c>1&&ov(u)===h&&d[d.length-1].path!==h?d.findIndex(Sa.bind(null,l[c-2])):f}),i=M(()=>r.value>-1&&GA(n.params,o.value.params)),a=M(()=>r.value>-1&&r.value===n.matched.length-1&&zx(n.params,o.value.params));function s(l={}){return KA(l)?t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(ks):Promise.resolve()}return{route:o,href:M(()=>o.value.href),isActive:i,isExactActive:a,navigate:s}}const WA=ye({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:nv,setup(e,{slots:t}){const n=to(nv(e)),{options:o}=Ve(cu),r=M(()=>({[rv(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[rv(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:v("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),qA=WA;function KA(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function GA(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!Ro(r)||r.length!==o.length||o.some((i,a)=>i!==r[a]))return!1}return!0}function ov(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rv=(e,t,n)=>e??t??n,XA=ye({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ve(Wf),r=M(()=>e.route||o.value),i=Ve(tv,0),a=M(()=>{let c=ke(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),s=M(()=>r.value.matched[a.value]);at(tv,M(()=>a.value+1)),at(UA,s),at(Wf,r);const l=j();return ut(()=>[l.value,s.value,e.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Sa(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=s.value,f=d&&d.components[u];if(!f)return iv(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,m=v(f,Ut({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return iv(n.default,{Component:m,route:c})||m}}});function iv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const YA=XA;function QA(e){const t=zA(e.routes,e),n=e.parseQuery||HA,o=e.stringifyQuery||ev,r=e.history,i=as(),a=as(),s=as(),l=za(_r);let c=_r;la&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Rd.bind(null,K=>""+K),d=Rd.bind(null,sA),f=Rd.bind(null,Vs);function h(K,le){let N,be;return Dx(K)?(N=t.getRecordMatcher(K),be=le):be=K,t.addRoute(be,N)}function p(K){const le=t.getRecordMatcher(K);le&&t.removeRoute(le)}function g(){return t.getRoutes().map(K=>K.record)}function m(K){return!!t.getRecordMatcher(K)}function b(K,le){if(le=Ut({},le||l.value),typeof K=="string"){const I=Ed(n,K,le.path),re=t.resolve({path:I.path},le),_e=r.createHref(I.fullPath);return Ut(I,re,{params:f(re.params),hash:Vs(I.hash),redirectedFrom:void 0,href:_e})}let N;if(K.path!=null)N=Ut({},K,{path:Ed(n,K.path,le.path).path});else{const I=Ut({},K.params);for(const re in I)I[re]==null&&delete I[re];N=Ut({},K,{params:d(I)}),le.params=d(le.params)}const be=t.resolve(N,le),Ie=K.hash||"";be.params=u(f(be.params));const Ne=uA(o,Ut({},K,{hash:rA(Ie),path:be.path})),F=r.createHref(Ne);return Ut({fullPath:Ne,hash:Ie,query:o===ev?jA(K.query):K.query||{}},be,{redirectedFrom:void 0,href:F})}function w(K){return typeof K=="string"?Ed(n,K,l.value.path):Ut({},K)}function C(K,le){if(c!==K)return ka(8,{from:le,to:K})}function _(K){return x(K)}function S(K){return _(Ut(w(K),{replace:!0}))}function y(K){const le=K.matched[K.matched.length-1];if(le&&le.redirect){const{redirect:N}=le;let be=typeof N=="function"?N(K):N;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=w(be):{path:be},be.params={}),Ut({query:K.query,hash:K.hash,params:be.path!=null?{}:K.params},be)}}function x(K,le){const N=c=b(K),be=l.value,Ie=K.state,Ne=K.force,F=K.replace===!0,I=y(N);if(I)return x(Ut(w(I),{state:typeof I=="object"?Ut({},Ie,I.state):Ie,force:Ne,replace:F}),le||N);const re=N;re.redirectedFrom=le;let _e;return!Ne&&dA(o,be,N)&&(_e=ka(16,{to:re,from:be}),ee(be,be,!0,!1)),(_e?Promise.resolve(_e):T(re,be)).catch(ne=>er(ne)?er(ne,2)?ne:ue(ne):V(ne,re,be)).then(ne=>{if(ne){if(er(ne,2))return x(Ut({replace:F},w(ne.to),{state:typeof ne.to=="object"?Ut({},Ie,ne.to.state):Ie,force:Ne}),le||re)}else ne=E(re,be,!0,F,Ie);return $(re,be,ne),ne})}function k(K,le){const N=C(K,le);return N?Promise.reject(N):Promise.resolve()}function P(K){const le=Y.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(K):K()}function T(K,le){let N;const[be,Ie,Ne]=JA(K,le);N=$d(be.reverse(),"beforeRouteLeave",K,le);for(const I of be)I.leaveGuards.forEach(re=>{N.push(Or(re,K,le))});const F=k.bind(null,K,le);return N.push(F),oe(N).then(()=>{N=[];for(const I of i.list())N.push(Or(I,K,le));return N.push(F),oe(N)}).then(()=>{N=$d(Ie,"beforeRouteUpdate",K,le);for(const I of Ie)I.updateGuards.forEach(re=>{N.push(Or(re,K,le))});return N.push(F),oe(N)}).then(()=>{N=[];for(const I of Ne)if(I.beforeEnter)if(Ro(I.beforeEnter))for(const re of I.beforeEnter)N.push(Or(re,K,le));else N.push(Or(I.beforeEnter,K,le));return N.push(F),oe(N)}).then(()=>(K.matched.forEach(I=>I.enterCallbacks={}),N=$d(Ne,"beforeRouteEnter",K,le,P),N.push(F),oe(N))).then(()=>{N=[];for(const I of a.list())N.push(Or(I,K,le));return N.push(F),oe(N)}).catch(I=>er(I,8)?I:Promise.reject(I))}function $(K,le,N){s.list().forEach(be=>P(()=>be(K,le,N)))}function E(K,le,N,be,Ie){const Ne=C(K,le);if(Ne)return Ne;const F=le===_r,I=la?history.state:{};N&&(be||F?r.replace(K.fullPath,Ut({scroll:F&&I&&I.scroll},Ie)):r.push(K.fullPath,Ie)),l.value=K,ee(K,le,N,F),ue()}let G;function B(){G||(G=r.listen((K,le,N)=>{if(!W.listening)return;const be=b(K),Ie=y(be);if(Ie){x(Ut(Ie,{replace:!0}),be).catch(ks);return}c=be;const Ne=l.value;la&&yA(qg(Ne.fullPath,N.delta),lu()),T(be,Ne).catch(F=>er(F,12)?F:er(F,2)?(x(F.to,be).then(I=>{er(I,20)&&!N.delta&&N.type===Ws.pop&&r.go(-1,!1)}).catch(ks),Promise.reject()):(N.delta&&r.go(-N.delta,!1),V(F,be,Ne))).then(F=>{F=F||E(be,Ne,!1),F&&(N.delta&&!er(F,8)?r.go(-N.delta,!1):N.type===Ws.pop&&er(F,20)&&r.go(-1,!1)),$(be,Ne,F)}).catch(ks)}))}let D=as(),L=as(),X;function V(K,le,N){ue(K);const be=L.list();return be.length?be.forEach(Ie=>Ie(K,le,N)):console.error(K),Promise.reject(K)}function ae(){return X&&l.value!==_r?Promise.resolve():new Promise((K,le)=>{D.add([K,le])})}function ue(K){return X||(X=!K,B(),D.list().forEach(([le,N])=>K?N(K):le()),D.reset()),K}function ee(K,le,N,be){const{scrollBehavior:Ie}=e;if(!la||!Ie)return Promise.resolve();const Ne=!N&&xA(qg(K.fullPath,0))||(be||!N)&&history.state&&history.state.scroll||null;return Ht().then(()=>Ie(K,le,Ne)).then(F=>F&&bA(F)).catch(F=>V(F,K,le))}const R=K=>r.go(K);let A;const Y=new Set,W={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:b,options:e,push:_,replace:S,go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:L.add,isReady:ae,install(K){const le=this;K.component("RouterLink",qA),K.component("RouterView",YA),K.config.globalProperties.$router=le,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(l)}),la&&!A&&l.value===_r&&(A=!0,_(r.location).catch(Ie=>{}));const N={};for(const Ie in _r)Object.defineProperty(N,Ie,{get:()=>l.value[Ie],enumerable:!0});K.provide(cu,le),K.provide(_p,My(N)),K.provide(Wf,l);const be=K.unmount;Y.add(K),K.unmount=function(){Y.delete(K),Y.size<1&&(c=_r,G&&G(),G=null,l.value=_r,A=!1,X=!1),be()}}};function oe(K){return K.reduce((le,N)=>le.then(()=>P(N)),Promise.resolve())}return W}function JA(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aSa(c,s))?o.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(c=>Sa(c,l))||r.push(l))}return[n,o,r]}function Hx(){return Ve(cu)}function La(e){return Ve(_p)}const ZA="modulepreload",eR=function(e){return"/"+e},av={},wt=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=eR(i),i in av)return;av[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":ZA,a||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),a)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},tR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),nR={name:"dashboard",path:"/",component:tR,redirect:"dashboard",meta:{isHidden:!1},children:[{name:"dashboard",path:"/dashboard",component:()=>wt(()=>Promise.resolve().then(()=>IFe),void 0),meta:{title:"仪表盘",icon:"mdi:home",order:0}}]},oR=Object.freeze(Object.defineProperty({__proto__:null,default:nR},Symbol.toStringTag,{value:"Module"})),rR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),iR={name:"Invite",path:"/",component:rR,redirect:"/invite",meta:{isHidden:!1},children:[{name:"Invite",path:"invite",component:()=>wt(()=>Promise.resolve().then(()=>pDe),void 0),meta:{title:"我的邀请",icon:"mdi:invite",order:1,group:{key:"finance",label:"财务"}}}]},aR=Object.freeze(Object.defineProperty({__proto__:null,default:iR},Symbol.toStringTag,{value:"Module"})),sR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),lR={name:"knowledge",path:"/",component:sR,redirect:"/knowledge",meta:{isHidden:!1},children:[{name:"Knowledge",path:"knowledge",component:()=>wt(()=>Promise.resolve().then(()=>xDe),void 0),meta:{title:"使用文档",icon:"mdi-book-open-variant",order:10}}]},cR=Object.freeze(Object.defineProperty({__proto__:null,default:lR},Symbol.toStringTag,{value:"Module"})),uR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),dR={name:"Node",path:"/",component:uR,redirect:"/node",meta:{isHidden:!1},children:[{name:"Node",path:"node",component:()=>wt(()=>Promise.resolve().then(()=>HDe),void 0),meta:{title:"节点状态",icon:"mdi-check-circle-outline",order:11,group:{key:"subscribe",label:"订阅"}}}]},fR=Object.freeze(Object.defineProperty({__proto__:null,default:dR},Symbol.toStringTag,{value:"Module"})),hR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),pR={name:"Order",path:"/",component:hR,redirect:"/order",meta:{isHidden:!1},children:[{name:"Order",path:"order",component:()=>wt(()=>Promise.resolve().then(()=>UDe),void 0),meta:{title:"我的订单",icon:"mdi-format-list-bulleted",order:0,group:{key:"finance",label:"财务"}}},{name:"OrderDetail",path:"order/:trade_no",component:()=>wt(()=>Promise.resolve().then(()=>xBe),void 0),meta:{title:"订单详情",icon:"mdi:doc",order:1,isHidden:!0}}]},mR=Object.freeze(Object.defineProperty({__proto__:null,default:pR},Symbol.toStringTag,{value:"Module"})),gR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),vR={name:"plan",path:"/",component:gR,redirect:"/plan",meta:{isHidden:!1},children:[{name:"Plan",path:"plan",component:()=>wt(()=>Promise.resolve().then(()=>UBe),void 0),meta:{title:"购买订阅",icon:"mdi-shopping-outline",order:10,group:{key:"subscribe",label:"订阅"}}},{name:"PlanDetail",path:"plan/:plan_id",component:()=>wt(()=>Promise.resolve().then(()=>g9e),void 0),meta:{title:"配置订阅",icon:"mdi:doc",order:1,isHidden:!0}}]},bR=Object.freeze(Object.defineProperty({__proto__:null,default:vR},Symbol.toStringTag,{value:"Module"})),yR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),xR={name:"profile",path:"/",component:yR,redirect:"/profile",meta:{isHidden:!1},children:[{name:"Profile",path:"profile",component:()=>wt(()=>Promise.resolve().then(()=>N9e),void 0),meta:{title:"个人中心",icon:"mdi-account-outline",order:0,group:{key:"user",label:"用户"}}}]},CR=Object.freeze(Object.defineProperty({__proto__:null,default:xR},Symbol.toStringTag,{value:"Module"})),wR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),_R={name:"ticket",path:"/",component:wR,redirect:"/ticket",meta:{isHidden:!1},children:[{name:"Ticket",path:"ticket",component:()=>wt(()=>Promise.resolve().then(()=>U9e),void 0),meta:{title:"我的工单",icon:"mdi-comment-alert-outline",order:0,group:{key:"user",label:"用户"}}},{name:"TicketDetail",path:"ticket/:ticket_id",component:()=>wt(()=>Promise.resolve().then(()=>G9e),void 0),meta:{title:"工单详情",order:0,isHidden:!0}}]},SR=Object.freeze(Object.defineProperty({__proto__:null,default:_R},Symbol.toStringTag,{value:"Module"})),kR=()=>wt(()=>Promise.resolve().then(()=>br),void 0),PR={name:"traffic",path:"/",component:kR,redirect:"/traffic",meta:{isHidden:!1},children:[{name:"Traffic",path:"traffic",component:()=>wt(()=>Promise.resolve().then(()=>Y9e),void 0),meta:{title:"流量明细",icon:"mdi-poll",order:0,group:{key:"user",label:"用户"}}}]},TR=Object.freeze(Object.defineProperty({__proto__:null,default:PR},Symbol.toStringTag,{value:"Module"})),jx=[{name:"Home",path:"/",redirect:"/dashboard",meta:{title:"首页",isHidden:!0}},{name:"404",path:"/404",component:()=>wt(()=>Promise.resolve().then(()=>t7e),void 0),meta:{title:"404",isHidden:!0}},{name:"LOGIN",path:"/login",component:()=>wt(()=>Promise.resolve().then(()=>Ef),void 0),meta:{title:"登录页",isHidden:!0}},{name:"Register",path:"/register",component:()=>wt(()=>Promise.resolve().then(()=>Ef),void 0),meta:{title:"注册",isHidden:!0}},{name:"forgetpassword",path:"/forgetpassword",component:()=>wt(()=>Promise.resolve().then(()=>Ef),void 0),meta:{title:"重置密码",isHidden:!0}}],AR={name:"NotFound",path:"/:pathMatch(.*)*",redirect:"/404",meta:{title:"Not Found"}},sv=Object.assign({"/src/views/dashboard/route.ts":oR,"/src/views/invite/route.ts":aR,"/src/views/knowledge/route.ts":cR,"/src/views/node/route.ts":fR,"/src/views/order/route.ts":mR,"/src/views/plan/route.ts":bR,"/src/views/profile/route.ts":CR,"/src/views/ticket/route.ts":SR,"/src/views/traffic/route.ts":TR}),Ux=[];Object.keys(sv).forEach(e=>{Ux.push(sv[e].default)});function RR(e){e.beforeEach(()=>{var t;(t=window.$loadingBar)==null||t.start()}),e.afterEach(()=>{setTimeout(()=>{var t;(t=window.$loadingBar)==null||t.finish()},200)}),e.onError(()=>{var t;(t=window.$loadingBar)==null||t.error()})}var dy;const lv=((dy=window.settings)==null?void 0:dy.title)||"Xboard";function ER(e){e.afterEach(t=>{var o;const n=(o=t.meta)==null?void 0:o.title;n?document.title=`${n} | ${lv}`:document.title=lv})}var $R=!1;/*! * pinia v2.2.2 * (c) 2024 Eduardo San Martin Morote * @license MIT - */let Fx;const iu=e=>Fx=e,Dx=Symbol();function Nf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ss;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ss||(Ss={}));function _E(){const e=Gh(!0),t=e.run(()=>U({}));let n=[],o=[];const r=Ms({install(i){iu(r),r._a=i,i.provide(Dx,r),i.config.globalProperties.$pinia=r,o.forEach(a=>n.push(a)),o=[]},use(i){return!this._a&&!wE?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Lx=()=>{};function nv(e,t,n,o=Lx){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&Xh()&&py(r),r}function Zi(e,...t){e.slice().forEach(n=>{n(...t)})}const SE=e=>e(),ov=Symbol(),Td=Symbol();function Hf(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Nf(r)&&Nf(o)&&e.hasOwnProperty(n)&&!cn(o)&&!wi(o)?e[n]=Hf(r,o):e[n]=o}return e}const kE=Symbol();function PE(e){return!Nf(e)||!e.hasOwnProperty(kE)}const{assign:Rr}=Object;function TE(e){return!!(cn(e)&&e.effect)}function EE(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let l;function c(){s||(n.state.value[e]=r?r():{});const u=X3(n.state.value[e]);return Rr(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=Ms(I(()=>{iu(n);const h=n._s.get(e);return a[f].call(h,h)})),d),{}))}return l=Bx(e,c,t,n,o,!0),l}function Bx(e,t,n={},o,r,i){let a;const s=Rr({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],h;const p=o.state.value[e];!i&&!p&&(o.state.value[e]={}),U({});let g;function m(P){let k;c=u=!1,typeof P=="function"?(P(o.state.value[e]),k={type:Ss.patchFunction,storeId:e,events:h}):(Hf(o.state.value[e],P),k={type:Ss.patchObject,payload:P,storeId:e,events:h});const T=g=Symbol();Ht().then(()=>{g===T&&(c=!0)}),u=!0,Zi(d,k,o.state.value[e])}const b=i?function(){const{state:k}=n,T=k?k():{};this.$patch(R=>{Rr(R,T)})}:Lx;function w(){a.stop(),d=[],f=[],o._s.delete(e)}const C=(P,k="")=>{if(ov in P)return P[Td]=k,P;const T=function(){iu(o);const R=Array.from(arguments),E=[],q=[];function D(K){E.push(K)}function B(K){q.push(K)}Zi(f,{args:R,name:T[Td],store:S,after:D,onError:B});let M;try{M=P.apply(this&&this.$id===e?this:S,R)}catch(K){throw Zi(q,K),K}return M instanceof Promise?M.then(K=>(Zi(E,K),K)).catch(K=>(Zi(q,K),Promise.reject(K))):(Zi(E,M),M)};return T[ov]=!0,T[Td]=k,T},_={_p:o,$id:e,$onAction:nv.bind(null,f),$patch:m,$reset:b,$subscribe(P,k={}){const T=nv(d,P,k.detached,()=>R()),R=a.run(()=>ft(()=>o.state.value[e],E=>{(k.flush==="sync"?u:c)&&P({storeId:e,type:Ss.direct,events:h},E)},Rr({},l,k)));return T},$dispose:w},S=to(_);o._s.set(e,S);const x=(o._a&&o._a.runWithContext||SE)(()=>o._e.run(()=>(a=Gh()).run(()=>t({action:C}))));for(const P in x){const k=x[P];if(cn(k)&&!TE(k)||wi(k))i||(p&&PE(k)&&(cn(k)?k.value=p[P]:Hf(k,p[P])),o.state.value[e][P]=k);else if(typeof k=="function"){const T=C(k,P);x[P]=T,s.actions[P]=k}}return Rr(S,x),Rr(It(S),x),Object.defineProperty(S,"$state",{get:()=>o.state.value[e],set:P=>{m(k=>{Rr(k,P)})}}),o._p.forEach(P=>{Rr(S,a.run(()=>P({store:S,app:o._a,pinia:o,options:s})))}),p&&i&&n.hydrate&&n.hydrate(S.$state,p),c=!0,u=!0,S}function au(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function a(s,l){const c=bP();return s=s||(c?Ve(Dx,null):null),s&&iu(s),s=Fx,s._s.has(o)||(i?Bx(o,t,r,s):EE(o,r,s)),s._s.get(o)}return a.$id=o,a}function Nx(e,t){return function(){return e.apply(t,arguments)}}const{toString:RE}=Object.prototype,{getPrototypeOf:vp}=Object,su=(e=>t=>{const n=RE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$o=e=>(e=e.toLowerCase(),t=>su(t)===e),lu=e=>t=>typeof t===e,{isArray:Fa}=Array,Us=lu("undefined");function AE(e){return e!==null&&!Us(e)&&e.constructor!==null&&!Us(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hx=$o("ArrayBuffer");function $E(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hx(e.buffer),t}const IE=lu("string"),Jn=lu("function"),jx=lu("number"),cu=e=>e!==null&&typeof e=="object",OE=e=>e===!0||e===!1,nc=e=>{if(su(e)!=="object")return!1;const t=vp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ME=$o("Date"),zE=$o("File"),FE=$o("Blob"),DE=$o("FileList"),LE=e=>cu(e)&&Jn(e.pipe),BE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=su(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},NE=$o("URLSearchParams"),[HE,jE,UE,VE]=["ReadableStream","Request","Response","Headers"].map($o),WE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Fa(e))for(o=0,r=e.length;o0;)if(r=n[o],t===r.toLowerCase())return r;return null}const mi=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vx=e=>!Us(e)&&e!==mi;function jf(){const{caseless:e}=Vx(this)&&this||{},t={},n=(o,r)=>{const i=e&&Ux(t,r)||r;nc(t[i])&&nc(o)?t[i]=jf(t[i],o):nc(o)?t[i]=jf({},o):Fa(o)?t[i]=o.slice():t[i]=o};for(let o=0,r=arguments.length;o(rl(t,(r,i)=>{n&&Jn(r)?e[i]=Nx(r,n):e[i]=r},{allOwnKeys:o}),e),KE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GE=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},XE=(e,t,n,o)=>{let r,i,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&vp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},YE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},QE=e=>{if(!e)return null;if(Fa(e))return e;let t=e.length;if(!jx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},JE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vp(Uint8Array)),ZE=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},eR=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},tR=$o("HTMLFormElement"),nR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),rv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oR=$o("RegExp"),Wx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};rl(n,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(o[i]=a||r)}),Object.defineProperties(e,o)},rR=e=>{Wx(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Jn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iR=(e,t)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return Fa(e)?o(e):o(String(e).split(t)),n},aR=()=>{},sR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ed="abcdefghijklmnopqrstuvwxyz",iv="0123456789",qx={DIGIT:iv,ALPHA:Ed,ALPHA_DIGIT:Ed+Ed.toUpperCase()+iv},lR=(e=16,t=qx.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function cR(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uR=e=>{const t=new Array(10),n=(o,r)=>{if(cu(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const i=Fa(o)?[]:{};return rl(o,(a,s)=>{const l=n(a,r+1);!Us(l)&&(i[s]=l)}),t[r]=void 0,i}}return o};return n(e,0)},dR=$o("AsyncFunction"),fR=e=>e&&(cu(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),Kx=((e,t)=>e?setImmediate:t?((n,o)=>(mi.addEventListener("message",({source:r,data:i})=>{r===mi&&i===n&&o.length&&o.shift()()},!1),r=>{o.push(r),mi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn(mi.postMessage)),hR=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||Kx,Pe={isArray:Fa,isArrayBuffer:Hx,isBuffer:AE,isFormData:BE,isArrayBufferView:$E,isString:IE,isNumber:jx,isBoolean:OE,isObject:cu,isPlainObject:nc,isReadableStream:HE,isRequest:jE,isResponse:UE,isHeaders:VE,isUndefined:Us,isDate:ME,isFile:zE,isBlob:FE,isRegExp:oR,isFunction:Jn,isStream:LE,isURLSearchParams:NE,isTypedArray:JE,isFileList:DE,forEach:rl,merge:jf,extend:qE,trim:WE,stripBOM:KE,inherits:GE,toFlatObject:XE,kindOf:su,kindOfTest:$o,endsWith:YE,toArray:QE,forEachEntry:ZE,matchAll:eR,isHTMLForm:tR,hasOwnProperty:rv,hasOwnProp:rv,reduceDescriptors:Wx,freezeMethods:rR,toObjectSet:iR,toCamelCase:nR,noop:aR,toFiniteNumber:sR,findKey:Ux,global:mi,isContextDefined:Vx,ALPHABET:qx,generateString:lR,isSpecCompliantForm:cR,toJSONObject:uR,isAsyncFn:dR,isThenable:fR,setImmediate:Kx,asap:hR};function yt(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}Pe.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pe.toJSONObject(this.config),code:this.code,status:this.status}}});const Gx=yt.prototype,Xx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Xx[e]={value:e}});Object.defineProperties(yt,Xx);Object.defineProperty(Gx,"isAxiosError",{value:!0});yt.from=(e,t,n,o,r,i)=>{const a=Object.create(Gx);return Pe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yt.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const pR=null;function Uf(e){return Pe.isPlainObject(e)||Pe.isArray(e)}function Yx(e){return Pe.endsWith(e,"[]")?e.slice(0,-2):e}function av(e,t,n){return e?e.concat(t).map(function(r,i){return r=Yx(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function mR(e){return Pe.isArray(e)&&!e.some(Uf)}const gR=Pe.toFlatObject(Pe,{},null,function(t){return/^is[A-Z]/.test(t)});function uu(e,t,n){if(!Pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!Pe.isUndefined(m[g])});const o=n.metaTokens,r=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Pe.isSpecCompliantForm(t);if(!Pe.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Pe.isDate(p))return p.toISOString();if(!l&&Pe.isBlob(p))throw new yt("Blob is not supported. Use a Buffer instead.");return Pe.isArrayBuffer(p)||Pe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,m){let b=p;if(p&&!m&&typeof p=="object"){if(Pe.endsWith(g,"{}"))g=o?g:g.slice(0,-2),p=JSON.stringify(p);else if(Pe.isArray(p)&&mR(p)||(Pe.isFileList(p)||Pe.endsWith(g,"[]"))&&(b=Pe.toArray(p)))return g=Yx(g),b.forEach(function(C,_){!(Pe.isUndefined(C)||C===null)&&t.append(a===!0?av([g],_,i):a===null?g:g+"[]",c(C))}),!1}return Uf(p)?!0:(t.append(av(m,g,i),c(p)),!1)}const d=[],f=Object.assign(gR,{defaultVisitor:u,convertValue:c,isVisitable:Uf});function h(p,g){if(!Pe.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),Pe.forEach(p,function(b,w){(!(Pe.isUndefined(b)||b===null)&&r.call(t,b,Pe.isString(w)?w.trim():w,g,f))===!0&&h(b,g?g.concat(w):[w])}),d.pop()}}if(!Pe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function sv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function bp(e,t){this._pairs=[],e&&uu(e,this,t)}const Qx=bp.prototype;Qx.append=function(t,n){this._pairs.push([t,n])};Qx.toString=function(t){const n=t?function(o){return t.call(this,o,sv)}:sv;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function vR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jx(e,t,n){if(!t)return e;const o=n&&n.encode||vR,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Pe.isURLSearchParams(t)?t.toString():new bp(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class bR{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Pe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const lv=bR,Zx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yR=typeof URLSearchParams<"u"?URLSearchParams:bp,xR=typeof FormData<"u"?FormData:null,CR=typeof Blob<"u"?Blob:null,wR={isBrowser:!0,classes:{URLSearchParams:yR,FormData:xR,Blob:CR},protocols:["http","https","file","blob","url","data"]},yp=typeof window<"u"&&typeof document<"u",Vf=typeof navigator=="object"&&navigator||void 0,_R=yp&&(!Vf||["ReactNative","NativeScript","NS"].indexOf(Vf.product)<0),SR=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kR=yp&&window.location.href||"http://localhost",PR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yp,hasStandardBrowserEnv:_R,hasStandardBrowserWebWorkerEnv:SR,navigator:Vf,origin:kR},Symbol.toStringTag,{value:"Module"})),Zn={...PR,...wR};function TR(e,t){return uu(e,new Zn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return Zn.isNode&&Pe.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ER(e){return Pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RR(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o=n.length;return a=!a&&Pe.isArray(r)?r.length:a,l?(Pe.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!s):((!r[a]||!Pe.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],i)&&Pe.isArray(r[a])&&(r[a]=RR(r[a])),!s)}if(Pe.isFormData(e)&&Pe.isFunction(e.entries)){const n={};return Pe.forEachEntry(e,(o,r)=>{t(ER(o),r,n,0)}),n}return null}function AR(e,t,n){if(Pe.isString(e))try{return(t||JSON.parse)(e),Pe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const xp={transitional:Zx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,i=Pe.isObject(t);if(i&&Pe.isHTMLForm(t)&&(t=new FormData(t)),Pe.isFormData(t))return r?JSON.stringify(eC(t)):t;if(Pe.isArrayBuffer(t)||Pe.isBuffer(t)||Pe.isStream(t)||Pe.isFile(t)||Pe.isBlob(t)||Pe.isReadableStream(t))return t;if(Pe.isArrayBufferView(t))return t.buffer;if(Pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return TR(t,this.formSerializer).toString();if((s=Pe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return uu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),AR(t)):t}],transformResponse:[function(t){const n=this.transitional||xp.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Pe.isResponse(t)||Pe.isReadableStream(t))return t;if(t&&Pe.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?yt.from(s,yt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zn.classes.FormData,Blob:Zn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pe.forEach(["delete","get","head","post","put","patch"],e=>{xp.headers[e]={}});const Cp=xp,$R=Pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IR=e=>{const t={};let n,o,r;return e&&e.split(` -`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&$R[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},cv=Symbol("internals");function rs(e){return e&&String(e).trim().toLowerCase()}function oc(e){return e===!1||e==null?e:Pe.isArray(e)?e.map(oc):String(e)}function OR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const MR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rd(e,t,n,o,r){if(Pe.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!Pe.isString(t)){if(Pe.isString(o))return t.indexOf(o)!==-1;if(Pe.isRegExp(o))return o.test(t)}}function zR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function FR(e,t){const n=Pe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,i,a){return this[o].call(this,t,r,i,a)},configurable:!0})})}class du{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function i(s,l,c){const u=rs(l);if(!u)throw new Error("header name must be a non-empty string");const d=Pe.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=oc(s))}const a=(s,l)=>Pe.forEach(s,(c,u)=>i(c,u,l));if(Pe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Pe.isString(t)&&(t=t.trim())&&!MR(t))a(IR(t),n);else if(Pe.isHeaders(t))for(const[s,l]of t.entries())i(l,s,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=rs(t),t){const o=Pe.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return OR(r);if(Pe.isFunction(n))return n.call(this,r,o);if(Pe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rs(t),t){const o=Pe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Rd(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function i(a){if(a=rs(a),a){const s=Pe.findKey(o,a);s&&(!n||Rd(o,o[s],s,n))&&(delete o[s],r=!0)}}return Pe.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!t||Rd(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,o={};return Pe.forEach(this,(r,i)=>{const a=Pe.findKey(o,i);if(a){n[a]=oc(r),delete n[i];return}const s=t?zR(i):String(i).trim();s!==i&&delete n[i],n[s]=oc(r),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Pe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&Pe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[cv]=this[cv]={accessors:{}}).accessors,r=this.prototype;function i(a){const s=rs(a);o[s]||(FR(r,a),o[s]=!0)}return Pe.isArray(t)?t.forEach(i):i(t),this}}du.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pe.reduceDescriptors(du.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Pe.freezeMethods(du);const To=du;function Ad(e,t){const n=this||Cp,o=t||n,r=To.from(o.headers);let i=o.data;return Pe.forEach(e,function(s){i=s.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function tC(e){return!!(e&&e.__CANCEL__)}function Da(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Pe.inherits(Da,yt,{__CANCEL__:!0});function nC(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LR(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=o[i];a||(a=c),n[r]=l,o[r]=c;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-a{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=o?a(c,u):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},o-d)))},()=>r&&a(r)]}const bc=(e,t,n=3)=>{let o=0;const r=LR(50,250);return BR(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-o,c=r(l),u=a<=s;o=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},uv=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},dv=e=>(...t)=>Pe.asap(()=>e(...t)),NR=Zn.hasStandardBrowserEnv?function(){const t=Zn.navigator&&/(msie|trident)/i.test(Zn.navigator.userAgent),n=document.createElement("a");let o;function r(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const s=Pe.isString(a)?r(a):a;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}(),HR=Zn.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const a=[e+"="+encodeURIComponent(t)];Pe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Pe.isString(o)&&a.push("path="+o),Pe.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function oC(e,t){return e&&!jR(t)?UR(e,t):t}const fv=e=>e instanceof To?{...e}:e;function Ri(e,t){t=t||{};const n={};function o(c,u,d){return Pe.isPlainObject(c)&&Pe.isPlainObject(u)?Pe.merge.call({caseless:d},c,u):Pe.isPlainObject(u)?Pe.merge({},u):Pe.isArray(u)?u.slice():u}function r(c,u,d){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function i(c,u){if(!Pe.isUndefined(u))return o(void 0,u)}function a(c,u){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function s(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>r(fv(c),fv(u),!0)};return Pe.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||r,f=d(e[u],t[u],u);Pe.isUndefined(f)&&d!==s||(n[u]=f)}),n}const rC=e=>{const t=Ri({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=To.from(a),t.url=Jx(oC(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Pe.isFormData(n)){if(Zn.hasStandardBrowserEnv||Zn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Zn.hasStandardBrowserEnv&&(o&&Pe.isFunction(o)&&(o=o(t)),o||o!==!1&&NR(t.url))){const c=r&&i&&HR.read(i);c&&a.set(r,c)}return t},VR=typeof XMLHttpRequest<"u",WR=VR&&function(e){return new Promise(function(n,o){const r=rC(e);let i=r.data;const a=To.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,u,d,f,h,p;function g(){h&&h(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function b(){if(!m)return;const C=To.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};nC(function(x){n(x),g()},function(x){o(x),g()},S),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(o(new yt("Request aborted",yt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){o(new yt("Network Error",yt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||Zx;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),o(new yt(_,S.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,m)),m=null},i===void 0&&a.setContentType(null),"setRequestHeader"in m&&Pe.forEach(a.toJSON(),function(_,S){m.setRequestHeader(S,_)}),Pe.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),s&&s!=="json"&&(m.responseType=r.responseType),c&&([f,p]=bc(c,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,h]=bc(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=C=>{m&&(o(!C||C.type?new Da(null,e,m):C),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const w=DR(r.url);if(w&&Zn.protocols.indexOf(w)===-1){o(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,e));return}m.send(i||null)})},qR=(e,t)=>{let n=new AbortController,o;const r=function(l){if(!o){o=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof yt?c:new Da(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{r(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},KR=qR,GR=function*(e,t){let n=e.byteLength;if(!t||n{const i=XR(e,t,r);let a=0,s,l=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=a+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},fu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",iC=fu&&typeof ReadableStream=="function",Wf=fu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),aC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},YR=iC&&aC(()=>{let e=!1;const t=new Request(Zn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pv=64*1024,qf=iC&&aC(()=>Pe.isReadableStream(new Response("").body)),yc={stream:qf&&(e=>e.body)};fu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!yc[t]&&(yc[t]=Pe.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,o)})})})(new Response);const QR=async e=>{if(e==null)return 0;if(Pe.isBlob(e))return e.size;if(Pe.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Pe.isArrayBufferView(e)||Pe.isArrayBuffer(e))return e.byteLength;if(Pe.isURLSearchParams(e)&&(e=e+""),Pe.isString(e))return(await Wf(e)).byteLength},JR=async(e,t)=>{const n=Pe.toFiniteNumber(e.getContentLength());return n??QR(t)},ZR=fu&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=rC(e);c=c?(c+"").toLowerCase():"text";let[h,p]=r||i||a?KR([r,i],a):[],g,m;const b=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let w;try{if(l&&YR&&n!=="get"&&n!=="head"&&(w=await JR(u,o))!==0){let x=new Request(t,{method:"POST",body:o,duplex:"half"}),P;if(Pe.isFormData(o)&&(P=x.headers.get("content-type"))&&u.setContentType(P),x.body){const[k,T]=uv(w,bc(dv(l)));o=hv(x.body,pv,k,T,Wf)}}Pe.isString(d)||(d=d?"include":"omit");const C="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:C?d:void 0});let _=await fetch(m);const S=qf&&(c==="stream"||c==="response");if(qf&&(s||S)){const x={};["status","statusText","headers"].forEach(R=>{x[R]=_[R]});const P=Pe.toFiniteNumber(_.headers.get("content-length")),[k,T]=s&&uv(P,bc(dv(s),!0))||[];_=new Response(hv(_.body,pv,k,()=>{T&&T(),S&&b()},Wf),x)}c=c||"text";let y=await yc[Pe.findKey(yc,c)||"text"](_,e);return!S&&b(),p&&p(),await new Promise((x,P)=>{nC(x,P,{data:y,headers:To.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:m})})}catch(C){throw b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,m),{cause:C.cause||C}):yt.from(C,C&&C.code,e,m)}}),Kf={http:pR,xhr:WR,fetch:ZR};Pe.forEach(Kf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mv=e=>`- ${e}`,eA=e=>Pe.isFunction(e)||e===null||e===!1,sC={getAdapter:e=>{e=Pe.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : -`+i.map(mv).join(` -`):" "+mv(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Kf};function $d(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Da(null,e)}function gv(e){return $d(e),e.headers=To.from(e.headers),e.data=Ad.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sC.getAdapter(e.adapter||Cp.adapter)(e).then(function(o){return $d(e),o.data=Ad.call(e,e.transformResponse,o),o.headers=To.from(o.headers),o},function(o){return tC(o)||($d(e),o&&o.response&&(o.response.data=Ad.call(e,e.transformResponse,o.response),o.response.headers=To.from(o.response.headers))),Promise.reject(o)})}const lC="1.7.5",wp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wp[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const vv={};wp.transitional=function(t,n,o){function r(i,a){return"[Axios v"+lC+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,s)=>{if(t===!1)throw new yt(r(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!vv[a]&&(vv[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function tA(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new yt("option "+i+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const Gf={assertOptions:tA,validators:wp},Sr=Gf.validators;class xc{constructor(t){this.defaults=t,this.interceptors={request:new lv,response:new lv}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ri(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&Gf.assertOptions(o,{silentJSONParsing:Sr.transitional(Sr.boolean),forcedJSONParsing:Sr.transitional(Sr.boolean),clarifyTimeoutError:Sr.transitional(Sr.boolean)},!1),r!=null&&(Pe.isFunction(r)?n.paramsSerializer={serialize:r}:Gf.assertOptions(r,{encode:Sr.function,serialize:Sr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Pe.merge(i.common,i[n.method]);i&&Pe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=To.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const p=[gv.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(s=>{o.subscribe(s),i=s}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,s){o.reason||(o.reason=new Da(i,a,s),n(o.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)}static source(){let t;return{token:new _p(function(r){t=r}),cancel:t}}}const nA=_p;function oA(e){return function(n){return e.apply(null,n)}}function rA(e){return Pe.isObject(e)&&e.isAxiosError===!0}const Xf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xf).forEach(([e,t])=>{Xf[t]=e});const iA=Xf;function cC(e){const t=new rc(e),n=Nx(rc.prototype.request,t);return Pe.extend(n,rc.prototype,t,{allOwnKeys:!0}),Pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return cC(Ri(e,r))},n}const gn=cC(Cp);gn.Axios=rc;gn.CanceledError=Da;gn.CancelToken=nA;gn.isCancel=tC;gn.VERSION=lC;gn.toFormData=uu;gn.AxiosError=yt;gn.Cancel=gn.CanceledError;gn.all=function(t){return Promise.all(t)};gn.spread=oA;gn.isAxiosError=rA;gn.mergeConfig=Ri;gn.AxiosHeaders=To;gn.formToJSON=e=>eC(Pe.isHTMLForm(e)?new FormData(e):e);gn.getAdapter=sC.getAdapter;gn.HttpStatusCode=iA;gn.default=gn;const aA=gn,sA=[{url:"/passport/auth/login",method:"POST"},{url:"/passport/auth/token2Login",method:"GET"},{url:"/passport/auth/register",method:"POST"},{url:"/passport/auth/register",method:"POST"},{url:"/guest/comm/config",method:"GET"},{url:"/passport/comm/sendEmailVerify",method:"POST"},{url:"/passport/auth/forget",method:"POST"}];function lA({url:e,method:t=""}){return sA.some(n=>n.url===e.split("?")[0]&&n.method===t.toUpperCase())}function cA(e){return typeof e>"u"}function uA(e){return e===null}function dA(e){return uA(e)||cA(e)}function fA(e){try{if(typeof JSON.parse(e)=="object")return!0}catch{return!1}}class hA{constructor(t){fd(this,"storage");fd(this,"prefixKey");this.storage=t.storage,this.prefixKey=t.prefixKey}getKey(t){return`${this.prefixKey}${t}`.toUpperCase()}set(t,n,o=null){const r=JSON.stringify({value:n,time:Date.now(),expire:o!==null?new Date().getTime()+o*1e3:null});this.storage.setItem(this.getKey(t),r)}get(t,n=null){const o=this.storage.getItem(this.getKey(t));if(!o)return{value:n,time:0};try{const r=JSON.parse(o),{value:i,time:a,expire:s}=r;return dA(s)||s>new Date().getTime()?{value:i,time:a}:(this.remove(t),{value:n,time:0})}catch{return this.remove(t),{value:n,time:0}}}remove(t){this.storage.removeItem(this.getKey(t))}clear(){this.storage.clear()}}function uC({prefixKey:e="",storage:t=sessionStorage}){return new hA({prefixKey:e,storage:t})}const dC="Vue_Naive_",pA=function(e={}){return uC({prefixKey:e.prefixKey||"",storage:localStorage})},mA=function(e={}){return uC({prefixKey:e.prefixKey||"",storage:sessionStorage})},il=pA({prefixKey:dC}),Cc=mA({prefixKey:dC}),fC="access_token";function hC(){return il.get(fC)}function pC(){il.remove(fC)}function Sp(){const e=Se(Gt.currentRoute),t=!e.meta.requireAuth&&!["/404","/login"].includes(Gt.currentRoute.value.path);Gt.replace({path:"/login",query:t?{...e.query,redirect:e.path}:{}})}var mC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var gC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(mC,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var B=["th","st","nd","rd"],M=D%100;return"["+D+(B[(M-20)%10]||B[M]||B[0])+"]"}},C=function(D,B,M){var K=String(D);return!K||K.length>=B?D:""+Array(B+1-K.length).join(M)+D},_={s:C,z:function(D){var B=-D.utcOffset(),M=Math.abs(B),K=Math.floor(M/60),V=M%60;return(B<=0?"+":"-")+C(K,2,"0")+":"+C(V,2,"0")},m:function D(B,M){if(B.date()1)return D(pe[0])}else{var Z=B.name;y[Z]=B,V=Z}return!K&&V&&(S=V),V||!K&&S},T=function(D,B){if(P(D))return D.clone();var M=typeof B=="object"?B:{};return M.date=D,M.args=arguments,new E(M)},R=_;R.l=k,R.i=P,R.w=function(D,B){return T(D,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function D(M){this.$L=k(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[x]=!0}var B=D.prototype;return B.parse=function(M){this.$d=function(K){var V=K.date,ae=K.utc;if(V===null)return new Date(NaN);if(R.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var pe=V.match(m);if(pe){var Z=pe[2]-1||0,N=(pe[7]||"0").substring(0,3);return ae?new Date(Date.UTC(pe[1],Z,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,N)):new Date(pe[1],Z,pe[3]||1,pe[4]||0,pe[5]||0,pe[6]||0,N)}}return new Date(V)}(M),this.init()},B.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},B.$utils=function(){return R},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(M,K){var V=T(M);return this.startOf(K)<=V&&V<=this.endOf(K)},B.isAfter=function(M,K){return T(M)Vx=e,Wx=Symbol();function qf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ts;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ts||(Ts={}));function IR(){const e=tp(!0),t=e.run(()=>j({}));let n=[],o=[];const r=Ds({install(i){uu(r),r._a=i,i.provide(Wx,r),i.config.globalProperties.$pinia=r,o.forEach(a=>n.push(a)),o=[]},use(i){return!this._a&&!$R?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const qx=()=>{};function cv(e,t,n,o=qx){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&np()&&wy(r),r}function ta(e,...t){e.slice().forEach(n=>{n(...t)})}const OR=e=>e(),uv=Symbol(),Id=Symbol();function Kf(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];qf(r)&&qf(o)&&e.hasOwnProperty(n)&&!cn(o)&&!Si(o)?e[n]=Kf(r,o):e[n]=o}return e}const MR=Symbol();function zR(e){return!qf(e)||!e.hasOwnProperty(MR)}const{assign:Rr}=Object;function FR(e){return!!(cn(e)&&e.effect)}function DR(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let l;function c(){s||(n.state.value[e]=r?r():{});const u=rP(n.state.value[e]);return Rr(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=Ds(M(()=>{uu(n);const h=n._s.get(e);return a[f].call(h,h)})),d),{}))}return l=Kx(e,c,t,n,o,!0),l}function Kx(e,t,n={},o,r,i){let a;const s=Rr({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],h;const p=o.state.value[e];!i&&!p&&(o.state.value[e]={}),j({});let g;function m(k){let P;c=u=!1,typeof k=="function"?(k(o.state.value[e]),P={type:Ts.patchFunction,storeId:e,events:h}):(Kf(o.state.value[e],k),P={type:Ts.patchObject,payload:k,storeId:e,events:h});const T=g=Symbol();Ht().then(()=>{g===T&&(c=!0)}),u=!0,ta(d,P,o.state.value[e])}const b=i?function(){const{state:P}=n,T=P?P():{};this.$patch($=>{Rr($,T)})}:qx;function w(){a.stop(),d=[],f=[],o._s.delete(e)}const C=(k,P="")=>{if(uv in k)return k[Id]=P,k;const T=function(){uu(o);const $=Array.from(arguments),E=[],G=[];function B(X){E.push(X)}function D(X){G.push(X)}ta(f,{args:$,name:T[Id],store:S,after:B,onError:D});let L;try{L=k.apply(this&&this.$id===e?this:S,$)}catch(X){throw ta(G,X),X}return L instanceof Promise?L.then(X=>(ta(E,X),X)).catch(X=>(ta(G,X),Promise.reject(X))):(ta(E,L),L)};return T[uv]=!0,T[Id]=P,T},_={_p:o,$id:e,$onAction:cv.bind(null,f),$patch:m,$reset:b,$subscribe(k,P={}){const T=cv(d,k,P.detached,()=>$()),$=a.run(()=>ut(()=>o.state.value[e],E=>{(P.flush==="sync"?u:c)&&k({storeId:e,type:Ts.direct,events:h},E)},Rr({},l,P)));return T},$dispose:w},S=to(_);o._s.set(e,S);const x=(o._a&&o._a.runWithContext||OR)(()=>o._e.run(()=>(a=tp()).run(()=>t({action:C}))));for(const k in x){const P=x[k];if(cn(P)&&!FR(P)||Si(P))i||(p&&zR(P)&&(cn(P)?P.value=p[k]:Kf(P,p[k])),o.state.value[e][k]=P);else if(typeof P=="function"){const T=C(P,k);x[k]=T,s.actions[k]=P}}return Rr(S,x),Rr(It(S),x),Object.defineProperty(S,"$state",{get:()=>o.state.value[e],set:k=>{m(P=>{Rr(P,k)})}}),o._p.forEach(k=>{Rr(S,a.run(()=>k({store:S,app:o._a,pinia:o,options:s})))}),p&&i&&n.hydrate&&n.hydrate(S.$state,p),c=!0,u=!0,S}function du(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function a(s,l){const c=TP();return s=s||(c?Ve(Wx,null):null),s&&uu(s),s=Vx,s._s.has(o)||(i?Kx(o,t,r,s):DR(o,r,s)),s._s.get(o)}return a.$id=o,a}function Gx(e,t){return function(){return e.apply(t,arguments)}}const{toString:LR}=Object.prototype,{getPrototypeOf:Sp}=Object,fu=(e=>t=>{const n=LR.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$o=e=>(e=e.toLowerCase(),t=>fu(t)===e),hu=e=>t=>typeof t===e,{isArray:Ba}=Array,qs=hu("undefined");function BR(e){return e!==null&&!qs(e)&&e.constructor!==null&&!qs(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xx=$o("ArrayBuffer");function NR(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xx(e.buffer),t}const HR=hu("string"),Jn=hu("function"),Yx=hu("number"),pu=e=>e!==null&&typeof e=="object",jR=e=>e===!0||e===!1,sc=e=>{if(fu(e)!=="object")return!1;const t=Sp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},UR=$o("Date"),VR=$o("File"),WR=$o("Blob"),qR=$o("FileList"),KR=e=>pu(e)&&Jn(e.pipe),GR=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=fu(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},XR=$o("URLSearchParams"),[YR,QR,JR,ZR]=["ReadableStream","Request","Response","Headers"].map($o),e4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Ba(e))for(o=0,r=e.length;o0;)if(r=n[o],t===r.toLowerCase())return r;return null}const vi=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Jx=e=>!qs(e)&&e!==vi;function Gf(){const{caseless:e}=Jx(this)&&this||{},t={},n=(o,r)=>{const i=e&&Qx(t,r)||r;sc(t[i])&&sc(o)?t[i]=Gf(t[i],o):sc(o)?t[i]=Gf({},o):Ba(o)?t[i]=o.slice():t[i]=o};for(let o=0,r=arguments.length;o(sl(t,(r,i)=>{n&&Jn(r)?e[i]=Gx(r,n):e[i]=r},{allOwnKeys:o}),e),n4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),o4=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},r4=(e,t,n,o)=>{let r,i,a;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Sp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i4=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},a4=e=>{if(!e)return null;if(Ba(e))return e;let t=e.length;if(!Yx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},s4=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sp(Uint8Array)),l4=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},c4=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},u4=$o("HTMLFormElement"),d4=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),dv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),f4=$o("RegExp"),Zx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};sl(n,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(o[i]=a||r)}),Object.defineProperties(e,o)},h4=e=>{Zx(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Jn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},p4=(e,t)=>{const n={},o=r=>{r.forEach(i=>{n[i]=!0})};return Ba(e)?o(e):o(String(e).split(t)),n},m4=()=>{},g4=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Od="abcdefghijklmnopqrstuvwxyz",fv="0123456789",eC={DIGIT:fv,ALPHA:Od,ALPHA_DIGIT:Od+Od.toUpperCase()+fv},v4=(e=16,t=eC.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function b4(e){return!!(e&&Jn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const y4=e=>{const t=new Array(10),n=(o,r)=>{if(pu(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const i=Ba(o)?[]:{};return sl(o,(a,s)=>{const l=n(a,r+1);!qs(l)&&(i[s]=l)}),t[r]=void 0,i}}return o};return n(e,0)},x4=$o("AsyncFunction"),C4=e=>e&&(pu(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),tC=((e,t)=>e?setImmediate:t?((n,o)=>(vi.addEventListener("message",({source:r,data:i})=>{r===vi&&i===n&&o.length&&o.shift()()},!1),r=>{o.push(r),vi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn(vi.postMessage)),w4=typeof queueMicrotask<"u"?queueMicrotask.bind(vi):typeof process<"u"&&process.nextTick||tC,Pe={isArray:Ba,isArrayBuffer:Xx,isBuffer:BR,isFormData:GR,isArrayBufferView:NR,isString:HR,isNumber:Yx,isBoolean:jR,isObject:pu,isPlainObject:sc,isReadableStream:YR,isRequest:QR,isResponse:JR,isHeaders:ZR,isUndefined:qs,isDate:UR,isFile:VR,isBlob:WR,isRegExp:f4,isFunction:Jn,isStream:KR,isURLSearchParams:XR,isTypedArray:s4,isFileList:qR,forEach:sl,merge:Gf,extend:t4,trim:e4,stripBOM:n4,inherits:o4,toFlatObject:r4,kindOf:fu,kindOfTest:$o,endsWith:i4,toArray:a4,forEachEntry:l4,matchAll:c4,isHTMLForm:u4,hasOwnProperty:dv,hasOwnProp:dv,reduceDescriptors:Zx,freezeMethods:h4,toObjectSet:p4,toCamelCase:d4,noop:m4,toFiniteNumber:g4,findKey:Qx,global:vi,isContextDefined:Jx,ALPHABET:eC,generateString:v4,isSpecCompliantForm:b4,toJSONObject:y4,isAsyncFn:x4,isThenable:C4,setImmediate:tC,asap:w4};function yt(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}Pe.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pe.toJSONObject(this.config),code:this.code,status:this.status}}});const nC=yt.prototype,oC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{oC[e]={value:e}});Object.defineProperties(yt,oC);Object.defineProperty(nC,"isAxiosError",{value:!0});yt.from=(e,t,n,o,r,i)=>{const a=Object.create(nC);return Pe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),yt.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const _4=null;function Xf(e){return Pe.isPlainObject(e)||Pe.isArray(e)}function rC(e){return Pe.endsWith(e,"[]")?e.slice(0,-2):e}function hv(e,t,n){return e?e.concat(t).map(function(r,i){return r=rC(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function S4(e){return Pe.isArray(e)&&!e.some(Xf)}const k4=Pe.toFlatObject(Pe,{},null,function(t){return/^is[A-Z]/.test(t)});function mu(e,t,n){if(!Pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!Pe.isUndefined(m[g])});const o=n.metaTokens,r=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Pe.isSpecCompliantForm(t);if(!Pe.isFunction(r))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Pe.isDate(p))return p.toISOString();if(!l&&Pe.isBlob(p))throw new yt("Blob is not supported. Use a Buffer instead.");return Pe.isArrayBuffer(p)||Pe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,m){let b=p;if(p&&!m&&typeof p=="object"){if(Pe.endsWith(g,"{}"))g=o?g:g.slice(0,-2),p=JSON.stringify(p);else if(Pe.isArray(p)&&S4(p)||(Pe.isFileList(p)||Pe.endsWith(g,"[]"))&&(b=Pe.toArray(p)))return g=rC(g),b.forEach(function(C,_){!(Pe.isUndefined(C)||C===null)&&t.append(a===!0?hv([g],_,i):a===null?g:g+"[]",c(C))}),!1}return Xf(p)?!0:(t.append(hv(m,g,i),c(p)),!1)}const d=[],f=Object.assign(k4,{defaultVisitor:u,convertValue:c,isVisitable:Xf});function h(p,g){if(!Pe.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),Pe.forEach(p,function(b,w){(!(Pe.isUndefined(b)||b===null)&&r.call(t,b,Pe.isString(w)?w.trim():w,g,f))===!0&&h(b,g?g.concat(w):[w])}),d.pop()}}if(!Pe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function pv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function kp(e,t){this._pairs=[],e&&mu(e,this,t)}const iC=kp.prototype;iC.append=function(t,n){this._pairs.push([t,n])};iC.toString=function(t){const n=t?function(o){return t.call(this,o,pv)}:pv;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function P4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function aC(e,t,n){if(!t)return e;const o=n&&n.encode||P4,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Pe.isURLSearchParams(t)?t.toString():new kp(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class T4{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Pe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const mv=T4,sC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},A4=typeof URLSearchParams<"u"?URLSearchParams:kp,R4=typeof FormData<"u"?FormData:null,E4=typeof Blob<"u"?Blob:null,$4={isBrowser:!0,classes:{URLSearchParams:A4,FormData:R4,Blob:E4},protocols:["http","https","file","blob","url","data"]},Pp=typeof window<"u"&&typeof document<"u",Yf=typeof navigator=="object"&&navigator||void 0,I4=Pp&&(!Yf||["ReactNative","NativeScript","NS"].indexOf(Yf.product)<0),O4=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),M4=Pp&&window.location.href||"http://localhost",z4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pp,hasStandardBrowserEnv:I4,hasStandardBrowserWebWorkerEnv:O4,navigator:Yf,origin:M4},Symbol.toStringTag,{value:"Module"})),Zn={...z4,...$4};function F4(e,t){return mu(e,new Zn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,i){return Zn.isNode&&Pe.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function D4(e){return Pe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function L4(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o=n.length;return a=!a&&Pe.isArray(r)?r.length:a,l?(Pe.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!s):((!r[a]||!Pe.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],i)&&Pe.isArray(r[a])&&(r[a]=L4(r[a])),!s)}if(Pe.isFormData(e)&&Pe.isFunction(e.entries)){const n={};return Pe.forEachEntry(e,(o,r)=>{t(D4(o),r,n,0)}),n}return null}function B4(e,t,n){if(Pe.isString(e))try{return(t||JSON.parse)(e),Pe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Tp={transitional:sC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,i=Pe.isObject(t);if(i&&Pe.isHTMLForm(t)&&(t=new FormData(t)),Pe.isFormData(t))return r?JSON.stringify(lC(t)):t;if(Pe.isArrayBuffer(t)||Pe.isBuffer(t)||Pe.isStream(t)||Pe.isFile(t)||Pe.isBlob(t)||Pe.isReadableStream(t))return t;if(Pe.isArrayBufferView(t))return t.buffer;if(Pe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return F4(t,this.formSerializer).toString();if((s=Pe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return mu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),B4(t)):t}],transformResponse:[function(t){const n=this.transitional||Tp.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Pe.isResponse(t)||Pe.isReadableStream(t))return t;if(t&&Pe.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?yt.from(s,yt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zn.classes.FormData,Blob:Zn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pe.forEach(["delete","get","head","post","put","patch"],e=>{Tp.headers[e]={}});const Ap=Tp,N4=Pe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),H4=e=>{const t={};let n,o,r;return e&&e.split(` +`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&N4[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},gv=Symbol("internals");function ss(e){return e&&String(e).trim().toLowerCase()}function lc(e){return e===!1||e==null?e:Pe.isArray(e)?e.map(lc):String(e)}function j4(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const U4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Md(e,t,n,o,r){if(Pe.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!Pe.isString(t)){if(Pe.isString(o))return t.indexOf(o)!==-1;if(Pe.isRegExp(o))return o.test(t)}}function V4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function W4(e,t){const n=Pe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,i,a){return this[o].call(this,t,r,i,a)},configurable:!0})})}class gu{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function i(s,l,c){const u=ss(l);if(!u)throw new Error("header name must be a non-empty string");const d=Pe.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||l]=lc(s))}const a=(s,l)=>Pe.forEach(s,(c,u)=>i(c,u,l));if(Pe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Pe.isString(t)&&(t=t.trim())&&!U4(t))a(H4(t),n);else if(Pe.isHeaders(t))for(const[s,l]of t.entries())i(l,s,o);else t!=null&&i(n,t,o);return this}get(t,n){if(t=ss(t),t){const o=Pe.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return j4(r);if(Pe.isFunction(n))return n.call(this,r,o);if(Pe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ss(t),t){const o=Pe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Md(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function i(a){if(a=ss(a),a){const s=Pe.findKey(o,a);s&&(!n||Md(o,o[s],s,n))&&(delete o[s],r=!0)}}return Pe.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const i=n[o];(!t||Md(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,o={};return Pe.forEach(this,(r,i)=>{const a=Pe.findKey(o,i);if(a){n[a]=lc(r),delete n[i];return}const s=t?V4(i):String(i).trim();s!==i&&delete n[i],n[s]=lc(r),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Pe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&Pe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[gv]=this[gv]={accessors:{}}).accessors,r=this.prototype;function i(a){const s=ss(a);o[s]||(W4(r,a),o[s]=!0)}return Pe.isArray(t)?t.forEach(i):i(t),this}}gu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pe.reduceDescriptors(gu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Pe.freezeMethods(gu);const To=gu;function zd(e,t){const n=this||Ap,o=t||n,r=To.from(o.headers);let i=o.data;return Pe.forEach(e,function(s){i=s.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function cC(e){return!!(e&&e.__CANCEL__)}function Na(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Pe.inherits(Na,yt,{__CANCEL__:!0});function uC(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function q4(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function K4(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=o[i];a||(a=c),n[r]=l,o[r]=c;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-a{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=o?a(c,u):(r=c,i||(i=setTimeout(()=>{i=null,a(r)},o-d)))},()=>r&&a(r)]}const _c=(e,t,n=3)=>{let o=0;const r=K4(50,250);return G4(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-o,c=r(l),u=a<=s;o=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},vv=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},bv=e=>(...t)=>Pe.asap(()=>e(...t)),X4=Zn.hasStandardBrowserEnv?function(){const t=Zn.navigator&&/(msie|trident)/i.test(Zn.navigator.userAgent),n=document.createElement("a");let o;function r(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const s=Pe.isString(a)?r(a):a;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}(),Y4=Zn.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const a=[e+"="+encodeURIComponent(t)];Pe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Pe.isString(o)&&a.push("path="+o),Pe.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Q4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function J4(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dC(e,t){return e&&!Q4(t)?J4(e,t):t}const yv=e=>e instanceof To?{...e}:e;function $i(e,t){t=t||{};const n={};function o(c,u,d){return Pe.isPlainObject(c)&&Pe.isPlainObject(u)?Pe.merge.call({caseless:d},c,u):Pe.isPlainObject(u)?Pe.merge({},u):Pe.isArray(u)?u.slice():u}function r(c,u,d){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c,d)}else return o(c,u,d)}function i(c,u){if(!Pe.isUndefined(u))return o(void 0,u)}function a(c,u){if(Pe.isUndefined(u)){if(!Pe.isUndefined(c))return o(void 0,c)}else return o(void 0,u)}function s(c,u,d){if(d in t)return o(c,u);if(d in e)return o(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>r(yv(c),yv(u),!0)};return Pe.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||r,f=d(e[u],t[u],u);Pe.isUndefined(f)&&d!==s||(n[u]=f)}),n}const fC=e=>{const t=$i({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=To.from(a),t.url=aC(dC(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Pe.isFormData(n)){if(Zn.hasStandardBrowserEnv||Zn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Zn.hasStandardBrowserEnv&&(o&&Pe.isFunction(o)&&(o=o(t)),o||o!==!1&&X4(t.url))){const c=r&&i&&Y4.read(i);c&&a.set(r,c)}return t},Z4=typeof XMLHttpRequest<"u",eE=Z4&&function(e){return new Promise(function(n,o){const r=fC(e);let i=r.data;const a=To.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=r,u,d,f,h,p;function g(){h&&h(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function b(){if(!m)return;const C=To.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};uC(function(x){n(x),g()},function(x){o(x),g()},S),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(o(new yt("Request aborted",yt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){o(new yt("Network Error",yt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||sC;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),o(new yt(_,S.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,m)),m=null},i===void 0&&a.setContentType(null),"setRequestHeader"in m&&Pe.forEach(a.toJSON(),function(_,S){m.setRequestHeader(S,_)}),Pe.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),s&&s!=="json"&&(m.responseType=r.responseType),c&&([f,p]=_c(c,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,h]=_c(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(u=C=>{m&&(o(!C||C.type?new Na(null,e,m):C),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const w=q4(r.url);if(w&&Zn.protocols.indexOf(w)===-1){o(new yt("Unsupported protocol "+w+":",yt.ERR_BAD_REQUEST,e));return}m.send(i||null)})},tE=(e,t)=>{let n=new AbortController,o;const r=function(l){if(!o){o=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof yt?c:new Na(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{r(new yt(`timeout ${t} of ms exceeded`,yt.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},nE=tE,oE=function*(e,t){let n=e.byteLength;if(!t||n{const i=rE(e,t,r);let a=0,s,l=c=>{s||(s=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let f=d.byteLength;if(n){let h=a+=f;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},vu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hC=vu&&typeof ReadableStream=="function",Qf=vu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),pC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},iE=hC&&pC(()=>{let e=!1;const t=new Request(Zn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Cv=64*1024,Jf=hC&&pC(()=>Pe.isReadableStream(new Response("").body)),Sc={stream:Jf&&(e=>e.body)};vu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sc[t]&&(Sc[t]=Pe.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new yt(`Response type '${t}' is not supported`,yt.ERR_NOT_SUPPORT,o)})})})(new Response);const aE=async e=>{if(e==null)return 0;if(Pe.isBlob(e))return e.size;if(Pe.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Pe.isArrayBufferView(e)||Pe.isArrayBuffer(e))return e.byteLength;if(Pe.isURLSearchParams(e)&&(e=e+""),Pe.isString(e))return(await Qf(e)).byteLength},sE=async(e,t)=>{const n=Pe.toFiniteNumber(e.getContentLength());return n??aE(t)},lE=vu&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=fC(e);c=c?(c+"").toLowerCase():"text";let[h,p]=r||i||a?nE([r,i],a):[],g,m;const b=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let w;try{if(l&&iE&&n!=="get"&&n!=="head"&&(w=await sE(u,o))!==0){let x=new Request(t,{method:"POST",body:o,duplex:"half"}),k;if(Pe.isFormData(o)&&(k=x.headers.get("content-type"))&&u.setContentType(k),x.body){const[P,T]=vv(w,_c(bv(l)));o=xv(x.body,Cv,P,T,Qf)}}Pe.isString(d)||(d=d?"include":"omit");const C="credentials"in Request.prototype;m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:C?d:void 0});let _=await fetch(m);const S=Jf&&(c==="stream"||c==="response");if(Jf&&(s||S)){const x={};["status","statusText","headers"].forEach($=>{x[$]=_[$]});const k=Pe.toFiniteNumber(_.headers.get("content-length")),[P,T]=s&&vv(k,_c(bv(s),!0))||[];_=new Response(xv(_.body,Cv,P,()=>{T&&T(),S&&b()},Qf),x)}c=c||"text";let y=await Sc[Pe.findKey(Sc,c)||"text"](_,e);return!S&&b(),p&&p(),await new Promise((x,k)=>{uC(x,k,{data:y,headers:To.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:m})})}catch(C){throw b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,e,m),{cause:C.cause||C}):yt.from(C,C&&C.code,e,m)}}),Zf={http:_4,xhr:eE,fetch:lE};Pe.forEach(Zf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wv=e=>`- ${e}`,cE=e=>Pe.isFunction(e)||e===null||e===!1,mC={getAdapter:e=>{e=Pe.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(wv).join(` +`):" "+wv(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Zf};function Fd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Na(null,e)}function _v(e){return Fd(e),e.headers=To.from(e.headers),e.data=zd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mC.getAdapter(e.adapter||Ap.adapter)(e).then(function(o){return Fd(e),o.data=zd.call(e,e.transformResponse,o),o.headers=To.from(o.headers),o},function(o){return cC(o)||(Fd(e),o&&o.response&&(o.response.data=zd.call(e,e.transformResponse,o.response),o.response.headers=To.from(o.response.headers))),Promise.reject(o)})}const gC="1.7.5",Rp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rp[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Sv={};Rp.transitional=function(t,n,o){function r(i,a){return"[Axios v"+gC+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,s)=>{if(t===!1)throw new yt(r(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!Sv[a]&&(Sv[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function uE(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new yt("option "+i+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const eh={assertOptions:uE,validators:Rp},Sr=eh.validators;class kc{constructor(t){this.defaults=t,this.interceptors={request:new mv,response:new mv}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=` +`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$i(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&eh.assertOptions(o,{silentJSONParsing:Sr.transitional(Sr.boolean),forcedJSONParsing:Sr.transitional(Sr.boolean),clarifyTimeoutError:Sr.transitional(Sr.boolean)},!1),r!=null&&(Pe.isFunction(r)?n.paramsSerializer={serialize:r}:eh.assertOptions(r,{encode:Sr.function,serialize:Sr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Pe.merge(i.common,i[n.method]);i&&Pe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=To.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,f;if(!l){const p=[_v.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,u=Promise.resolve(n);d{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(s=>{o.subscribe(s),i=s}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,s){o.reason||(o.reason=new Na(i,a,s),n(o.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)}static source(){let t;return{token:new Ep(function(r){t=r}),cancel:t}}}const dE=Ep;function fE(e){return function(n){return e.apply(null,n)}}function hE(e){return Pe.isObject(e)&&e.isAxiosError===!0}const th={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(th).forEach(([e,t])=>{th[t]=e});const pE=th;function vC(e){const t=new cc(e),n=Gx(cc.prototype.request,t);return Pe.extend(n,cc.prototype,t,{allOwnKeys:!0}),Pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return vC($i(e,r))},n}const gn=vC(Ap);gn.Axios=cc;gn.CanceledError=Na;gn.CancelToken=dE;gn.isCancel=cC;gn.VERSION=gC;gn.toFormData=mu;gn.AxiosError=yt;gn.Cancel=gn.CanceledError;gn.all=function(t){return Promise.all(t)};gn.spread=fE;gn.isAxiosError=hE;gn.mergeConfig=$i;gn.AxiosHeaders=To;gn.formToJSON=e=>lC(Pe.isHTMLForm(e)?new FormData(e):e);gn.getAdapter=mC.getAdapter;gn.HttpStatusCode=pE;gn.default=gn;const mE=gn,gE=[{url:"/passport/auth/login",method:"POST"},{url:"/passport/auth/token2Login",method:"GET"},{url:"/passport/auth/register",method:"POST"},{url:"/passport/auth/register",method:"POST"},{url:"/guest/comm/config",method:"GET"},{url:"/passport/comm/sendEmailVerify",method:"POST"},{url:"/passport/auth/forget",method:"POST"}];function vE({url:e,method:t=""}){return gE.some(n=>n.url===e.split("?")[0]&&n.method===t.toUpperCase())}function bE(e){return typeof e>"u"}function yE(e){return e===null}function xE(e){return yE(e)||bE(e)}function CE(e){try{if(typeof JSON.parse(e)=="object")return!0}catch{return!1}}class wE{constructor(t){vd(this,"storage");vd(this,"prefixKey");this.storage=t.storage,this.prefixKey=t.prefixKey}getKey(t){return`${this.prefixKey}${t}`.toUpperCase()}set(t,n,o=null){const r=JSON.stringify({value:n,time:Date.now(),expire:o!==null?new Date().getTime()+o*1e3:null});this.storage.setItem(this.getKey(t),r)}get(t,n=null){const o=this.storage.getItem(this.getKey(t));if(!o)return{value:n,time:0};try{const r=JSON.parse(o),{value:i,time:a,expire:s}=r;return xE(s)||s>new Date().getTime()?{value:i,time:a}:(this.remove(t),{value:n,time:0})}catch{return this.remove(t),{value:n,time:0}}}remove(t){this.storage.removeItem(this.getKey(t))}clear(){this.storage.clear()}}function bC({prefixKey:e="",storage:t=sessionStorage}){return new wE({prefixKey:e,storage:t})}const yC="Vue_Naive_",_E=function(e={}){return bC({prefixKey:e.prefixKey||"",storage:localStorage})},SE=function(e={}){return bC({prefixKey:e.prefixKey||"",storage:sessionStorage})},ll=_E({prefixKey:yC}),Pc=SE({prefixKey:yC}),xC="access_token";function CC(){return ll.get(xC)}function wC(){ll.remove(xC)}function $p(){const e=ke(Gt.currentRoute),t=!e.meta.requireAuth&&!["/404","/login"].includes(Gt.currentRoute.value.path);Gt.replace({path:"/login",query:t?{...e.query,redirect:e.path}:{}})}var Hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ip(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var _C={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Hr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",p="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var D=["th","st","nd","rd"],L=B%100;return"["+B+(D[(L-20)%10]||D[L]||D[0])+"]"}},C=function(B,D,L){var X=String(B);return!X||X.length>=D?B:""+Array(D+1-X.length).join(L)+B},_={s:C,z:function(B){var D=-B.utcOffset(),L=Math.abs(D),X=Math.floor(L/60),V=L%60;return(D<=0?"+":"-")+C(X,2,"0")+":"+C(V,2,"0")},m:function B(D,L){if(D.date()1)return B(ue[0])}else{var ee=D.name;y[ee]=D,V=ee}return!X&&V&&(S=V),V||!X&&S},T=function(B,D){if(k(B))return B.clone();var L=typeof D=="object"?D:{};return L.date=B,L.args=arguments,new E(L)},$=_;$.l=P,$.i=k,$.w=function(B,D){return T(B,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var E=function(){function B(L){this.$L=P(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[x]=!0}var D=B.prototype;return D.parse=function(L){this.$d=function(X){var V=X.date,ae=X.utc;if(V===null)return new Date(NaN);if($.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var ue=V.match(m);if(ue){var ee=ue[2]-1||0,R=(ue[7]||"0").substring(0,3);return ae?new Date(Date.UTC(ue[1],ee,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,R)):new Date(ue[1],ee,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,R)}}return new Date(V)}(L),this.init()},D.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},D.$utils=function(){return $},D.isValid=function(){return this.$d.toString()!==g},D.isSame=function(L,X){var V=T(L);return this.startOf(X)<=V&&V<=this.endOf(X)},D.isAfter=function(L,X){return T(L)1&&arguments[1]!==void 0?arguments[1]:{container:document.body},G="";return typeof O=="string"?G=w(O,ee):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O==null?void 0:O.type)?G=w(O.value,ee):(G=h()(O),p("copy")),G},_=C;function S(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(ee){return typeof ee}:S=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},S(N)}var y=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ee=O.action,G=ee===void 0?"copy":ee,ne=O.container,X=O.target,ce=O.text;if(G!=="copy"&&G!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0)if(X&&S(X)==="object"&&X.nodeType===1){if(G==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(G==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ce)return _(ce,{container:ne});if(X)return G==="cut"?m(X):_(X,{container:ne})},x=y;function P(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(ee){return typeof ee}:P=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},P(N)}function k(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function T(N,O){for(var ee=0;ee"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function V(N){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},V(N)}function ae(N,O){var ee="data-clipboard-".concat(N);if(O.hasAttribute(ee))return O.getAttribute(ee)}var pe=function(N){E(ee,N);var O=D(ee);function ee(G,ne){var X;return k(this,ee),X=O.call(this),X.resolveOptions(ne),X.listenClick(G),X}return R(ee,[{key:"resolveOptions",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ne.action=="function"?ne.action:this.defaultAction,this.target=typeof ne.target=="function"?ne.target:this.defaultTarget,this.text=typeof ne.text=="function"?ne.text:this.defaultText,this.container=P(ne.container)==="object"?ne.container:document.body}},{key:"listenClick",value:function(ne){var X=this;this.listener=d()(ne,"click",function(ce){return X.onClick(ce)})}},{key:"onClick",value:function(ne){var X=ne.delegateTarget||ne.currentTarget,ce=this.action(X)||"copy",L=x({action:ce,container:this.container,target:this.target(X),text:this.text(X)});this.emit(L?"success":"error",{action:ce,text:L,trigger:X,clearSelection:function(){X&&X.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ne){return ae("action",ne)}},{key:"defaultTarget",value:function(ne){var X=ae("target",ne);if(X)return document.querySelector(X)}},{key:"defaultText",value:function(ne){return ae("text",ne)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ne){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return _(ne,X)}},{key:"cut",value:function(ne){return m(ne)}},{key:"isSupported",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],X=typeof ne=="string"?[ne]:ne,ce=!!document.queryCommandSupported;return X.forEach(function(L){ce=ce&&!!document.queryCommandSupported(L)}),ce}}]),ee}(c()),Z=pe},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,a,s){var l=s(828);function c(f,h,p,g,m){var b=d.apply(this,arguments);return f.addEventListener(p,b,m),{destroy:function(){f.removeEventListener(p,b,m)}}}function u(f,h,p,g,m){return typeof f.addEventListener=="function"?c.apply(null,arguments):typeof p=="function"?c.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return c(b,h,p,g,m)}))}function d(f,h,p,g){return function(m){m.delegateTarget=l(m.target,h),m.delegateTarget&&g.call(f,m)}}i.exports=u},879:function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(i,a,s){var l=s(879),c=s(438);function u(p,g,m){if(!p&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,g,m);if(l.nodeList(p))return f(p,g,m);if(l.string(p))return h(p,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,g,m){return p.addEventListener(g,m),{destroy:function(){p.removeEventListener(g,m)}}}function f(p,g,m){return Array.prototype.forEach.call(p,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(p,function(b){b.removeEventListener(g,m)})}}}function h(p,g,m){return c(document.body,p,g,m)}i.exports=u},817:function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(s),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function d(){u.off(s,d),l.apply(c,arguments)}return d._=l,this.on(s,d,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,d=c.length;for(u;u{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})};/*! + */(function(e,t){(function(o,r){e.exports=r()})(Hr,function(){return function(){var n={686:function(i,a,s){s.d(a,{default:function(){return ee}});var l=s(279),c=s.n(l),u=s(370),d=s.n(u),f=s(817),h=s.n(f);function p(R){try{return document.execCommand(R)}catch{return!1}}var g=function(A){var Y=h()(A);return p("cut"),Y},m=g;function b(R){var A=document.documentElement.getAttribute("dir")==="rtl",Y=document.createElement("textarea");Y.style.fontSize="12pt",Y.style.border="0",Y.style.padding="0",Y.style.margin="0",Y.style.position="absolute",Y.style[A?"right":"left"]="-9999px";var W=window.pageYOffset||document.documentElement.scrollTop;return Y.style.top="".concat(W,"px"),Y.setAttribute("readonly",""),Y.value=R,Y}var w=function(A,Y){var W=b(A);Y.container.appendChild(W);var oe=h()(W);return p("copy"),W.remove(),oe},C=function(A){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},W="";return typeof A=="string"?W=w(A,Y):A instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(A==null?void 0:A.type)?W=w(A.value,Y):(W=h()(A),p("copy")),W},_=C;function S(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(Y){return typeof Y}:S=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},S(R)}var y=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=A.action,W=Y===void 0?"copy":Y,oe=A.container,K=A.target,le=A.text;if(W!=="copy"&&W!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(K!==void 0)if(K&&S(K)==="object"&&K.nodeType===1){if(W==="copy"&&K.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(W==="cut"&&(K.hasAttribute("readonly")||K.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(le)return _(le,{container:oe});if(K)return W==="cut"?m(K):_(K,{container:oe})},x=y;function k(R){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(Y){return typeof Y}:k=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},k(R)}function P(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function T(R,A){for(var Y=0;Y"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function V(R){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},V(R)}function ae(R,A){var Y="data-clipboard-".concat(R);if(A.hasAttribute(Y))return A.getAttribute(Y)}var ue=function(R){E(Y,R);var A=B(Y);function Y(W,oe){var K;return P(this,Y),K=A.call(this),K.resolveOptions(oe),K.listenClick(W),K}return $(Y,[{key:"resolveOptions",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof oe.action=="function"?oe.action:this.defaultAction,this.target=typeof oe.target=="function"?oe.target:this.defaultTarget,this.text=typeof oe.text=="function"?oe.text:this.defaultText,this.container=k(oe.container)==="object"?oe.container:document.body}},{key:"listenClick",value:function(oe){var K=this;this.listener=d()(oe,"click",function(le){return K.onClick(le)})}},{key:"onClick",value:function(oe){var K=oe.delegateTarget||oe.currentTarget,le=this.action(K)||"copy",N=x({action:le,container:this.container,target:this.target(K),text:this.text(K)});this.emit(N?"success":"error",{action:le,text:N,trigger:K,clearSelection:function(){K&&K.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(oe){return ae("action",oe)}},{key:"defaultTarget",value:function(oe){var K=ae("target",oe);if(K)return document.querySelector(K)}},{key:"defaultText",value:function(oe){return ae("text",oe)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(oe){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return _(oe,K)}},{key:"cut",value:function(oe){return m(oe)}},{key:"isSupported",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],K=typeof oe=="string"?[oe]:oe,le=!!document.queryCommandSupported;return K.forEach(function(N){le=le&&!!document.queryCommandSupported(N)}),le}}]),Y}(c()),ee=ue},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,a,s){var l=s(828);function c(f,h,p,g,m){var b=d.apply(this,arguments);return f.addEventListener(p,b,m),{destroy:function(){f.removeEventListener(p,b,m)}}}function u(f,h,p,g,m){return typeof f.addEventListener=="function"?c.apply(null,arguments):typeof p=="function"?c.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return c(b,h,p,g,m)}))}function d(f,h,p,g){return function(m){m.delegateTarget=l(m.target,h),m.delegateTarget&&g.call(f,m)}}i.exports=u},879:function(i,a){a.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},a.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||a.node(s[0]))},a.string=function(s){return typeof s=="string"||s instanceof String},a.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(i,a,s){var l=s(879),c=s(438);function u(p,g,m){if(!p&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,g,m);if(l.nodeList(p))return f(p,g,m);if(l.string(p))return h(p,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,g,m){return p.addEventListener(g,m),{destroy:function(){p.removeEventListener(g,m)}}}function f(p,g,m){return Array.prototype.forEach.call(p,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(p,function(b){b.removeEventListener(g,m)})}}}function h(p,g,m){return c(document.body,p,g,m)}i.exports=u},817:function(i){function a(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(s),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function d(){u.off(s,d),l.apply(c,arguments)}return d._=l,this.on(s,d,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,d=c.length;for(u;u{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})};/*! * shared v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const wc=typeof window<"u",Xr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wA=(e,t,n)=>_A({l:e,k:t,s:n}),_A=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yn=e=>typeof e=="number"&&isFinite(e),SA=e=>yC(e)==="[object Date]",Nr=e=>yC(e)==="[object RegExp]",hu=e=>mt(e)&&Object.keys(e).length===0,Pn=Object.assign;let bv;const sr=()=>bv||(bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const kA=Object.prototype.hasOwnProperty;function _c(e,t){return kA.call(e,t)}const tn=Array.isArray,Xt=e=>typeof e=="function",Ge=e=>typeof e=="string",St=e=>typeof e=="boolean",Nt=e=>e!==null&&typeof e=="object",PA=e=>Nt(e)&&Xt(e.then)&&Xt(e.catch),bC=Object.prototype.toString,yC=e=>bC.call(e),mt=e=>{if(!Nt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},TA=e=>e==null?"":tn(e)||mt(e)&&e.toString===bC?JSON.stringify(e,null,2):String(e);function EA(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}function pu(e){let t=e;return()=>++t}function RA(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const El=e=>!Nt(e)||tn(e);function ic(e,t){if(El(e)||El(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(i=>{El(o[i])||El(r[i])?r[i]=o[i]:n.push({src:o[i],des:r[i]})})}}/*! + */const Tc=typeof window<"u",Qr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),$E=(e,t,n)=>IE({l:e,k:t,s:n}),IE=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yn=e=>typeof e=="number"&&isFinite(e),OE=e=>PC(e)==="[object Date]",jr=e=>PC(e)==="[object RegExp]",bu=e=>mt(e)&&Object.keys(e).length===0,Pn=Object.assign;let kv;const sr=()=>kv||(kv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pv(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const ME=Object.prototype.hasOwnProperty;function Ac(e,t){return ME.call(e,t)}const tn=Array.isArray,Xt=e=>typeof e=="function",Ge=e=>typeof e=="string",St=e=>typeof e=="boolean",Nt=e=>e!==null&&typeof e=="object",zE=e=>Nt(e)&&Xt(e.then)&&Xt(e.catch),kC=Object.prototype.toString,PC=e=>kC.call(e),mt=e=>{if(!Nt(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},FE=e=>e==null?"":tn(e)||mt(e)&&e.toString===kC?JSON.stringify(e,null,2):String(e);function DE(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}function yu(e){let t=e;return()=>++t}function LE(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Il=e=>!Nt(e)||tn(e);function uc(e,t){if(Il(e)||Il(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:r}=n.pop();Object.keys(o).forEach(i=>{Il(o[i])||Il(r[i])?r[i]=o[i]:n.push({src:o[i],des:r[i]})})}}/*! * message-compiler v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function AA(e,t,n){return{line:e,column:t,offset:n}}function Sc(e,t,n){const o={start:e,end:t};return n!=null&&(o.source=n),o}const $A=/\{([0-9a-zA-Z]+)\}/g;function xC(e,...t){return t.length===1&&IA(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace($A,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const CC=Object.assign,xv=e=>typeof e=="string",IA=e=>e!==null&&typeof e=="object";function wC(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}const Pp={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},OA={[Pp.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function MA(e,t,...n){const o=xC(OA[e]||"",...n||[]),r={message:String(o),code:e};return t&&(r.location=t),r}const dt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},zA={[dt.EXPECTED_TOKEN]:"Expected token: '{0}'",[dt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[dt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[dt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[dt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[dt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[dt.EMPTY_PLACEHOLDER]:"Empty placeholder",[dt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[dt.INVALID_LINKED_FORMAT]:"Invalid linked format",[dt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[dt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[dt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[dt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[dt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[dt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function La(e,t,n={}){const{domain:o,messages:r,args:i}=n,a=xC((r||zA)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=o,s}function FA(e){throw e}const tr=" ",DA="\r",On=` -`,LA=String.fromCharCode(8232),BA=String.fromCharCode(8233);function NA(e){const t=e;let n=0,o=1,r=1,i=0;const a=x=>t[x]===DA&&t[x+1]===On,s=x=>t[x]===On,l=x=>t[x]===BA,c=x=>t[x]===LA,u=x=>a(x)||s(x)||l(x)||c(x),d=()=>n,f=()=>o,h=()=>r,p=()=>i,g=x=>a(x)||l(x)||c(x)?On:t[x],m=()=>g(n),b=()=>g(n+i);function w(){return i=0,u(n)&&(o++,r=0),a(n)&&n++,n++,r++,t[n]}function C(){return a(n+i)&&i++,i++,t[n+i]}function _(){n=0,o=1,r=1,i=0}function S(x=0){i=x}function y(){const x=n+i;for(;x!==n;)w();i=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:m,currentPeek:b,next:w,peek:C,reset:_,resetPeek:S,skipToPeek:y}}const kr=void 0,HA=".",Cv="'",jA="tokenizer";function UA(e,t={}){const n=t.location!==!1,o=NA(e),r=()=>o.index(),i=()=>AA(o.line(),o.column(),o.index()),a=i(),s=r(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d($,H,te,...Ce){const de=c();if(H.column+=te,H.offset+=te,u){const ue=n?Sc(de.startLoc,H):null,ie=La($,ue,{domain:jA,args:Ce});u(ie)}}function f($,H,te){$.endLoc=i(),$.currentType=H;const Ce={type:H};return n&&(Ce.loc=Sc($.startLoc,$.endLoc)),te!=null&&(Ce.value=te),Ce}const h=$=>f($,14);function p($,H){return $.currentChar()===H?($.next(),H):(d(dt.EXPECTED_TOKEN,i(),0,H),"")}function g($){let H="";for(;$.currentPeek()===tr||$.currentPeek()===On;)H+=$.currentPeek(),$.peek();return H}function m($){const H=g($);return $.skipToPeek(),H}function b($){if($===kr)return!1;const H=$.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H===95}function w($){if($===kr)return!1;const H=$.charCodeAt(0);return H>=48&&H<=57}function C($,H){const{currentType:te}=H;if(te!==2)return!1;g($);const Ce=b($.currentPeek());return $.resetPeek(),Ce}function _($,H){const{currentType:te}=H;if(te!==2)return!1;g($);const Ce=$.currentPeek()==="-"?$.peek():$.currentPeek(),de=w(Ce);return $.resetPeek(),de}function S($,H){const{currentType:te}=H;if(te!==2)return!1;g($);const Ce=$.currentPeek()===Cv;return $.resetPeek(),Ce}function y($,H){const{currentType:te}=H;if(te!==8)return!1;g($);const Ce=$.currentPeek()===".";return $.resetPeek(),Ce}function x($,H){const{currentType:te}=H;if(te!==9)return!1;g($);const Ce=b($.currentPeek());return $.resetPeek(),Ce}function P($,H){const{currentType:te}=H;if(!(te===8||te===12))return!1;g($);const Ce=$.currentPeek()===":";return $.resetPeek(),Ce}function k($,H){const{currentType:te}=H;if(te!==10)return!1;const Ce=()=>{const ue=$.currentPeek();return ue==="{"?b($.peek()):ue==="@"||ue==="%"||ue==="|"||ue===":"||ue==="."||ue===tr||!ue?!1:ue===On?($.peek(),Ce()):E($,!1)},de=Ce();return $.resetPeek(),de}function T($){g($);const H=$.currentPeek()==="|";return $.resetPeek(),H}function R($){const H=g($),te=$.currentPeek()==="%"&&$.peek()==="{";return $.resetPeek(),{isModulo:te,hasSpace:H.length>0}}function E($,H=!0){const te=(de=!1,ue="",ie=!1)=>{const fe=$.currentPeek();return fe==="{"?ue==="%"?!1:de:fe==="@"||!fe?ue==="%"?!0:de:fe==="%"?($.peek(),te(de,"%",!0)):fe==="|"?ue==="%"||ie?!0:!(ue===tr||ue===On):fe===tr?($.peek(),te(!0,tr,ie)):fe===On?($.peek(),te(!0,On,ie)):!0},Ce=te();return H&&$.resetPeek(),Ce}function q($,H){const te=$.currentChar();return te===kr?kr:H(te)?($.next(),te):null}function D($){const H=$.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36}function B($){return q($,D)}function M($){const H=$.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36||H===45}function K($){return q($,M)}function V($){const H=$.charCodeAt(0);return H>=48&&H<=57}function ae($){return q($,V)}function pe($){const H=$.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102}function Z($){return q($,pe)}function N($){let H="",te="";for(;H=ae($);)te+=H;return te}function O($){m($);const H=$.currentChar();return H!=="%"&&d(dt.EXPECTED_TOKEN,i(),0,H),$.next(),"%"}function ee($){let H="";for(;;){const te=$.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te==="%")if(E($))H+=te,$.next();else break;else if(te===tr||te===On)if(E($))H+=te,$.next();else{if(T($))break;H+=te,$.next()}else H+=te,$.next()}return H}function G($){m($);let H="",te="";for(;H=K($);)te+=H;return $.currentChar()===kr&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),te}function ne($){m($);let H="";return $.currentChar()==="-"?($.next(),H+=`-${N($)}`):H+=N($),$.currentChar()===kr&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),H}function X($){return $!==Cv&&$!==On}function ce($){m($),p($,"'");let H="",te="";for(;H=q($,X);)H==="\\"?te+=L($):te+=H;const Ce=$.currentChar();return Ce===On||Ce===kr?(d(dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Ce===On&&($.next(),p($,"'")),te):(p($,"'"),te)}function L($){const H=$.currentChar();switch(H){case"\\":case"'":return $.next(),`\\${H}`;case"u":return be($,H,4);case"U":return be($,H,6);default:return d(dt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,H),""}}function be($,H,te){p($,H);let Ce="";for(let de=0;de{const Ce=$.currentChar();return Ce==="{"||Ce==="%"||Ce==="@"||Ce==="|"||Ce==="("||Ce===")"||!Ce||Ce===tr?te:(te+=Ce,$.next(),H(te))};return H("")}function re($){m($);const H=p($,"|");return m($),H}function we($,H){let te=null;switch($.currentChar()){case"{":return H.braceNest>=1&&d(dt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),$.next(),te=f(H,2,"{"),m($),H.braceNest++,te;case"}":return H.braceNest>0&&H.currentType===2&&d(dt.EMPTY_PLACEHOLDER,i(),0),$.next(),te=f(H,3,"}"),H.braceNest--,H.braceNest>0&&m($),H.inLinked&&H.braceNest===0&&(H.inLinked=!1),te;case"@":return H.braceNest>0&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),te=oe($,H)||h(H),H.braceNest=0,te;default:{let de=!0,ue=!0,ie=!0;if(T($))return H.braceNest>0&&d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),te=f(H,1,re($)),H.braceNest=0,H.inLinked=!1,te;if(H.braceNest>0&&(H.currentType===5||H.currentType===6||H.currentType===7))return d(dt.UNTERMINATED_CLOSING_BRACE,i(),0),H.braceNest=0,ve($,H);if(de=C($,H))return te=f(H,5,G($)),m($),te;if(ue=_($,H))return te=f(H,6,ne($)),m($),te;if(ie=S($,H))return te=f(H,7,ce($)),m($),te;if(!de&&!ue&&!ie)return te=f(H,13,je($)),d(dt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,te.value),m($),te;break}}return te}function oe($,H){const{currentType:te}=H;let Ce=null;const de=$.currentChar();switch((te===8||te===9||te===12||te===10)&&(de===On||de===tr)&&d(dt.INVALID_LINKED_FORMAT,i(),0),de){case"@":return $.next(),Ce=f(H,8,"@"),H.inLinked=!0,Ce;case".":return m($),$.next(),f(H,9,".");case":":return m($),$.next(),f(H,10,":");default:return T($)?(Ce=f(H,1,re($)),H.braceNest=0,H.inLinked=!1,Ce):y($,H)||P($,H)?(m($),oe($,H)):x($,H)?(m($),f(H,12,F($))):k($,H)?(m($),de==="{"?we($,H)||Ce:f(H,11,A($))):(te===8&&d(dt.INVALID_LINKED_FORMAT,i(),0),H.braceNest=0,H.inLinked=!1,ve($,H))}}function ve($,H){let te={type:14};if(H.braceNest>0)return we($,H)||h(H);if(H.inLinked)return oe($,H)||h(H);switch($.currentChar()){case"{":return we($,H)||h(H);case"}":return d(dt.UNBALANCED_CLOSING_BRACE,i(),0),$.next(),f(H,3,"}");case"@":return oe($,H)||h(H);default:{if(T($))return te=f(H,1,re($)),H.braceNest=0,H.inLinked=!1,te;const{isModulo:de,hasSpace:ue}=R($);if(de)return ue?f(H,0,ee($)):f(H,4,O($));if(E($))return f(H,0,ee($));break}}return te}function ke(){const{currentType:$,offset:H,startLoc:te,endLoc:Ce}=l;return l.lastType=$,l.lastOffset=H,l.lastStartLoc=te,l.lastEndLoc=Ce,l.offset=r(),l.startLoc=i(),o.currentChar()===kr?f(l,14):ve(o,l)}return{nextToken:ke,currentOffset:r,currentPosition:i,context:c}}const VA="parser",WA=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function qA(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function KA(e={}){const t=e.location!==!1,{onError:n,onWarn:o}=e;function r(C,_,S,y,...x){const P=C.currentPosition();if(P.offset+=y,P.column+=y,n){const k=t?Sc(S,P):null,T=La(_,k,{domain:VA,args:x});n(T)}}function i(C,_,S,y,...x){const P=C.currentPosition();if(P.offset+=y,P.column+=y,o){const k=t?Sc(S,P):null;o(MA(_,k,x))}}function a(C,_,S){const y={type:C};return t&&(y.start=_,y.end=_,y.loc={start:S,end:S}),y}function s(C,_,S,y){y&&(C.type=y),t&&(C.end=_,C.loc&&(C.loc.end=S))}function l(C,_){const S=C.context(),y=a(3,S.offset,S.startLoc);return y.value=_,s(y,C.currentOffset(),C.currentPosition()),y}function c(C,_){const S=C.context(),{lastOffset:y,lastStartLoc:x}=S,P=a(5,y,x);return P.index=parseInt(_,10),C.nextToken(),s(P,C.currentOffset(),C.currentPosition()),P}function u(C,_,S){const y=C.context(),{lastOffset:x,lastStartLoc:P}=y,k=a(4,x,P);return k.key=_,S===!0&&(k.modulo=!0),C.nextToken(),s(k,C.currentOffset(),C.currentPosition()),k}function d(C,_){const S=C.context(),{lastOffset:y,lastStartLoc:x}=S,P=a(9,y,x);return P.value=_.replace(WA,qA),C.nextToken(),s(P,C.currentOffset(),C.currentPosition()),P}function f(C){const _=C.nextToken(),S=C.context(),{lastOffset:y,lastStartLoc:x}=S,P=a(8,y,x);return _.type!==12?(r(C,dt.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),P.value="",s(P,y,x),{nextConsumeToken:_,node:P}):(_.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wo(_)),P.value=_.value||"",s(P,C.currentOffset(),C.currentPosition()),{node:P})}function h(C,_){const S=C.context(),y=a(7,S.offset,S.startLoc);return y.value=_,s(y,C.currentOffset(),C.currentPosition()),y}function p(C){const _=C.context(),S=a(6,_.offset,_.startLoc);let y=C.nextToken();if(y.type===9){const x=f(C);S.modifier=x.node,y=x.nextConsumeToken||C.nextToken()}switch(y.type!==10&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),y=C.nextToken(),y.type===2&&(y=C.nextToken()),y.type){case 11:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=h(C,y.value||"");break;case 5:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=u(C,y.value||"");break;case 6:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=c(C,y.value||"");break;case 7:y.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=d(C,y.value||"");break;default:{r(C,dt.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const x=C.context(),P=a(7,x.offset,x.startLoc);return P.value="",s(P,x.offset,x.startLoc),S.key=P,s(S,x.offset,x.startLoc),{nextConsumeToken:y,node:S}}}return s(S,C.currentOffset(),C.currentPosition()),{node:S}}function g(C){const _=C.context(),S=_.currentType===1?C.currentOffset():_.offset,y=_.currentType===1?_.endLoc:_.startLoc,x=a(2,S,y);x.items=[];let P=null,k=null;do{const E=P||C.nextToken();switch(P=null,E.type){case 0:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(l(C,E.value||""));break;case 6:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(c(C,E.value||""));break;case 4:k=!0;break;case 5:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(u(C,E.value||"",!!k)),k&&(i(C,Pp.USE_MODULO_SYNTAX,_.lastStartLoc,0,wo(E)),k=null);break;case 7:E.value==null&&r(C,dt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(d(C,E.value||""));break;case 8:{const q=p(C);x.items.push(q.node),P=q.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const T=_.currentType===1?_.lastOffset:C.currentOffset(),R=_.currentType===1?_.lastEndLoc:C.currentPosition();return s(x,T,R),x}function m(C,_,S,y){const x=C.context();let P=y.items.length===0;const k=a(1,_,S);k.cases=[],k.cases.push(y);do{const T=g(C);P||(P=T.items.length===0),k.cases.push(T)}while(x.currentType!==14);return P&&r(C,dt.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),s(k,C.currentOffset(),C.currentPosition()),k}function b(C){const _=C.context(),{offset:S,startLoc:y}=_,x=g(C);return _.currentType===14?x:m(C,S,y,x)}function w(C){const _=UA(C,CC({},e)),S=_.context(),y=a(0,S.offset,S.startLoc);return t&&y.loc&&(y.loc.source=C),y.body=b(_),e.onCacheKey&&(y.cacheKey=e.onCacheKey(C)),S.currentType!==14&&r(_,dt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,C[S.offset]||""),s(y,_.currentOffset(),_.currentPosition()),y}return{parse:w}}function wo(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function GA(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function wv(e,t){for(let n=0;n_v(n)),e}function _v(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ns;function c(m,b){s.code+=m}function u(m,b=!0){const w=b?r:"";c(i?w+" ".repeat(m):w)}function d(m=!0){const b=++s.indentLevel;m&&u(b)}function f(m=!0){const b=--s.indentLevel;m&&u(b)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function e5(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Sa(e,t.key),t.modifier?(e.push(", "),Sa(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function t5(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const r=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let i=0;i{const n=xv(t.mode)?t.mode:"normal",o=xv(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=ZA(e,{mode:n,filename:o,sourceMap:r,breakLineCode:i,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${wC(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Sa(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function i5(e,t={}){const n=CC({},t),o=!!n.jit,r=!!n.minify,i=n.optimize==null?!0:n.optimize,s=KA(n).parse(e);return o?(i&&YA(s),r&&sa(s),{ast:s,code:""}):(XA(s,n),r5(s,n))}/*! + */function BE(e,t,n){return{line:e,column:t,offset:n}}function Rc(e,t,n){const o={start:e,end:t};return n!=null&&(o.source=n),o}const NE=/\{([0-9a-zA-Z]+)\}/g;function TC(e,...t){return t.length===1&&HE(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(NE,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const AC=Object.assign,Tv=e=>typeof e=="string",HE=e=>e!==null&&typeof e=="object";function RC(e,t=""){return e.reduce((n,o,r)=>r===0?n+o:n+t+o,"")}const Op={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},jE={[Op.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function UE(e,t,...n){const o=TC(jE[e]||"",...n||[]),r={message:String(o),code:e};return t&&(r.location=t),r}const ft={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},VE={[ft.EXPECTED_TOKEN]:"Expected token: '{0}'",[ft.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[ft.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[ft.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[ft.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[ft.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[ft.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[ft.EMPTY_PLACEHOLDER]:"Empty placeholder",[ft.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[ft.INVALID_LINKED_FORMAT]:"Invalid linked format",[ft.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[ft.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[ft.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[ft.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[ft.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[ft.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ha(e,t,n={}){const{domain:o,messages:r,args:i}=n,a=TC((r||VE)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=o,s}function WE(e){throw e}const tr=" ",qE="\r",On=` +`,KE=String.fromCharCode(8232),GE=String.fromCharCode(8233);function XE(e){const t=e;let n=0,o=1,r=1,i=0;const a=x=>t[x]===qE&&t[x+1]===On,s=x=>t[x]===On,l=x=>t[x]===GE,c=x=>t[x]===KE,u=x=>a(x)||s(x)||l(x)||c(x),d=()=>n,f=()=>o,h=()=>r,p=()=>i,g=x=>a(x)||l(x)||c(x)?On:t[x],m=()=>g(n),b=()=>g(n+i);function w(){return i=0,u(n)&&(o++,r=0),a(n)&&n++,n++,r++,t[n]}function C(){return a(n+i)&&i++,i++,t[n+i]}function _(){n=0,o=1,r=1,i=0}function S(x=0){i=x}function y(){const x=n+i;for(;x!==n;)w();i=0}return{index:d,line:f,column:h,peekOffset:p,charAt:g,currentChar:m,currentPeek:b,next:w,peek:C,reset:_,resetPeek:S,skipToPeek:y}}const kr=void 0,YE=".",Av="'",QE="tokenizer";function JE(e,t={}){const n=t.location!==!1,o=XE(e),r=()=>o.index(),i=()=>BE(o.line(),o.column(),o.index()),a=i(),s=r(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(O,H,te,...Ce){const fe=c();if(H.column+=te,H.offset+=te,u){const de=n?Rc(fe.startLoc,H):null,ie=Ha(O,de,{domain:QE,args:Ce});u(ie)}}function f(O,H,te){O.endLoc=i(),O.currentType=H;const Ce={type:H};return n&&(Ce.loc=Rc(O.startLoc,O.endLoc)),te!=null&&(Ce.value=te),Ce}const h=O=>f(O,14);function p(O,H){return O.currentChar()===H?(O.next(),H):(d(ft.EXPECTED_TOKEN,i(),0,H),"")}function g(O){let H="";for(;O.currentPeek()===tr||O.currentPeek()===On;)H+=O.currentPeek(),O.peek();return H}function m(O){const H=g(O);return O.skipToPeek(),H}function b(O){if(O===kr)return!1;const H=O.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H===95}function w(O){if(O===kr)return!1;const H=O.charCodeAt(0);return H>=48&&H<=57}function C(O,H){const{currentType:te}=H;if(te!==2)return!1;g(O);const Ce=b(O.currentPeek());return O.resetPeek(),Ce}function _(O,H){const{currentType:te}=H;if(te!==2)return!1;g(O);const Ce=O.currentPeek()==="-"?O.peek():O.currentPeek(),fe=w(Ce);return O.resetPeek(),fe}function S(O,H){const{currentType:te}=H;if(te!==2)return!1;g(O);const Ce=O.currentPeek()===Av;return O.resetPeek(),Ce}function y(O,H){const{currentType:te}=H;if(te!==8)return!1;g(O);const Ce=O.currentPeek()===".";return O.resetPeek(),Ce}function x(O,H){const{currentType:te}=H;if(te!==9)return!1;g(O);const Ce=b(O.currentPeek());return O.resetPeek(),Ce}function k(O,H){const{currentType:te}=H;if(!(te===8||te===12))return!1;g(O);const Ce=O.currentPeek()===":";return O.resetPeek(),Ce}function P(O,H){const{currentType:te}=H;if(te!==10)return!1;const Ce=()=>{const de=O.currentPeek();return de==="{"?b(O.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===tr||!de?!1:de===On?(O.peek(),Ce()):E(O,!1)},fe=Ce();return O.resetPeek(),fe}function T(O){g(O);const H=O.currentPeek()==="|";return O.resetPeek(),H}function $(O){const H=g(O),te=O.currentPeek()==="%"&&O.peek()==="{";return O.resetPeek(),{isModulo:te,hasSpace:H.length>0}}function E(O,H=!0){const te=(fe=!1,de="",ie=!1)=>{const he=O.currentPeek();return he==="{"?de==="%"?!1:fe:he==="@"||!he?de==="%"?!0:fe:he==="%"?(O.peek(),te(fe,"%",!0)):he==="|"?de==="%"||ie?!0:!(de===tr||de===On):he===tr?(O.peek(),te(!0,tr,ie)):he===On?(O.peek(),te(!0,On,ie)):!0},Ce=te();return H&&O.resetPeek(),Ce}function G(O,H){const te=O.currentChar();return te===kr?kr:H(te)?(O.next(),te):null}function B(O){const H=O.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36}function D(O){return G(O,B)}function L(O){const H=O.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36||H===45}function X(O){return G(O,L)}function V(O){const H=O.charCodeAt(0);return H>=48&&H<=57}function ae(O){return G(O,V)}function ue(O){const H=O.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102}function ee(O){return G(O,ue)}function R(O){let H="",te="";for(;H=ae(O);)te+=H;return te}function A(O){m(O);const H=O.currentChar();return H!=="%"&&d(ft.EXPECTED_TOKEN,i(),0,H),O.next(),"%"}function Y(O){let H="";for(;;){const te=O.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te==="%")if(E(O))H+=te,O.next();else break;else if(te===tr||te===On)if(E(O))H+=te,O.next();else{if(T(O))break;H+=te,O.next()}else H+=te,O.next()}return H}function W(O){m(O);let H="",te="";for(;H=X(O);)te+=H;return O.currentChar()===kr&&d(ft.UNTERMINATED_CLOSING_BRACE,i(),0),te}function oe(O){m(O);let H="";return O.currentChar()==="-"?(O.next(),H+=`-${R(O)}`):H+=R(O),O.currentChar()===kr&&d(ft.UNTERMINATED_CLOSING_BRACE,i(),0),H}function K(O){return O!==Av&&O!==On}function le(O){m(O),p(O,"'");let H="",te="";for(;H=G(O,K);)H==="\\"?te+=N(O):te+=H;const Ce=O.currentChar();return Ce===On||Ce===kr?(d(ft.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Ce===On&&(O.next(),p(O,"'")),te):(p(O,"'"),te)}function N(O){const H=O.currentChar();switch(H){case"\\":case"'":return O.next(),`\\${H}`;case"u":return be(O,H,4);case"U":return be(O,H,6);default:return d(ft.UNKNOWN_ESCAPE_SEQUENCE,i(),0,H),""}}function be(O,H,te){p(O,H);let Ce="";for(let fe=0;fe{const Ce=O.currentChar();return Ce==="{"||Ce==="%"||Ce==="@"||Ce==="|"||Ce==="("||Ce===")"||!Ce||Ce===tr?te:(te+=Ce,O.next(),H(te))};return H("")}function re(O){m(O);const H=p(O,"|");return m(O),H}function _e(O,H){let te=null;switch(O.currentChar()){case"{":return H.braceNest>=1&&d(ft.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),O.next(),te=f(H,2,"{"),m(O),H.braceNest++,te;case"}":return H.braceNest>0&&H.currentType===2&&d(ft.EMPTY_PLACEHOLDER,i(),0),O.next(),te=f(H,3,"}"),H.braceNest--,H.braceNest>0&&m(O),H.inLinked&&H.braceNest===0&&(H.inLinked=!1),te;case"@":return H.braceNest>0&&d(ft.UNTERMINATED_CLOSING_BRACE,i(),0),te=ne(O,H)||h(H),H.braceNest=0,te;default:{let fe=!0,de=!0,ie=!0;if(T(O))return H.braceNest>0&&d(ft.UNTERMINATED_CLOSING_BRACE,i(),0),te=f(H,1,re(O)),H.braceNest=0,H.inLinked=!1,te;if(H.braceNest>0&&(H.currentType===5||H.currentType===6||H.currentType===7))return d(ft.UNTERMINATED_CLOSING_BRACE,i(),0),H.braceNest=0,me(O,H);if(fe=C(O,H))return te=f(H,5,W(O)),m(O),te;if(de=_(O,H))return te=f(H,6,oe(O)),m(O),te;if(ie=S(O,H))return te=f(H,7,le(O)),m(O),te;if(!fe&&!de&&!ie)return te=f(H,13,Ne(O)),d(ft.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,te.value),m(O),te;break}}return te}function ne(O,H){const{currentType:te}=H;let Ce=null;const fe=O.currentChar();switch((te===8||te===9||te===12||te===10)&&(fe===On||fe===tr)&&d(ft.INVALID_LINKED_FORMAT,i(),0),fe){case"@":return O.next(),Ce=f(H,8,"@"),H.inLinked=!0,Ce;case".":return m(O),O.next(),f(H,9,".");case":":return m(O),O.next(),f(H,10,":");default:return T(O)?(Ce=f(H,1,re(O)),H.braceNest=0,H.inLinked=!1,Ce):y(O,H)||k(O,H)?(m(O),ne(O,H)):x(O,H)?(m(O),f(H,12,F(O))):P(O,H)?(m(O),fe==="{"?_e(O,H)||Ce:f(H,11,I(O))):(te===8&&d(ft.INVALID_LINKED_FORMAT,i(),0),H.braceNest=0,H.inLinked=!1,me(O,H))}}function me(O,H){let te={type:14};if(H.braceNest>0)return _e(O,H)||h(H);if(H.inLinked)return ne(O,H)||h(H);switch(O.currentChar()){case"{":return _e(O,H)||h(H);case"}":return d(ft.UNBALANCED_CLOSING_BRACE,i(),0),O.next(),f(H,3,"}");case"@":return ne(O,H)||h(H);default:{if(T(O))return te=f(H,1,re(O)),H.braceNest=0,H.inLinked=!1,te;const{isModulo:fe,hasSpace:de}=$(O);if(fe)return de?f(H,0,Y(O)):f(H,4,A(O));if(E(O))return f(H,0,Y(O));break}}return te}function we(){const{currentType:O,offset:H,startLoc:te,endLoc:Ce}=l;return l.lastType=O,l.lastOffset=H,l.lastStartLoc=te,l.lastEndLoc=Ce,l.offset=r(),l.startLoc=i(),o.currentChar()===kr?f(l,14):me(o,l)}return{nextToken:we,currentOffset:r,currentPosition:i,context:c}}const ZE="parser",e5=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function t5(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function n5(e={}){const t=e.location!==!1,{onError:n,onWarn:o}=e;function r(C,_,S,y,...x){const k=C.currentPosition();if(k.offset+=y,k.column+=y,n){const P=t?Rc(S,k):null,T=Ha(_,P,{domain:ZE,args:x});n(T)}}function i(C,_,S,y,...x){const k=C.currentPosition();if(k.offset+=y,k.column+=y,o){const P=t?Rc(S,k):null;o(UE(_,P,x))}}function a(C,_,S){const y={type:C};return t&&(y.start=_,y.end=_,y.loc={start:S,end:S}),y}function s(C,_,S,y){y&&(C.type=y),t&&(C.end=_,C.loc&&(C.loc.end=S))}function l(C,_){const S=C.context(),y=a(3,S.offset,S.startLoc);return y.value=_,s(y,C.currentOffset(),C.currentPosition()),y}function c(C,_){const S=C.context(),{lastOffset:y,lastStartLoc:x}=S,k=a(5,y,x);return k.index=parseInt(_,10),C.nextToken(),s(k,C.currentOffset(),C.currentPosition()),k}function u(C,_,S){const y=C.context(),{lastOffset:x,lastStartLoc:k}=y,P=a(4,x,k);return P.key=_,S===!0&&(P.modulo=!0),C.nextToken(),s(P,C.currentOffset(),C.currentPosition()),P}function d(C,_){const S=C.context(),{lastOffset:y,lastStartLoc:x}=S,k=a(9,y,x);return k.value=_.replace(e5,t5),C.nextToken(),s(k,C.currentOffset(),C.currentPosition()),k}function f(C){const _=C.nextToken(),S=C.context(),{lastOffset:y,lastStartLoc:x}=S,k=a(8,y,x);return _.type!==12?(r(C,ft.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),k.value="",s(k,y,x),{nextConsumeToken:_,node:k}):(_.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,wo(_)),k.value=_.value||"",s(k,C.currentOffset(),C.currentPosition()),{node:k})}function h(C,_){const S=C.context(),y=a(7,S.offset,S.startLoc);return y.value=_,s(y,C.currentOffset(),C.currentPosition()),y}function p(C){const _=C.context(),S=a(6,_.offset,_.startLoc);let y=C.nextToken();if(y.type===9){const x=f(C);S.modifier=x.node,y=x.nextConsumeToken||C.nextToken()}switch(y.type!==10&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),y=C.nextToken(),y.type===2&&(y=C.nextToken()),y.type){case 11:y.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=h(C,y.value||"");break;case 5:y.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=u(C,y.value||"");break;case 6:y.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=c(C,y.value||"");break;case 7:y.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(y)),S.key=d(C,y.value||"");break;default:{r(C,ft.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const x=C.context(),k=a(7,x.offset,x.startLoc);return k.value="",s(k,x.offset,x.startLoc),S.key=k,s(S,x.offset,x.startLoc),{nextConsumeToken:y,node:S}}}return s(S,C.currentOffset(),C.currentPosition()),{node:S}}function g(C){const _=C.context(),S=_.currentType===1?C.currentOffset():_.offset,y=_.currentType===1?_.endLoc:_.startLoc,x=a(2,S,y);x.items=[];let k=null,P=null;do{const E=k||C.nextToken();switch(k=null,E.type){case 0:E.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(l(C,E.value||""));break;case 6:E.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(c(C,E.value||""));break;case 4:P=!0;break;case 5:E.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(u(C,E.value||"",!!P)),P&&(i(C,Op.USE_MODULO_SYNTAX,_.lastStartLoc,0,wo(E)),P=null);break;case 7:E.value==null&&r(C,ft.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,wo(E)),x.items.push(d(C,E.value||""));break;case 8:{const G=p(C);x.items.push(G.node),k=G.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const T=_.currentType===1?_.lastOffset:C.currentOffset(),$=_.currentType===1?_.lastEndLoc:C.currentPosition();return s(x,T,$),x}function m(C,_,S,y){const x=C.context();let k=y.items.length===0;const P=a(1,_,S);P.cases=[],P.cases.push(y);do{const T=g(C);k||(k=T.items.length===0),P.cases.push(T)}while(x.currentType!==14);return k&&r(C,ft.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),s(P,C.currentOffset(),C.currentPosition()),P}function b(C){const _=C.context(),{offset:S,startLoc:y}=_,x=g(C);return _.currentType===14?x:m(C,S,y,x)}function w(C){const _=JE(C,AC({},e)),S=_.context(),y=a(0,S.offset,S.startLoc);return t&&y.loc&&(y.loc.source=C),y.body=b(_),e.onCacheKey&&(y.cacheKey=e.onCacheKey(C)),S.currentType!==14&&r(_,ft.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,C[S.offset]||""),s(y,_.currentOffset(),_.currentPosition()),y}return{parse:w}}function wo(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function o5(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Rv(e,t){for(let n=0;nEv(n)),e}function Ev(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ns;function c(m,b){s.code+=m}function u(m,b=!0){const w=b?r:"";c(i?w+" ".repeat(m):w)}function d(m=!0){const b=++s.indentLevel;m&&u(b)}function f(m=!0){const b=--s.indentLevel;m&&u(b)}function h(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function c5(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Pa(e,t.key),t.modifier?(e.push(", "),Pa(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function u5(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const r=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let i=0;i{const n=Tv(t.mode)?t.mode:"normal",o=Tv(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` +`,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=l5(e,{mode:n,filename:o,sourceMap:r,breakLineCode:i,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${RC(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Pa(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function p5(e,t={}){const n=AC({},t),o=!!n.jit,r=!!n.minify,i=n.optimize==null?!0:n.optimize,s=n5(n).parse(e);return o?(i&&i5(s),r&&ca(s),{ast:s,code:""}):(r5(s,n),h5(s,n))}/*! * core-base v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */function a5(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(sr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(sr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(sr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Yr=[];Yr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Yr[1]={w:[1],".":[2],"[":[4],o:[7]};Yr[2]={w:[2],i:[3,0],0:[3,0]};Yr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Yr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Yr[5]={"'":[4,0],o:8,l:[5,0]};Yr[6]={'"':[4,0],o:8,l:[6,0]};const s5=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function l5(e){return s5.test(e)}function c5(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function u5(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function d5(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:l5(t)?c5(t):"*"+t}function f5(e){const t=[];let n=-1,o=0,r=0,i,a,s,l,c,u,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,o=4,f[0]();else{if(r=0,a===void 0||(a=d5(a),a===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;o!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=u5(i),d=Yr[o],c=d[l]||d.l||8,c===8||(o=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(s=i,u()===!1))))return;if(o===7)return t}}const Sv=new Map;function h5(e,t){return Nt(e)?e[t]:null}function p5(e,t){if(!Nt(e))return null;let n=Sv.get(t);if(n||(n=f5(t),n&&Sv.set(t,n)),!n)return null;const o=n.length;let r=e,i=0;for(;ie,g5=e=>"",v5="text",b5=e=>e.length===0?"":EA(e),y5=TA;function kv(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function x5(e){const t=yn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(yn(e.named.count)||yn(e.named.n))?yn(e.named.count)?e.named.count:yn(e.named.n)?e.named.n:t:t}function C5(e,t){t.count||(t.count=e),t.n||(t.n=e)}function w5(e={}){const t=e.locale,n=x5(e),o=Nt(e.pluralRules)&&Ge(t)&&Xt(e.pluralRules[t])?e.pluralRules[t]:kv,r=Nt(e.pluralRules)&&Ge(t)&&Xt(e.pluralRules[t])?kv:void 0,i=b=>b[o(n,b.length,r)],a=e.list||[],s=b=>a[b],l=e.named||{};yn(e.pluralIndex)&&C5(n,l);const c=b=>l[b];function u(b){const w=Xt(e.messages)?e.messages(b):Nt(e.messages)?e.messages[b]:!1;return w||(e.parent?e.parent.message(b):g5)}const d=b=>e.modifiers?e.modifiers[b]:m5,f=mt(e.processor)&&Xt(e.processor.normalize)?e.processor.normalize:b5,h=mt(e.processor)&&Xt(e.processor.interpolate)?e.processor.interpolate:y5,p=mt(e.processor)&&Ge(e.processor.type)?e.processor.type:v5,m={list:s,named:c,plural:i,linked:(b,...w)=>{const[C,_]=w;let S="text",y="";w.length===1?Nt(C)?(y=C.modifier||y,S=C.type||S):Ge(C)&&(y=C||y):w.length===2&&(Ge(C)&&(y=C||y),Ge(_)&&(S=_||S));const x=u(b)(m),P=S==="vnode"&&tn(x)&&y?x[0]:x;return y?d(y)(P,S):P},message:u,type:p,interpolate:h,normalize:f,values:Pn({},a,l)};return m}let Vs=null;function _5(e){Vs=e}function S5(e,t,n){Vs&&Vs.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const k5=P5("function:translate");function P5(e){return t=>Vs&&Vs.emit(e,t)}const _C=Pp.__EXTEND_POINT__,si=pu(_C),T5={NOT_FOUND_KEY:_C,FALLBACK_TO_TRANSLATE:si(),CANNOT_FORMAT_NUMBER:si(),FALLBACK_TO_NUMBER_FORMAT:si(),CANNOT_FORMAT_DATE:si(),FALLBACK_TO_DATE_FORMAT:si(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:si(),__EXTEND_POINT__:si()},SC=dt.__EXTEND_POINT__,li=pu(SC),ko={INVALID_ARGUMENT:SC,INVALID_DATE_ARGUMENT:li(),INVALID_ISO_DATE_ARGUMENT:li(),NOT_SUPPORT_NON_STRING_MESSAGE:li(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:li(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:li(),NOT_SUPPORT_LOCALE_TYPE:li(),__EXTEND_POINT__:li()};function Ho(e){return La(e,null,void 0)}function Ep(e,t){return t.locale!=null?Pv(t.locale):Pv(e.locale)}let Id;function Pv(e){if(Ge(e))return e;if(Xt(e)){if(e.resolvedOnce&&Id!=null)return Id;if(e.constructor.name==="Function"){const t=e();if(PA(t))throw Ho(ko.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Id=t}else throw Ho(ko.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ho(ko.NOT_SUPPORT_LOCALE_TYPE)}function E5(e,t,n){return[...new Set([n,...tn(t)?t:Nt(t)?Object.keys(t):Ge(t)?[t]:[n]])]}function kC(e,t,n){const o=Ge(n)?n:ka,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(o);if(!i){i=[];let a=[n];for(;tn(a);)a=Tv(i,a,t);const s=tn(t)||!mt(t)?t:t.default?t.default:null;a=Ge(s)?[s]:s,tn(a)&&Tv(i,a,!1),r.__localeChainCache.set(o,i)}return i}function Tv(e,t,n){let o=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function I5(){return{upper:(e,t)=>t==="text"&&Ge(e)?e.toUpperCase():t==="vnode"&&Nt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ge(e)?e.toLowerCase():t==="vnode"&&Nt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ge(e)?Rv(e):t==="vnode"&&Nt(e)&&"__v_isVNode"in e?Rv(e.children):e}}let PC;function Av(e){PC=e}let TC;function O5(e){TC=e}let EC;function M5(e){EC=e}let RC=null;const z5=e=>{RC=e},F5=()=>RC;let AC=null;const $v=e=>{AC=e},D5=()=>AC;let Iv=0;function L5(e={}){const t=Xt(e.onWarn)?e.onWarn:RA,n=Ge(e.version)?e.version:$5,o=Ge(e.locale)||Xt(e.locale)?e.locale:ka,r=Xt(o)?ka:o,i=tn(e.fallbackLocale)||mt(e.fallbackLocale)||Ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=mt(e.messages)?e.messages:{[r]:{}},s=mt(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=mt(e.numberFormats)?e.numberFormats:{[r]:{}},c=Pn({},e.modifiers||{},I5()),u=e.pluralRules||{},d=Xt(e.missing)?e.missing:null,f=St(e.missingWarn)||Nr(e.missingWarn)?e.missingWarn:!0,h=St(e.fallbackWarn)||Nr(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,m=Xt(e.postTranslation)?e.postTranslation:null,b=mt(e.processor)?e.processor:null,w=St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,_=Xt(e.messageCompiler)?e.messageCompiler:PC,S=Xt(e.messageResolver)?e.messageResolver:TC||h5,y=Xt(e.localeFallbacker)?e.localeFallbacker:EC||E5,x=Nt(e.fallbackContext)?e.fallbackContext:void 0,P=e,k=Nt(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,T=Nt(P.__numberFormatters)?P.__numberFormatters:new Map,R=Nt(P.__meta)?P.__meta:{};Iv++;const E={version:n,cid:Iv,locale:o,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:m,processor:b,warnHtmlMessage:w,escapeParameter:C,messageCompiler:_,messageResolver:S,localeFallbacker:y,fallbackContext:x,onWarn:t,__meta:R};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=k,E.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&S5(E,n,R),E}function Rp(e,t,n,o,r){const{missing:i,onWarn:a}=e;if(i!==null){const s=i(e,n,t,r);return Ge(s)?s:t}else return t}function is(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function B5(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function N5(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;oH5(n,e)}function H5(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const o=n,r=o.c||o.cases;return e.plural(r.reduce((i,a)=>[...i,Ov(e,a)],[]))}else return Ov(e,n)}function Ov(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const o=(t.i||t.items).reduce((r,i)=>[...r,Yf(e,i)],[]);return e.normalize(o)}}function Yf(e,t){const n=t.t||t.type;switch(n){case 3:{const o=t;return o.v||o.value}case 9:{const o=t;return o.v||o.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index))}case 6:{const o=t,r=o.m||o.modifier;return e.linked(Yf(e,o.k||o.key),r?Yf(e,r):void 0,e.type)}case 7:{const o=t;return o.v||o.value}case 8:{const o=t;return o.v||o.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const $C=e=>e;let ca=Object.create(null);const Pa=e=>Nt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function IC(e,t={}){let n=!1;const o=t.onError||FA;return t.onError=r=>{n=!0,o(r)},{...i5(e,t),detectError:n}}const j5=(e,t)=>{if(!Ge(e))throw Ho(ko.NOT_SUPPORT_NON_STRING_MESSAGE);{St(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||$C)(e),r=ca[o];if(r)return r;const{code:i,detectError:a}=IC(e,t),s=new Function(`return ${i}`)();return a?s:ca[o]=s}};function U5(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ge(e)){St(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||$C)(e),r=ca[o];if(r)return r;const{ast:i,detectError:a}=IC(e,{...t,location:!1,jit:!0}),s=Od(i);return a?s:ca[o]=s}else{const n=e.cacheKey;if(n){const o=ca[n];return o||(ca[n]=Od(e))}else return Od(e)}}const Mv=()=>"",ao=e=>Xt(e);function zv(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=Qf(...t),u=St(c.missingWarn)?c.missingWarn:e.missingWarn,d=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=St(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,p=Ge(c.default)||St(c.default)?St(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",g=n||p!=="",m=Ep(e,c);f&&V5(c);let[b,w,C]=h?[l,m,s[m]||{}]:OC(e,l,m,a,d,u),_=b,S=l;if(!h&&!(Ge(_)||Pa(_)||ao(_))&&g&&(_=p,S=_),!h&&(!(Ge(_)||Pa(_)||ao(_))||!Ge(w)))return r?mu:l;let y=!1;const x=()=>{y=!0},P=ao(_)?_:MC(e,l,w,_,S,x);if(y)return _;const k=K5(e,w,C,c),T=w5(k),R=W5(e,P,T),E=o?o(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const q={timestamp:Date.now(),key:Ge(l)?l:ao(_)?_.key:"",locale:w||(ao(_)?_.locale:""),format:Ge(_)?_:ao(_)?_.source:"",message:E};q.meta=Pn({},e.__meta,F5()||{}),k5(q)}return E}function V5(e){tn(e.list)?e.list=e.list.map(t=>Ge(t)?yv(t):t):Nt(e.named)&&Object.keys(e.named).forEach(t=>{Ge(e.named[t])&&(e.named[t]=yv(e.named[t]))})}function OC(e,t,n,o,r,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,o,n);let d={},f,h=null;const p="translate";for(let g=0;go;return c.locale=n,c.key=t,c}const l=a(o,q5(e,n,r,o,s,i));return l.locale=n,l.key=t,l.source=o,l}function W5(e,t,n){return t(n)}function Qf(...e){const[t,n,o]=e,r={};if(!Ge(t)&&!yn(t)&&!ao(t)&&!Pa(t))throw Ho(ko.INVALID_ARGUMENT);const i=yn(t)?String(t):(ao(t),t);return yn(n)?r.plural=n:Ge(n)?r.default=n:mt(n)&&!hu(n)?r.named=n:tn(n)&&(r.list=n),yn(o)?r.plural=o:Ge(o)?r.default=o:mt(o)&&Pn(r,o),[i,r]}function q5(e,t,n,o,r,i){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{throw i&&i(a),a},onCacheKey:a=>wA(t,n,a)}}function K5(e,t,n,o){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:r,pluralRules:i,messages:h=>{let p=a(n,h);if(p==null&&u){const[,,g]=OC(u,h,t,s,l,c);p=a(g,h)}if(Ge(p)||Pa(p)){let g=!1;const b=MC(e,h,t,p,h,()=>{g=!0});return g?Mv:b}else return ao(p)?p:Mv}};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),yn(o.plural)&&(f.pluralIndex=o.plural),f}function Fv(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,c,u,d]=Jf(...t),f=St(u.missingWarn)?u.missingWarn:e.missingWarn;St(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=Ep(e,u),g=a(e,r,p);if(!Ge(l)||l==="")return new Intl.DateTimeFormat(p,d).format(c);let m={},b,w=null;const C="datetime format";for(let y=0;y{zC.includes(l)?a[l]=n[l]:i[l]=n[l]}),Ge(o)?i.locale=o:mt(o)&&(a=o),mt(r)&&(a=r),[i.key||"",s,i,a]}function Dv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function Lv(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,c,u,d]=Zf(...t),f=St(u.missingWarn)?u.missingWarn:e.missingWarn;St(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=Ep(e,u),g=a(e,r,p);if(!Ge(l)||l==="")return new Intl.NumberFormat(p,d).format(c);let m={},b,w=null;const C="number format";for(let y=0;y{FC.includes(l)?a[l]=n[l]:i[l]=n[l]}),Ge(o)?i.locale=o:mt(o)&&(a=o),mt(r)&&(a=r),[i.key||"",s,i,a]}function Bv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}a5();/*! + */function m5(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(sr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(sr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(sr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Jr=[];Jr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Jr[1]={w:[1],".":[2],"[":[4],o:[7]};Jr[2]={w:[2],i:[3,0],0:[3,0]};Jr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Jr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Jr[5]={"'":[4,0],o:8,l:[5,0]};Jr[6]={'"':[4,0],o:8,l:[6,0]};const g5=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function v5(e){return g5.test(e)}function b5(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function y5(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function x5(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:v5(t)?b5(t):"*"+t}function C5(e){const t=[];let n=-1,o=0,r=0,i,a,s,l,c,u,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>{if(r>0)r--,o=4,f[0]();else{if(r=0,a===void 0||(a=x5(a),a===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,s="\\"+p,f[0](),!0}for(;o!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(l=y5(i),d=Jr[o],c=d[l]||d.l||8,c===8||(o=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(s=i,u()===!1))))return;if(o===7)return t}}const $v=new Map;function w5(e,t){return Nt(e)?e[t]:null}function _5(e,t){if(!Nt(e))return null;let n=$v.get(t);if(n||(n=C5(t),n&&$v.set(t,n)),!n)return null;const o=n.length;let r=e,i=0;for(;ie,k5=e=>"",P5="text",T5=e=>e.length===0?"":DE(e),A5=FE;function Iv(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function R5(e){const t=yn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(yn(e.named.count)||yn(e.named.n))?yn(e.named.count)?e.named.count:yn(e.named.n)?e.named.n:t:t}function E5(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $5(e={}){const t=e.locale,n=R5(e),o=Nt(e.pluralRules)&&Ge(t)&&Xt(e.pluralRules[t])?e.pluralRules[t]:Iv,r=Nt(e.pluralRules)&&Ge(t)&&Xt(e.pluralRules[t])?Iv:void 0,i=b=>b[o(n,b.length,r)],a=e.list||[],s=b=>a[b],l=e.named||{};yn(e.pluralIndex)&&E5(n,l);const c=b=>l[b];function u(b){const w=Xt(e.messages)?e.messages(b):Nt(e.messages)?e.messages[b]:!1;return w||(e.parent?e.parent.message(b):k5)}const d=b=>e.modifiers?e.modifiers[b]:S5,f=mt(e.processor)&&Xt(e.processor.normalize)?e.processor.normalize:T5,h=mt(e.processor)&&Xt(e.processor.interpolate)?e.processor.interpolate:A5,p=mt(e.processor)&&Ge(e.processor.type)?e.processor.type:P5,m={list:s,named:c,plural:i,linked:(b,...w)=>{const[C,_]=w;let S="text",y="";w.length===1?Nt(C)?(y=C.modifier||y,S=C.type||S):Ge(C)&&(y=C||y):w.length===2&&(Ge(C)&&(y=C||y),Ge(_)&&(S=_||S));const x=u(b)(m),k=S==="vnode"&&tn(x)&&y?x[0]:x;return y?d(y)(k,S):k},message:u,type:p,interpolate:h,normalize:f,values:Pn({},a,l)};return m}let Ks=null;function I5(e){Ks=e}function O5(e,t,n){Ks&&Ks.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const M5=z5("function:translate");function z5(e){return t=>Ks&&Ks.emit(e,t)}const EC=Op.__EXTEND_POINT__,ci=yu(EC),F5={NOT_FOUND_KEY:EC,FALLBACK_TO_TRANSLATE:ci(),CANNOT_FORMAT_NUMBER:ci(),FALLBACK_TO_NUMBER_FORMAT:ci(),CANNOT_FORMAT_DATE:ci(),FALLBACK_TO_DATE_FORMAT:ci(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ci(),__EXTEND_POINT__:ci()},$C=ft.__EXTEND_POINT__,ui=yu($C),ko={INVALID_ARGUMENT:$C,INVALID_DATE_ARGUMENT:ui(),INVALID_ISO_DATE_ARGUMENT:ui(),NOT_SUPPORT_NON_STRING_MESSAGE:ui(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ui(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ui(),NOT_SUPPORT_LOCALE_TYPE:ui(),__EXTEND_POINT__:ui()};function Ho(e){return Ha(e,null,void 0)}function zp(e,t){return t.locale!=null?Ov(t.locale):Ov(e.locale)}let Dd;function Ov(e){if(Ge(e))return e;if(Xt(e)){if(e.resolvedOnce&&Dd!=null)return Dd;if(e.constructor.name==="Function"){const t=e();if(zE(t))throw Ho(ko.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dd=t}else throw Ho(ko.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ho(ko.NOT_SUPPORT_LOCALE_TYPE)}function D5(e,t,n){return[...new Set([n,...tn(t)?t:Nt(t)?Object.keys(t):Ge(t)?[t]:[n]])]}function IC(e,t,n){const o=Ge(n)?n:Ta,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(o);if(!i){i=[];let a=[n];for(;tn(a);)a=Mv(i,a,t);const s=tn(t)||!mt(t)?t:t.default?t.default:null;a=Ge(s)?[s]:s,tn(a)&&Mv(i,a,!1),r.__localeChainCache.set(o,i)}return i}function Mv(e,t,n){let o=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function H5(){return{upper:(e,t)=>t==="text"&&Ge(e)?e.toUpperCase():t==="vnode"&&Nt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ge(e)?e.toLowerCase():t==="vnode"&&Nt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ge(e)?Fv(e):t==="vnode"&&Nt(e)&&"__v_isVNode"in e?Fv(e.children):e}}let OC;function Dv(e){OC=e}let MC;function j5(e){MC=e}let zC;function U5(e){zC=e}let FC=null;const V5=e=>{FC=e},W5=()=>FC;let DC=null;const Lv=e=>{DC=e},q5=()=>DC;let Bv=0;function K5(e={}){const t=Xt(e.onWarn)?e.onWarn:LE,n=Ge(e.version)?e.version:N5,o=Ge(e.locale)||Xt(e.locale)?e.locale:Ta,r=Xt(o)?Ta:o,i=tn(e.fallbackLocale)||mt(e.fallbackLocale)||Ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=mt(e.messages)?e.messages:{[r]:{}},s=mt(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},l=mt(e.numberFormats)?e.numberFormats:{[r]:{}},c=Pn({},e.modifiers||{},H5()),u=e.pluralRules||{},d=Xt(e.missing)?e.missing:null,f=St(e.missingWarn)||jr(e.missingWarn)?e.missingWarn:!0,h=St(e.fallbackWarn)||jr(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,m=Xt(e.postTranslation)?e.postTranslation:null,b=mt(e.processor)?e.processor:null,w=St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,_=Xt(e.messageCompiler)?e.messageCompiler:OC,S=Xt(e.messageResolver)?e.messageResolver:MC||w5,y=Xt(e.localeFallbacker)?e.localeFallbacker:zC||D5,x=Nt(e.fallbackContext)?e.fallbackContext:void 0,k=e,P=Nt(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,T=Nt(k.__numberFormatters)?k.__numberFormatters:new Map,$=Nt(k.__meta)?k.__meta:{};Bv++;const E={version:n,cid:Bv,locale:o,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:g,postTranslation:m,processor:b,warnHtmlMessage:w,escapeParameter:C,messageCompiler:_,messageResolver:S,localeFallbacker:y,fallbackContext:x,onWarn:t,__meta:$};return E.datetimeFormats=s,E.numberFormats=l,E.__datetimeFormatters=P,E.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&O5(E,n,$),E}function Fp(e,t,n,o,r){const{missing:i,onWarn:a}=e;if(i!==null){const s=i(e,n,t,r);return Ge(s)?s:t}else return t}function ls(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function G5(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function X5(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;oY5(n,e)}function Y5(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const o=n,r=o.c||o.cases;return e.plural(r.reduce((i,a)=>[...i,Nv(e,a)],[]))}else return Nv(e,n)}function Nv(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const o=(t.i||t.items).reduce((r,i)=>[...r,nh(e,i)],[]);return e.normalize(o)}}function nh(e,t){const n=t.t||t.type;switch(n){case 3:{const o=t;return o.v||o.value}case 9:{const o=t;return o.v||o.value}case 4:{const o=t;return e.interpolate(e.named(o.k||o.key))}case 5:{const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index))}case 6:{const o=t,r=o.m||o.modifier;return e.linked(nh(e,o.k||o.key),r?nh(e,r):void 0,e.type)}case 7:{const o=t;return o.v||o.value}case 8:{const o=t;return o.v||o.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const LC=e=>e;let da=Object.create(null);const Aa=e=>Nt(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function BC(e,t={}){let n=!1;const o=t.onError||WE;return t.onError=r=>{n=!0,o(r)},{...p5(e,t),detectError:n}}const Q5=(e,t)=>{if(!Ge(e))throw Ho(ko.NOT_SUPPORT_NON_STRING_MESSAGE);{St(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||LC)(e),r=da[o];if(r)return r;const{code:i,detectError:a}=BC(e,t),s=new Function(`return ${i}`)();return a?s:da[o]=s}};function J5(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ge(e)){St(t.warnHtmlMessage)&&t.warnHtmlMessage;const o=(t.onCacheKey||LC)(e),r=da[o];if(r)return r;const{ast:i,detectError:a}=BC(e,{...t,location:!1,jit:!0}),s=Ld(i);return a?s:da[o]=s}else{const n=e.cacheKey;if(n){const o=da[n];return o||(da[n]=Ld(e))}else return Ld(e)}}const Hv=()=>"",ao=e=>Xt(e);function jv(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=oh(...t),u=St(c.missingWarn)?c.missingWarn:e.missingWarn,d=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=St(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,p=Ge(c.default)||St(c.default)?St(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",g=n||p!=="",m=zp(e,c);f&&Z5(c);let[b,w,C]=h?[l,m,s[m]||{}]:NC(e,l,m,a,d,u),_=b,S=l;if(!h&&!(Ge(_)||Aa(_)||ao(_))&&g&&(_=p,S=_),!h&&(!(Ge(_)||Aa(_)||ao(_))||!Ge(w)))return r?xu:l;let y=!1;const x=()=>{y=!0},k=ao(_)?_:HC(e,l,w,_,S,x);if(y)return _;const P=n$(e,w,C,c),T=$5(P),$=e$(e,k,T),E=o?o($,l):$;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:Ge(l)?l:ao(_)?_.key:"",locale:w||(ao(_)?_.locale:""),format:Ge(_)?_:ao(_)?_.source:"",message:E};G.meta=Pn({},e.__meta,W5()||{}),M5(G)}return E}function Z5(e){tn(e.list)?e.list=e.list.map(t=>Ge(t)?Pv(t):t):Nt(e.named)&&Object.keys(e.named).forEach(t=>{Ge(e.named[t])&&(e.named[t]=Pv(e.named[t]))})}function NC(e,t,n,o,r,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,o,n);let d={},f,h=null;const p="translate";for(let g=0;go;return c.locale=n,c.key=t,c}const l=a(o,t$(e,n,r,o,s,i));return l.locale=n,l.key=t,l.source=o,l}function e$(e,t,n){return t(n)}function oh(...e){const[t,n,o]=e,r={};if(!Ge(t)&&!yn(t)&&!ao(t)&&!Aa(t))throw Ho(ko.INVALID_ARGUMENT);const i=yn(t)?String(t):(ao(t),t);return yn(n)?r.plural=n:Ge(n)?r.default=n:mt(n)&&!bu(n)?r.named=n:tn(n)&&(r.list=n),yn(o)?r.plural=o:Ge(o)?r.default=o:mt(o)&&Pn(r,o),[i,r]}function t$(e,t,n,o,r,i){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{throw i&&i(a),a},onCacheKey:a=>$E(t,n,a)}}function n$(e,t,n,o){const{modifiers:r,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:r,pluralRules:i,messages:h=>{let p=a(n,h);if(p==null&&u){const[,,g]=NC(u,h,t,s,l,c);p=a(g,h)}if(Ge(p)||Aa(p)){let g=!1;const b=HC(e,h,t,p,h,()=>{g=!0});return g?Hv:b}else return ao(p)?p:Hv}};return e.processor&&(f.processor=e.processor),o.list&&(f.list=o.list),o.named&&(f.named=o.named),yn(o.plural)&&(f.pluralIndex=o.plural),f}function Uv(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,c,u,d]=rh(...t),f=St(u.missingWarn)?u.missingWarn:e.missingWarn;St(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=zp(e,u),g=a(e,r,p);if(!Ge(l)||l==="")return new Intl.DateTimeFormat(p,d).format(c);let m={},b,w=null;const C="datetime format";for(let y=0;y{jC.includes(l)?a[l]=n[l]:i[l]=n[l]}),Ge(o)?i.locale=o:mt(o)&&(a=o),mt(r)&&(a=r),[i.key||"",s,i,a]}function Vv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function Wv(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:r,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,c,u,d]=ih(...t),f=St(u.missingWarn)?u.missingWarn:e.missingWarn;St(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,p=zp(e,u),g=a(e,r,p);if(!Ge(l)||l==="")return new Intl.NumberFormat(p,d).format(c);let m={},b,w=null;const C="number format";for(let y=0;y{UC.includes(l)?a[l]=n[l]:i[l]=n[l]}),Ge(o)?i.locale=o:mt(o)&&(a=o),mt(r)&&(a=r),[i.key||"",s,i,a]}function qv(e,t,n){const o=e;for(const r in n){const i=`${t}__${r}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}m5();/*! * vue-i18n v9.14.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const G5="9.14.0";function X5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(sr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(sr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(sr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(sr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(sr().__INTLIFY_PROD_DEVTOOLS__=!1)}const DC=T5.__EXTEND_POINT__,nr=pu(DC);nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr();const LC=ko.__EXTEND_POINT__,Bn=pu(LC),Cn={UNEXPECTED_RETURN_TYPE:LC,INVALID_ARGUMENT:Bn(),MUST_BE_CALL_SETUP_TOP:Bn(),NOT_INSTALLED:Bn(),NOT_AVAILABLE_IN_LEGACY_MODE:Bn(),REQUIRED_VALUE:Bn(),INVALID_VALUE:Bn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bn(),NOT_INSTALLED_WITH_PROVIDE:Bn(),UNEXPECTED_ERROR:Bn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bn(),BRIDGE_SUPPORT_VUE_2_ONLY:Bn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bn(),__EXTEND_POINT__:Bn()};function kn(e,...t){return La(e,null,void 0)}const eh=Xr("__translateVNode"),th=Xr("__datetimeParts"),nh=Xr("__numberParts"),BC=Xr("__setPluralRules"),NC=Xr("__injectWithOption"),oh=Xr("__dispose");function Ws(e){if(!Nt(e))return e;for(const t in e)if(_c(e,t))if(!t.includes("."))Nt(e[t])&&Ws(e[t]);else{const n=t.split("."),o=n.length-1;let r=e,i=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||{},ic(c,a[l])):ic(c,a)}else Ge(s)&&ic(JSON.parse(s),a)}),r==null&&i)for(const s in a)_c(a,s)&&Ws(a[s]);return a}function HC(e){return e.type}function jC(e,t,n){let o=Nt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=gu(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,o[i])});{if(Nt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Nt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Nv(e){return se(Ma,null,e,0)}const Hv="__INTLIFY_META__",jv=()=>[],Y5=()=>!1;let Uv=0;function Vv(e){return(t,n,o,r)=>e(n,o,no()||void 0,r)}const Q5=()=>{const e=no();let t=null;return e&&(t=HC(e)[Hv])?{[Hv]:t}:null};function Ap(e={},t){const{__root:n,__injectWithOption:o}=e,r=n===void 0,i=e.flatJson,a=wc?U:Ia,s=!!e.translateExistCompatible;let l=St(e.inheritLocale)?e.inheritLocale:!0;const c=a(n&&l?n.locale.value:Ge(e.locale)?e.locale:ka),u=a(n&&l?n.fallbackLocale.value:Ge(e.fallbackLocale)||tn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(gu(c.value,e)),f=a(mt(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=a(mt(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:St(e.missingWarn)||Nr(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:St(e.fallbackWarn)||Nr(e.fallbackWarn)?e.fallbackWarn:!0,m=n?n.fallbackRoot:St(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,w=Xt(e.missing)?e.missing:null,C=Xt(e.missing)?Vv(e.missing):null,_=Xt(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const x=n?n.modifiers:mt(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,k;k=(()=>{r&&$v(null);const ie={version:G5,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:x,pluralRules:P,missing:C===null?void 0:C,missingWarn:p,fallbackWarn:g,fallbackFormat:b,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:S,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=f.value,ie.numberFormats=h.value,ie.__datetimeFormatters=mt(k)?k.__datetimeFormatters:void 0,ie.__numberFormatters=mt(k)?k.__numberFormatters:void 0;const fe=L5(ie);return r&&$v(fe),fe})(),is(k,c.value,u.value);function R(){return[c.value,u.value,d.value,f.value,h.value]}const E=I({get:()=>c.value,set:ie=>{c.value=ie,k.locale=c.value}}),q=I({get:()=>u.value,set:ie=>{u.value=ie,k.fallbackLocale=u.value,is(k,c.value,ie)}}),D=I(()=>d.value),B=I(()=>f.value),M=I(()=>h.value);function K(){return Xt(_)?_:null}function V(ie){_=ie,k.postTranslation=ie}function ae(){return w}function pe(ie){ie!==null&&(C=Vv(ie)),w=ie,k.missing=C}const Z=(ie,fe,Fe,De,Me,Ne)=>{R();let et;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=n?D5():void 0),et=ie(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if(Fe!=="translate exists"&&yn(et)&&et===mu||Fe==="translate exists"&&!et){const[$e,Xe]=fe();return n&&m?De(n):Me($e)}else{if(Ne(et))return et;throw kn(Cn.UNEXPECTED_RETURN_TYPE)}};function N(...ie){return Z(fe=>Reflect.apply(zv,null,[fe,...ie]),()=>Qf(...ie),"translate",fe=>Reflect.apply(fe.t,fe,[...ie]),fe=>fe,fe=>Ge(fe))}function O(...ie){const[fe,Fe,De]=ie;if(De&&!Nt(De))throw kn(Cn.INVALID_ARGUMENT);return N(fe,Fe,Pn({resolvedMessage:!0},De||{}))}function ee(...ie){return Z(fe=>Reflect.apply(Fv,null,[fe,...ie]),()=>Jf(...ie),"datetime format",fe=>Reflect.apply(fe.d,fe,[...ie]),()=>Ev,fe=>Ge(fe))}function G(...ie){return Z(fe=>Reflect.apply(Lv,null,[fe,...ie]),()=>Zf(...ie),"number format",fe=>Reflect.apply(fe.n,fe,[...ie]),()=>Ev,fe=>Ge(fe))}function ne(ie){return ie.map(fe=>Ge(fe)||yn(fe)||St(fe)?Nv(String(fe)):fe)}const ce={normalize:ne,interpolate:ie=>ie,type:"vnode"};function L(...ie){return Z(fe=>{let Fe;const De=fe;try{De.processor=ce,Fe=Reflect.apply(zv,null,[De,...ie])}finally{De.processor=null}return Fe},()=>Qf(...ie),"translate",fe=>fe[eh](...ie),fe=>[Nv(fe)],fe=>tn(fe))}function be(...ie){return Z(fe=>Reflect.apply(Lv,null,[fe,...ie]),()=>Zf(...ie),"number format",fe=>fe[nh](...ie),jv,fe=>Ge(fe)||tn(fe))}function Oe(...ie){return Z(fe=>Reflect.apply(Fv,null,[fe,...ie]),()=>Jf(...ie),"datetime format",fe=>fe[th](...ie),jv,fe=>Ge(fe)||tn(fe))}function je(ie){P=ie,k.pluralRules=P}function F(ie,fe){return Z(()=>{if(!ie)return!1;const Fe=Ge(fe)?fe:c.value,De=we(Fe),Me=k.messageResolver(De,ie);return s?Me!=null:Pa(Me)||ao(Me)||Ge(Me)},()=>[ie],"translate exists",Fe=>Reflect.apply(Fe.te,Fe,[ie,fe]),Y5,Fe=>St(Fe))}function A(ie){let fe=null;const Fe=kC(k,u.value,c.value);for(let De=0;De{l&&(c.value=ie,k.locale=ie,is(k,c.value,u.value))}),ft(n.fallbackLocale,ie=>{l&&(u.value=ie,k.fallbackLocale=ie,is(k,c.value,u.value))}));const ue={id:Uv,locale:E,fallbackLocale:q,get inheritLocale(){return l},set inheritLocale(ie){l=ie,ie&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,is(k,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:D,get modifiers(){return x},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(ie){p=ie,k.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(ie){g=ie,k.fallbackWarn=g},get fallbackRoot(){return m},set fallbackRoot(ie){m=ie},get fallbackFormat(){return b},set fallbackFormat(ie){b=ie,k.fallbackFormat=b},get warnHtmlMessage(){return S},set warnHtmlMessage(ie){S=ie,k.warnHtmlMessage=ie},get escapeParameter(){return y},set escapeParameter(ie){y=ie,k.escapeParameter=ie},t:N,getLocaleMessage:we,setLocaleMessage:oe,mergeLocaleMessage:ve,getPostTranslationHandler:K,setPostTranslationHandler:V,getMissingHandler:ae,setMissingHandler:pe,[BC]:je};return ue.datetimeFormats=B,ue.numberFormats=M,ue.rt=O,ue.te=F,ue.tm=re,ue.d=ee,ue.n=G,ue.getDateTimeFormat=ke,ue.setDateTimeFormat=$,ue.mergeDateTimeFormat=H,ue.getNumberFormat=te,ue.setNumberFormat=Ce,ue.mergeNumberFormat=de,ue[NC]=o,ue[eh]=L,ue[th]=Oe,ue[nh]=be,ue}function J5(e){const t=Ge(e.locale)?e.locale:ka,n=Ge(e.fallbackLocale)||tn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Xt(e.missing)?e.missing:void 0,r=St(e.silentTranslationWarn)||Nr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=St(e.silentFallbackWarn)||Nr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=St(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=mt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Xt(e.postTranslation)?e.postTranslation:void 0,d=Ge(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=St(e.sync)?e.sync:!0;let p=e.messages;if(mt(e.sharedMessages)){const y=e.sharedMessages;p=Object.keys(y).reduce((P,k)=>{const T=P[k]||(P[k]={});return Pn(T,y[k]),P},p||{})}const{__i18n:g,__root:m,__injectWithOption:b}=e,w=e.datetimeFormats,C=e.numberFormats,_=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:_,datetimeFormats:w,numberFormats:C,missing:o,missingWarn:r,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,translateExistCompatible:S,__i18n:g,__root:m,__injectWithOption:b}}function rh(e={},t){{const n=Ap(J5(e)),{__extender:o}=e,r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return St(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=St(i)?!i:i},get silentFallbackWarn(){return St(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=St(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[a,s,l]=i,c={};let u=null,d=null;if(!Ge(a))throw kn(Cn.INVALID_ARGUMENT);const f=a;return Ge(s)?c.locale=s:tn(s)?u=s:mt(s)&&(d=s),tn(l)?u=l:mt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[a,s,l]=i,c={plural:1};let u=null,d=null;if(!Ge(a))throw kn(Cn.INVALID_ARGUMENT);const f=a;return Ge(s)?c.locale=s:yn(s)?c.plural=s:tn(s)?u=s:mt(s)&&(d=s),Ge(l)?c.locale=l:tn(l)?u=l:mt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(i,a){return n.te(i,a)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,a){n.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){n.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,a){n.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){n.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,a){n.setNumberFormat(i,a)},mergeNumberFormat(i,a){n.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return r.__extender=o,r}}const $p={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Z5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,r)=>[...o,...r.type===rt?r.children:[r]],[]):t.reduce((n,o)=>{const r=e[o];return r&&(n[o]=r()),n},{})}function UC(e){return rt}const e$=xe({name:"i18n-t",props:Pn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>yn(e)||!isNaN(e)}},$p),setup(e,t){const{slots:n,attrs:o}=t,r=e.i18n||Ip({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Ge(e.plural)?+e.plural:e.plural);const s=Z5(t,i),l=r[eh](e.keypath,s,a),c=Pn({},o),u=Ge(e.tag)||Nt(e.tag)?e.tag:UC();return v(u,c,l)}}}),Wv=e$;function t$(e){return tn(e)&&!Ge(e[0])}function VC(e,t,n,o){const{slots:r,attrs:i}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),Ge(e.format)?a.key=e.format:Nt(e.format)&&(Ge(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?Pn({},f,{[h]:e.format[h]}):f,{}));const l=o(e.value,a,s);let c=[a.key];tn(l)?c=l.map((f,h)=>{const p=r[f.type],g=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return t$(g)&&(g[0].key=`${f.type}-${h}`),g}):Ge(l)&&(c=[l]);const u=Pn({},i),d=Ge(e.tag)||Nt(e.tag)?e.tag:UC();return v(d,u,c)}}const n$=xe({name:"i18n-n",props:Pn({value:{type:Number,required:!0},format:{type:[String,Object]}},$p),setup(e,t){const n=e.i18n||Ip({useScope:e.scope,__useComponent:!0});return VC(e,t,FC,(...o)=>n[nh](...o))}}),qv=n$,o$=xe({name:"i18n-d",props:Pn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$p),setup(e,t){const n=e.i18n||Ip({useScope:e.scope,__useComponent:!0});return VC(e,t,zC,(...o)=>n[th](...o))}}),Kv=o$;function r$(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function i$(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw kn(Cn.UNEXPECTED_ERROR);const u=r$(e,s.$),d=Gv(c);return[Reflect.apply(u.t,u,[...Xv(d)]),u]};return{created:(a,s)=>{const[l,c]=t(s);wc&&e.global===c&&(a.__i18nWatcher=ft(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{wc&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=Gv(s);a.textContent=Reflect.apply(l.t,l,[...Xv(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function Gv(e){if(Ge(e))return{path:e};if(mt(e)){if(!("path"in e))throw kn(Cn.REQUIRED_VALUE,"path");return e}else throw kn(Cn.INVALID_VALUE)}function Xv(e){const{path:t,locale:n,args:o,choice:r,plural:i}=e,a={},s=o||{};return Ge(n)&&(a.locale=n),yn(r)&&(a.plural=r),yn(i)&&(a.plural=i),[t,s,a]}function a$(e,t,...n){const o=mt(n[0])?n[0]:{},r=!!o.useI18nComponentName;(St(o.globalInstall)?o.globalInstall:!0)&&([r?"i18n":Wv.name,"I18nT"].forEach(a=>e.component(a,Wv)),[qv.name,"I18nN"].forEach(a=>e.component(a,qv)),[Kv.name,"I18nD"].forEach(a=>e.component(a,Kv))),e.directive("t",i$(t))}function s$(e,t,n){return{beforeCreate(){const o=no();if(!o)throw kn(Cn.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=Yv(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=rh(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Yv(e,r);else{this.$i18n=rh({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&jC(t,r,r),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=no();if(!o)throw kn(Cn.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(o),delete this.$i18n}}}function Yv(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[BC](t.pluralizationRules||e.pluralizationRules);const n=gu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const l$=Xr("global-vue-i18n");function c$(e={},t){const n=__VUE_I18N_LEGACY_API__&&St(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=St(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[a,s]=u$(e,n),l=Xr("");function c(f){return i.get(f)||null}function u(f,h){i.set(f,h)}function d(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),mt(p[0])){const b=p[0];f.__composerExtend=b.__composerExtend,f.__vueI18nExtend=b.__vueI18nExtend}let g=null;!n&&o&&(g=y$(h,f.global)),__VUE_I18N_FULL_INSTALL__&&a$(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(s$(s,s.__composer,f));const m=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),m()}},get global(){return s},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Ip(e={}){const t=no();if(t==null)throw kn(Cn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kn(Cn.NOT_INSTALLED);const n=d$(t),o=h$(n),r=HC(t),i=f$(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw kn(Cn.NOT_AVAILABLE_IN_LEGACY_MODE);return v$(t,i,o,e)}if(i==="global")return jC(o,e,r),o;if(i==="parent"){let l=p$(n,t,e.__useComponent);return l==null&&(l=o),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Pn({},e);"__i18n"in r&&(l.__i18n=r.__i18n),o&&(l.__root=o),s=Ap(l),a.__composerExtend&&(s[oh]=a.__composerExtend(s)),g$(a,t,s),a.__setInstance(t,s)}return s}function u$(e,t,n){const o=Gh();{const r=__VUE_I18N_LEGACY_API__&&t?o.run(()=>rh(e)):o.run(()=>Ap(e));if(r==null)throw kn(Cn.UNEXPECTED_ERROR);return[o,r]}}function d$(e){{const t=Ve(e.isCE?l$:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kn(e.isCE?Cn.NOT_INSTALLED_WITH_PROVIDE:Cn.UNEXPECTED_ERROR);return t}}function f$(e,t){return hu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function h$(e){return e.mode==="composition"?e.global:e.global.__composer}function p$(e,t,n=!1){let o=null;const r=t.root;let i=m$(t,n);for(;i!=null;){const a=e;if(e.mode==="composition")o=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(o=s.__composer,n&&o&&!o[NC]&&(o=null))}if(o!=null||r===i)break;i=i.parent}return o}function m$(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function g$(e,t,n){jt(()=>{},t),Oa(()=>{const o=n;e.__deleteInstance(t);const r=o[oh];r&&(r(),delete o[oh])},t)}function v$(e,t,n,o={}){const r=t==="local",i=Ia(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw kn(Cn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=St(o.inheritLocale)?o.inheritLocale:!Ge(o.locale),s=U(!r||a?n.locale.value:Ge(o.locale)?o.locale:ka),l=U(!r||a?n.fallbackLocale.value:Ge(o.fallbackLocale)||tn(o.fallbackLocale)||mt(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:s.value),c=U(gu(s.value,o)),u=U(mt(o.datetimeFormats)?o.datetimeFormats:{[s.value]:{}}),d=U(mt(o.numberFormats)?o.numberFormats:{[s.value]:{}}),f=r?n.missingWarn:St(o.missingWarn)||Nr(o.missingWarn)?o.missingWarn:!0,h=r?n.fallbackWarn:St(o.fallbackWarn)||Nr(o.fallbackWarn)?o.fallbackWarn:!0,p=r?n.fallbackRoot:St(o.fallbackRoot)?o.fallbackRoot:!0,g=!!o.fallbackFormat,m=Xt(o.missing)?o.missing:null,b=Xt(o.postTranslation)?o.postTranslation:null,w=r?n.warnHtmlMessage:St(o.warnHtmlMessage)?o.warnHtmlMessage:!0,C=!!o.escapeParameter,_=r?n.modifiers:mt(o.modifiers)?o.modifiers:{},S=o.pluralRules||r&&n.pluralRules;function y(){return[s.value,l.value,c.value,u.value,d.value]}const x=I({get:()=>i.value?i.value.locale.value:s.value,set:A=>{i.value&&(i.value.locale.value=A),s.value=A}}),P=I({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:A=>{i.value&&(i.value.fallbackLocale.value=A),l.value=A}}),k=I(()=>i.value?i.value.messages.value:c.value),T=I(()=>u.value),R=I(()=>d.value);function E(){return i.value?i.value.getPostTranslationHandler():b}function q(A){i.value&&i.value.setPostTranslationHandler(A)}function D(){return i.value?i.value.getMissingHandler():m}function B(A){i.value&&i.value.setMissingHandler(A)}function M(A){return y(),A()}function K(...A){return i.value?M(()=>Reflect.apply(i.value.t,null,[...A])):M(()=>"")}function V(...A){return i.value?Reflect.apply(i.value.rt,null,[...A]):""}function ae(...A){return i.value?M(()=>Reflect.apply(i.value.d,null,[...A])):M(()=>"")}function pe(...A){return i.value?M(()=>Reflect.apply(i.value.n,null,[...A])):M(()=>"")}function Z(A){return i.value?i.value.tm(A):{}}function N(A,re){return i.value?i.value.te(A,re):!1}function O(A){return i.value?i.value.getLocaleMessage(A):{}}function ee(A,re){i.value&&(i.value.setLocaleMessage(A,re),c.value[A]=re)}function G(A,re){i.value&&i.value.mergeLocaleMessage(A,re)}function ne(A){return i.value?i.value.getDateTimeFormat(A):{}}function X(A,re){i.value&&(i.value.setDateTimeFormat(A,re),u.value[A]=re)}function ce(A,re){i.value&&i.value.mergeDateTimeFormat(A,re)}function L(A){return i.value?i.value.getNumberFormat(A):{}}function be(A,re){i.value&&(i.value.setNumberFormat(A,re),d.value[A]=re)}function Oe(A,re){i.value&&i.value.mergeNumberFormat(A,re)}const je={get id(){return i.value?i.value.id:-1},locale:x,fallbackLocale:P,messages:k,datetimeFormats:T,numberFormats:R,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(A){i.value&&(i.value.inheritLocale=A)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:_},get pluralRules(){return i.value?i.value.pluralRules:S},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(A){i.value&&(i.value.missingWarn=A)},get fallbackRoot(){return i.value?i.value.fallbackRoot:p},set fallbackRoot(A){i.value&&(i.value.fallbackRoot=A)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(A){i.value&&(i.value.fallbackFormat=A)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:w},set warnHtmlMessage(A){i.value&&(i.value.warnHtmlMessage=A)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(A){i.value&&(i.value.escapeParameter=A)},t:K,getPostTranslationHandler:E,setPostTranslationHandler:q,getMissingHandler:D,setMissingHandler:B,rt:V,d:ae,n:pe,tm:Z,te:N,getLocaleMessage:O,setLocaleMessage:ee,mergeLocaleMessage:G,getDateTimeFormat:ne,setDateTimeFormat:X,mergeDateTimeFormat:ce,getNumberFormat:L,setNumberFormat:be,mergeNumberFormat:Oe};function F(A){A.locale.value=s.value,A.fallbackLocale.value=l.value,Object.keys(c.value).forEach(re=>{A.mergeLocaleMessage(re,c.value[re])}),Object.keys(u.value).forEach(re=>{A.mergeDateTimeFormat(re,u.value[re])}),Object.keys(d.value).forEach(re=>{A.mergeNumberFormat(re,d.value[re])}),A.escapeParameter=C,A.fallbackFormat=g,A.fallbackRoot=p,A.fallbackWarn=h,A.missingWarn=f,A.warnHtmlMessage=w}return hn(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw kn(Cn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const A=i.value=e.proxy.$i18n.__composer;t==="global"?(s.value=A.locale.value,l.value=A.fallbackLocale.value,c.value=A.messages.value,u.value=A.datetimeFormats.value,d.value=A.numberFormats.value):r&&F(A)}),je}const b$=["locale","fallbackLocale","availableLocales"],Qv=["t","rt","d","n","tm","te"];function y$(e,t){const n=Object.create(null);return b$.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw kn(Cn.UNEXPECTED_ERROR);const a=cn(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,Qv.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw kn(Cn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,Qv.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}X5();__INTLIFY_JIT_COMPILATION__?Av(U5):Av(j5);O5(p5);M5(kC);if(__INTLIFY_PROD_DEVTOOLS__){const e=sr();e.__INTLIFY__=!0,_5(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const WC="locale";function vu(){return il.get(WC)}function qC(e){il.set(WC,e)}const KC=Object.keys(Object.assign({"./lang/en-US.json":()=>wt(()=>Promise.resolve().then(()=>zk),void 0),"./lang/fa-IR.json":()=>wt(()=>Promise.resolve().then(()=>Fk),void 0),"./lang/ja-JP.json":()=>wt(()=>Promise.resolve().then(()=>Dk),void 0),"./lang/ko-KR.json":()=>wt(()=>Promise.resolve().then(()=>Lk),void 0),"./lang/vi-VN.json":()=>wt(()=>Promise.resolve().then(()=>Bk),void 0),"./lang/zh-CN.json":()=>wt(()=>Promise.resolve().then(()=>Nk),void 0),"./lang/zh-TW.json":()=>wt(()=>Promise.resolve().then(()=>Hk),void 0)})).map(e=>e.slice(7,-5));function x$(){const e=navigator.language,t="zh-CN",o=KC.includes(e)?e:t;return vu().value||qC(o),o}const mn=c$({locale:vu().value||x$(),fallbackLocale:"en-US",messages:{}});async function C$(){await Promise.all(KC.map(async e=>{const t=await CA(Object.assign({"./lang/en-US.json":()=>wt(()=>Promise.resolve().then(()=>zk),void 0),"./lang/fa-IR.json":()=>wt(()=>Promise.resolve().then(()=>Fk),void 0),"./lang/ja-JP.json":()=>wt(()=>Promise.resolve().then(()=>Dk),void 0),"./lang/ko-KR.json":()=>wt(()=>Promise.resolve().then(()=>Lk),void 0),"./lang/vi-VN.json":()=>wt(()=>Promise.resolve().then(()=>Bk),void 0),"./lang/zh-CN.json":()=>wt(()=>Promise.resolve().then(()=>Nk),void 0),"./lang/zh-TW.json":()=>wt(()=>Promise.resolve().then(()=>Hk),void 0)}),`./lang/${e}.json`).then(n=>n.default||n);mn.global.setLocaleMessage(e,t)}))}async function w$(e){e.use(mn),C$()}const ih={"zh-CN":"简体中文","zh-TW":"繁體中文","en-US":"English","fa-IR":"Iran","ja-JP":"日本語","vi-VN":"Tiếng Việt","ko-KR":"한국어"},ah=e=>mn.global.t(e);function Wo(e=void 0,t="YYYY-MM-DD HH:mm:ss"){return e==null?"":(e.toString().length===10&&(e=e*1e3),bA(e).format(t))}function Op(e=void 0,t="YYYY-MM-DD"){return Wo(e,t)}function ua(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":t.toFixed(2)}function sn(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":(t/100).toFixed(2)}function qs(e){navigator.clipboard?navigator.clipboard.writeText(e).then(()=>{window.$message.success(ah("复制成功"))}).catch(t=>{console.error("复制到剪贴板时出错:",t),Jv(e)}):Jv(e)}function Jv(e){const t=document.createElement("button"),n=new xA(t,{text:()=>e});n.on("success",()=>{window.$message.success(ah("复制成功")),n.destroy()}),n.on("error",()=>{window.$message.error(ah("复制失败")),n.destroy()}),t.click()}function _$(e,t){if(e.length!==t.length)return!1;const n=[...e].sort(),o=[...t].sort();return n.every((r,i)=>r===o[i])}function ks(e){const t=e/1024,n=t/1024,o=n/1024,r=o/1024;return r>=1?ua(r)+" TB":o>=1?ua(o)+" GB":n>=1?ua(n)+" MB":ua(t)+" KB"}function S$(e){return typeof e>"u"}function k$(e){return e===null}function Zv(e){return e&&Array.isArray(e)}function P$(e){return k$(e)||S$(e)}function eb(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ps=/^[a-z0-9]+(-[a-z0-9]+)*$/,bu=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const s=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:s};return t&&!ac(c)?null:c}const i=r[0],a=i.split("-");if(a.length>1){const s={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!ac(s)?null:s}if(n&&o===""){const s={provider:o,prefix:"",name:i};return t&&!ac(s,n)?null:s}return null},ac=(e,t)=>e?!!((e.provider===""||e.provider.match(Ps))&&(t&&e.prefix===""||e.prefix.match(Ps))&&e.name.match(Ps)):!1,GC=Object.freeze({left:0,top:0,width:16,height:16}),kc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),yu=Object.freeze({...GC,...kc}),sh=Object.freeze({...yu,body:"",hidden:!1});function T$(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function tb(e,t){const n=T$(e,t);for(const o in sh)o in kc?o in e&&!(o in n)&&(n[o]=kc[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function E$(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const s=o[a]&&o[a].parent,l=s&&i(s);l&&(r[a]=[s].concat(l))}return r[a]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(i),r}function R$(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(s){i=tb(o[s]||r[s],i)}return a(t),n.forEach(a),tb(e,i)}function XC(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=E$(e);for(const r in o){const i=o[r];i&&(t(r,R$(e,r,i)),n.push(r))}return n}const A$={provider:"",aliases:{},not_found:{},...GC};function Md(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function YC(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Md(e,A$))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r.match(Ps)||typeof i.body!="string"||!Md(i,sh))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],a=i.parent;if(!r.match(Ps)||typeof a!="string"||!n[a]&&!o[a]||!Md(i,sh))return null}return t}const nb=Object.create(null);function $$(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ai(e,t){const n=nb[e]||(nb[e]=Object.create(null));return n[t]||(n[t]=$$(e,t))}function Mp(e,t){return YC(t)?XC(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function I$(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ks=!1;function QC(e){return typeof e=="boolean"&&(Ks=e),Ks}function O$(e){const t=typeof e=="string"?bu(e,!0,Ks):e;if(t){const n=Ai(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function M$(e,t){const n=bu(e,!0,Ks);if(!n)return!1;const o=Ai(n.provider,n.prefix);return I$(o,n.name,t)}function z$(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ks&&!t&&!e.prefix){let r=!1;return YC(e)&&(e.prefix="",XC(e,(i,a)=>{a&&M$(i,a)&&(r=!0)})),r}const n=e.prefix;if(!ac({provider:t,prefix:n,name:"a"}))return!1;const o=Ai(t,n);return!!Mp(o,e)}const JC=Object.freeze({width:null,height:null}),ZC=Object.freeze({...JC,...kc}),F$=/(-?[0-9.]*[0-9]+[0-9.]*)/g,D$=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ob(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(F$);if(o===null||!o.length)return e;const r=[];let i=o.shift(),a=D$.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?r.push(i):r.push(Math.ceil(s*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");a=!a}}function L$(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),i=e.indexOf("",i);if(a===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,o).trim()+e.slice(a+1)}return{defs:n,content:e}}function B$(e,t){return e?""+e+""+t:t}function N$(e,t,n){const o=L$(e);return B$(o.defs,t+o.content+n)}const H$=e=>e==="unset"||e==="undefined"||e==="none";function j$(e,t){const n={...yu,...e},o={...ZC,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(g=>{const m=[],b=g.hFlip,w=g.vFlip;let C=g.rotate;b?w?C+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):w&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let _;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:_=r.height/2+r.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:_=r.width/2+r.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}C%2===1&&(r.left!==r.top&&(_=r.left,r.left=r.top,r.top=_),r.width!==r.height&&(_=r.width,r.width=r.height,r.height=_)),m.length&&(i=N$(i,'',""))});const a=o.width,s=o.height,l=r.width,c=r.height;let u,d;a===null?(d=s===null?"1em":s==="auto"?c:s,u=ob(d,l/c)):(u=a==="auto"?l:a,d=s===null?ob(u,c/l):s==="auto"?c:s);const f={},h=(g,m)=>{H$(m)||(f[g]=m.toString())};h("width",u),h("height",d);const p=[r.left,r.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}const U$=/\sid="(\S+)"/g,V$="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let W$=0;function q$(e,t=V$){const n=[];let o;for(;o=U$.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(W$++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const lh=Object.create(null);function K$(e,t){lh[e]=t}function ch(e){return lh[e]||lh[""]}function zp(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Fp=Object.create(null),as=["https://api.simplesvg.com","https://api.unisvg.com"],sc=[];for(;as.length>0;)as.length===1||Math.random()>.5?sc.push(as.shift()):sc.push(as.pop());Fp[""]=zp({resources:["https://api.iconify.design"].concat(sc)});function G$(e,t){const n=zp(t);return n===null?!1:(Fp[e]=n,!0)}function Dp(e){return Fp[e]}const X$=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let rb=X$();function Y$(e,t){const n=Dp(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(a=>{r=Math.max(r,a.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function Q$(e){return e===404}const J$=(e,t,n)=>{const o=[],r=Y$(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=r&&c>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=l.length),a.icons.push(l)}),o.push(a),o};function Z$(e){if(typeof e=="string"){const t=Dp(e);if(t)return t.path}return"/"}const eI=(e,t,n)=>{if(!rb){n("abort",424);return}let o=Z$(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});o+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;rb(e+o).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(Q$(a)?"abort":"next",a)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})},tI={prepare:J$,send:eI};function nI(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,a=r.prefix,s=r.name,l=n[i]||(n[i]=Object.create(null)),c=l[a]||(l[a]=Ai(i,a));let u;s in c.icons?u=t.loaded:a===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:i,prefix:a,name:s};u.push(d)}),t}function ew(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function oI(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:o,prefix:r,name:c});else if(e.missing.has(c))a.missing.push({provider:o,prefix:r,name:c});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||ew([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let rI=0;function iI(e,t,n){const o=rI++,r=ew.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),r}function aI(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?bu(r,t,n):r;i&&o.push(i)}),o}var sI={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function lI(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let y=e.resources.slice(0);for(a=[];y.length>1;){const x=Math.floor(Math.random()*y.length);a.push(y[x]),y=y.slice(0,x).concat(y.slice(x+1))}a=a.concat(y)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof o=="function"&&h.push(o);function p(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),p(),f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function m(y,x){x&&(h=[]),typeof y=="function"&&h.push(y)}function b(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}function w(){l="failed",h.forEach(y=>{y(void 0,u)})}function C(){f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function _(y,x,P){const k=x!=="success";switch(f=f.filter(T=>T!==y),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=P,w();return}if(k){u=P,f.length||(a.length?S():w());return}if(p(),C(),!e.random){const T=e.resources.indexOf(y.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(P)})}function S(){if(l!=="pending")return;p();const y=a.shift();if(y===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(C(),w())},e.timeout);return}w();return}const x={status:"pending",resource:y,callback:(P,k)=>{_(x,P,k)}};f.push(x),c++,d=setTimeout(S,e.rotate),n(y,t,x.callback)}return setTimeout(S),b}function tw(e){const t={...sI,...e};let n=[];function o(){n=n.filter(s=>s().status==="pending")}function r(s,l,c){const u=lI(t,s,l,(d,f)=>{o(),c&&c(d,f)});return n.push(u),u}function i(s){return n.find(l=>s(l))||null}return{query:r,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:o}}function ib(){}const zd=Object.create(null);function cI(e){if(!zd[e]){const t=Dp(e);if(!t)return;const n=tw(t),o={config:t,redundancy:n};zd[e]=o}return zd[e]}function uI(e,t,n){let o,r;if(typeof e=="string"){const i=ch(e);if(!i)return n(void 0,424),ib;r=i.send;const a=cI(e);a&&(o=a.redundancy)}else{const i=zp(e);if(i){o=tw(i);const a=e.resources?e.resources[0]:"",s=ch(a);s&&(r=s.send)}}return!o||!r?(n(void 0,424),ib):o.query(t,r,n)().abort}const ab="iconify2",Gs="iconify",nw=Gs+"-count",sb=Gs+"-version",ow=36e5,dI=168,fI=50;function uh(e,t){try{return e.getItem(t)}catch{}}function Lp(e,t,n){try{return e.setItem(t,n),!0}catch{}}function lb(e,t){try{e.removeItem(t)}catch{}}function dh(e,t){return Lp(e,nw,t.toString())}function fh(e){return parseInt(uh(e,nw))||0}const xu={local:!0,session:!0},rw={local:new Set,session:new Set};let Bp=!1;function hI(e){Bp=e}let Rl=typeof window>"u"?{}:window;function iw(e){const t=e+"Storage";try{if(Rl&&Rl[t]&&typeof Rl[t].length=="number")return Rl[t]}catch{}xu[e]=!1}function aw(e,t){const n=iw(e);if(!n)return;const o=uh(n,sb);if(o!==ab){if(o){const s=fh(n);for(let l=0;l{const l=Gs+s.toString(),c=uh(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}lb(n,l)}};let a=fh(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,dh(n,a)):rw[e].add(s))}function sw(){if(!Bp){hI(!0);for(const e in xu)aw(e,t=>{const n=t.data,o=t.provider,r=n.prefix,i=Ai(o,r);if(!Mp(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function pI(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in xu)aw(o,r=>{const i=r.data;return r.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function mI(e,t){Bp||sw();function n(o){let r;if(!xu[o]||!(r=iw(o)))return;const i=rw[o];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=fh(r),a>=fI||!dh(r,a+1))return;const s={cached:Math.floor(Date.now()/ow),provider:e.provider,data:t};return Lp(r,Gs+a.toString(),JSON.stringify(s))}t.lastModified&&!pI(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function cb(){}function gI(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,oI(e)}))}function vI(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let i;if(!r||!(i=ch(n)))return;i.prepare(n,o,r).forEach(s=>{uI(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=Mp(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),mI(e,l)}catch(c){console.error(c)}gI(e)})})}))}const bI=(e,t)=>{const n=aI(e,!0,QC()),o=nI(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,cb)}),()=>{l=!1}}const r=Object.create(null),i=[];let a,s;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===a)return;a=c,s=u,i.push(Ai(c,u));const d=r[c]||(r[c]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=Ai(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),r[c][u].push(d))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&vI(l,r[c][u])}),t?iI(t,o,i):cb};function yI(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in JC?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const xI=/[\s,]+/;function CI(e,t){t.split(xI).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function wI(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}function _I(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'"+e+""}function SI(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function kI(e){return"data:image/svg+xml,"+SI(e)}function PI(e){return'url("'+kI(e)+'")'}const ub={...ZC,inline:!1},TI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},EI={display:"inline-block"},hh={backgroundColor:"currentColor"},lw={backgroundColor:"transparent"},db={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},fb={webkitMask:hh,mask:hh,background:lw};for(const e in fb){const t=fb[e];for(const n in db)t[e+n]=db[n]}const lc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";lc[e+"-flip"]=t,lc[e.slice(0,1)+"-flip"]=t,lc[e+"Flip"]=t});function hb(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const pb=(e,t)=>{const n=yI(ub,t),o={...TI},r=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const m=t[g];if(m!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[g]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&CI(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[g]=wI(m):typeof m=="number"&&(n[g]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete o["aria-hidden"];break;default:{const b=lc[g];b?(m===!0||m==="true"||m===1)&&(n[b]=!0):ub[g]===void 0&&(o[g]=m)}}}const l=j$(e,n),c=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){o.style={...i,...s},Object.assign(o,c);let g=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),o.innerHTML=q$(l.body,m?()=>m+"ID"+g++:"iconifyVue"),v("svg",o)}const{body:u,width:d,height:f}=e,h=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),p=_I(u,{...c,width:d+"",height:f+""});return o.style={...i,"--svg":PI(p),width:hb(c.width),height:hb(c.height),...EI,...h?hh:lw,...s},v("span",o)};QC(!0);K$("",tI);if(typeof document<"u"&&typeof window<"u"){sw();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!z$(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;G$(n,r)||console.error(o)}catch{console.error(o)}}}}const RI={...yu,body:""},AI=xe({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=bu(e,!1,!0))===null)return this.abortLoading(),null;const o=O$(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:bI([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return pb(RI,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),pb({...yu,...t.data},n)}});let Pc=[];const cw=new WeakMap;function $I(){Pc.forEach(e=>e(...cw.get(e))),Pc=[]}function Tc(e,...t){cw.set(e,t),!Pc.includes(e)&&Pc.push(e)===1&&requestAnimationFrame($I)}function II(e){return e.nodeType===9?null:e.parentNode}function uw(e){if(e===null)return null;const t=II(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+r+o))return t}return uw(t)}function OI(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function lo(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function $i(e){return e.composedPath()[0]||null}function bn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function zn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function co(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function MI(e,t){const[n,o]=e.split(" ");return t?t==="row"?n:o:{row:n,col:o||n}}const mb={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Ba="^\\s*",Na="\\s*$",gi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",vi="([0-9A-Fa-f])",bi="([0-9A-Fa-f]{2})",zI=new RegExp(`${Ba}rgb\\s*\\(${gi},${gi},${gi}\\)${Na}`),FI=new RegExp(`${Ba}rgba\\s*\\(${gi},${gi},${gi},${gi}\\)${Na}`),DI=new RegExp(`${Ba}#${vi}${vi}${vi}${Na}`),LI=new RegExp(`${Ba}#${bi}${bi}${bi}${Na}`),BI=new RegExp(`${Ba}#${vi}${vi}${vi}${vi}${Na}`),NI=new RegExp(`${Ba}#${bi}${bi}${bi}${bi}${Na}`);function Nn(e){return parseInt(e,16)}function qo(e){try{let t;if(t=LI.exec(e))return[Nn(t[1]),Nn(t[2]),Nn(t[3]),1];if(t=zI.exec(e))return[Rn(t[1]),Rn(t[5]),Rn(t[9]),1];if(t=FI.exec(e))return[Rn(t[1]),Rn(t[5]),Rn(t[9]),Ts(t[13])];if(t=DI.exec(e))return[Nn(t[1]+t[1]),Nn(t[2]+t[2]),Nn(t[3]+t[3]),1];if(t=NI.exec(e))return[Nn(t[1]),Nn(t[2]),Nn(t[3]),Ts(Nn(t[4])/255)];if(t=BI.exec(e))return[Nn(t[1]+t[1]),Nn(t[2]+t[2]),Nn(t[3]+t[3]),Ts(Nn(t[4]+t[4])/255)];if(e in mb)return qo(mb[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function HI(e){return e>1?1:e<0?0:e}function ph(e,t,n,o){return`rgba(${Rn(e)}, ${Rn(t)}, ${Rn(n)}, ${HI(o)})`}function Fd(e,t,n,o,r){return Rn((e*t*(1-o)+n*o)/r)}function Ke(e,t){Array.isArray(e)||(e=qo(e)),Array.isArray(t)||(t=qo(t));const n=e[3],o=t[3],r=Ts(n+o-n*o);return ph(Fd(e[0],n,t[0],o,r),Fd(e[1],n,t[1],o,r),Fd(e[2],n,t[2],o,r),r)}function Ie(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e);return t.alpha?ph(n,o,r,t.alpha):ph(n,o,r,i)}function un(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e),{lightness:a=1,alpha:s=1}=t;return jI([n*a,o*a,r*a,i*s])}function Ts(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function jI(e){const[t,n,o]=e;return 3 in e?`rgba(${Rn(t)}, ${Rn(n)}, ${Rn(o)}, ${Ts(e[3])})`:`rgba(${Rn(t)}, ${Rn(n)}, ${Rn(o)}, 1)`}function Qr(e=8){return Math.random().toString(16).slice(2,2+e)}function dw(e,t){const n=[];for(let o=0;o{o[r]=e[r]}),Object.assign(o,n)}function Ha(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,n)}function Ta(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(nt(String(o)));return}if(Array.isArray(o)){Ta(o,t,n);return}if(o.type===rt){if(o.children===null)return;Array.isArray(o.children)&&Ta(o.children,t,n)}else{if(o.type===_n&&t)return;n.push(o)}}}),n}function Re(e,...t){if(Array.isArray(e))e.forEach(n=>Re(n,...t));else return e(...t)}function Jr(e){return Object.keys(e)}function Vt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?nt(e):typeof e=="number"?nt(String(e)):null}function cr(e,t){console.error(`[naive/${e}]: ${t}`)}function hr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function gb(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function vb(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function mh(e,t="default",n=void 0){const o=e[t];if(!o)return cr("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ta(o(n));return r.length===1?r[0]:(cr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function hw(e){return t=>{t?e.value=t.$el:e.value=null}}function So(e){return e.some(t=>Ns(t)?!(t.type===_n||t.type===rt&&!So(t.children)):!0)?e:null}function $n(e,t){return e&&So(e())||t()}function gh(e,t,n){return e&&So(e(t))||n(t)}function At(e,t){const n=e&&So(e());return t(n||null)}function pa(e){return!(e&&So(e()))}function Es(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}const vh=xe({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),VI=/^(\d|\.)+$/,bb=/(\d|\.)+/;function qt(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const r=(e+n)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(VI.test(e)){const r=(Number(e)+n)*t;return o?r===0?"0":`${r}px`:`${r}`}else{const r=bb.exec(e);return r?e.replace(bb,String((Number(r[0])+n)*t)):e}return e}function Ec(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function WI(e){const{left:t,right:n,top:o,bottom:r}=co(e);return`${o} ${n} ${r} ${t}`}function qI(e){let t=0;for(let n=0;n{let r=qI(o);if(r){if(r===1){e.forEach(a=>{n.push(o.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+o)});return}let i=[o];for(;r--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function XI(e,t){const n=[];return t.split(pw).forEach(o=>{e.forEach(r=>{n.push((r&&r+" ")+o)})}),n}function YI(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=GI(t,n):t=XI(t,n))}),t.join(", ").replace(KI," ")}function yb(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Cu(e){return document.querySelector(`style[cssr-id="${e}"]`)}function QI(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Al(e){return e?/^\s*@(s|m)/.test(e):!1}const JI=/[A-Z]/g;function mw(e){return e.replace(JI,t=>"-"+t.toLowerCase())}function ZI(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${mw(n[0])}: ${n[1]};`).join(` + */const o$="9.14.0";function r$(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(sr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(sr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(sr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(sr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(sr().__INTLIFY_PROD_DEVTOOLS__=!1)}const VC=F5.__EXTEND_POINT__,nr=yu(VC);nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr(),nr();const WC=ko.__EXTEND_POINT__,Bn=yu(WC),Cn={UNEXPECTED_RETURN_TYPE:WC,INVALID_ARGUMENT:Bn(),MUST_BE_CALL_SETUP_TOP:Bn(),NOT_INSTALLED:Bn(),NOT_AVAILABLE_IN_LEGACY_MODE:Bn(),REQUIRED_VALUE:Bn(),INVALID_VALUE:Bn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Bn(),NOT_INSTALLED_WITH_PROVIDE:Bn(),UNEXPECTED_ERROR:Bn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Bn(),BRIDGE_SUPPORT_VUE_2_ONLY:Bn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Bn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Bn(),__EXTEND_POINT__:Bn()};function kn(e,...t){return Ha(e,null,void 0)}const ah=Qr("__translateVNode"),sh=Qr("__datetimeParts"),lh=Qr("__numberParts"),qC=Qr("__setPluralRules"),KC=Qr("__injectWithOption"),ch=Qr("__dispose");function Gs(e){if(!Nt(e))return e;for(const t in e)if(Ac(e,t))if(!t.includes("."))Nt(e[t])&&Gs(e[t]);else{const n=t.split("."),o=n.length-1;let r=e,i=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||{},uc(c,a[l])):uc(c,a)}else Ge(s)&&uc(JSON.parse(s),a)}),r==null&&i)for(const s in a)Ac(a,s)&&Gs(a[s]);return a}function GC(e){return e.type}function XC(e,t,n){let o=Nt(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=Cu(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,o[i])});{if(Nt(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Nt(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Kv(e){return se(Da,null,e,0)}const Gv="__INTLIFY_META__",Xv=()=>[],i$=()=>!1;let Yv=0;function Qv(e){return(t,n,o,r)=>e(n,o,no()||void 0,r)}const a$=()=>{const e=no();let t=null;return e&&(t=GC(e)[Gv])?{[Gv]:t}:null};function Dp(e={},t){const{__root:n,__injectWithOption:o}=e,r=n===void 0,i=e.flatJson,a=Tc?j:za,s=!!e.translateExistCompatible;let l=St(e.inheritLocale)?e.inheritLocale:!0;const c=a(n&&l?n.locale.value:Ge(e.locale)?e.locale:Ta),u=a(n&&l?n.fallbackLocale.value:Ge(e.fallbackLocale)||tn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(Cu(c.value,e)),f=a(mt(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=a(mt(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:St(e.missingWarn)||jr(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:St(e.fallbackWarn)||jr(e.fallbackWarn)?e.fallbackWarn:!0,m=n?n.fallbackRoot:St(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,w=Xt(e.missing)?e.missing:null,C=Xt(e.missing)?Qv(e.missing):null,_=Xt(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const x=n?n.modifiers:mt(e.modifiers)?e.modifiers:{};let k=e.pluralRules||n&&n.pluralRules,P;P=(()=>{r&&Lv(null);const ie={version:o$,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:x,pluralRules:k,missing:C===null?void 0:C,missingWarn:p,fallbackWarn:g,fallbackFormat:b,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:S,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=f.value,ie.numberFormats=h.value,ie.__datetimeFormatters=mt(P)?P.__datetimeFormatters:void 0,ie.__numberFormatters=mt(P)?P.__numberFormatters:void 0;const he=K5(ie);return r&&Lv(he),he})(),ls(P,c.value,u.value);function $(){return[c.value,u.value,d.value,f.value,h.value]}const E=M({get:()=>c.value,set:ie=>{c.value=ie,P.locale=c.value}}),G=M({get:()=>u.value,set:ie=>{u.value=ie,P.fallbackLocale=u.value,ls(P,c.value,ie)}}),B=M(()=>d.value),D=M(()=>f.value),L=M(()=>h.value);function X(){return Xt(_)?_:null}function V(ie){_=ie,P.postTranslation=ie}function ae(){return w}function ue(ie){ie!==null&&(C=Qv(ie)),w=ie,P.missing=C}const ee=(ie,he,Fe,De,Me,He)=>{$();let et;try{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=n?q5():void 0),et=ie(P)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(Fe!=="translate exists"&&yn(et)&&et===xu||Fe==="translate exists"&&!et){const[$e,Xe]=he();return n&&m?De(n):Me($e)}else{if(He(et))return et;throw kn(Cn.UNEXPECTED_RETURN_TYPE)}};function R(...ie){return ee(he=>Reflect.apply(jv,null,[he,...ie]),()=>oh(...ie),"translate",he=>Reflect.apply(he.t,he,[...ie]),he=>he,he=>Ge(he))}function A(...ie){const[he,Fe,De]=ie;if(De&&!Nt(De))throw kn(Cn.INVALID_ARGUMENT);return R(he,Fe,Pn({resolvedMessage:!0},De||{}))}function Y(...ie){return ee(he=>Reflect.apply(Uv,null,[he,...ie]),()=>rh(...ie),"datetime format",he=>Reflect.apply(he.d,he,[...ie]),()=>zv,he=>Ge(he))}function W(...ie){return ee(he=>Reflect.apply(Wv,null,[he,...ie]),()=>ih(...ie),"number format",he=>Reflect.apply(he.n,he,[...ie]),()=>zv,he=>Ge(he))}function oe(ie){return ie.map(he=>Ge(he)||yn(he)||St(he)?Kv(String(he)):he)}const le={normalize:oe,interpolate:ie=>ie,type:"vnode"};function N(...ie){return ee(he=>{let Fe;const De=he;try{De.processor=le,Fe=Reflect.apply(jv,null,[De,...ie])}finally{De.processor=null}return Fe},()=>oh(...ie),"translate",he=>he[ah](...ie),he=>[Kv(he)],he=>tn(he))}function be(...ie){return ee(he=>Reflect.apply(Wv,null,[he,...ie]),()=>ih(...ie),"number format",he=>he[lh](...ie),Xv,he=>Ge(he)||tn(he))}function Ie(...ie){return ee(he=>Reflect.apply(Uv,null,[he,...ie]),()=>rh(...ie),"datetime format",he=>he[sh](...ie),Xv,he=>Ge(he)||tn(he))}function Ne(ie){k=ie,P.pluralRules=k}function F(ie,he){return ee(()=>{if(!ie)return!1;const Fe=Ge(he)?he:c.value,De=_e(Fe),Me=P.messageResolver(De,ie);return s?Me!=null:Aa(Me)||ao(Me)||Ge(Me)},()=>[ie],"translate exists",Fe=>Reflect.apply(Fe.te,Fe,[ie,he]),i$,Fe=>St(Fe))}function I(ie){let he=null;const Fe=IC(P,u.value,c.value);for(let De=0;De{l&&(c.value=ie,P.locale=ie,ls(P,c.value,u.value))}),ut(n.fallbackLocale,ie=>{l&&(u.value=ie,P.fallbackLocale=ie,ls(P,c.value,u.value))}));const de={id:Yv,locale:E,fallbackLocale:G,get inheritLocale(){return l},set inheritLocale(ie){l=ie,ie&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,ls(P,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:B,get modifiers(){return x},get pluralRules(){return k||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(ie){p=ie,P.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(ie){g=ie,P.fallbackWarn=g},get fallbackRoot(){return m},set fallbackRoot(ie){m=ie},get fallbackFormat(){return b},set fallbackFormat(ie){b=ie,P.fallbackFormat=b},get warnHtmlMessage(){return S},set warnHtmlMessage(ie){S=ie,P.warnHtmlMessage=ie},get escapeParameter(){return y},set escapeParameter(ie){y=ie,P.escapeParameter=ie},t:R,getLocaleMessage:_e,setLocaleMessage:ne,mergeLocaleMessage:me,getPostTranslationHandler:X,setPostTranslationHandler:V,getMissingHandler:ae,setMissingHandler:ue,[qC]:Ne};return de.datetimeFormats=D,de.numberFormats=L,de.rt=A,de.te=F,de.tm=re,de.d=Y,de.n=W,de.getDateTimeFormat=we,de.setDateTimeFormat=O,de.mergeDateTimeFormat=H,de.getNumberFormat=te,de.setNumberFormat=Ce,de.mergeNumberFormat=fe,de[KC]=o,de[ah]=N,de[sh]=Ie,de[lh]=be,de}function s$(e){const t=Ge(e.locale)?e.locale:Ta,n=Ge(e.fallbackLocale)||tn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Xt(e.missing)?e.missing:void 0,r=St(e.silentTranslationWarn)||jr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=St(e.silentFallbackWarn)||jr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=St(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=mt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Xt(e.postTranslation)?e.postTranslation:void 0,d=Ge(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=St(e.sync)?e.sync:!0;let p=e.messages;if(mt(e.sharedMessages)){const y=e.sharedMessages;p=Object.keys(y).reduce((k,P)=>{const T=k[P]||(k[P]={});return Pn(T,y[P]),k},p||{})}const{__i18n:g,__root:m,__injectWithOption:b}=e,w=e.datetimeFormats,C=e.numberFormats,_=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:_,datetimeFormats:w,numberFormats:C,missing:o,missingWarn:r,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,translateExistCompatible:S,__i18n:g,__root:m,__injectWithOption:b}}function uh(e={},t){{const n=Dp(s$(e)),{__extender:o}=e,r={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return St(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=St(i)?!i:i},get silentFallbackWarn(){return St(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=St(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[a,s,l]=i,c={};let u=null,d=null;if(!Ge(a))throw kn(Cn.INVALID_ARGUMENT);const f=a;return Ge(s)?c.locale=s:tn(s)?u=s:mt(s)&&(d=s),tn(l)?u=l:mt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[a,s,l]=i,c={plural:1};let u=null,d=null;if(!Ge(a))throw kn(Cn.INVALID_ARGUMENT);const f=a;return Ge(s)?c.locale=s:yn(s)?c.plural=s:tn(s)?u=s:mt(s)&&(d=s),Ge(l)?c.locale=l:tn(l)?u=l:mt(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(i,a){return n.te(i,a)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,a){n.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){n.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,a){n.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){n.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,a){n.setNumberFormat(i,a)},mergeNumberFormat(i,a){n.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return r.__extender=o,r}}const Lp={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function l$({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,r)=>[...o,...r.type===rt?r.children:[r]],[]):t.reduce((n,o)=>{const r=e[o];return r&&(n[o]=r()),n},{})}function YC(e){return rt}const c$=ye({name:"i18n-t",props:Pn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>yn(e)||!isNaN(e)}},Lp),setup(e,t){const{slots:n,attrs:o}=t,r=e.i18n||Bp({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Ge(e.plural)?+e.plural:e.plural);const s=l$(t,i),l=r[ah](e.keypath,s,a),c=Pn({},o),u=Ge(e.tag)||Nt(e.tag)?e.tag:YC();return v(u,c,l)}}}),Jv=c$;function u$(e){return tn(e)&&!Ge(e[0])}function QC(e,t,n,o){const{slots:r,attrs:i}=t;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),Ge(e.format)?a.key=e.format:Nt(e.format)&&(Ge(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((f,h)=>n.includes(h)?Pn({},f,{[h]:e.format[h]}):f,{}));const l=o(e.value,a,s);let c=[a.key];tn(l)?c=l.map((f,h)=>{const p=r[f.type],g=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return u$(g)&&(g[0].key=`${f.type}-${h}`),g}):Ge(l)&&(c=[l]);const u=Pn({},i),d=Ge(e.tag)||Nt(e.tag)?e.tag:YC();return v(d,u,c)}}const d$=ye({name:"i18n-n",props:Pn({value:{type:Number,required:!0},format:{type:[String,Object]}},Lp),setup(e,t){const n=e.i18n||Bp({useScope:e.scope,__useComponent:!0});return QC(e,t,UC,(...o)=>n[lh](...o))}}),Zv=d$,f$=ye({name:"i18n-d",props:Pn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lp),setup(e,t){const n=e.i18n||Bp({useScope:e.scope,__useComponent:!0});return QC(e,t,jC,(...o)=>n[sh](...o))}}),eb=f$;function h$(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function p$(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw kn(Cn.UNEXPECTED_ERROR);const u=h$(e,s.$),d=tb(c);return[Reflect.apply(u.t,u,[...nb(d)]),u]};return{created:(a,s)=>{const[l,c]=t(s);Tc&&e.global===c&&(a.__i18nWatcher=ut(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{Tc&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=tb(s);a.textContent=Reflect.apply(l.t,l,[...nb(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function tb(e){if(Ge(e))return{path:e};if(mt(e)){if(!("path"in e))throw kn(Cn.REQUIRED_VALUE,"path");return e}else throw kn(Cn.INVALID_VALUE)}function nb(e){const{path:t,locale:n,args:o,choice:r,plural:i}=e,a={},s=o||{};return Ge(n)&&(a.locale=n),yn(r)&&(a.plural=r),yn(i)&&(a.plural=i),[t,s,a]}function m$(e,t,...n){const o=mt(n[0])?n[0]:{},r=!!o.useI18nComponentName;(St(o.globalInstall)?o.globalInstall:!0)&&([r?"i18n":Jv.name,"I18nT"].forEach(a=>e.component(a,Jv)),[Zv.name,"I18nN"].forEach(a=>e.component(a,Zv)),[eb.name,"I18nD"].forEach(a=>e.component(a,eb))),e.directive("t",p$(t))}function g$(e,t,n){return{beforeCreate(){const o=no();if(!o)throw kn(Cn.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;if(r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root)this.$i18n=ob(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=uh(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=ob(e,r);else{this.$i18n=uh({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&XC(t,r,r),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(o,this.$i18n)},mounted(){},unmounted(){const o=no();if(!o)throw kn(Cn.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(o),delete this.$i18n}}}function ob(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[qC](t.pluralizationRules||e.pluralizationRules);const n=Cu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}const v$=Qr("global-vue-i18n");function b$(e={},t){const n=__VUE_I18N_LEGACY_API__&&St(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=St(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[a,s]=y$(e,n),l=Qr("");function c(f){return i.get(f)||null}function u(f,h){i.set(f,h)}function d(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),mt(p[0])){const b=p[0];f.__composerExtend=b.__composerExtend,f.__vueI18nExtend=b.__vueI18nExtend}let g=null;!n&&o&&(g=A$(h,f.global)),__VUE_I18N_FULL_INSTALL__&&m$(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(g$(s,s.__composer,f));const m=h.unmount;h.unmount=()=>{g&&g(),f.dispose(),m()}},get global(){return s},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function Bp(e={}){const t=no();if(t==null)throw kn(Cn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw kn(Cn.NOT_INSTALLED);const n=x$(t),o=w$(n),r=GC(t),i=C$(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw kn(Cn.NOT_AVAILABLE_IN_LEGACY_MODE);return P$(t,i,o,e)}if(i==="global")return XC(o,e,r),o;if(i==="parent"){let l=_$(n,t,e.__useComponent);return l==null&&(l=o),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Pn({},e);"__i18n"in r&&(l.__i18n=r.__i18n),o&&(l.__root=o),s=Dp(l),a.__composerExtend&&(s[ch]=a.__composerExtend(s)),k$(a,t,s),a.__setInstance(t,s)}return s}function y$(e,t,n){const o=tp();{const r=__VUE_I18N_LEGACY_API__&&t?o.run(()=>uh(e)):o.run(()=>Dp(e));if(r==null)throw kn(Cn.UNEXPECTED_ERROR);return[o,r]}}function x$(e){{const t=Ve(e.isCE?v$:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw kn(e.isCE?Cn.NOT_INSTALLED_WITH_PROVIDE:Cn.UNEXPECTED_ERROR);return t}}function C$(e,t){return bu(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function w$(e){return e.mode==="composition"?e.global:e.global.__composer}function _$(e,t,n=!1){let o=null;const r=t.root;let i=S$(t,n);for(;i!=null;){const a=e;if(e.mode==="composition")o=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(i);s!=null&&(o=s.__composer,n&&o&&!o[KC]&&(o=null))}if(o!=null||r===i)break;i=i.parent}return o}function S$(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function k$(e,t,n){jt(()=>{},t),Fa(()=>{const o=n;e.__deleteInstance(t);const r=o[ch];r&&(r(),delete o[ch])},t)}function P$(e,t,n,o={}){const r=t==="local",i=za(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw kn(Cn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=St(o.inheritLocale)?o.inheritLocale:!Ge(o.locale),s=j(!r||a?n.locale.value:Ge(o.locale)?o.locale:Ta),l=j(!r||a?n.fallbackLocale.value:Ge(o.fallbackLocale)||tn(o.fallbackLocale)||mt(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:s.value),c=j(Cu(s.value,o)),u=j(mt(o.datetimeFormats)?o.datetimeFormats:{[s.value]:{}}),d=j(mt(o.numberFormats)?o.numberFormats:{[s.value]:{}}),f=r?n.missingWarn:St(o.missingWarn)||jr(o.missingWarn)?o.missingWarn:!0,h=r?n.fallbackWarn:St(o.fallbackWarn)||jr(o.fallbackWarn)?o.fallbackWarn:!0,p=r?n.fallbackRoot:St(o.fallbackRoot)?o.fallbackRoot:!0,g=!!o.fallbackFormat,m=Xt(o.missing)?o.missing:null,b=Xt(o.postTranslation)?o.postTranslation:null,w=r?n.warnHtmlMessage:St(o.warnHtmlMessage)?o.warnHtmlMessage:!0,C=!!o.escapeParameter,_=r?n.modifiers:mt(o.modifiers)?o.modifiers:{},S=o.pluralRules||r&&n.pluralRules;function y(){return[s.value,l.value,c.value,u.value,d.value]}const x=M({get:()=>i.value?i.value.locale.value:s.value,set:I=>{i.value&&(i.value.locale.value=I),s.value=I}}),k=M({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),l.value=I}}),P=M(()=>i.value?i.value.messages.value:c.value),T=M(()=>u.value),$=M(()=>d.value);function E(){return i.value?i.value.getPostTranslationHandler():b}function G(I){i.value&&i.value.setPostTranslationHandler(I)}function B(){return i.value?i.value.getMissingHandler():m}function D(I){i.value&&i.value.setMissingHandler(I)}function L(I){return y(),I()}function X(...I){return i.value?L(()=>Reflect.apply(i.value.t,null,[...I])):L(()=>"")}function V(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function ae(...I){return i.value?L(()=>Reflect.apply(i.value.d,null,[...I])):L(()=>"")}function ue(...I){return i.value?L(()=>Reflect.apply(i.value.n,null,[...I])):L(()=>"")}function ee(I){return i.value?i.value.tm(I):{}}function R(I,re){return i.value?i.value.te(I,re):!1}function A(I){return i.value?i.value.getLocaleMessage(I):{}}function Y(I,re){i.value&&(i.value.setLocaleMessage(I,re),c.value[I]=re)}function W(I,re){i.value&&i.value.mergeLocaleMessage(I,re)}function oe(I){return i.value?i.value.getDateTimeFormat(I):{}}function K(I,re){i.value&&(i.value.setDateTimeFormat(I,re),u.value[I]=re)}function le(I,re){i.value&&i.value.mergeDateTimeFormat(I,re)}function N(I){return i.value?i.value.getNumberFormat(I):{}}function be(I,re){i.value&&(i.value.setNumberFormat(I,re),d.value[I]=re)}function Ie(I,re){i.value&&i.value.mergeNumberFormat(I,re)}const Ne={get id(){return i.value?i.value.id:-1},locale:x,fallbackLocale:k,messages:P,datetimeFormats:T,numberFormats:$,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:_},get pluralRules(){return i.value?i.value.pluralRules:S},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:p},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:w},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:X,getPostTranslationHandler:E,setPostTranslationHandler:G,getMissingHandler:B,setMissingHandler:D,rt:V,d:ae,n:ue,tm:ee,te:R,getLocaleMessage:A,setLocaleMessage:Y,mergeLocaleMessage:W,getDateTimeFormat:oe,setDateTimeFormat:K,mergeDateTimeFormat:le,getNumberFormat:N,setNumberFormat:be,mergeNumberFormat:Ie};function F(I){I.locale.value=s.value,I.fallbackLocale.value=l.value,Object.keys(c.value).forEach(re=>{I.mergeLocaleMessage(re,c.value[re])}),Object.keys(u.value).forEach(re=>{I.mergeDateTimeFormat(re,u.value[re])}),Object.keys(d.value).forEach(re=>{I.mergeNumberFormat(re,d.value[re])}),I.escapeParameter=C,I.fallbackFormat=g,I.fallbackRoot=p,I.fallbackWarn=h,I.missingWarn=f,I.warnHtmlMessage=w}return hn(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw kn(Cn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=e.proxy.$i18n.__composer;t==="global"?(s.value=I.locale.value,l.value=I.fallbackLocale.value,c.value=I.messages.value,u.value=I.datetimeFormats.value,d.value=I.numberFormats.value):r&&F(I)}),Ne}const T$=["locale","fallbackLocale","availableLocales"],rb=["t","rt","d","n","tm","te"];function A$(e,t){const n=Object.create(null);return T$.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i)throw kn(Cn.UNEXPECTED_ERROR);const a=cn(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,rb.forEach(r=>{const i=Object.getOwnPropertyDescriptor(t,r);if(!i||!i.value)throw kn(Cn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,i)}),()=>{delete e.config.globalProperties.$i18n,rb.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}r$();__INTLIFY_JIT_COMPILATION__?Dv(J5):Dv(Q5);j5(_5);U5(IC);if(__INTLIFY_PROD_DEVTOOLS__){const e=sr();e.__INTLIFY__=!0,I5(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const JC="locale";function wu(){return ll.get(JC)}function ZC(e){ll.set(JC,e)}const ew=Object.keys(Object.assign({"./lang/en-US.json":()=>wt(()=>Promise.resolve().then(()=>Vk),void 0),"./lang/fa-IR.json":()=>wt(()=>Promise.resolve().then(()=>Wk),void 0),"./lang/ja-JP.json":()=>wt(()=>Promise.resolve().then(()=>qk),void 0),"./lang/ko-KR.json":()=>wt(()=>Promise.resolve().then(()=>Kk),void 0),"./lang/vi-VN.json":()=>wt(()=>Promise.resolve().then(()=>Gk),void 0),"./lang/zh-CN.json":()=>wt(()=>Promise.resolve().then(()=>Xk),void 0),"./lang/zh-TW.json":()=>wt(()=>Promise.resolve().then(()=>Yk),void 0)})).map(e=>e.slice(7,-5));function R$(){const e=navigator.language,t="zh-CN",o=ew.includes(e)?e:t;return wu().value||ZC(o),o}const mn=b$({locale:wu().value||R$(),fallbackLocale:"en-US",messages:{}});async function E$(){await Promise.all(ew.map(async e=>{const t=await EE(Object.assign({"./lang/en-US.json":()=>wt(()=>Promise.resolve().then(()=>Vk),void 0),"./lang/fa-IR.json":()=>wt(()=>Promise.resolve().then(()=>Wk),void 0),"./lang/ja-JP.json":()=>wt(()=>Promise.resolve().then(()=>qk),void 0),"./lang/ko-KR.json":()=>wt(()=>Promise.resolve().then(()=>Kk),void 0),"./lang/vi-VN.json":()=>wt(()=>Promise.resolve().then(()=>Gk),void 0),"./lang/zh-CN.json":()=>wt(()=>Promise.resolve().then(()=>Xk),void 0),"./lang/zh-TW.json":()=>wt(()=>Promise.resolve().then(()=>Yk),void 0)}),`./lang/${e}.json`).then(n=>n.default||n);mn.global.setLocaleMessage(e,t)}))}async function $$(e){e.use(mn),E$()}const dh={"zh-CN":"简体中文","zh-TW":"繁體中文","en-US":"English","fa-IR":"Iran","ja-JP":"日本語","vi-VN":"Tiếng Việt","ko-KR":"한국어"},fh=e=>mn.global.t(e);function Wo(e=void 0,t="YYYY-MM-DD HH:mm:ss"){return e==null?"":(e.toString().length===10&&(e=e*1e3),TE(e).format(t))}function Np(e=void 0,t="YYYY-MM-DD"){return Wo(e,t)}function fa(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":t.toFixed(2)}function sn(e){const t=typeof e=="string"?parseFloat(e):e;return isNaN(t)?"0.00":(t/100).toFixed(2)}function Xs(e){navigator.clipboard?navigator.clipboard.writeText(e).then(()=>{window.$message.success(fh("复制成功"))}).catch(t=>{console.error("复制到剪贴板时出错:",t),ib(e)}):ib(e)}function ib(e){const t=document.createElement("button"),n=new RE(t,{text:()=>e});n.on("success",()=>{window.$message.success(fh("复制成功")),n.destroy()}),n.on("error",()=>{window.$message.error(fh("复制失败")),n.destroy()}),t.click()}function I$(e,t){if(e.length!==t.length)return!1;const n=[...e].sort(),o=[...t].sort();return n.every((r,i)=>r===o[i])}function As(e){const t=e/1024,n=t/1024,o=n/1024,r=o/1024;return r>=1?fa(r)+" TB":o>=1?fa(o)+" GB":n>=1?fa(n)+" MB":fa(t)+" KB"}function O$(e){return typeof e>"u"}function M$(e){return e===null}function ab(e){return e&&Array.isArray(e)}function z$(e){return M$(e)||O$(e)}function sb(e){return/^(https?:|mailto:|tel:)/.test(e)}const Rs=/^[a-z0-9]+(-[a-z0-9]+)*$/,_u=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const s=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:s};return t&&!dc(c)?null:c}const i=r[0],a=i.split("-");if(a.length>1){const s={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!dc(s)?null:s}if(n&&o===""){const s={provider:o,prefix:"",name:i};return t&&!dc(s,n)?null:s}return null},dc=(e,t)=>e?!!((e.provider===""||e.provider.match(Rs))&&(t&&e.prefix===""||e.prefix.match(Rs))&&e.name.match(Rs)):!1,tw=Object.freeze({left:0,top:0,width:16,height:16}),Ec=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Su=Object.freeze({...tw,...Ec}),hh=Object.freeze({...Su,body:"",hidden:!1});function F$(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function lb(e,t){const n=F$(e,t);for(const o in hh)o in Ec?o in e&&!(o in n)&&(n[o]=Ec[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function D$(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function i(a){if(n[a])return r[a]=[];if(!(a in r)){r[a]=null;const s=o[a]&&o[a].parent,l=s&&i(s);l&&(r[a]=[s].concat(l))}return r[a]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(i),r}function L$(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function a(s){i=lb(o[s]||r[s],i)}return a(t),n.forEach(a),lb(e,i)}function nw(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=D$(e);for(const r in o){const i=o[r];i&&(t(r,L$(e,r,i)),n.push(r))}return n}const B$={provider:"",aliases:{},not_found:{},...tw};function Bd(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ow(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Bd(e,B$))return null;const n=t.icons;for(const r in n){const i=n[r];if(!r.match(Rs)||typeof i.body!="string"||!Bd(i,hh))return null}const o=t.aliases||Object.create(null);for(const r in o){const i=o[r],a=i.parent;if(!r.match(Rs)||typeof a!="string"||!n[a]&&!o[a]||!Bd(i,hh))return null}return t}const cb=Object.create(null);function N$(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ii(e,t){const n=cb[e]||(cb[e]=Object.create(null));return n[t]||(n[t]=N$(e,t))}function Hp(e,t){return ow(t)?nw(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function H$(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ys=!1;function rw(e){return typeof e=="boolean"&&(Ys=e),Ys}function j$(e){const t=typeof e=="string"?_u(e,!0,Ys):e;if(t){const n=Ii(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function U$(e,t){const n=_u(e,!0,Ys);if(!n)return!1;const o=Ii(n.provider,n.prefix);return H$(o,n.name,t)}function V$(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ys&&!t&&!e.prefix){let r=!1;return ow(e)&&(e.prefix="",nw(e,(i,a)=>{a&&U$(i,a)&&(r=!0)})),r}const n=e.prefix;if(!dc({provider:t,prefix:n,name:"a"}))return!1;const o=Ii(t,n);return!!Hp(o,e)}const iw=Object.freeze({width:null,height:null}),aw=Object.freeze({...iw,...Ec}),W$=/(-?[0-9.]*[0-9]+[0-9.]*)/g,q$=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ub(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(W$);if(o===null||!o.length)return e;const r=[];let i=o.shift(),a=q$.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?r.push(i):r.push(Math.ceil(s*t*n)/n)}else r.push(i);if(i=o.shift(),i===void 0)return r.join("");a=!a}}function K$(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const r=e.indexOf(">",o),i=e.indexOf("",i);if(a===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,o).trim()+e.slice(a+1)}return{defs:n,content:e}}function G$(e,t){return e?""+e+""+t:t}function X$(e,t,n){const o=K$(e);return G$(o.defs,t+o.content+n)}const Y$=e=>e==="unset"||e==="undefined"||e==="none";function Q$(e,t){const n={...Su,...e},o={...aw,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach(g=>{const m=[],b=g.hFlip,w=g.vFlip;let C=g.rotate;b?w?C+=2:(m.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),m.push("scale(-1 1)"),r.top=r.left=0):w&&(m.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),m.push("scale(1 -1)"),r.top=r.left=0);let _;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:_=r.height/2+r.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:_=r.width/2+r.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}C%2===1&&(r.left!==r.top&&(_=r.left,r.left=r.top,r.top=_),r.width!==r.height&&(_=r.width,r.width=r.height,r.height=_)),m.length&&(i=X$(i,'',""))});const a=o.width,s=o.height,l=r.width,c=r.height;let u,d;a===null?(d=s===null?"1em":s==="auto"?c:s,u=ub(d,l/c)):(u=a==="auto"?l:a,d=s===null?ub(u,c/l):s==="auto"?c:s);const f={},h=(g,m)=>{Y$(m)||(f[g]=m.toString())};h("width",u),h("height",d);const p=[r.left,r.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:i}}const J$=/\sid="(\S+)"/g,Z$="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let eI=0;function tI(e,t=Z$){const n=[];let o;for(;o=J$.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(eI++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const ph=Object.create(null);function nI(e,t){ph[e]=t}function mh(e){return ph[e]||ph[""]}function jp(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Up=Object.create(null),cs=["https://api.simplesvg.com","https://api.unisvg.com"],fc=[];for(;cs.length>0;)cs.length===1||Math.random()>.5?fc.push(cs.shift()):fc.push(cs.pop());Up[""]=jp({resources:["https://api.iconify.design"].concat(fc)});function oI(e,t){const n=jp(t);return n===null?!1:(Up[e]=n,!0)}function Vp(e){return Up[e]}const rI=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let db=rI();function iI(e,t){const n=Vp(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(a=>{r=Math.max(r,a.length)});const i=t+".json?icons=";o=n.maxURL-r-n.path.length-i.length}return o}function aI(e){return e===404}const sI=(e,t,n)=>{const o=[],r=iI(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=r&&c>0&&(o.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=l.length),a.icons.push(l)}),o.push(a),o};function lI(e){if(typeof e=="string"){const t=Vp(e);if(t)return t.path}return"/"}const cI=(e,t,n)=>{if(!db){n("abort",424);return}let o=lI(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});o+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;db(e+o).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(aI(a)?"abort":"next",a)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})},uI={prepare:sI,send:cI};function dI(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const i=r.provider,a=r.prefix,s=r.name,l=n[i]||(n[i]=Object.create(null)),c=l[a]||(l[a]=Ii(i,a));let u;s in c.icons?u=t.loaded:a===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:i,prefix:a,name:s};u.push(d)}),t}function sw(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function fI(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:o,prefix:r,name:c});else if(e.missing.has(c))a.missing.push({provider:o,prefix:r,name:c});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||sw([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let hI=0;function pI(e,t,n){const o=hI++,r=sw.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),r}function mI(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const i=typeof r=="string"?_u(r,t,n):r;i&&o.push(i)}),o}var gI={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vI(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let y=e.resources.slice(0);for(a=[];y.length>1;){const x=Math.floor(Math.random()*y.length);a.push(y[x]),y=y.slice(0,x).concat(y.slice(x+1))}a=a.concat(y)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",c=0,u,d=null,f=[],h=[];typeof o=="function"&&h.push(o);function p(){d&&(clearTimeout(d),d=null)}function g(){l==="pending"&&(l="aborted"),p(),f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function m(y,x){x&&(h=[]),typeof y=="function"&&h.push(y)}function b(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:m,abort:g}}function w(){l="failed",h.forEach(y=>{y(void 0,u)})}function C(){f.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),f=[]}function _(y,x,k){const P=x!=="success";switch(f=f.filter(T=>T!==y),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){u=k,w();return}if(P){u=k,f.length||(a.length?S():w());return}if(p(),C(),!e.random){const T=e.resources.indexOf(y.resource);T!==-1&&T!==e.index&&(e.index=T)}l="completed",h.forEach(T=>{T(k)})}function S(){if(l!=="pending")return;p();const y=a.shift();if(y===void 0){if(f.length){d=setTimeout(()=>{p(),l==="pending"&&(C(),w())},e.timeout);return}w();return}const x={status:"pending",resource:y,callback:(k,P)=>{_(x,k,P)}};f.push(x),c++,d=setTimeout(S,e.rotate),n(y,t,x.callback)}return setTimeout(S),b}function lw(e){const t={...gI,...e};let n=[];function o(){n=n.filter(s=>s().status==="pending")}function r(s,l,c){const u=vI(t,s,l,(d,f)=>{o(),c&&c(d,f)});return n.push(u),u}function i(s){return n.find(l=>s(l))||null}return{query:r,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:o}}function fb(){}const Nd=Object.create(null);function bI(e){if(!Nd[e]){const t=Vp(e);if(!t)return;const n=lw(t),o={config:t,redundancy:n};Nd[e]=o}return Nd[e]}function yI(e,t,n){let o,r;if(typeof e=="string"){const i=mh(e);if(!i)return n(void 0,424),fb;r=i.send;const a=bI(e);a&&(o=a.redundancy)}else{const i=jp(e);if(i){o=lw(i);const a=e.resources?e.resources[0]:"",s=mh(a);s&&(r=s.send)}}return!o||!r?(n(void 0,424),fb):o.query(t,r,n)().abort}const hb="iconify2",Qs="iconify",cw=Qs+"-count",pb=Qs+"-version",uw=36e5,xI=168,CI=50;function gh(e,t){try{return e.getItem(t)}catch{}}function Wp(e,t,n){try{return e.setItem(t,n),!0}catch{}}function mb(e,t){try{e.removeItem(t)}catch{}}function vh(e,t){return Wp(e,cw,t.toString())}function bh(e){return parseInt(gh(e,cw))||0}const ku={local:!0,session:!0},dw={local:new Set,session:new Set};let qp=!1;function wI(e){qp=e}let Ol=typeof window>"u"?{}:window;function fw(e){const t=e+"Storage";try{if(Ol&&Ol[t]&&typeof Ol[t].length=="number")return Ol[t]}catch{}ku[e]=!1}function hw(e,t){const n=fw(e);if(!n)return;const o=gh(n,pb);if(o!==hb){if(o){const s=bh(n);for(let l=0;l{const l=Qs+s.toString(),c=gh(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}mb(n,l)}};let a=bh(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,vh(n,a)):dw[e].add(s))}function pw(){if(!qp){wI(!0);for(const e in ku)hw(e,t=>{const n=t.data,o=t.provider,r=n.prefix,i=Ii(o,r);if(!Hp(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function _I(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in ku)hw(o,r=>{const i=r.data;return r.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function SI(e,t){qp||pw();function n(o){let r;if(!ku[o]||!(r=fw(o)))return;const i=dw[o];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=bh(r),a>=CI||!vh(r,a+1))return;const s={cached:Math.floor(Date.now()/uw),provider:e.provider,data:t};return Wp(r,Qs+a.toString(),JSON.stringify(s))}t.lastModified&&!_I(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function gb(){}function kI(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,fI(e)}))}function PI(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let i;if(!r||!(i=mh(n)))return;i.prepare(n,o,r).forEach(s=>{yI(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=Hp(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),SI(e,l)}catch(c){console.error(c)}kI(e)})})}))}const TI=(e,t)=>{const n=mI(e,!0,rw()),o=dI(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,gb)}),()=>{l=!1}}const r=Object.create(null),i=[];let a,s;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===a)return;a=c,s=u,i.push(Ii(c,u));const d=r[c]||(r[c]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=Ii(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),r[c][u].push(d))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&PI(l,r[c][u])}),t?pI(t,o,i):gb};function AI(e,t){const n={...e};for(const o in t){const r=t[o],i=typeof r;o in iw?(r===null||r&&(i==="string"||i==="number"))&&(n[o]=r):i===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const RI=/[\s,]+/;function EI(e,t){t.split(RI).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function $I(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?o(i):0)}}return t}function II(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'"+e+""}function OI(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function MI(e){return"data:image/svg+xml,"+OI(e)}function zI(e){return'url("'+MI(e)+'")'}const vb={...aw,inline:!1},FI={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},DI={display:"inline-block"},yh={backgroundColor:"currentColor"},mw={backgroundColor:"transparent"},bb={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},yb={webkitMask:yh,mask:yh,background:mw};for(const e in yb){const t=yb[e];for(const n in bb)t[e+n]=bb[n]}const hc={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";hc[e+"-flip"]=t,hc[e.slice(0,1)+"-flip"]=t,hc[e+"Flip"]=t});function xb(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Cb=(e,t)=>{const n=AI(vb,t),o={...FI},r=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const m=t[g];if(m!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[g]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&EI(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[g]=$I(m):typeof m=="number"&&(n[g]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete o["aria-hidden"];break;default:{const b=hc[g];b?(m===!0||m==="true"||m===1)&&(n[b]=!0):vb[g]===void 0&&(o[g]=m)}}}const l=Q$(e,n),c=l.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){o.style={...i,...s},Object.assign(o,c);let g=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),o.innerHTML=tI(l.body,m?()=>m+"ID"+g++:"iconifyVue"),v("svg",o)}const{body:u,width:d,height:f}=e,h=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),p=II(u,{...c,width:d+"",height:f+""});return o.style={...i,"--svg":zI(p),width:xb(c.width),height:xb(c.height),...DI,...h?yh:mw,...s},v("span",o)};rw(!0);nI("",uI);if(typeof document<"u"&&typeof window<"u"){pw();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!V$(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;oI(n,r)||console.error(o)}catch{console.error(o)}}}}const LI={...Su,body:""},BI=ye({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=_u(e,!1,!0))===null)return this.abortLoading(),null;const o=j$(n);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:e,abort:TI([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:o,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return Cb(LI,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Cb({...Su,...t.data},n)}});let $c=[];const gw=new WeakMap;function NI(){$c.forEach(e=>e(...gw.get(e))),$c=[]}function Ic(e,...t){gw.set(e,t),!$c.includes(e)&&$c.push(e)===1&&requestAnimationFrame(NI)}function HI(e){return e.nodeType===9?null:e.parentNode}function vw(e){if(e===null)return null;const t=HI(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+r+o))return t}return vw(t)}function jI(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function lo(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Oi(e){return e.composedPath()[0]||null}function bn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function zn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function co(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function UI(e,t){const[n,o]=e.split(" ");return t?t==="row"?n:o:{row:n,col:o||n}}const wb={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},ja="^\\s*",Ua="\\s*$",bi="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",yi="([0-9A-Fa-f])",xi="([0-9A-Fa-f]{2})",VI=new RegExp(`${ja}rgb\\s*\\(${bi},${bi},${bi}\\)${Ua}`),WI=new RegExp(`${ja}rgba\\s*\\(${bi},${bi},${bi},${bi}\\)${Ua}`),qI=new RegExp(`${ja}#${yi}${yi}${yi}${Ua}`),KI=new RegExp(`${ja}#${xi}${xi}${xi}${Ua}`),GI=new RegExp(`${ja}#${yi}${yi}${yi}${yi}${Ua}`),XI=new RegExp(`${ja}#${xi}${xi}${xi}${xi}${Ua}`);function Nn(e){return parseInt(e,16)}function qo(e){try{let t;if(t=KI.exec(e))return[Nn(t[1]),Nn(t[2]),Nn(t[3]),1];if(t=VI.exec(e))return[Rn(t[1]),Rn(t[5]),Rn(t[9]),1];if(t=WI.exec(e))return[Rn(t[1]),Rn(t[5]),Rn(t[9]),Es(t[13])];if(t=qI.exec(e))return[Nn(t[1]+t[1]),Nn(t[2]+t[2]),Nn(t[3]+t[3]),1];if(t=XI.exec(e))return[Nn(t[1]),Nn(t[2]),Nn(t[3]),Es(Nn(t[4])/255)];if(t=GI.exec(e))return[Nn(t[1]+t[1]),Nn(t[2]+t[2]),Nn(t[3]+t[3]),Es(Nn(t[4]+t[4])/255)];if(e in wb)return qo(wb[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function YI(e){return e>1?1:e<0?0:e}function xh(e,t,n,o){return`rgba(${Rn(e)}, ${Rn(t)}, ${Rn(n)}, ${YI(o)})`}function Hd(e,t,n,o,r){return Rn((e*t*(1-o)+n*o)/r)}function Ke(e,t){Array.isArray(e)||(e=qo(e)),Array.isArray(t)||(t=qo(t));const n=e[3],o=t[3],r=Es(n+o-n*o);return xh(Hd(e[0],n,t[0],o,r),Hd(e[1],n,t[1],o,r),Hd(e[2],n,t[2],o,r),r)}function Oe(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e);return t.alpha?xh(n,o,r,t.alpha):xh(n,o,r,i)}function un(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:qo(e),{lightness:a=1,alpha:s=1}=t;return QI([n*a,o*a,r*a,i*s])}function Es(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function QI(e){const[t,n,o]=e;return 3 in e?`rgba(${Rn(t)}, ${Rn(n)}, ${Rn(o)}, ${Es(e[3])})`:`rgba(${Rn(t)}, ${Rn(n)}, ${Rn(o)}, 1)`}function Zr(e=8){return Math.random().toString(16).slice(2,2+e)}function bw(e,t){const n=[];for(let o=0;o{o[r]=e[r]}),Object.assign(o,n)}function Va(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,n)}function Ra(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(nt(String(o)));return}if(Array.isArray(o)){Ra(o,t,n);return}if(o.type===rt){if(o.children===null)return;Array.isArray(o.children)&&Ra(o.children,t,n)}else{if(o.type===_n&&t)return;n.push(o)}}}),n}function Re(e,...t){if(Array.isArray(e))e.forEach(n=>Re(n,...t));else return e(...t)}function ei(e){return Object.keys(e)}function Vt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?nt(e):typeof e=="number"?nt(String(e)):null}function cr(e,t){console.error(`[naive/${e}]: ${t}`)}function hr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function _b(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw new Error(`${e} has no smaller size.`)}function Sb(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Ch(e,t="default",n=void 0){const o=e[t];if(!o)return cr("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ra(o(n));return r.length===1?r[0]:(cr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function xw(e){return t=>{t?e.value=t.$el:e.value=null}}function So(e){return e.some(t=>Us(t)?!(t.type===_n||t.type===rt&&!So(t.children)):!0)?e:null}function $n(e,t){return e&&So(e())||t()}function wh(e,t,n){return e&&So(e(t))||n(t)}function Et(e,t){const n=e&&So(e());return t(n||null)}function ga(e){return!(e&&So(e()))}function $s(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(o=>{o&&o(n)})}}const _h=ye({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),ZI=/^(\d|\.)+$/,kb=/(\d|\.)+/;function qt(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if(typeof e=="number"){const r=(e+n)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(ZI.test(e)){const r=(Number(e)+n)*t;return o?r===0?"0":`${r}px`:`${r}`}else{const r=kb.exec(e);return r?e.replace(kb,String((Number(r[0])+n)*t)):e}return e}function Oc(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function e8(e){const{left:t,right:n,top:o,bottom:r}=co(e);return`${o} ${n} ${r} ${t}`}function t8(e){let t=0;for(let n=0;n{let r=t8(o);if(r){if(r===1){e.forEach(a=>{n.push(o.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+o)});return}let i=[o];for(;r--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function r8(e,t){const n=[];return t.split(Cw).forEach(o=>{e.forEach(r=>{n.push((r&&r+" ")+o)})}),n}function i8(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=o8(t,n):t=r8(t,n))}),t.join(", ").replace(n8," ")}function Pb(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Pu(e){return document.querySelector(`style[cssr-id="${e}"]`)}function a8(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Ml(e){return e?/^\s*@(s|m)/.test(e):!1}const s8=/[A-Z]/g;function ww(e){return e.replace(s8,t=>"-"+t.toLowerCase())}function l8(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(n=>t+` ${ww(n[0])}: ${n[1]};`).join(` `)+` -`+t+"}":`: ${e};`}function e8(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function xb(e,t,n,o){if(!t)return"";const r=e8(t,n,o);if(!r)return"";if(typeof r=="string")return`${e} { +`+t+"}":`: ${e};`}function c8(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Tb(e,t,n,o){if(!t)return"";const r=c8(t,n,o);if(!r)return"";if(typeof r=="string")return`${e} { ${r} }`;const i=Object.keys(r);if(i.length===0)return n.config.keepEmptyBlock?e+` { }`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=r[s];if(s==="raw"){a.push(` `+l+` -`);return}s=mw(s),l!=null&&a.push(` ${s}${ZI(l)}`)}),e&&a.push("}"),a.join(` -`)}function bh(e,t,n){e&&e.forEach(o=>{if(Array.isArray(o))bh(o,t,n);else if(typeof o=="function"){const r=o(t);Array.isArray(r)?bh(r,t,n):r&&n(r)}else o&&n(o)})}function gw(e,t,n,o,r,i){const a=e.$;let s="";if(!a||typeof a=="string")Al(a)?s=a:t.push(a);else if(typeof a=="function"){const u=a({context:o.context,props:r});Al(u)?s=u:t.push(u)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")Al(a.$)?s=a.$:t.push(a.$);else if(a.$){const u=a.$({context:o.context,props:r});Al(u)?s=u:t.push(u)}const l=YI(t),c=xb(l,e.props,o,r);s?(n.push(`${s} {`),i&&c&&i.insertRule(`${s} { +`);return}s=ww(s),l!=null&&a.push(` ${s}${l8(l)}`)}),e&&a.push("}"),a.join(` +`)}function Sh(e,t,n){e&&e.forEach(o=>{if(Array.isArray(o))Sh(o,t,n);else if(typeof o=="function"){const r=o(t);Array.isArray(r)?Sh(r,t,n):r&&n(r)}else o&&n(o)})}function _w(e,t,n,o,r,i){const a=e.$;let s="";if(!a||typeof a=="string")Ml(a)?s=a:t.push(a);else if(typeof a=="function"){const u=a({context:o.context,props:r});Ml(u)?s=u:t.push(u)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")Ml(a.$)?s=a.$:t.push(a.$);else if(a.$){const u=a.$({context:o.context,props:r});Ml(u)?s=u:t.push(u)}const l=i8(t),c=Tb(l,e.props,o,r);s?(n.push(`${s} {`),i&&c&&i.insertRule(`${s} { ${c} } -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&bh(e.children,{context:o.context,props:r},u=>{if(typeof u=="string"){const d=xb(l,{raw:u},o,r);i?i.insertRule(d):n.push(d)}else gw(u,t,n,o,r,i)}),t.pop(),s&&n.push("}"),a&&a.after&&a.after(o.context)}function vw(e,t,n,o=!1){const r=[];return gw(e,[],r,t,n,o?e.instance.__styleSheet:void 0),o?"":r.join(` +`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Sh(e.children,{context:o.context,props:r},u=>{if(typeof u=="string"){const d=Tb(l,{raw:u},o,r);i?i.insertRule(d):n.push(d)}else _w(u,t,n,o,r,i)}),t.pop(),s&&n.push("}"),a&&a.after&&a.after(o.context)}function Sw(e,t,n,o=!1){const r=[];return _w(e,[],r,t,n,o?e.instance.__styleSheet:void 0),o?"":r.join(` -`)}function Xs(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function t8(e,t,n){const{els:o}=t;if(n===void 0)o.forEach(yb),t.els=[];else{const r=Cu(n);r&&o.includes(r)&&(yb(r),t.els=o.filter(i=>i!==r))}}function Cb(e,t){e.push(t)}function n8(e,t,n,o,r,i,a,s,l){if(i&&!l){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[n]||(f[n]=!0,vw(t,e,o,i));return}let c;if(n===void 0&&(c=t.render(o),n=Xs(c)),l){l.adapter(n,c??t.render(o));return}const u=Cu(n);if(u!==null&&!a)return u;const d=u??QI(n);if(c===void 0&&(c=t.render(o)),d.textContent=c,u!==null)return u;if(s){const f=document.head.querySelector(`meta[name="${s}"]`);if(f)return document.head.insertBefore(d,f),Cb(t.els,d),d}return r?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),Cb(t.els,d),d}function o8(e){return vw(this,this.instance,e)}function r8(e={}){const{id:t,ssr:n,props:o,head:r=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return n8(this.instance,this,t,o,r,i,a,s,n)}function i8(e={}){const{id:t}=e;t8(this.instance,this,t)}const $l=function(e,t,n,o){return{instance:e,$:t,props:n,children:o,els:[],render:o8,mount:r8,unmount:i8}},a8=function(e,t,n,o){return Array.isArray(t)?$l(e,{$:null},null,t):Array.isArray(n)?$l(e,t,null,n):Array.isArray(o)?$l(e,t,n,o):$l(e,t,n,null)};function bw(e={}){let t=null;const n={c:(...o)=>a8(n,...o),use:(o,...r)=>o.install(n,...r),find:Cu,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function s8(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Cu(e)!==null}function l8(e){let t=".",n="__",o="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(o=p)}const i={install(p){r=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(p){let g,m;return{before(b){g=b.bem.b,m=b.bem.els,b.bem.els=null},after(b){b.bem.b=g,b.bem.els=m},$({context:b,props:w}){return p=typeof p=="string"?p:p({context:b,props:w}),b.bem.b=p,`${(w==null?void 0:w.bPrefix)||t}${b.bem.b}`}}}function s(p){let g;return{before(m){g=m.bem.els},after(m){m.bem.els=g},$({context:m,props:b}){return p=typeof p=="string"?p:p({context:m,props:b}),m.bem.els=p.split(",").map(w=>w.trim()),m.bem.els.map(w=>`${(b==null?void 0:b.bPrefix)||t}${m.bem.b}${n}${w}`).join(", ")}}}function l(p){return{$({context:g,props:m}){p=typeof p=="string"?p:p({context:g,props:m});const b=p.split(",").map(_=>_.trim());function w(_){return b.map(S=>`&${(m==null?void 0:m.bPrefix)||t}${g.bem.b}${_!==void 0?`${n}${_}`:""}${o}${S}`).join(", ")}const C=g.bem.els;return C!==null?w(C[0]):w()}}}function c(p){return{$({context:g,props:m}){p=typeof p=="string"?p:p({context:g,props:m});const b=g.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${g.bem.b}${b!==null&&b.length>0?`${n}${b[0]}`:""}${o}${p})`}}}return Object.assign(i,{cB:(...p)=>r(a(p[0]),p[1],p[2]),cE:(...p)=>r(s(p[0]),p[1],p[2]),cM:(...p)=>r(l(p[0]),p[1],p[2]),cNotM:(...p)=>r(c(p[0]),p[1],p[2])}),i}const c8="n",Ys=`.${c8}-`,u8="__",d8="--",yw=bw(),xw=l8({blockPrefix:Ys,elementPrefix:u8,modifierPrefix:d8});yw.use(xw);const{c:W,find:z7e}=yw,{cB:z,cE:j,cM:J,cNotM:Et}=xw;function al(e){return W(({props:{bPrefix:t}})=>`${t||Ys}modal, ${t||Ys}drawer`,[e])}function wu(e){return W(({props:{bPrefix:t}})=>`${t||Ys}popover`,[e])}function Cw(e){return W(({props:{bPrefix:t}})=>`&${t||Ys}modal`,e)}const f8=(...e)=>W(">",[z(...e)]);function Te(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let Dd;function h8(){return Dd===void 0&&(Dd=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Dd}const pr=typeof document<"u"&&typeof window<"u",ww=new WeakSet;function p8(e){ww.add(e)}function _w(e){return!ww.has(e)}function m8(e,t,n){if(!t)return e;const o=U(e.value);let r=null;return ft(e,i=>{r!==null&&window.clearTimeout(r),i===!0?n&&!n.value?o.value=!0:r=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}function g8(e){const t=U(!!e.value);if(t.value)return uo(t);const n=ft(e,o=>{o&&(t.value=!0,n())});return uo(t)}function kt(e){const t=I(e),n=U(t.value);return ft(t,o=>{n.value=o}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){e.set(o)}}}function Np(){return no()!==null}const Hp=typeof window<"u";let ma,Rs;const v8=()=>{var e,t;ma=Hp?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Rs=!1,ma!==void 0?ma.then(()=>{Rs=!0}):Rs=!0};v8();function b8(e){if(Rs)return;let t=!1;jt(()=>{Rs||ma==null||ma.then(()=>{t||e()})}),on(()=>{t=!0})}function cc(e){return e.composedPath()[0]}const y8={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function x8(e,t,n){if(e==="mousemoveoutside"){const o=r=>{t.contains(cc(r))||n(r)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const r=a=>{o=!t.contains(cc(a))},i=a=>{o&&(t.contains(cc(a))||n(a))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Sw(e,t,n){const o=y8[e];let r=o.get(t);r===void 0&&o.set(t,r=new WeakMap);let i=r.get(n);return i===void 0&&r.set(n,i=x8(e,t,n)),i}function C8(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Sw(e,t,n);return Object.keys(r).forEach(i=>{$t(i,document,r[i],o)}),!0}return!1}function w8(e,t,n,o){if(e==="mousemoveoutside"||e==="clickoutside"){const r=Sw(e,t,n);return Object.keys(r).forEach(i=>{Tt(i,document,r[i],o)}),!0}return!1}function _8(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function r(x,P,k){const T=x[P];return x[P]=function(){return k.apply(x,arguments),T.apply(x,arguments)},x}function i(x,P){x[P]=Event.prototype[P]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var x;return(x=a.get(this))!==null&&x!==void 0?x:null}function c(x,P){s!==void 0&&Object.defineProperty(x,"currentTarget",{configurable:!0,enumerable:!0,get:P??s.get})}const u={bubble:{},capture:{}},d={};function f(){const x=function(P){const{type:k,eventPhase:T,bubbles:R}=P,E=cc(P);if(T===2)return;const q=T===1?"capture":"bubble";let D=E;const B=[];for(;D===null&&(D=window),B.push(D),D!==window;)D=D.parentNode||null;const M=u.capture[k],K=u.bubble[k];if(r(P,"stopPropagation",n),r(P,"stopImmediatePropagation",o),c(P,l),q==="capture"){if(M===void 0)return;for(let V=B.length-1;V>=0&&!e.has(P);--V){const ae=B[V],pe=M.get(ae);if(pe!==void 0){a.set(P,ae);for(const Z of pe){if(t.has(P))break;Z(P)}}if(V===0&&!R&&K!==void 0){const Z=K.get(ae);if(Z!==void 0)for(const N of Z){if(t.has(P))break;N(P)}}}}else if(q==="bubble"){if(K===void 0)return;for(let V=0;VE(P))};return x.displayName="evtdUnifiedWindowEventHandler",x}const p=f(),g=h();function m(x,P){const k=u[x];return k[P]===void 0&&(k[P]=new Map,window.addEventListener(P,p,x==="capture")),k[P]}function b(x){return d[x]===void 0&&(d[x]=new Set,window.addEventListener(x,g)),d[x]}function w(x,P){let k=x.get(P);return k===void 0&&x.set(P,k=new Set),k}function C(x,P,k,T){const R=u[P][k];if(R!==void 0){const E=R.get(x);if(E!==void 0&&E.has(T))return!0}return!1}function _(x,P){const k=d[x];return!!(k!==void 0&&k.has(P))}function S(x,P,k,T){let R;if(typeof T=="object"&&T.once===!0?R=M=>{y(x,P,R,T),k(M)}:R=k,C8(x,P,R,T))return;const q=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",D=m(q,x),B=w(D,P);if(B.has(R)||B.add(R),P===window){const M=b(x);M.has(R)||M.add(R)}}function y(x,P,k,T){if(w8(x,P,k,T))return;const E=T===!0||typeof T=="object"&&T.capture===!0,q=E?"capture":"bubble",D=m(q,x),B=w(D,P);if(P===window&&!C(P,E?"bubble":"capture",x,k)&&_(x,k)){const K=d[x];K.delete(k),K.size===0&&(window.removeEventListener(x,g),d[x]=void 0)}B.has(k)&&B.delete(k),B.size===0&&D.delete(P),D.size===0&&(window.removeEventListener(x,p,q==="capture"),u[q][x]=void 0)}return{on:S,off:y}}const{on:$t,off:Tt}=_8(),fs=U(null);function wb(e){if(e.clientX>0||e.clientY>0)fs.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:o,width:r,height:i}=t.getBoundingClientRect();n>0||o>0?fs.value={x:n+r/2,y:o+i/2}:fs.value={x:0,y:0}}else fs.value=null}}let Il=0,_b=!0;function Rc(){if(!Hp)return uo(U(null));Il===0&&$t("click",document,wb,!0);const e=()=>{Il+=1};return _b&&(_b=Np())?(hn(e),on(()=>{Il-=1,Il===0&&Tt("click",document,wb,!0)})):e(),uo(fs)}const S8=U(void 0);let Ol=0;function Sb(){S8.value=Date.now()}let kb=!0;function Ac(e){if(!Hp)return uo(U(!1));const t=U(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function r(){o(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Ol===0&&$t("click",window,Sb,!0);const i=()=>{Ol+=1,$t("click",window,r,!0)};return kb&&(kb=Np())?(hn(i),on(()=>{Ol-=1,Ol===0&&Tt("click",window,Sb,!0),Tt("click",window,r,!0),o()})):i(),uo(t)}function rn(e,t){return ft(e,n=>{n!==void 0&&(t.value=n)}),I(()=>e.value===void 0?t.value:e.value)}function Zr(){const e=U(!1);return jt(()=>{e.value=!0}),uo(e)}function _u(e,t){return I(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const k8=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function P8(){return k8}function T8(e={},t){const n=to({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:r}=e,i=l=>{switch(l.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==l.key)return;const u=o[c];if(typeof u=="function")u(l);else{const{stop:d=!1,prevent:f=!1}=u;d&&l.stopPropagation(),f&&l.preventDefault(),u.handler(l)}})},a=l=>{switch(l.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==l.key)return;const u=r[c];if(typeof u=="function")u(l);else{const{stop:d=!1,prevent:f=!1}=u;d&&l.stopPropagation(),f&&l.preventDefault(),u.handler(l)}})},s=()=>{(t===void 0||t.value)&&($t("keydown",document,i),$t("keyup",document,a)),t!==void 0&&ft(t,l=>{l?($t("keydown",document,i),$t("keyup",document,a)):(Tt("keydown",document,i),Tt("keyup",document,a))})};return Np()?(hn(s),on(()=>{(t===void 0||t.value)&&(Tt("keydown",document,i),Tt("keyup",document,a))})):s(),uo(n)}const jp="n-internal-select-menu",kw="n-internal-select-menu-body",sl="n-modal-body",E8="n-modal-provider",Pw="n-modal",ll="n-drawer-body",Up="n-drawer",ja="n-popover-body",Tw="__disabled__";function Ko(e){const t=Ve(sl,null),n=Ve(ll,null),o=Ve(ja,null),r=Ve(kw,null),i=U();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};jt(()=>{$t("fullscreenchange",document,a)}),on(()=>{Tt("fullscreenchange",document,a)})}return kt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Tw:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:s??(i.value||"body")})}Ko.tdkey=Tw;Ko.propTo={type:[String,Object,Boolean],default:void 0};let Pb=!1;function R8(){if(pr&&window.CSS&&!Pb&&(Pb=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function yh(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return o()}function xh(e,t=!0,n=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(nt(String(o)));return}if(Array.isArray(o)){xh(o,t,n);return}if(o.type===rt){if(o.children===null)return;Array.isArray(o.children)&&xh(o.children,t,n)}else o.type!==_n&&n.push(o)}}),n}function Tb(e,t,n="default"){const o=t[n];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const r=xh(o());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Pr=null;function Ew(){if(Pr===null&&(Pr=document.getElementById("v-binder-view-measurer"),Pr===null)){Pr=document.createElement("div"),Pr.id="v-binder-view-measurer";const{style:e}=Pr;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Pr)}return Pr.getBoundingClientRect()}function A8(e,t){const n=Ew();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Ld(e){const t=e.getBoundingClientRect(),n=Ew();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function $8(e){return e.nodeType===9?null:e.parentNode}function Rw(e){if(e===null)return null;const t=$8(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:o,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+r+o))return t}return Rw(t)}const I8=xe({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;at("VBinder",(t=no())===null||t===void 0?void 0:t.proxy);const n=Ve("VBinder",null),o=U(null),r=b=>{o.value=b,n&&e.syncTargetWithParent&&n.setTargetRef(b)};let i=[];const a=()=>{let b=o.value;for(;b=Rw(b),b!==null;)i.push(b);for(const w of i)$t("scroll",w,d,!0)},s=()=>{for(const b of i)Tt("scroll",b,d,!0);i=[]},l=new Set,c=b=>{l.size===0&&a(),l.has(b)||l.add(b)},u=b=>{l.has(b)&&l.delete(b),l.size===0&&s()},d=()=>{Tc(f)},f=()=>{l.forEach(b=>b())},h=new Set,p=b=>{h.size===0&&$t("resize",window,m),h.has(b)||h.add(b)},g=b=>{h.has(b)&&h.delete(b),h.size===0&&Tt("resize",window,m)},m=()=>{h.forEach(b=>b())};return on(()=>{Tt("resize",window,m),s()}),{targetRef:o,setTargetRef:r,addScrollListener:c,removeScrollListener:u,addResizeListener:p,removeResizeListener:g}},render(){return yh("binder",this.$slots)}}),Vp=I8,Wp=xe({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Ve("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?dn(Tb("follower",this.$slots),[[t]]):Tb("follower",this.$slots)}}),ea="@@mmoContext",O8={mounted(e,{value:t}){e[ea]={handler:void 0},typeof t=="function"&&(e[ea].handler=t,$t("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ea];typeof t=="function"?n.handler?n.handler!==t&&(Tt("mousemoveoutside",e,n.handler),n.handler=t,$t("mousemoveoutside",e,t)):(e[ea].handler=t,$t("mousemoveoutside",e,t)):n.handler&&(Tt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ea];t&&Tt("mousemoveoutside",e,t),e[ea].handler=void 0}},M8=O8,ta="@@coContext",z8={mounted(e,{value:t,modifiers:n}){e[ta]={handler:void 0},typeof t=="function"&&(e[ta].handler=t,$t("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const o=e[ta];typeof t=="function"?o.handler?o.handler!==t&&(Tt("clickoutside",e,o.handler,{capture:n.capture}),o.handler=t,$t("clickoutside",e,t,{capture:n.capture})):(e[ta].handler=t,$t("clickoutside",e,t,{capture:n.capture})):o.handler&&(Tt("clickoutside",e,o.handler,{capture:n.capture}),o.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[ta];n&&Tt("clickoutside",e,n,{capture:t.capture}),e[ta].handler=void 0}},Ea=z8;function F8(e,t){console.error(`[vdirs/${e}]: ${t}`)}class D8{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:o}=this;if(n!==void 0){t.style.zIndex=`${n}`,o.delete(t);return}const{nextZIndex:r}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,o.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,n){const{elementZIndex:o}=this;o.has(t)?o.delete(t):n===void 0&&F8("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,o)=>n[1]-o[1]),this.nextZIndex=2e3,t.forEach(n=>{const o=n[0],r=this.nextZIndex++;`${r}`!==o.style.zIndex&&(o.style.zIndex=`${r}`)})}}const Bd=new D8,na="@@ziContext",L8={mounted(e,t){const{value:n={}}=t,{zIndex:o,enabled:r}=n;e[na]={enabled:!!r,initialized:!1},r&&(Bd.ensureZIndex(e,o),e[na].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:o,enabled:r}=n,i=e[na].enabled;r&&!i&&(Bd.ensureZIndex(e,o),e[na].initialized=!0),e[na].enabled=!!r},unmounted(e,t){if(!e[na].initialized)return;const{value:n={}}=t,{zIndex:o}=n;Bd.unregister(e,o)}},Su=L8,Aw=Symbol("@css-render/vue3-ssr");function B8(e,t){return``}function N8(e,t){const n=Ve(Aw,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:r}=n;r.has(e)||o!==null&&(r.add(e),o.push(B8(e,t)))}const H8=typeof document<"u";function Di(){if(H8)return;const e=Ve(Aw,null);if(e!==null)return{adapter:N8,context:e}}function Eb(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Fr}=bw(),qp="vueuc-style";function Rb(e){return e&-e}class j8{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*o;for(;t>0;)i+=n[t],t-=Rb(t);return i}getBound(t){let n=0,o=this.l;for(;o>n;){const r=Math.floor((n+o)/2),i=this.sum(r);if(i>t){o=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?yh("lazy-teleport",this.$slots):v(Zc,{disabled:this.disabled,to:this.mergedTo},yh("lazy-teleport",this.$slots)):null}}),Ml={top:"bottom",bottom:"top",left:"right",right:"left"},$b={start:"end",center:"center",end:"start"},Nd={top:"height",bottom:"height",left:"width",right:"width"},U8={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},V8={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},W8={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ib={top:!0,bottom:!1,left:!0,right:!1},Ob={top:"end",bottom:"start",left:"end",right:"start"};function q8(e,t,n,o,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const u=(h,p,g)=>{let m=0,b=0;const w=n[h]-t[p]-t[h];return w>0&&o&&(g?b=Ib[p]?w:-w:m=Ib[p]?w:-w),{left:m,top:b}},d=a==="left"||a==="right";if(l!=="center"){const h=W8[e],p=Ml[h],g=Nd[h];if(n[g]>t[g]){if(t[h]+t[g]t[p]&&(l=$b[s])}else{const h=a==="bottom"||a==="top"?"left":"top",p=Ml[h],g=Nd[h],m=(n[g]-t[g])/2;(t[h]t[p]?(l=Ob[h],c=u(g,h,d)):(l=Ob[p],c=u(g,p,d)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),Kp=xe({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Ve("VBinder"),n=kt(()=>e.enabled!==void 0?e.enabled:e.show),o=U(null),r=U(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};jt(()=>{n.value&&(l(),i())});const s=Di();X8.mount({id:"vueuc/binder",head:!0,anchorMetaName:qp,ssr:s}),on(()=>{a()}),b8(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const f=o.value;if(f===null)return;const h=t.targetRef,{x:p,y:g,overlap:m}=e,b=p!==void 0&&g!==void 0?A8(p,g):Ld(h);f.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:w,minWidth:C,placement:_,internalShift:S,flip:y}=e;f.setAttribute("v-placement",_),m?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:x}=f;w==="target"?x.width=`${b.width}px`:w!==void 0?x.width=w:x.width="",C==="target"?x.minWidth=`${b.width}px`:C!==void 0?x.minWidth=C:x.minWidth="";const P=Ld(f),k=Ld(r.value),{left:T,top:R,placement:E}=q8(_,b,P,S,y,m),q=K8(E,m),{left:D,top:B,transform:M}=G8(E,k,b,R,T,m);f.setAttribute("v-placement",E),f.style.setProperty("--v-offset-left",`${Math.round(T)}px`),f.style.setProperty("--v-offset-top",`${Math.round(R)}px`),f.style.transform=`translateX(${D}) translateY(${B}) ${M}`,f.style.setProperty("--v-transform-origin",q),f.style.transformOrigin=q};ft(n,f=>{f?(i(),c()):a()});const c=()=>{Ht().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{ft(Ue(e,f),l)}),["teleportDisabled"].forEach(f=>{ft(Ue(e,f),c)}),ft(Ue(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=Zr(),d=kt(()=>{const{to:f}=e;if(f!==void 0)return f;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:r,followerRef:o,mergedTo:d,syncPosition:l}},render(){return v(ku,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=v("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[v("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?dn(n,[[Su,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Si=[],Y8=function(){return Si.some(function(e){return e.activeTargets.length>0})},Q8=function(){return Si.some(function(e){return e.skippedTargets.length>0})},Mb="ResizeObserver loop completed with undelivered notifications.",J8=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Mb}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Mb),window.dispatchEvent(e)},Qs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Qs||(Qs={}));var ki=function(e){return Object.freeze(e)},Z8=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ki(this)}return e}(),$w=function(){function e(t,n,o,r){return this.x=t,this.y=n,this.width=o,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ki(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,r=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:o,top:r,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Gp=function(e){return e instanceof SVGElement&&"getBBox"in e},Iw=function(e){if(Gp(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},zb=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},eO=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},As=typeof window<"u"?window:{},zl=new WeakMap,Fb=/auto|scroll/,tO=/^tb|vertical/,nO=/msie|trident/i.test(As.navigator&&As.navigator.userAgent),Do=function(e){return parseFloat(e||"0")},ga=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Z8((n?t:e)||0,(n?e:t)||0)},Db=ki({devicePixelContentBoxSize:ga(),borderBoxSize:ga(),contentBoxSize:ga(),contentRect:new $w(0,0,0,0)}),Ow=function(e,t){if(t===void 0&&(t=!1),zl.has(e)&&!t)return zl.get(e);if(Iw(e))return zl.set(e,Db),Db;var n=getComputedStyle(e),o=Gp(e)&&e.ownerSVGElement&&e.getBBox(),r=!nO&&n.boxSizing==="border-box",i=tO.test(n.writingMode||""),a=!o&&Fb.test(n.overflowY||""),s=!o&&Fb.test(n.overflowX||""),l=o?0:Do(n.paddingTop),c=o?0:Do(n.paddingRight),u=o?0:Do(n.paddingBottom),d=o?0:Do(n.paddingLeft),f=o?0:Do(n.borderTopWidth),h=o?0:Do(n.borderRightWidth),p=o?0:Do(n.borderBottomWidth),g=o?0:Do(n.borderLeftWidth),m=d+c,b=l+u,w=g+h,C=f+p,_=s?e.offsetHeight-C-e.clientHeight:0,S=a?e.offsetWidth-w-e.clientWidth:0,y=r?m+w:0,x=r?b+C:0,P=o?o.width:Do(n.width)-y-S,k=o?o.height:Do(n.height)-x-_,T=P+m+S+w,R=k+b+_+C,E=ki({devicePixelContentBoxSize:ga(Math.round(P*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:ga(T,R,i),contentBoxSize:ga(P,k,i),contentRect:new $w(d,l,P,k)});return zl.set(e,E),E},Mw=function(e,t,n){var o=Ow(e,n),r=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case Qs.DEVICE_PIXEL_CONTENT_BOX:return a;case Qs.BORDER_BOX:return r;default:return i}},oO=function(){function e(t){var n=Ow(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ki([n.borderBoxSize]),this.contentBoxSize=ki([n.contentBoxSize]),this.devicePixelContentBoxSize=ki([n.devicePixelContentBoxSize])}return e}(),zw=function(e){if(Iw(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},rO=function(){var e=1/0,t=[];Si.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new oO(c.target),d=zw(c.target);s.push(u),c.lastReportedSize=Mw(c.target,c.observedBox),de?n.activeTargets.push(r):n.skippedTargets.push(r))})})},iO=function(){var e=0;for(Lb(e);Y8();)e=rO(),Lb(e);return Q8()&&J8(),e>0},Hd,Fw=[],aO=function(){return Fw.splice(0).forEach(function(e){return e()})},sO=function(e){if(!Hd){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return aO()}).observe(n,o),Hd=function(){n.textContent="".concat(t?t--:t++)}}Fw.push(e),Hd()},lO=function(e){sO(function(){requestAnimationFrame(e)})},uc=0,cO=function(){return!!uc},uO=250,dO={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bb=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Nb=function(e){return e===void 0&&(e=0),Date.now()+e},jd=!1,fO=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=uO),!jd){jd=!0;var o=Nb(t);lO(function(){var r=!1;try{r=iO()}finally{if(jd=!1,t=o-Nb(),!cO())return;r?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,dO)};document.body?n():As.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Bb.forEach(function(n){return As.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Bb.forEach(function(n){return As.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ch=new fO,Hb=function(e){!uc&&e>0&&Ch.start(),uc+=e,!uc&&Ch.stop()},hO=function(e){return!Gp(e)&&!eO(e)&&getComputedStyle(e).display==="inline"},pO=function(){function e(t,n){this.target=t,this.observedBox=n||Qs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Mw(this.target,this.observedBox,!0);return hO(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),mO=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Fl=new WeakMap,jb=function(e,t){for(var n=0;n=0&&(i&&Si.splice(Si.indexOf(o),1),o.observationTargets.splice(r,1),Hb(-1))},e.disconnect=function(t){var n=this,o=Fl.get(t);o.observationTargets.slice().forEach(function(r){return n.unobserve(t,r.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),gO=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Dl.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zb(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Dl.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zb(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Dl.unobserve(this,t)},e.prototype.disconnect=function(){Dl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class vO{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||gO)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const o=this.elHandlersMap.get(n.target);o!==void 0&&o(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const $c=new vO,ur=xe({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=no().proxy;function o(r){const{onResize:i}=e;i!==void 0&&i(r)}jt(()=>{const r=n.$el;if(r===void 0){Eb("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){Eb("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&($c.registerHandler(r.nextElementSibling,o),t=!0)}),on(()=>{t&&$c.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jc(this.$slots,"default")}});let Ll;function bO(){return typeof document>"u"?!1:(Ll===void 0&&("matchMedia"in window?Ll=window.matchMedia("(pointer:coarse)").matches:Ll=!1),Ll)}let Ud;function Ub(){return typeof document>"u"?1:(Ud===void 0&&(Ud="chrome"in window?window.devicePixelRatio:1),Ud)}const yO=Fr(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Fr("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Fr("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Dw=xe({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Di();yO.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:qp,ssr:t}),jt(()=>{const{defaultScrollIndex:R,defaultScrollKey:E}=e;R!=null?p({index:R}):E!=null&&p({key:E})});let n=!1,o=!1;sp(()=>{if(n=!1,!o){o=!0;return}p({top:d.value,left:u})}),Xc(()=>{n=!0,o||(o=!0)});const r=I(()=>{const R=new Map,{keyField:E}=e;return e.items.forEach((q,D)=>{R.set(q[E],D)}),R}),i=U(null),a=U(void 0),s=new Map,l=I(()=>{const{items:R,itemSize:E,keyField:q}=e,D=new j8(R.length,E);return R.forEach((B,M)=>{const K=B[q],V=s.get(K);V!==void 0&&D.add(M,V)}),D}),c=U(0);let u=0;const d=U(0),f=kt(()=>Math.max(l.value.getBound(d.value-bn(e.paddingTop))-1,0)),h=I(()=>{const{value:R}=a;if(R===void 0)return[];const{items:E,itemSize:q}=e,D=f.value,B=Math.min(D+Math.ceil(R/q+1),E.length-1),M=[];for(let K=D;K<=B;++K)M.push(E[K]);return M}),p=(R,E)=>{if(typeof R=="number"){w(R,E,"auto");return}const{left:q,top:D,index:B,key:M,position:K,behavior:V,debounce:ae=!0}=R;if(q!==void 0||D!==void 0)w(q,D,V);else if(B!==void 0)b(B,V,ae);else if(M!==void 0){const pe=r.value.get(M);pe!==void 0&&b(pe,V,ae)}else K==="bottom"?w(0,Number.MAX_SAFE_INTEGER,V):K==="top"&&w(0,0,V)};let g,m=null;function b(R,E,q){const{value:D}=l,B=D.sum(R)+bn(e.paddingTop);if(!q)i.value.scrollTo({left:0,top:B,behavior:E});else{g=R,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{g=void 0,m=null},16);const{scrollTop:M,offsetHeight:K}=i.value;if(B>M){const V=D.get(R);B+V<=M+K||i.value.scrollTo({left:0,top:B+V-K,behavior:E})}else i.value.scrollTo({left:0,top:B,behavior:E})}}function w(R,E,q){i.value.scrollTo({left:R,top:E,behavior:q})}function C(R,E){var q,D,B;if(n||e.ignoreItemResize||T(E.target))return;const{value:M}=l,K=r.value.get(R),V=M.get(K),ae=(B=(D=(q=E.borderBoxSize)===null||q===void 0?void 0:q[0])===null||D===void 0?void 0:D.blockSize)!==null&&B!==void 0?B:E.contentRect.height;if(ae===V)return;ae-e.itemSize===0?s.delete(R):s.set(R,ae-e.itemSize);const Z=ae-V;if(Z===0)return;M.add(K,Z);const N=i.value;if(N!=null){if(g===void 0){const O=M.sum(K);N.scrollTop>O&&N.scrollBy(0,Z)}else if(KN.scrollTop+N.offsetHeight&&N.scrollBy(0,Z)}k()}c.value++}const _=!bO();let S=!1;function y(R){var E;(E=e.onScroll)===null||E===void 0||E.call(e,R),(!_||!S)&&k()}function x(R){var E;if((E=e.onWheel)===null||E===void 0||E.call(e,R),_){const q=i.value;if(q!=null){if(R.deltaX===0&&(q.scrollTop===0&&R.deltaY<=0||q.scrollTop+q.offsetHeight>=q.scrollHeight&&R.deltaY>=0))return;R.preventDefault(),q.scrollTop+=R.deltaY/Ub(),q.scrollLeft+=R.deltaX/Ub(),k(),S=!0,Tc(()=>{S=!1})}}}function P(R){if(n||T(R.target)||R.contentRect.height===a.value)return;a.value=R.contentRect.height;const{onResize:E}=e;E!==void 0&&E(R)}function k(){const{value:R}=i;R!=null&&(d.value=R.scrollTop,u=R.scrollLeft)}function T(R){let E=R;for(;E!==null;){if(E.style.display==="none")return!0;E=E.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:r,itemsStyle:I(()=>{const{itemResizable:R}=e,E=zn(l.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:R?"":E,minHeight:R?E:"",paddingTop:zn(e.paddingTop),paddingBottom:zn(e.paddingBottom)}]}),visibleItemsStyle:I(()=>(c.value,{transform:`translateY(${zn(l.value.sum(f.value))})`})),viewportItems:h,listElRef:i,itemsElRef:U(null),scrollTo:p,handleListResize:P,handleListScroll:y,handleListWheel:x,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return v(ur,{onResize:this.handleListResize},{default:()=>{var r,i;return v("div",Ln(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?v("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[v(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const s=a[t],l=n.get(s),c=this.$slots.default({item:a,index:l})[0];return e?v(ur,{key:s,onResize:u=>this.handleItemResize(s,u)},{default:()=>c}):(c.key=s,c)})})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),or="v-hidden",xO=Fr("[v-hidden]",{display:"none!important"}),wh=xe({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=U(null),o=U(null);function r(a){const{value:s}=n,{getCounter:l,getTail:c}=e;let u;if(l!==void 0?u=l():u=o.value,!s||!u)return;u.hasAttribute(or)&&u.removeAttribute(or);const{children:d}=s;if(a.showAllItemsBeforeCalculate)for(const C of d)C.hasAttribute(or)&&C.removeAttribute(or);const f=s.offsetWidth,h=[],p=t.tail?c==null?void 0:c():null;let g=p?p.offsetWidth:0,m=!1;const b=s.children.length-(t.tail?1:0);for(let C=0;Cf){const{updateCounter:y}=e;for(let x=C;x>=0;--x){const P=b-1-x;y!==void 0?y(P):u.textContent=`${P}`;const k=u.offsetWidth;if(g-=h[x],g+k<=f||x===0){m=!0,C=x-1,p&&(C===-1?(p.style.maxWidth=`${f-k}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:T}=e;T&&T(P);break}}}}const{onUpdateOverflow:w}=e;m?w!==void 0&&w(!0):(w!==void 0&&w(!1),u.setAttribute(or,""))}const i=Di();return xO.mount({id:"vueuc/overflow",head:!0,anchorMetaName:qp,ssr:i}),jt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return Ht(()=>this.sync({showAllItemsBeforeCalculate:!1})),v("div",{class:"v-overflow",ref:"selfRef"},[Jc(e,"default"),e.counter?e.counter():v("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Lw(e){return e instanceof HTMLElement}function Bw(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Lw(n)&&(Hw(n)||Nw(n)))return!0}return!1}function Hw(e){if(!CO(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function CO(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))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}}let ss=[];const Xp=xe({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Qr(),n=U(null),o=U(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return ss[ss.length-1]===t}function l(m){var b;m.code==="Escape"&&s()&&((b=e.onEsc)===null||b===void 0||b.call(e,m))}jt(()=>{ft(()=>e.active,m=>{m?(d(),$t("keydown",document,l)):(Tt("keydown",document,l),r&&f())},{immediate:!0})}),on(()=>{Tt("keydown",document,l),r&&f()});function c(m){if(!i&&s()){const b=u();if(b===null||b.contains($i(m)))return;h("first")}}function u(){const m=n.value;if(m===null)return null;let b=m;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function d(){var m;if(!e.disabled){if(ss.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?h("first"):(m=Ab(b))===null||m===void 0||m.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),ss=ss.filter(w=>w!==t),s()))return;const{finalFocusTo:b}=e;b!==void 0?(m=Ab(b))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(m){if(s()&&e.active){const b=n.value,w=o.value;if(b!==null&&w!==null){const C=u();if(C==null||C===w){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const _=m==="first"?Bw(C):Nw(C);i=!1,_||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const b=u();b!==null&&(m.relatedTarget!==null&&b.contains(m.relatedTarget)?h("last"):h("first"))}function g(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?h("last"):h("first"))}return{focusableStartRef:n,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return v(rt,null,[v("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),v("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function jw(e,t){t&&(jt(()=>{const{value:n}=e;n&&$c.registerHandler(n,t)}),on(()=>{const{value:n}=e;n&&$c.unregisterHandler(n)}))}let oa=0,Vb="",Wb="",qb="",Kb="";const _h=U("0px");function Uw(e){if(typeof document>"u")return;const t=document.documentElement;let n,o=!1;const r=()=>{t.style.marginRight=Vb,t.style.overflow=Wb,t.style.overflowX=qb,t.style.overflowY=Kb,_h.value="0px"};jt(()=>{n=ft(e,i=>{if(i){if(!oa){const a=window.innerWidth-t.offsetWidth;a>0&&(Vb=t.style.marginRight,t.style.marginRight=`${a}px`,_h.value=`${a}px`),Wb=t.style.overflow,qb=t.style.overflowX,Kb=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,oa++}else oa--,oa||r(),o=!1},{immediate:!0})}),on(()=>{n==null||n(),o&&(oa--,oa||r(),o=!1)})}const Yp=U(!1);function Gb(){Yp.value=!0}function Xb(){Yp.value=!1}let ls=0;function Vw(){return pr&&(hn(()=>{ls||(window.addEventListener("compositionstart",Gb),window.addEventListener("compositionend",Xb)),ls++}),on(()=>{ls<=1?(window.removeEventListener("compositionstart",Gb),window.removeEventListener("compositionend",Xb),ls=0):ls--})),Yp}function Qp(e){const t={isDeactivated:!1};let n=!1;return sp(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Xc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function Yb(e){return e.nodeName==="#document"}function wO(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}const Qb="n-form-item";function mr(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=Ve(Qb,null);at(Qb,null);const i=I(n?()=>n(r):()=>{const{size:l}=e;if(l)return l;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),a=I(o?()=>o(r):()=>{const{disabled:l}=e;return l!==void 0?l:r?r.disabled.value:!1}),s=I(()=>{const{status:l}=e;return l||(r==null?void 0:r.mergedValidationStatus.value)});return on(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var _O=typeof global=="object"&&global&&global.Object===Object&&global;const Ww=_O;var SO=typeof self=="object"&&self&&self.Object===Object&&self,kO=Ww||SO||Function("return this")();const Io=kO;var PO=Io.Symbol;const Hr=PO;var qw=Object.prototype,TO=qw.hasOwnProperty,EO=qw.toString,cs=Hr?Hr.toStringTag:void 0;function RO(e){var t=TO.call(e,cs),n=e[cs];try{e[cs]=void 0;var o=!0}catch{}var r=EO.call(e);return o&&(t?e[cs]=n:delete e[cs]),r}var AO=Object.prototype,$O=AO.toString;function IO(e){return $O.call(e)}var OO="[object Null]",MO="[object Undefined]",Jb=Hr?Hr.toStringTag:void 0;function Li(e){return e==null?e===void 0?MO:OO:Jb&&Jb in Object(e)?RO(e):IO(e)}function jr(e){return e!=null&&typeof e=="object"}var zO="[object Symbol]";function Pu(e){return typeof e=="symbol"||jr(e)&&Li(e)==zO}function Kw(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=vM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function CM(e){return function(){return e}}var wM=function(){try{var e=Ni(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ic=wM;var _M=Ic?function(e,t){return Ic(e,"toString",{configurable:!0,enumerable:!1,value:CM(t),writable:!0})}:Jp;const SM=_M;var kM=xM(SM);const PM=kM;var TM=9007199254740991,EM=/^(?:0|[1-9]\d*)$/;function em(e,t){var n=typeof e;return t=t??TM,!!t&&(n=="number"||n!="symbol"&&EM.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=zM}function Ua(e){return e!=null&&nm(e.length)&&!Zp(e)}function FM(e,t,n){if(!Go(n))return!1;var o=typeof t;return(o=="number"?Ua(n)&&em(t,n.length):o=="string"&&t in n)?cl(n[t],e):!1}function DM(e){return MM(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&FM(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function ez(e,t){var n=this.__data__,o=Tu(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=o?e:Sz(e,t,n)}var Pz="\\ud800-\\udfff",Tz="\\u0300-\\u036f",Ez="\\ufe20-\\ufe2f",Rz="\\u20d0-\\u20ff",Az=Tz+Ez+Rz,$z="\\ufe0e\\ufe0f",Iz="\\u200d",Oz=RegExp("["+Iz+Pz+Az+$z+"]");function a_(e){return Oz.test(e)}function Mz(e){return e.split("")}var s_="\\ud800-\\udfff",zz="\\u0300-\\u036f",Fz="\\ufe20-\\ufe2f",Dz="\\u20d0-\\u20ff",Lz=zz+Fz+Dz,Bz="\\ufe0e\\ufe0f",Nz="["+s_+"]",Ph="["+Lz+"]",Th="\\ud83c[\\udffb-\\udfff]",Hz="(?:"+Ph+"|"+Th+")",l_="[^"+s_+"]",c_="(?:\\ud83c[\\udde6-\\uddff]){2}",u_="[\\ud800-\\udbff][\\udc00-\\udfff]",jz="\\u200d",d_=Hz+"?",f_="["+Bz+"]?",Uz="(?:"+jz+"(?:"+[l_,c_,u_].join("|")+")"+f_+d_+")*",Vz=f_+d_+Uz,Wz="(?:"+[l_+Ph+"?",Ph,c_,u_,Nz].join("|")+")",qz=RegExp(Th+"(?="+Th+")|"+Wz+Vz,"g");function Kz(e){return e.match(qz)||[]}function Gz(e){return a_(e)?Kz(e):Mz(e)}function Xz(e){return function(t){t=Oi(t);var n=a_(t)?Gz(t):void 0,o=n?n[0]:t.charAt(0),r=n?kz(n,1).join(""):t.slice(1);return o[e]()+r}}var Yz=Xz("toUpperCase");const h_=Yz;function Qz(e){return h_(Oi(e).toLowerCase())}function Jz(e,t,n,o){var r=-1,i=e==null?0:e.length;for(o&&i&&(n=e[++r]);++rs))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&kD?new Fc:void 0;for(i.set(e,t),i.set(t,e);++d`}function X8(e,t){const n=Ve(Dw,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:r}=n;r.has(e)||o!==null&&(r.add(e),o.push(G8(e,t)))}const Y8=typeof document<"u";function Bi(){if(Y8)return;const e=Ve(Dw,null);if(e!==null)return{adapter:X8,context:e}}function zb(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Dr}=kw(),Zp="vueuc-style";function Fb(e){return e&-e}class Q8{constructor(t,n){this.l=t,this.min=n;const o=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*o;for(;t>0;)i+=n[t],t-=Fb(t);return i}getBound(t){let n=0,o=this.l;for(;o>n;){const r=Math.floor((n+o)/2),i=this.sum(r);if(i>t){o=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?kh("lazy-teleport",this.$slots):v(ru,{disabled:this.disabled,to:this.mergedTo},kh("lazy-teleport",this.$slots)):null}}),Ll={top:"bottom",bottom:"top",left:"right",right:"left"},Lb={start:"end",center:"center",end:"start"},Wd={top:"height",bottom:"height",left:"width",right:"width"},J8={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Z8={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},eO={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Bb={top:!0,bottom:!1,left:!0,right:!1},Nb={top:"end",bottom:"start",left:"end",right:"start"};function tO(e,t,n,o,r,i){if(!r||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const u=(h,p,g)=>{let m=0,b=0;const w=n[h]-t[p]-t[h];return w>0&&o&&(g?b=Bb[p]?w:-w:m=Bb[p]?w:-w),{left:m,top:b}},d=a==="left"||a==="right";if(l!=="center"){const h=eO[e],p=Ll[h],g=Wd[h];if(n[g]>t[g]){if(t[h]+t[g]t[p]&&(l=Lb[s])}else{const h=a==="bottom"||a==="top"?"left":"top",p=Ll[h],g=Wd[h],m=(n[g]-t[g])/2;(t[h]t[p]?(l=Nb[h],c=u(g,h,d)):(l=Nb[p],c=u(g,p,d)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),em=ye({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Ve("VBinder"),n=kt(()=>e.enabled!==void 0?e.enabled:e.show),o=j(null),r=j(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};jt(()=>{n.value&&(l(),i())});const s=Bi();rO.mount({id:"vueuc/binder",head:!0,anchorMetaName:Zp,ssr:s}),on(()=>{a()}),T8(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const f=o.value;if(f===null)return;const h=t.targetRef,{x:p,y:g,overlap:m}=e,b=p!==void 0&&g!==void 0?B8(p,g):Ud(h);f.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:w,minWidth:C,placement:_,internalShift:S,flip:y}=e;f.setAttribute("v-placement",_),m?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:x}=f;w==="target"?x.width=`${b.width}px`:w!==void 0?x.width=w:x.width="",C==="target"?x.minWidth=`${b.width}px`:C!==void 0?x.minWidth=C:x.minWidth="";const k=Ud(f),P=Ud(r.value),{left:T,top:$,placement:E}=tO(_,b,k,S,y,m),G=nO(E,m),{left:B,top:D,transform:L}=oO(E,P,b,$,T,m);f.setAttribute("v-placement",E),f.style.setProperty("--v-offset-left",`${Math.round(T)}px`),f.style.setProperty("--v-offset-top",`${Math.round($)}px`),f.style.transform=`translateX(${B}) translateY(${D}) ${L}`,f.style.setProperty("--v-transform-origin",G),f.style.transformOrigin=G};ut(n,f=>{f?(i(),c()):a()});const c=()=>{Ht().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{ut(Ue(e,f),l)}),["teleportDisabled"].forEach(f=>{ut(Ue(e,f),c)}),ut(Ue(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const u=ti(),d=kt(()=>{const{to:f}=e;if(f!==void 0)return f;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:r,followerRef:o,mergedTo:d,syncPosition:l}},render(){return v(Eu,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=v("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[v("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?dn(n,[[Ru,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Pi=[],iO=function(){return Pi.some(function(e){return e.activeTargets.length>0})},aO=function(){return Pi.some(function(e){return e.skippedTargets.length>0})},Hb="ResizeObserver loop completed with undelivered notifications.",sO=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Hb}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Hb),window.dispatchEvent(e)},el;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(el||(el={}));var Ti=function(e){return Object.freeze(e)},lO=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ti(this)}return e}(),Lw=function(){function e(t,n,o,r){return this.x=t,this.y=n,this.width=o,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ti(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,r=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:o,top:r,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),tm=function(e){return e instanceof SVGElement&&"getBBox"in e},Bw=function(e){if(tm(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var r=e,i=r.offsetWidth,a=r.offsetHeight;return!(i||a||e.getClientRects().length)},jb=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},cO=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Os=typeof window<"u"?window:{},Bl=new WeakMap,Ub=/auto|scroll/,uO=/^tb|vertical/,dO=/msie|trident/i.test(Os.navigator&&Os.navigator.userAgent),Do=function(e){return parseFloat(e||"0")},ba=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new lO((n?t:e)||0,(n?e:t)||0)},Vb=Ti({devicePixelContentBoxSize:ba(),borderBoxSize:ba(),contentBoxSize:ba(),contentRect:new Lw(0,0,0,0)}),Nw=function(e,t){if(t===void 0&&(t=!1),Bl.has(e)&&!t)return Bl.get(e);if(Bw(e))return Bl.set(e,Vb),Vb;var n=getComputedStyle(e),o=tm(e)&&e.ownerSVGElement&&e.getBBox(),r=!dO&&n.boxSizing==="border-box",i=uO.test(n.writingMode||""),a=!o&&Ub.test(n.overflowY||""),s=!o&&Ub.test(n.overflowX||""),l=o?0:Do(n.paddingTop),c=o?0:Do(n.paddingRight),u=o?0:Do(n.paddingBottom),d=o?0:Do(n.paddingLeft),f=o?0:Do(n.borderTopWidth),h=o?0:Do(n.borderRightWidth),p=o?0:Do(n.borderBottomWidth),g=o?0:Do(n.borderLeftWidth),m=d+c,b=l+u,w=g+h,C=f+p,_=s?e.offsetHeight-C-e.clientHeight:0,S=a?e.offsetWidth-w-e.clientWidth:0,y=r?m+w:0,x=r?b+C:0,k=o?o.width:Do(n.width)-y-S,P=o?o.height:Do(n.height)-x-_,T=k+m+S+w,$=P+b+_+C,E=Ti({devicePixelContentBoxSize:ba(Math.round(k*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:ba(T,$,i),contentBoxSize:ba(k,P,i),contentRect:new Lw(d,l,k,P)});return Bl.set(e,E),E},Hw=function(e,t,n){var o=Nw(e,n),r=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case el.DEVICE_PIXEL_CONTENT_BOX:return a;case el.BORDER_BOX:return r;default:return i}},fO=function(){function e(t){var n=Nw(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ti([n.borderBoxSize]),this.contentBoxSize=Ti([n.contentBoxSize]),this.devicePixelContentBoxSize=Ti([n.devicePixelContentBoxSize])}return e}(),jw=function(e){if(Bw(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},hO=function(){var e=1/0,t=[];Pi.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var u=new fO(c.target),d=jw(c.target);s.push(u),c.lastReportedSize=Hw(c.target,c.observedBox),de?n.activeTargets.push(r):n.skippedTargets.push(r))})})},pO=function(){var e=0;for(Wb(e);iO();)e=hO(),Wb(e);return aO()&&sO(),e>0},qd,Uw=[],mO=function(){return Uw.splice(0).forEach(function(e){return e()})},gO=function(e){if(!qd){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return mO()}).observe(n,o),qd=function(){n.textContent="".concat(t?t--:t++)}}Uw.push(e),qd()},vO=function(e){gO(function(){requestAnimationFrame(e)})},mc=0,bO=function(){return!!mc},yO=250,xO={attributes:!0,characterData:!0,childList:!0,subtree:!0},qb=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Kb=function(e){return e===void 0&&(e=0),Date.now()+e},Kd=!1,CO=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=yO),!Kd){Kd=!0;var o=Kb(t);vO(function(){var r=!1;try{r=pO()}finally{if(Kd=!1,t=o-Kb(),!bO())return;r?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,xO)};document.body?n():Os.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qb.forEach(function(n){return Os.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),qb.forEach(function(n){return Os.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Th=new CO,Gb=function(e){!mc&&e>0&&Th.start(),mc+=e,!mc&&Th.stop()},wO=function(e){return!tm(e)&&!cO(e)&&getComputedStyle(e).display==="inline"},_O=function(){function e(t,n){this.target=t,this.observedBox=n||el.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Hw(this.target,this.observedBox,!0);return wO(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),SO=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Nl=new WeakMap,Xb=function(e,t){for(var n=0;n=0&&(i&&Pi.splice(Pi.indexOf(o),1),o.observationTargets.splice(r,1),Gb(-1))},e.disconnect=function(t){var n=this,o=Nl.get(t);o.observationTargets.slice().forEach(function(r){return n.unobserve(t,r.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),kO=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Hl.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!jb(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Hl.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!jb(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Hl.unobserve(this,t)},e.prototype.disconnect=function(){Hl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class PO{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||kO)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const o=this.elHandlersMap.get(n.target);o!==void 0&&o(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Fc=new PO,ur=ye({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=no().proxy;function o(r){const{onResize:i}=e;i!==void 0&&i(r)}jt(()=>{const r=n.$el;if(r===void 0){zb("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){zb("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(Fc.registerHandler(r.nextElementSibling,o),t=!0)}),on(()=>{t&&Fc.unregisterHandler(n.$el.nextElementSibling)})},render(){return ou(this.$slots,"default")}});let jl;function TO(){return typeof document>"u"?!1:(jl===void 0&&("matchMedia"in window?jl=window.matchMedia("(pointer:coarse)").matches:jl=!1),jl)}let Gd;function Yb(){return typeof document>"u"?1:(Gd===void 0&&(Gd="chrome"in window?window.devicePixelRatio:1),Gd)}const AO=Dr(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Dr("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Dr("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Vw=ye({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Bi();AO.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Zp,ssr:t}),jt(()=>{const{defaultScrollIndex:$,defaultScrollKey:E}=e;$!=null?p({index:$}):E!=null&&p({key:E})});let n=!1,o=!1;pp(()=>{if(n=!1,!o){o=!0;return}p({top:d.value,left:u})}),eu(()=>{n=!0,o||(o=!0)});const r=M(()=>{const $=new Map,{keyField:E}=e;return e.items.forEach((G,B)=>{$.set(G[E],B)}),$}),i=j(null),a=j(void 0),s=new Map,l=M(()=>{const{items:$,itemSize:E,keyField:G}=e,B=new Q8($.length,E);return $.forEach((D,L)=>{const X=D[G],V=s.get(X);V!==void 0&&B.add(L,V)}),B}),c=j(0);let u=0;const d=j(0),f=kt(()=>Math.max(l.value.getBound(d.value-bn(e.paddingTop))-1,0)),h=M(()=>{const{value:$}=a;if($===void 0)return[];const{items:E,itemSize:G}=e,B=f.value,D=Math.min(B+Math.ceil($/G+1),E.length-1),L=[];for(let X=B;X<=D;++X)L.push(E[X]);return L}),p=($,E)=>{if(typeof $=="number"){w($,E,"auto");return}const{left:G,top:B,index:D,key:L,position:X,behavior:V,debounce:ae=!0}=$;if(G!==void 0||B!==void 0)w(G,B,V);else if(D!==void 0)b(D,V,ae);else if(L!==void 0){const ue=r.value.get(L);ue!==void 0&&b(ue,V,ae)}else X==="bottom"?w(0,Number.MAX_SAFE_INTEGER,V):X==="top"&&w(0,0,V)};let g,m=null;function b($,E,G){const{value:B}=l,D=B.sum($)+bn(e.paddingTop);if(!G)i.value.scrollTo({left:0,top:D,behavior:E});else{g=$,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{g=void 0,m=null},16);const{scrollTop:L,offsetHeight:X}=i.value;if(D>L){const V=B.get($);D+V<=L+X||i.value.scrollTo({left:0,top:D+V-X,behavior:E})}else i.value.scrollTo({left:0,top:D,behavior:E})}}function w($,E,G){i.value.scrollTo({left:$,top:E,behavior:G})}function C($,E){var G,B,D;if(n||e.ignoreItemResize||T(E.target))return;const{value:L}=l,X=r.value.get($),V=L.get(X),ae=(D=(B=(G=E.borderBoxSize)===null||G===void 0?void 0:G[0])===null||B===void 0?void 0:B.blockSize)!==null&&D!==void 0?D:E.contentRect.height;if(ae===V)return;ae-e.itemSize===0?s.delete($):s.set($,ae-e.itemSize);const ee=ae-V;if(ee===0)return;L.add(X,ee);const R=i.value;if(R!=null){if(g===void 0){const A=L.sum(X);R.scrollTop>A&&R.scrollBy(0,ee)}else if(XR.scrollTop+R.offsetHeight&&R.scrollBy(0,ee)}P()}c.value++}const _=!TO();let S=!1;function y($){var E;(E=e.onScroll)===null||E===void 0||E.call(e,$),(!_||!S)&&P()}function x($){var E;if((E=e.onWheel)===null||E===void 0||E.call(e,$),_){const G=i.value;if(G!=null){if($.deltaX===0&&(G.scrollTop===0&&$.deltaY<=0||G.scrollTop+G.offsetHeight>=G.scrollHeight&&$.deltaY>=0))return;$.preventDefault(),G.scrollTop+=$.deltaY/Yb(),G.scrollLeft+=$.deltaX/Yb(),P(),S=!0,Ic(()=>{S=!1})}}}function k($){if(n||T($.target)||$.contentRect.height===a.value)return;a.value=$.contentRect.height;const{onResize:E}=e;E!==void 0&&E($)}function P(){const{value:$}=i;$!=null&&(d.value=$.scrollTop,u=$.scrollLeft)}function T($){let E=$;for(;E!==null;){if(E.style.display==="none")return!0;E=E.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:r,itemsStyle:M(()=>{const{itemResizable:$}=e,E=zn(l.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:$?"":E,minHeight:$?E:"",paddingTop:zn(e.paddingTop),paddingBottom:zn(e.paddingBottom)}]}),visibleItemsStyle:M(()=>(c.value,{transform:`translateY(${zn(l.value.sum(f.value))})`})),viewportItems:h,listElRef:i,itemsElRef:j(null),scrollTo:p,handleListResize:k,handleListScroll:y,handleListWheel:x,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return v(ur,{onResize:this.handleListResize},{default:()=>{var r,i;return v("div",Ln(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?v("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[v(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const s=a[t],l=n.get(s),c=this.$slots.default({item:a,index:l})[0];return e?v(ur,{key:s,onResize:u=>this.handleItemResize(s,u)},{default:()=>c}):(c.key=s,c)})})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),or="v-hidden",RO=Dr("[v-hidden]",{display:"none!important"}),Ah=ye({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=j(null),o=j(null);function r(a){const{value:s}=n,{getCounter:l,getTail:c}=e;let u;if(l!==void 0?u=l():u=o.value,!s||!u)return;u.hasAttribute(or)&&u.removeAttribute(or);const{children:d}=s;if(a.showAllItemsBeforeCalculate)for(const C of d)C.hasAttribute(or)&&C.removeAttribute(or);const f=s.offsetWidth,h=[],p=t.tail?c==null?void 0:c():null;let g=p?p.offsetWidth:0,m=!1;const b=s.children.length-(t.tail?1:0);for(let C=0;Cf){const{updateCounter:y}=e;for(let x=C;x>=0;--x){const k=b-1-x;y!==void 0?y(k):u.textContent=`${k}`;const P=u.offsetWidth;if(g-=h[x],g+P<=f||x===0){m=!0,C=x-1,p&&(C===-1?(p.style.maxWidth=`${f-P}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:T}=e;T&&T(k);break}}}}const{onUpdateOverflow:w}=e;m?w!==void 0&&w(!0):(w!==void 0&&w(!1),u.setAttribute(or,""))}const i=Bi();return RO.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Zp,ssr:i}),jt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return Ht(()=>this.sync({showAllItemsBeforeCalculate:!1})),v("div",{class:"v-overflow",ref:"selfRef"},[ou(e,"default"),e.counter?e.counter():v("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Ww(e){return e instanceof HTMLElement}function qw(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Ww(n)&&(Gw(n)||Kw(n)))return!0}return!1}function Gw(e){if(!EO(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function EO(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))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}}let us=[];const nm=ye({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Zr(),n=j(null),o=j(null);let r=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return us[us.length-1]===t}function l(m){var b;m.code==="Escape"&&s()&&((b=e.onEsc)===null||b===void 0||b.call(e,m))}jt(()=>{ut(()=>e.active,m=>{m?(d(),$t("keydown",document,l)):(Tt("keydown",document,l),r&&f())},{immediate:!0})}),on(()=>{Tt("keydown",document,l),r&&f()});function c(m){if(!i&&s()){const b=u();if(b===null||b.contains(Oi(m)))return;h("first")}}function u(){const m=n.value;if(m===null)return null;let b=m;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function d(){var m;if(!e.disabled){if(us.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?h("first"):(m=Db(b))===null||m===void 0||m.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),us=us.filter(w=>w!==t),s()))return;const{finalFocusTo:b}=e;b!==void 0?(m=Db(b))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(m){if(s()&&e.active){const b=n.value,w=o.value;if(b!==null&&w!==null){const C=u();if(C==null||C===w){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const _=m==="first"?qw(C):Kw(C);i=!1,_||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const b=u();b!==null&&(m.relatedTarget!==null&&b.contains(m.relatedTarget)?h("last"):h("first"))}function g(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?h("last"):h("first"))}return{focusableStartRef:n,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return v(rt,null,[v("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),v("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Xw(e,t){t&&(jt(()=>{const{value:n}=e;n&&Fc.registerHandler(n,t)}),on(()=>{const{value:n}=e;n&&Fc.unregisterHandler(n)}))}let ia=0,Qb="",Jb="",Zb="",e0="";const Rh=j("0px");function Yw(e){if(typeof document>"u")return;const t=document.documentElement;let n,o=!1;const r=()=>{t.style.marginRight=Qb,t.style.overflow=Jb,t.style.overflowX=Zb,t.style.overflowY=e0,Rh.value="0px"};jt(()=>{n=ut(e,i=>{if(i){if(!ia){const a=window.innerWidth-t.offsetWidth;a>0&&(Qb=t.style.marginRight,t.style.marginRight=`${a}px`,Rh.value=`${a}px`),Jb=t.style.overflow,Zb=t.style.overflowX,e0=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}o=!0,ia++}else ia--,ia||r(),o=!1},{immediate:!0})}),on(()=>{n==null||n(),o&&(ia--,ia||r(),o=!1)})}const om=j(!1);function t0(){om.value=!0}function n0(){om.value=!1}let ds=0;function Qw(){return pr&&(hn(()=>{ds||(window.addEventListener("compositionstart",t0),window.addEventListener("compositionend",n0)),ds++}),on(()=>{ds<=1?(window.removeEventListener("compositionstart",t0),window.removeEventListener("compositionend",n0),ds=0):ds--})),om}function rm(e){const t={isDeactivated:!1};let n=!1;return pp(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),eu(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function o0(e){return e.nodeName==="#document"}function $O(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}const r0="n-form-item";function mr(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=Ve(r0,null);at(r0,null);const i=M(n?()=>n(r):()=>{const{size:l}=e;if(l)return l;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),a=M(o?()=>o(r):()=>{const{disabled:l}=e;return l!==void 0?l:r?r.disabled.value:!1}),s=M(()=>{const{status:l}=e;return l||(r==null?void 0:r.mergedValidationStatus.value)});return on(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var IO=typeof global=="object"&&global&&global.Object===Object&&global;const Jw=IO;var OO=typeof self=="object"&&self&&self.Object===Object&&self,MO=Jw||OO||Function("return this")();const Io=MO;var zO=Io.Symbol;const Ur=zO;var Zw=Object.prototype,FO=Zw.hasOwnProperty,DO=Zw.toString,fs=Ur?Ur.toStringTag:void 0;function LO(e){var t=FO.call(e,fs),n=e[fs];try{e[fs]=void 0;var o=!0}catch{}var r=DO.call(e);return o&&(t?e[fs]=n:delete e[fs]),r}var BO=Object.prototype,NO=BO.toString;function HO(e){return NO.call(e)}var jO="[object Null]",UO="[object Undefined]",i0=Ur?Ur.toStringTag:void 0;function Ni(e){return e==null?e===void 0?UO:jO:i0&&i0 in Object(e)?LO(e):HO(e)}function Vr(e){return e!=null&&typeof e=="object"}var VO="[object Symbol]";function $u(e){return typeof e=="symbol"||Vr(e)&&Ni(e)==VO}function e_(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=PM)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function EM(e){return function(){return e}}var $M=function(){try{var e=ji(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Dc=$M;var IM=Dc?function(e,t){return Dc(e,"toString",{configurable:!0,enumerable:!1,value:EM(t),writable:!0})}:im;const OM=IM;var MM=RM(OM);const zM=MM;var FM=9007199254740991,DM=/^(?:0|[1-9]\d*)$/;function sm(e,t){var n=typeof e;return t=t??FM,!!t&&(n=="number"||n!="symbol"&&DM.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=VM}function qa(e){return e!=null&&cm(e.length)&&!am(e)}function WM(e,t,n){if(!Go(n))return!1;var o=typeof t;return(o=="number"?qa(n)&&sm(t,n.length):o=="string"&&t in n)?fl(n[t],e):!1}function qM(e){return UM(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&WM(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function cz(e,t){var n=this.__data__,o=Iu(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=o?e:Oz(e,t,n)}var zz="\\ud800-\\udfff",Fz="\\u0300-\\u036f",Dz="\\ufe20-\\ufe2f",Lz="\\u20d0-\\u20ff",Bz=Fz+Dz+Lz,Nz="\\ufe0e\\ufe0f",Hz="\\u200d",jz=RegExp("["+Hz+zz+Bz+Nz+"]");function h_(e){return jz.test(e)}function Uz(e){return e.split("")}var p_="\\ud800-\\udfff",Vz="\\u0300-\\u036f",Wz="\\ufe20-\\ufe2f",qz="\\u20d0-\\u20ff",Kz=Vz+Wz+qz,Gz="\\ufe0e\\ufe0f",Xz="["+p_+"]",Ih="["+Kz+"]",Oh="\\ud83c[\\udffb-\\udfff]",Yz="(?:"+Ih+"|"+Oh+")",m_="[^"+p_+"]",g_="(?:\\ud83c[\\udde6-\\uddff]){2}",v_="[\\ud800-\\udbff][\\udc00-\\udfff]",Qz="\\u200d",b_=Yz+"?",y_="["+Gz+"]?",Jz="(?:"+Qz+"(?:"+[m_,g_,v_].join("|")+")"+y_+b_+")*",Zz=y_+b_+Jz,eF="(?:"+[m_+Ih+"?",Ih,g_,v_,Xz].join("|")+")",tF=RegExp(Oh+"(?="+Oh+")|"+eF+Zz,"g");function nF(e){return e.match(tF)||[]}function oF(e){return h_(e)?nF(e):Uz(e)}function rF(e){return function(t){t=zi(t);var n=h_(t)?oF(t):void 0,o=n?n[0]:t.charAt(0),r=n?Mz(n,1).join(""):t.slice(1);return o[e]()+r}}var iF=rF("toUpperCase");const x_=iF;function aF(e){return x_(zi(e).toLowerCase())}function sF(e,t,n,o){var r=-1,i=e==null?0:e.length;for(o&&i&&(n=e[++r]);++rs))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&MD?new Hc:void 0;for(i.set(e,t),i.set(t,e);++d{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:Ra,ssr:a}),s!=null&&s.preflightStyleDisabled||M_.mount({id:"n-global",head:!0,anchorMetaName:Ra,ssr:a})};a?c():hn(c)}return I(()=>{var c;const{theme:{common:u,self:d,peers:f={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=r,{common:g,peers:m}=h,{common:b=void 0,[e]:{common:w=void 0,self:C=void 0,peers:_={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:S=void 0,[e]:y={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:x,peers:P={}}=y,k=hs({},u||w||b||o.common,S,x,g),T=hs((c=d||C||o.self)===null||c===void 0?void 0:c(k),p,y,h);return{common:k,self:T,peers:hs({},o.peers,_,f),peerOverrides:hs({},p.peers,P,m)}})}Le.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const el="n";function st(e={},t={defaultBordered:!0}){const n=Ve(Ao,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:I(()=>{var o,r;const{bordered:i}=e;return i!==void 0?i:(r=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:Ia(el),namespaceRef:I(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function z_(){const e=Ve(Ao,null);return e?e.mergedClsPrefixRef:Ia(el)}const RL={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},AL=RL,$L={name:"zh-TW",global:{undo:"復原",redo:"重做",confirm:"確定",clear:"清除"},Popconfirm:{positiveText:"確定",negativeText:"取消"},Cascader:{placeholder:"請選擇",loading:"載入中",loadingRequiredMessage:e=>`載入全部 ${e} 的子節點後才可選擇`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy 年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"清除",now:"現在",confirm:"確定",selectTime:"選擇時間",selectDate:"選擇日期",datePlaceholder:"選擇日期",datetimePlaceholder:"選擇日期時間",monthPlaceholder:"選擇月份",yearPlaceholder:"選擇年份",quarterPlaceholder:"選擇季度",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",total:e=>`共 ${e} 項`,selected:e=>`已選 ${e} 項`},Empty:{description:"無資料"},Select:{placeholder:"請選擇"},TimePicker:{placeholder:"請選擇時間",positiveText:"確定",negativeText:"取消",now:"現在",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"頁"},DynamicTags:{add:"新增"},Log:{loading:"載入中"},Input:{placeholder:"請輸入"},InputNumber:{placeholder:"請輸入"},DynamicInput:{create:"新增"},ThemeEditor:{title:"主題編輯器",clearAllVars:"清除全部變數",clearSearch:"清除搜尋",filterCompName:"過濾組件名稱",filterVarName:"過濾變數名稱",import:"匯入",export:"匯出",restore:"恢復預設"},Image:{tipPrevious:"上一張(←)",tipNext:"下一張(→)",tipCounterclockwise:"向左旋轉",tipClockwise:"向右旋轉",tipZoomOut:"縮小",tipZoomIn:"放大",tipDownload:"下載",tipClose:"關閉(Esc)",tipOriginalSize:"縮放到原始尺寸"}},IL=$L,OL={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},F_=OL,ML={name:"ja-JP",global:{undo:"元に戻す",redo:"やり直す",confirm:"OK",clear:"クリア"},Popconfirm:{positiveText:"OK",negativeText:"キャンセル"},Cascader:{placeholder:"選択してください",loading:"ロード中",loadingRequiredMessage:e=>`すべての ${e} サブノードをロードしてから選択できます。`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"クリア",now:"現在",confirm:"OK",selectTime:"時間を選択",selectDate:"日付を選択",datePlaceholder:"日付を選択",datetimePlaceholder:"選択",monthPlaceholder:"月を選択",yearPlaceholder:"年を選択",quarterPlaceholder:"四半期を選択",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日",endDatePlaceholder:"終了日",startDatetimePlaceholder:"開始時間",endDatetimePlaceholder:"終了時間",startMonthPlaceholder:"開始月",endMonthPlaceholder:"終了月",monthBeforeYear:!1,firstDayOfWeek:0,today:"今日"},DataTable:{checkTableAll:"全選択",uncheckTableAll:"全選択取消",confirm:"OK",clear:"リセット"},LegacyTransfer:{sourceTitle:"元",targetTitle:"先"},Transfer:{selectAll:"全選択",unselectAll:"全選択取消",clearAll:"リセット",total:e=>`合計 ${e} 項目`,selected:e=>`${e} 個の項目を選択`},Empty:{description:"データなし"},Select:{placeholder:"選択してください"},TimePicker:{placeholder:"選択してください",positiveText:"OK",negativeText:"キャンセル",now:"現在",clear:"クリア"},Pagination:{goto:"ページジャンプ",selectionSuffix:"ページ"},DynamicTags:{add:"追加"},Log:{loading:"ロード中"},Input:{placeholder:"入力してください"},InputNumber:{placeholder:"入力してください"},DynamicInput:{create:"追加"},ThemeEditor:{title:"テーマエディタ",clearAllVars:"全件変数クリア",clearSearch:"検索クリア",filterCompName:"コンポネント名をフィルタ",filterVarName:"変数をフィルタ",import:"インポート",export:"エクスポート",restore:"デフォルト"},Image:{tipPrevious:"前の画像 (←)",tipNext:"次の画像 (→)",tipCounterclockwise:"左に回転",tipClockwise:"右に回転",tipZoomOut:"縮小",tipZoomIn:"拡大",tipDownload:"ダウンロード",tipClose:"閉じる (Esc)",tipOriginalSize:"元のサイズに戻す"}},zL=ML,FL={name:"ko-KR",global:{undo:"실행 취소",redo:"다시 실행",confirm:"확인",clear:"지우기"},Popconfirm:{positiveText:"확인",negativeText:"취소"},Cascader:{placeholder:"선택해 주세요",loading:"불러오는 중",loadingRequiredMessage:e=>`${e}의 모든 하위 항목을 불러온 뒤에 선택할 수 있습니다.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy년",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"지우기",now:"현재",confirm:"확인",selectTime:"시간 선택",selectDate:"날짜 선택",datePlaceholder:"날짜 선택",datetimePlaceholder:"날짜 및 시간 선택",monthPlaceholder:"월 선택",yearPlaceholder:"년 선택",quarterPlaceholder:"분기 선택",weekPlaceholder:"Select Week",startDatePlaceholder:"시작 날짜",endDatePlaceholder:"종료 날짜",startDatetimePlaceholder:"시작 날짜 및 시간",endDatetimePlaceholder:"종료 날짜 및 시간",startMonthPlaceholder:"시작 월",endMonthPlaceholder:"종료 월",monthBeforeYear:!1,firstDayOfWeek:6,today:"오늘"},DataTable:{checkTableAll:"모두 선택",uncheckTableAll:"모두 선택 해제",confirm:"확인",clear:"지우기"},LegacyTransfer:{sourceTitle:"원본",targetTitle:"타깃"},Transfer:{selectAll:"전체 선택",unselectAll:"전체 해제",clearAll:"전체 삭제",total:e=>`총 ${e} 개`,selected:e=>`${e} 개 선택`},Empty:{description:"데이터 없음"},Select:{placeholder:"선택해 주세요"},TimePicker:{placeholder:"시간 선택",positiveText:"확인",negativeText:"취소",now:"현재 시간",clear:"지우기"},Pagination:{goto:"이동",selectionSuffix:"페이지"},DynamicTags:{add:"추가"},Log:{loading:"불러오는 중"},Input:{placeholder:"입력해 주세요"},InputNumber:{placeholder:"입력해 주세요"},DynamicInput:{create:"추가"},ThemeEditor:{title:"테마 편집기",clearAllVars:"모든 변수 지우기",clearSearch:"검색 지우기",filterCompName:"구성 요소 이름 필터",filterVarName:"변수 이름 필터",import:"가져오기",export:"내보내기",restore:"기본으로 재설정"},Image:{tipPrevious:"이전 (←)",tipNext:"다음 (→)",tipCounterclockwise:"시계 반대 방향으로 회전",tipClockwise:"시계 방향으로 회전",tipZoomOut:"축소",tipZoomIn:"확대",tipDownload:"다운로드",tipClose:"닫기 (Esc)",tipOriginalSize:"원본 크기로 확대"}},DL=FL,LL={name:"vi-VN",global:{undo:"Hoàn tác",redo:"Làm lại",confirm:"Xác nhận",clear:"xóa"},Popconfirm:{positiveText:"Xác nhận",negativeText:"Hủy"},Cascader:{placeholder:"Vui lòng chọn",loading:"Đang tải",loadingRequiredMessage:e=>`Vui lòng tải tất cả thông tin con của ${e} trước.`},Time:{dateFormat:"",dateTimeFormat:"HH:mm:ss dd-MM-yyyy"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM-yyyy",dateFormat:"dd-MM-yyyy",dateTimeFormat:"HH:mm:ss dd-MM-yyyy",quarterFormat:"qqq-yyyy",weekFormat:"RRRR-w",clear:"Xóa",now:"Hôm nay",confirm:"Xác nhận",selectTime:"Chọn giờ",selectDate:"Chọn ngày",datePlaceholder:"Chọn ngày",datetimePlaceholder:"Chọn ngày giờ",monthPlaceholder:"Chọn tháng",yearPlaceholder:"Chọn năm",quarterPlaceholder:"Chọn quý",weekPlaceholder:"Select Week",startDatePlaceholder:"Ngày bắt đầu",endDatePlaceholder:"Ngày kết thúc",startDatetimePlaceholder:"Thời gian bắt đầu",endDatetimePlaceholder:"Thời gian kết thúc",startMonthPlaceholder:"Tháng bắt đầu",endMonthPlaceholder:"Tháng kết thúc",monthBeforeYear:!0,firstDayOfWeek:0,today:"Hôm nay"},DataTable:{checkTableAll:"Chọn tất cả có trong bảng",uncheckTableAll:"Bỏ chọn tất cả có trong bảng",confirm:"Xác nhận",clear:"Xóa"},LegacyTransfer:{sourceTitle:"Nguồn",targetTitle:"Đích"},Transfer:{selectAll:"Chọn tất cả",unselectAll:"Bỏ chọn tất cả",clearAll:"Xoá tất cả",total:e=>`Tổng cộng ${e} mục`,selected:e=>`${e} mục được chọn`},Empty:{description:"Không có dữ liệu"},Select:{placeholder:"Vui lòng chọn"},TimePicker:{placeholder:"Chọn thời gian",positiveText:"OK",negativeText:"Hủy",now:"Hiện tại",clear:"Xóa"},Pagination:{goto:"Đi đến trang",selectionSuffix:"trang"},DynamicTags:{add:"Thêm"},Log:{loading:"Đang tải"},Input:{placeholder:"Vui lòng nhập"},InputNumber:{placeholder:"Vui lòng nhập"},DynamicInput:{create:"Tạo"},ThemeEditor:{title:"Tùy chỉnh giao diện",clearAllVars:"Xóa tất cả các biến",clearSearch:"Xóa tìm kiếm",filterCompName:"Lọc tên component",filterVarName:"Lọc tên biến",import:"Nhập",export:"Xuất",restore:"Đặt lại mặc định"},Image:{tipPrevious:"Hình trước (←)",tipNext:"Hình tiếp (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Chiều kim đồng hồ",tipZoomOut:"Thu nhỏ",tipZoomIn:"Phóng to",tipDownload:"Tải về",tipClose:"Đóng (Esc)",tipOriginalSize:"Xem kích thước gốc"}},BL=LL,NL={name:"fa-IR",global:{undo:"لغو انجام شده",redo:"انجام دوباره",confirm:"تأیید",clear:"پاک کردن"},Popconfirm:{positiveText:"تأیید",negativeText:"لغو"},Cascader:{placeholder:"لطفا انتخاب کنید",loading:"بارگذاری",loadingRequiredMessage:e=>`پس از بارگیری کامل زیرمجموعه های ${e} می توانید انتخاب کنید `},Time:{dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd، H:mm:ss"},DatePicker:{yearFormat:"yyyy سال",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM/yyyy",dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd HH:mm:ss",quarterFormat:"سه ماهه yyyy",weekFormat:"RRRR-w",clear:"پاک کردن",now:"اکنون",confirm:"تأیید",selectTime:"انتخاب زمان",selectDate:"انتخاب تاریخ",datePlaceholder:"انتخاب تاریخ",datetimePlaceholder:"انتخاب تاریخ و زمان",monthPlaceholder:"انتخاب ماه",yearPlaceholder:"انتخاب سال",quarterPlaceholder:"انتخاب سه‌ماهه",weekPlaceholder:"Select Week",startDatePlaceholder:"تاریخ شروع",endDatePlaceholder:"تاریخ پایان",startDatetimePlaceholder:"زمان شروع",endDatetimePlaceholder:"زمان پایان",startMonthPlaceholder:"ماه شروع",endMonthPlaceholder:"ماه پایان",monthBeforeYear:!1,firstDayOfWeek:6,today:"امروز"},DataTable:{checkTableAll:"انتخاب همه داده‌های جدول",uncheckTableAll:"عدم انتخاب همه داده‌های جدول",confirm:"تأیید",clear:"تنظیم مجدد"},LegacyTransfer:{sourceTitle:"آیتم منبع",targetTitle:"آیتم مقصد"},Transfer:{selectAll:"انتخاب همه",clearAll:"حذف همه",unselectAll:"عدم انتخاب همه",total:e=>`کل ${e} مورد`,selected:e=>`انتخاب شده ${e} مورد`},Empty:{description:"اطلاعاتی وجود ندارد"},Select:{placeholder:"لطفاً انتخاب کنید"},TimePicker:{placeholder:"لطفاً زمان مورد نظر را انتخاب کنید",positiveText:"تأیید",negativeText:"لغو",now:"همین الان",clear:"پاک کردن"},Pagination:{goto:"رفتن به صفحه",selectionSuffix:"صفحه"},DynamicTags:{add:"افزودن"},Log:{loading:"در حال بارگذاری"},Input:{placeholder:"لطفاً وارد کنید"},InputNumber:{placeholder:"لطفاً وارد کنید"},DynamicInput:{create:"افزودن"},ThemeEditor:{title:"ویرایشگر پوسته",clearAllVars:"پاک کردن همه متغیرها",clearSearch:"پاک کردن جستجو",filterCompName:"فیلتر نام کامپوننت",filterVarName:"فیلتر نام متغیر",import:"ورود",export:"خروج",restore:"بازگردانی به حالت پیش‌فرض"},Image:{tipPrevious:"تصویر قبلی (←)",tipNext:"تصویر بعدی (→)",tipCounterclockwise:"چرخش به سمت چپ",tipClockwise:"چرخش به سمت راست",tipZoomOut:"کوچک نمایی تصویر",tipZoomIn:"بزرگ نمایی تصویر",tipDownload:"بارگیری",tipClose:"بستن (Esc)",tipOriginalSize:"اندازه اصلی تصویر"}},HL=NL;var jL={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},UL=function(t,n,o){var r,i=jL[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+"内":r+"前":r};const VL=UL;function Dn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var WL={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},qL={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},KL={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},GL={date:Dn({formats:WL,defaultWidth:"full"}),time:Dn({formats:qL,defaultWidth:"full"}),dateTime:Dn({formats:KL,defaultWidth:"full"})};const XL=GL;function cm(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Oh(e){"@babel/helpers - typeof";return Oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oh(e)}function YL(e){cm(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Oh(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function QL(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var JL={};function ZL(){return JL}function $0(e,t){var n,o,r,i,a,s,l,c;cm(1,arguments);var u=ZL(),d=QL((n=(o=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=YL(e),h=f.getUTCDay(),p=(ht.getTime()?"'下个'"+o:"'上个'"+o}var tB={lastWeek:I0,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:I0,other:"PP p"},nB=function(t,n,o,r){var i=tB[t];return typeof i=="function"?i(n,o,r):i};const oB=nB;function Zt(e){return function(t,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return r[c]}}var rB={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},iB={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},aB={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},sB={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},lB={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},cB={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},uB=function(t,n){var o=Number(t);switch(n==null?void 0:n.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},dB={ordinalNumber:uB,era:Zt({values:rB,defaultWidth:"wide"}),quarter:Zt({values:iB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:aB,defaultWidth:"wide"}),day:Zt({values:sB,defaultWidth:"wide"}),dayPeriod:Zt({values:lB,defaultWidth:"wide",formattingValues:cB,defaultFormattingWidth:"wide"})};const fB=dB;function en(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?pB(s,function(d){return d.test(a)}):hB(s,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function hB(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function pB(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(r.length);return{value:a,rest:s}}}var mB=/^(第\s*)?\d+(日|时|分|秒)?/i,gB=/\d+/i,vB={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},bB={any:[/^(前)/i,/^(公元)/i]},yB={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},xB={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},CB={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},wB={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},_B={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},SB={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},kB={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},PB={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},TB={ordinalNumber:ul({matchPattern:mB,parsePattern:gB,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:vB,defaultMatchWidth:"wide",parsePatterns:bB,defaultParseWidth:"any"}),quarter:en({matchPatterns:yB,defaultMatchWidth:"wide",parsePatterns:xB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:CB,defaultMatchWidth:"wide",parsePatterns:wB,defaultParseWidth:"any"}),day:en({matchPatterns:_B,defaultMatchWidth:"wide",parsePatterns:SB,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:kB,defaultMatchWidth:"any",parsePatterns:PB,defaultParseWidth:"any"})};const EB=TB;var RB={code:"zh-CN",formatDistance:VL,formatLong:XL,formatRelative:oB,localize:fB,match:EB,options:{weekStartsOn:1,firstWeekContainsDate:4}};const D_=RB,AB={name:"zh-CN",locale:D_},O0=AB;var $B={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},IB=function(t,n,o){var r,i=$B[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const OB=IB;var MB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},FB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DB={date:Dn({formats:MB,defaultWidth:"full"}),time:Dn({formats:zB,defaultWidth:"full"}),dateTime:Dn({formats:FB,defaultWidth:"full"})};const LB=DB;var BB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NB=function(t,n,o,r){return BB[t]};const HB=NB;var jB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},UB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},VB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},WB={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},qB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},KB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},GB=function(t,n){var o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},XB={ordinalNumber:GB,era:Zt({values:jB,defaultWidth:"wide"}),quarter:Zt({values:UB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:VB,defaultWidth:"wide"}),day:Zt({values:WB,defaultWidth:"wide"}),dayPeriod:Zt({values:qB,defaultWidth:"wide",formattingValues:KB,defaultFormattingWidth:"wide"})};const YB=XB;var QB=/^(\d+)(th|st|nd|rd)?/i,JB=/\d+/i,ZB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},e9={any:[/^b/i,/^(a|c)/i]},t9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},n9={any:[/1/i,/2/i,/3/i,/4/i]},o9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},r9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},i9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},a9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},s9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},l9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},c9={ordinalNumber:ul({matchPattern:QB,parsePattern:JB,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:ZB,defaultMatchWidth:"wide",parsePatterns:e9,defaultParseWidth:"any"}),quarter:en({matchPatterns:t9,defaultMatchWidth:"wide",parsePatterns:n9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:o9,defaultMatchWidth:"wide",parsePatterns:r9,defaultParseWidth:"any"}),day:en({matchPatterns:i9,defaultMatchWidth:"wide",parsePatterns:a9,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:s9,defaultMatchWidth:"any",parsePatterns:l9,defaultParseWidth:"any"})};const u9=c9;var d9={code:"en-US",formatDistance:OB,formatLong:LB,formatRelative:HB,localize:YB,match:u9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const f9=d9,h9={name:"en-US",locale:f9},L_=h9;var p9={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},m9=function(t,n,o){o=o||{};var r,i=p9[t];return typeof i=="string"?r=i:n===1?o.addSuffix&&i.oneWithSuffix?r=i.oneWithSuffix:r=i.one:o.addSuffix&&i.otherWithSuffix?r=i.otherWithSuffix.replace("{{count}}",String(n)):r=i.other.replace("{{count}}",String(n)),o.addSuffix?o.comparison&&o.comparison>0?r+"後":r+"前":r};const g9=m9;var v9={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},b9={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},y9={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},x9={date:Dn({formats:v9,defaultWidth:"full"}),time:Dn({formats:b9,defaultWidth:"full"}),dateTime:Dn({formats:y9,defaultWidth:"full"})};const C9=x9;var w9={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},_9=function(t,n,o,r){return w9[t]};const S9=_9;var k9={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},P9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},T9={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},E9={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},R9={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},A9={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},$9=function(t,n){var o=Number(t),r=String(n==null?void 0:n.unit);switch(r){case"year":return"".concat(o,"年");case"quarter":return"第".concat(o,"四半期");case"month":return"".concat(o,"月");case"week":return"第".concat(o,"週");case"date":return"".concat(o,"日");case"hour":return"".concat(o,"時");case"minute":return"".concat(o,"分");case"second":return"".concat(o,"秒");default:return"".concat(o)}},I9={ordinalNumber:$9,era:Zt({values:k9,defaultWidth:"wide"}),quarter:Zt({values:P9,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Zt({values:T9,defaultWidth:"wide"}),day:Zt({values:E9,defaultWidth:"wide"}),dayPeriod:Zt({values:R9,defaultWidth:"wide",formattingValues:A9,defaultFormattingWidth:"wide"})};const O9=I9;var M9=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,z9=/\d+/i,F9={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},D9={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},L9={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},B9={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},N9={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},H9={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},j9={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},U9={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},V9={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},W9={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},q9={ordinalNumber:ul({matchPattern:M9,parsePattern:z9,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:F9,defaultMatchWidth:"wide",parsePatterns:D9,defaultParseWidth:"any"}),quarter:en({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:B9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:N9,defaultMatchWidth:"wide",parsePatterns:H9,defaultParseWidth:"any"}),day:en({matchPatterns:j9,defaultMatchWidth:"wide",parsePatterns:U9,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:V9,defaultMatchWidth:"any",parsePatterns:W9,defaultParseWidth:"any"})};const K9=q9;var G9={code:"ja",formatDistance:g9,formatLong:C9,formatRelative:S9,localize:O9,match:K9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const X9=G9,Y9={name:"ja-JP",locale:X9},Q9=Y9;var J9={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Z9=function(t,n,o){var r,i=J9[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+" 후":r+" 전":r};const e7=Z9;var t7={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},n7={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},o7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},r7={date:Dn({formats:t7,defaultWidth:"full"}),time:Dn({formats:n7,defaultWidth:"full"}),dateTime:Dn({formats:o7,defaultWidth:"full"})};const i7=r7;var a7={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},s7=function(t,n,o,r){return a7[t]};const l7=s7;var c7={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},u7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},d7={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},f7={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},h7={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},p7={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},m7=function(t,n){var o=Number(t),r=String(n==null?void 0:n.unit);switch(r){case"minute":case"second":return String(o);case"date":return o+"일";default:return o+"번째"}},g7={ordinalNumber:m7,era:Zt({values:c7,defaultWidth:"wide"}),quarter:Zt({values:u7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:d7,defaultWidth:"wide"}),day:Zt({values:f7,defaultWidth:"wide"}),dayPeriod:Zt({values:h7,defaultWidth:"wide",formattingValues:p7,defaultFormattingWidth:"wide"})};const v7=g7;var b7=/^(\d+)(일|번째)?/i,y7=/\d+/i,x7={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},C7={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},w7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},_7={any:[/1/i,/2/i,/3/i,/4/i]},S7={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},k7={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},P7={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},T7={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},E7={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},R7={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},A7={ordinalNumber:ul({matchPattern:b7,parsePattern:y7,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:x7,defaultMatchWidth:"wide",parsePatterns:C7,defaultParseWidth:"any"}),quarter:en({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:_7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:S7,defaultMatchWidth:"wide",parsePatterns:k7,defaultParseWidth:"any"}),day:en({matchPatterns:P7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:E7,defaultMatchWidth:"any",parsePatterns:R7,defaultParseWidth:"any"})};const $7=A7;var I7={code:"ko",formatDistance:e7,formatLong:i7,formatRelative:l7,localize:v7,match:$7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const O7=I7,M7={name:"ko-KR",locale:O7},z7=M7;var F7={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},D7=function(t,n,o){var r,i=F7[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+" nữa":r+" trước":r};const L7=D7;var B7={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},N7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},H7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},j7={date:Dn({formats:B7,defaultWidth:"full"}),time:Dn({formats:N7,defaultWidth:"full"}),dateTime:Dn({formats:H7,defaultWidth:"full"})};const U7=j7;var V7={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},W7=function(t,n,o,r){return V7[t]};const q7=W7;var K7={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},G7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},X7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},Y7={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},Q7={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},J7={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},Z7={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},eN={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},tN=function(t,n){var o=Number(t),r=n==null?void 0:n.unit;if(r==="quarter")switch(o){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(r==="day")switch(o){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(r==="week")return o===1?"thứ nhất":"thứ "+o;if(r==="dayOfYear")return o===1?"đầu tiên":"thứ "+o}return String(o)},nN={ordinalNumber:tN,era:Zt({values:K7,defaultWidth:"wide"}),quarter:Zt({values:G7,defaultWidth:"wide",formattingValues:X7,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:Y7,defaultWidth:"wide",formattingValues:Q7,defaultFormattingWidth:"wide"}),day:Zt({values:J7,defaultWidth:"wide"}),dayPeriod:Zt({values:Z7,defaultWidth:"wide",formattingValues:eN,defaultFormattingWidth:"wide"})};const oN=nN;var rN=/^(\d+)/i,iN=/\d+/i,aN={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},sN={any:[/^t/i,/^s/i]},lN={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},cN={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},uN={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},dN={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},fN={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},hN={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},pN={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},mN={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},gN={ordinalNumber:ul({matchPattern:rN,parsePattern:iN,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:aN,defaultMatchWidth:"wide",parsePatterns:sN,defaultParseWidth:"any"}),quarter:en({matchPatterns:lN,defaultMatchWidth:"wide",parsePatterns:cN,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:uN,defaultMatchWidth:"wide",parsePatterns:dN,defaultParseWidth:"wide"}),day:en({matchPatterns:fN,defaultMatchWidth:"wide",parsePatterns:hN,defaultParseWidth:"wide"}),dayPeriod:en({matchPatterns:pN,defaultMatchWidth:"wide",parsePatterns:mN,defaultParseWidth:"any"})};const vN=gN;var bN={code:"vi",formatDistance:L7,formatLong:U7,formatRelative:q7,localize:oN,match:vN,options:{weekStartsOn:1,firstWeekContainsDate:1}};const yN=bN,xN={name:"vi-VN",locale:yN},CN=xN,wN={name:"fa-IR",locale:D_},_N=wN;function Hi(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Ve(Ao,null)||{},o=I(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:F_[e]});return{dateLocaleRef:I(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:L_}),localeRef:o}}function ei(e,t,n){if(!t)return;const o=Di(),r=Ve(Ao,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ra,props:{bPrefix:a?`.${a}-`:void 0},ssr:o}),r!=null&&r.preflightStyleDisabled||M_.mount({id:"n-global",head:!0,anchorMetaName:Ra,ssr:o})};o?i():hn(i)}function Pt(e,t,n,o){var r;n||hr("useThemeClass","cssVarsRef is not passed");const i=(r=Ve(Ao,null))===null||r===void 0?void 0:r.mergedThemeHashRef,a=U(""),s=Di();let l;const c=`__${e}`,u=()=>{let d=c;const f=t?t.value:void 0,h=i==null?void 0:i.value;h&&(d+=`-${h}`),f&&(d+=`-${f}`);const{themeOverrides:p,builtinThemeOverrides:g}=o;p&&(d+=`-${Xs(JSON.stringify(p))}`),g&&(d+=`-${Xs(JSON.stringify(g))}`),a.value=d,l=()=>{const m=n.value;let b="";for(const w in m)b+=`${w}: ${m[w]};`;W(`.${d}`,b).mount({id:d,ssr:s}),l=void 0}};return Yt(()=>{u()}),{themeClass:a,onRender:()=>{l==null||l()}}}function pn(e,t,n){if(!t)return;const o=Di(),r=I(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Yt(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(s8(s,o))return;const{value:l}=r;l&&l.style.mount({id:s,head:!0,anchorMetaName:Ra,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():hn(i),r}const SN=xe({name:"Add",render(){return v("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),kN=xe({name:"ArrowDown",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Va(e,t){return xe({name:h_(e),setup(){var n;const o=(n=Ve(Ao,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var r;const i=(r=o==null?void 0:o.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const M0=xe({name:"Backward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),PN=xe({name:"Checkmark",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),um=xe({name:"ChevronRight",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),TN=Va("close",v("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),EN=xe({name:"Eye",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),v("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),RN=xe({name:"EyeOff",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),v("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),v("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),v("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),v("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),AN=xe({name:"Empty",render(){return v("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),v("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ji=Va("error",v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),z0=xe({name:"FastBackward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),F0=xe({name:"FastForward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),$N=xe({name:"Filter",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),D0=xe({name:"Forward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Ur=Va("info",v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),L0=xe({name:"More",render(){return v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),IN=xe({name:"Remove",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + `)]),Eo="n-config-provider",$a="naive-ui-style";function Le(e,t,n,o,r,i){const a=Bi(),s=Ve(Eo,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:$a,ssr:a}),s!=null&&s.preflightStyleDisabled||H_.mount({id:"n-global",head:!0,anchorMetaName:$a,ssr:a})};a?c():hn(c)}return M(()=>{var c;const{theme:{common:u,self:d,peers:f={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=r,{common:g,peers:m}=h,{common:b=void 0,[e]:{common:w=void 0,self:C=void 0,peers:_={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:S=void 0,[e]:y={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:x,peers:k={}}=y,P=gs({},u||w||b||o.common,S,x,g),T=gs((c=d||C||o.self)===null||c===void 0?void 0:c(P),p,y,h);return{common:P,self:T,peers:gs({},o.peers,_,f),peerOverrides:gs({},p.peers,k,m)}})}Le.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ol="n";function st(e={},t={defaultBordered:!0}){const n=Ve(Eo,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:M(()=>{var o,r;const{bordered:i}=e;return i!==void 0?i:(r=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:za(ol),namespaceRef:M(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function j_(){const e=Ve(Eo,null);return e?e.mergedClsPrefixRef:za(ol)}const LL={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}},BL=LL,NL={name:"zh-TW",global:{undo:"復原",redo:"重做",confirm:"確定",clear:"清除"},Popconfirm:{positiveText:"確定",negativeText:"取消"},Cascader:{placeholder:"請選擇",loading:"載入中",loadingRequiredMessage:e=>`載入全部 ${e} 的子節點後才可選擇`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy 年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"清除",now:"現在",confirm:"確定",selectTime:"選擇時間",selectDate:"選擇日期",datePlaceholder:"選擇日期",datetimePlaceholder:"選擇日期時間",monthPlaceholder:"選擇月份",yearPlaceholder:"選擇年份",quarterPlaceholder:"選擇季度",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日期",endDatePlaceholder:"結束日期",startDatetimePlaceholder:"開始日期時間",endDatetimePlaceholder:"結束日期時間",startMonthPlaceholder:"開始月份",endMonthPlaceholder:"結束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"選擇全部表格資料",uncheckTableAll:"取消選擇全部表格資料",confirm:"確定",clear:"重設"},LegacyTransfer:{sourceTitle:"來源",targetTitle:"目標"},Transfer:{selectAll:"全選",unselectAll:"取消全選",clearAll:"清除全部",total:e=>`共 ${e} 項`,selected:e=>`已選 ${e} 項`},Empty:{description:"無資料"},Select:{placeholder:"請選擇"},TimePicker:{placeholder:"請選擇時間",positiveText:"確定",negativeText:"取消",now:"現在",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"頁"},DynamicTags:{add:"新增"},Log:{loading:"載入中"},Input:{placeholder:"請輸入"},InputNumber:{placeholder:"請輸入"},DynamicInput:{create:"新增"},ThemeEditor:{title:"主題編輯器",clearAllVars:"清除全部變數",clearSearch:"清除搜尋",filterCompName:"過濾組件名稱",filterVarName:"過濾變數名稱",import:"匯入",export:"匯出",restore:"恢復預設"},Image:{tipPrevious:"上一張(←)",tipNext:"下一張(→)",tipCounterclockwise:"向左旋轉",tipClockwise:"向右旋轉",tipZoomOut:"縮小",tipZoomIn:"放大",tipDownload:"下載",tipClose:"關閉(Esc)",tipOriginalSize:"縮放到原始尺寸"}},HL=NL,jL={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},U_=jL,UL={name:"ja-JP",global:{undo:"元に戻す",redo:"やり直す",confirm:"OK",clear:"クリア"},Popconfirm:{positiveText:"OK",negativeText:"キャンセル"},Cascader:{placeholder:"選択してください",loading:"ロード中",loadingRequiredMessage:e=>`すべての ${e} サブノードをロードしてから選択できます。`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"クリア",now:"現在",confirm:"OK",selectTime:"時間を選択",selectDate:"日付を選択",datePlaceholder:"日付を選択",datetimePlaceholder:"選択",monthPlaceholder:"月を選択",yearPlaceholder:"年を選択",quarterPlaceholder:"四半期を選択",weekPlaceholder:"Select Week",startDatePlaceholder:"開始日",endDatePlaceholder:"終了日",startDatetimePlaceholder:"開始時間",endDatetimePlaceholder:"終了時間",startMonthPlaceholder:"開始月",endMonthPlaceholder:"終了月",monthBeforeYear:!1,firstDayOfWeek:0,today:"今日"},DataTable:{checkTableAll:"全選択",uncheckTableAll:"全選択取消",confirm:"OK",clear:"リセット"},LegacyTransfer:{sourceTitle:"元",targetTitle:"先"},Transfer:{selectAll:"全選択",unselectAll:"全選択取消",clearAll:"リセット",total:e=>`合計 ${e} 項目`,selected:e=>`${e} 個の項目を選択`},Empty:{description:"データなし"},Select:{placeholder:"選択してください"},TimePicker:{placeholder:"選択してください",positiveText:"OK",negativeText:"キャンセル",now:"現在",clear:"クリア"},Pagination:{goto:"ページジャンプ",selectionSuffix:"ページ"},DynamicTags:{add:"追加"},Log:{loading:"ロード中"},Input:{placeholder:"入力してください"},InputNumber:{placeholder:"入力してください"},DynamicInput:{create:"追加"},ThemeEditor:{title:"テーマエディタ",clearAllVars:"全件変数クリア",clearSearch:"検索クリア",filterCompName:"コンポネント名をフィルタ",filterVarName:"変数をフィルタ",import:"インポート",export:"エクスポート",restore:"デフォルト"},Image:{tipPrevious:"前の画像 (←)",tipNext:"次の画像 (→)",tipCounterclockwise:"左に回転",tipClockwise:"右に回転",tipZoomOut:"縮小",tipZoomIn:"拡大",tipDownload:"ダウンロード",tipClose:"閉じる (Esc)",tipOriginalSize:"元のサイズに戻す"}},VL=UL,WL={name:"ko-KR",global:{undo:"실행 취소",redo:"다시 실행",confirm:"확인",clear:"지우기"},Popconfirm:{positiveText:"확인",negativeText:"취소"},Cascader:{placeholder:"선택해 주세요",loading:"불러오는 중",loadingRequiredMessage:e=>`${e}의 모든 하위 항목을 불러온 뒤에 선택할 수 있습니다.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy년",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"RRRR-w",clear:"지우기",now:"현재",confirm:"확인",selectTime:"시간 선택",selectDate:"날짜 선택",datePlaceholder:"날짜 선택",datetimePlaceholder:"날짜 및 시간 선택",monthPlaceholder:"월 선택",yearPlaceholder:"년 선택",quarterPlaceholder:"분기 선택",weekPlaceholder:"Select Week",startDatePlaceholder:"시작 날짜",endDatePlaceholder:"종료 날짜",startDatetimePlaceholder:"시작 날짜 및 시간",endDatetimePlaceholder:"종료 날짜 및 시간",startMonthPlaceholder:"시작 월",endMonthPlaceholder:"종료 월",monthBeforeYear:!1,firstDayOfWeek:6,today:"오늘"},DataTable:{checkTableAll:"모두 선택",uncheckTableAll:"모두 선택 해제",confirm:"확인",clear:"지우기"},LegacyTransfer:{sourceTitle:"원본",targetTitle:"타깃"},Transfer:{selectAll:"전체 선택",unselectAll:"전체 해제",clearAll:"전체 삭제",total:e=>`총 ${e} 개`,selected:e=>`${e} 개 선택`},Empty:{description:"데이터 없음"},Select:{placeholder:"선택해 주세요"},TimePicker:{placeholder:"시간 선택",positiveText:"확인",negativeText:"취소",now:"현재 시간",clear:"지우기"},Pagination:{goto:"이동",selectionSuffix:"페이지"},DynamicTags:{add:"추가"},Log:{loading:"불러오는 중"},Input:{placeholder:"입력해 주세요"},InputNumber:{placeholder:"입력해 주세요"},DynamicInput:{create:"추가"},ThemeEditor:{title:"테마 편집기",clearAllVars:"모든 변수 지우기",clearSearch:"검색 지우기",filterCompName:"구성 요소 이름 필터",filterVarName:"변수 이름 필터",import:"가져오기",export:"내보내기",restore:"기본으로 재설정"},Image:{tipPrevious:"이전 (←)",tipNext:"다음 (→)",tipCounterclockwise:"시계 반대 방향으로 회전",tipClockwise:"시계 방향으로 회전",tipZoomOut:"축소",tipZoomIn:"확대",tipDownload:"다운로드",tipClose:"닫기 (Esc)",tipOriginalSize:"원본 크기로 확대"}},qL=WL,KL={name:"vi-VN",global:{undo:"Hoàn tác",redo:"Làm lại",confirm:"Xác nhận",clear:"xóa"},Popconfirm:{positiveText:"Xác nhận",negativeText:"Hủy"},Cascader:{placeholder:"Vui lòng chọn",loading:"Đang tải",loadingRequiredMessage:e=>`Vui lòng tải tất cả thông tin con của ${e} trước.`},Time:{dateFormat:"",dateTimeFormat:"HH:mm:ss dd-MM-yyyy"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM-yyyy",dateFormat:"dd-MM-yyyy",dateTimeFormat:"HH:mm:ss dd-MM-yyyy",quarterFormat:"qqq-yyyy",weekFormat:"RRRR-w",clear:"Xóa",now:"Hôm nay",confirm:"Xác nhận",selectTime:"Chọn giờ",selectDate:"Chọn ngày",datePlaceholder:"Chọn ngày",datetimePlaceholder:"Chọn ngày giờ",monthPlaceholder:"Chọn tháng",yearPlaceholder:"Chọn năm",quarterPlaceholder:"Chọn quý",weekPlaceholder:"Select Week",startDatePlaceholder:"Ngày bắt đầu",endDatePlaceholder:"Ngày kết thúc",startDatetimePlaceholder:"Thời gian bắt đầu",endDatetimePlaceholder:"Thời gian kết thúc",startMonthPlaceholder:"Tháng bắt đầu",endMonthPlaceholder:"Tháng kết thúc",monthBeforeYear:!0,firstDayOfWeek:0,today:"Hôm nay"},DataTable:{checkTableAll:"Chọn tất cả có trong bảng",uncheckTableAll:"Bỏ chọn tất cả có trong bảng",confirm:"Xác nhận",clear:"Xóa"},LegacyTransfer:{sourceTitle:"Nguồn",targetTitle:"Đích"},Transfer:{selectAll:"Chọn tất cả",unselectAll:"Bỏ chọn tất cả",clearAll:"Xoá tất cả",total:e=>`Tổng cộng ${e} mục`,selected:e=>`${e} mục được chọn`},Empty:{description:"Không có dữ liệu"},Select:{placeholder:"Vui lòng chọn"},TimePicker:{placeholder:"Chọn thời gian",positiveText:"OK",negativeText:"Hủy",now:"Hiện tại",clear:"Xóa"},Pagination:{goto:"Đi đến trang",selectionSuffix:"trang"},DynamicTags:{add:"Thêm"},Log:{loading:"Đang tải"},Input:{placeholder:"Vui lòng nhập"},InputNumber:{placeholder:"Vui lòng nhập"},DynamicInput:{create:"Tạo"},ThemeEditor:{title:"Tùy chỉnh giao diện",clearAllVars:"Xóa tất cả các biến",clearSearch:"Xóa tìm kiếm",filterCompName:"Lọc tên component",filterVarName:"Lọc tên biến",import:"Nhập",export:"Xuất",restore:"Đặt lại mặc định"},Image:{tipPrevious:"Hình trước (←)",tipNext:"Hình tiếp (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Chiều kim đồng hồ",tipZoomOut:"Thu nhỏ",tipZoomIn:"Phóng to",tipDownload:"Tải về",tipClose:"Đóng (Esc)",tipOriginalSize:"Xem kích thước gốc"}},GL=KL,XL={name:"fa-IR",global:{undo:"لغو انجام شده",redo:"انجام دوباره",confirm:"تأیید",clear:"پاک کردن"},Popconfirm:{positiveText:"تأیید",negativeText:"لغو"},Cascader:{placeholder:"لطفا انتخاب کنید",loading:"بارگذاری",loadingRequiredMessage:e=>`پس از بارگیری کامل زیرمجموعه های ${e} می توانید انتخاب کنید `},Time:{dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd، H:mm:ss"},DatePicker:{yearFormat:"yyyy سال",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"MM/yyyy",dateFormat:"yyyy/MM/dd",dateTimeFormat:"yyyy/MM/dd HH:mm:ss",quarterFormat:"سه ماهه yyyy",weekFormat:"RRRR-w",clear:"پاک کردن",now:"اکنون",confirm:"تأیید",selectTime:"انتخاب زمان",selectDate:"انتخاب تاریخ",datePlaceholder:"انتخاب تاریخ",datetimePlaceholder:"انتخاب تاریخ و زمان",monthPlaceholder:"انتخاب ماه",yearPlaceholder:"انتخاب سال",quarterPlaceholder:"انتخاب سه‌ماهه",weekPlaceholder:"Select Week",startDatePlaceholder:"تاریخ شروع",endDatePlaceholder:"تاریخ پایان",startDatetimePlaceholder:"زمان شروع",endDatetimePlaceholder:"زمان پایان",startMonthPlaceholder:"ماه شروع",endMonthPlaceholder:"ماه پایان",monthBeforeYear:!1,firstDayOfWeek:6,today:"امروز"},DataTable:{checkTableAll:"انتخاب همه داده‌های جدول",uncheckTableAll:"عدم انتخاب همه داده‌های جدول",confirm:"تأیید",clear:"تنظیم مجدد"},LegacyTransfer:{sourceTitle:"آیتم منبع",targetTitle:"آیتم مقصد"},Transfer:{selectAll:"انتخاب همه",clearAll:"حذف همه",unselectAll:"عدم انتخاب همه",total:e=>`کل ${e} مورد`,selected:e=>`انتخاب شده ${e} مورد`},Empty:{description:"اطلاعاتی وجود ندارد"},Select:{placeholder:"لطفاً انتخاب کنید"},TimePicker:{placeholder:"لطفاً زمان مورد نظر را انتخاب کنید",positiveText:"تأیید",negativeText:"لغو",now:"همین الان",clear:"پاک کردن"},Pagination:{goto:"رفتن به صفحه",selectionSuffix:"صفحه"},DynamicTags:{add:"افزودن"},Log:{loading:"در حال بارگذاری"},Input:{placeholder:"لطفاً وارد کنید"},InputNumber:{placeholder:"لطفاً وارد کنید"},DynamicInput:{create:"افزودن"},ThemeEditor:{title:"ویرایشگر پوسته",clearAllVars:"پاک کردن همه متغیرها",clearSearch:"پاک کردن جستجو",filterCompName:"فیلتر نام کامپوننت",filterVarName:"فیلتر نام متغیر",import:"ورود",export:"خروج",restore:"بازگردانی به حالت پیش‌فرض"},Image:{tipPrevious:"تصویر قبلی (←)",tipNext:"تصویر بعدی (→)",tipCounterclockwise:"چرخش به سمت چپ",tipClockwise:"چرخش به سمت راست",tipZoomOut:"کوچک نمایی تصویر",tipZoomIn:"بزرگ نمایی تصویر",tipDownload:"بارگیری",tipClose:"بستن (Esc)",tipOriginalSize:"اندازه اصلی تصویر"}},YL=XL;var QL={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},JL=function(t,n,o){var r,i=QL[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+"内":r+"前":r};const ZL=JL;function Dn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}var eB={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},tB={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},nB={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},oB={date:Dn({formats:eB,defaultWidth:"full"}),time:Dn({formats:tB,defaultWidth:"full"}),dateTime:Dn({formats:nB,defaultWidth:"full"})};const rB=oB;function gm(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}function iB(e){gm(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Bh(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function aB(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var sB={};function lB(){return sB}function L0(e,t){var n,o,r,i,a,s,l,c;gm(1,arguments);var u=lB(),d=aB((n=(o=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=iB(e),h=f.getUTCDay(),p=(ht.getTime()?"'下个'"+o:"'上个'"+o}var uB={lastWeek:B0,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:B0,other:"PP p"},dB=function(t,n,o,r){var i=uB[t];return typeof i=="function"?i(n,o,r):i};const fB=dB;function Zt(e){return function(t,n){var o=n!=null&&n.context?String(n.context):"standalone",r;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return r[c]}}var hB={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},pB={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},mB={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},gB={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},vB={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},bB={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},yB=function(t,n){var o=Number(t);switch(n==null?void 0:n.unit){case"date":return o.toString()+"日";case"hour":return o.toString()+"时";case"minute":return o.toString()+"分";case"second":return o.toString()+"秒";default:return"第 "+o.toString()}},xB={ordinalNumber:yB,era:Zt({values:hB,defaultWidth:"wide"}),quarter:Zt({values:pB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:mB,defaultWidth:"wide"}),day:Zt({values:gB,defaultWidth:"wide"}),dayPeriod:Zt({values:vB,defaultWidth:"wide",formattingValues:bB,defaultFormattingWidth:"wide"})};const CB=xB;function en(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?_B(s,function(d){return d.test(a)}):wB(s,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function wB(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function _B(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var r=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(r.length);return{value:a,rest:s}}}var SB=/^(第\s*)?\d+(日|时|分|秒)?/i,kB=/\d+/i,PB={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},TB={any:[/^(前)/i,/^(公元)/i]},AB={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},RB={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},EB={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$B={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},IB={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},OB={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},MB={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},zB={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},FB={ordinalNumber:hl({matchPattern:SB,parsePattern:kB,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:PB,defaultMatchWidth:"wide",parsePatterns:TB,defaultParseWidth:"any"}),quarter:en({matchPatterns:AB,defaultMatchWidth:"wide",parsePatterns:RB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:EB,defaultMatchWidth:"wide",parsePatterns:$B,defaultParseWidth:"any"}),day:en({matchPatterns:IB,defaultMatchWidth:"wide",parsePatterns:OB,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:MB,defaultMatchWidth:"any",parsePatterns:zB,defaultParseWidth:"any"})};const DB=FB;var LB={code:"zh-CN",formatDistance:ZL,formatLong:rB,formatRelative:fB,localize:CB,match:DB,options:{weekStartsOn:1,firstWeekContainsDate:4}};const V_=LB,BB={name:"zh-CN",locale:V_},N0=BB;var NB={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},HB=function(t,n,o){var r,i=NB[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};const jB=HB;var UB={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VB={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WB={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qB={date:Dn({formats:UB,defaultWidth:"full"}),time:Dn({formats:VB,defaultWidth:"full"}),dateTime:Dn({formats:WB,defaultWidth:"full"})};const KB=qB;var GB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},XB=function(t,n,o,r){return GB[t]};const YB=XB;var QB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},JB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ZB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},e9={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},n9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o9=function(t,n){var o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},r9={ordinalNumber:o9,era:Zt({values:QB,defaultWidth:"wide"}),quarter:Zt({values:JB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:ZB,defaultWidth:"wide"}),day:Zt({values:e9,defaultWidth:"wide"}),dayPeriod:Zt({values:t9,defaultWidth:"wide",formattingValues:n9,defaultFormattingWidth:"wide"})};const i9=r9;var a9=/^(\d+)(th|st|nd|rd)?/i,s9=/\d+/i,l9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c9={any:[/^b/i,/^(a|c)/i]},u9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d9={any:[/1/i,/2/i,/3/i,/4/i]},f9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},m9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b9={ordinalNumber:hl({matchPattern:a9,parsePattern:s9,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:l9,defaultMatchWidth:"wide",parsePatterns:c9,defaultParseWidth:"any"}),quarter:en({matchPatterns:u9,defaultMatchWidth:"wide",parsePatterns:d9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:f9,defaultMatchWidth:"wide",parsePatterns:h9,defaultParseWidth:"any"}),day:en({matchPatterns:p9,defaultMatchWidth:"wide",parsePatterns:m9,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:g9,defaultMatchWidth:"any",parsePatterns:v9,defaultParseWidth:"any"})};const y9=b9;var x9={code:"en-US",formatDistance:jB,formatLong:KB,formatRelative:YB,localize:i9,match:y9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const C9=x9,w9={name:"en-US",locale:C9},W_=w9;var _9={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},S9=function(t,n,o){o=o||{};var r,i=_9[t];return typeof i=="string"?r=i:n===1?o.addSuffix&&i.oneWithSuffix?r=i.oneWithSuffix:r=i.one:o.addSuffix&&i.otherWithSuffix?r=i.otherWithSuffix.replace("{{count}}",String(n)):r=i.other.replace("{{count}}",String(n)),o.addSuffix?o.comparison&&o.comparison>0?r+"後":r+"前":r};const k9=S9;var P9={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},T9={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},A9={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},R9={date:Dn({formats:P9,defaultWidth:"full"}),time:Dn({formats:T9,defaultWidth:"full"}),dateTime:Dn({formats:A9,defaultWidth:"full"})};const E9=R9;var $9={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},I9=function(t,n,o,r){return $9[t]};const O9=I9;var M9={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},z9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},F9={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},D9={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},L9={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},B9={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},N9=function(t,n){var o=Number(t),r=String(n==null?void 0:n.unit);switch(r){case"year":return"".concat(o,"年");case"quarter":return"第".concat(o,"四半期");case"month":return"".concat(o,"月");case"week":return"第".concat(o,"週");case"date":return"".concat(o,"日");case"hour":return"".concat(o,"時");case"minute":return"".concat(o,"分");case"second":return"".concat(o,"秒");default:return"".concat(o)}},H9={ordinalNumber:N9,era:Zt({values:M9,defaultWidth:"wide"}),quarter:Zt({values:z9,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Zt({values:F9,defaultWidth:"wide"}),day:Zt({values:D9,defaultWidth:"wide"}),dayPeriod:Zt({values:L9,defaultWidth:"wide",formattingValues:B9,defaultFormattingWidth:"wide"})};const j9=H9;var U9=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,V9=/\d+/i,W9={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},q9={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},K9={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},G9={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},X9={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Y9={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Q9={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},J9={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},Z9={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},e7={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},t7={ordinalNumber:hl({matchPattern:U9,parsePattern:V9,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:W9,defaultMatchWidth:"wide",parsePatterns:q9,defaultParseWidth:"any"}),quarter:en({matchPatterns:K9,defaultMatchWidth:"wide",parsePatterns:G9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:X9,defaultMatchWidth:"wide",parsePatterns:Y9,defaultParseWidth:"any"}),day:en({matchPatterns:Q9,defaultMatchWidth:"wide",parsePatterns:J9,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:Z9,defaultMatchWidth:"any",parsePatterns:e7,defaultParseWidth:"any"})};const n7=t7;var o7={code:"ja",formatDistance:k9,formatLong:E9,formatRelative:O9,localize:j9,match:n7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const r7=o7,i7={name:"ja-JP",locale:r7},a7=i7;var s7={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},l7=function(t,n,o){var r,i=s7[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+" 후":r+" 전":r};const c7=l7;var u7={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},d7={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},f7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},h7={date:Dn({formats:u7,defaultWidth:"full"}),time:Dn({formats:d7,defaultWidth:"full"}),dateTime:Dn({formats:f7,defaultWidth:"full"})};const p7=h7;var m7={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},g7=function(t,n,o,r){return m7[t]};const v7=g7;var b7={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},y7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},x7={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},C7={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},w7={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},_7={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},S7=function(t,n){var o=Number(t),r=String(n==null?void 0:n.unit);switch(r){case"minute":case"second":return String(o);case"date":return o+"일";default:return o+"번째"}},k7={ordinalNumber:S7,era:Zt({values:b7,defaultWidth:"wide"}),quarter:Zt({values:y7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:x7,defaultWidth:"wide"}),day:Zt({values:C7,defaultWidth:"wide"}),dayPeriod:Zt({values:w7,defaultWidth:"wide",formattingValues:_7,defaultFormattingWidth:"wide"})};const P7=k7;var T7=/^(\d+)(일|번째)?/i,A7=/\d+/i,R7={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},E7={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},$7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},I7={any:[/1/i,/2/i,/3/i,/4/i]},O7={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},M7={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},z7={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},F7={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},D7={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},L7={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},B7={ordinalNumber:hl({matchPattern:T7,parsePattern:A7,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:R7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any"}),quarter:en({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:I7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:O7,defaultMatchWidth:"wide",parsePatterns:M7,defaultParseWidth:"any"}),day:en({matchPatterns:z7,defaultMatchWidth:"wide",parsePatterns:F7,defaultParseWidth:"any"}),dayPeriod:en({matchPatterns:D7,defaultMatchWidth:"any",parsePatterns:L7,defaultParseWidth:"any"})};const N7=B7;var H7={code:"ko",formatDistance:c7,formatLong:p7,formatRelative:v7,localize:P7,match:N7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const j7=H7,U7={name:"ko-KR",locale:j7},V7=U7;var W7={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},q7=function(t,n,o){var r,i=W7[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?r+" nữa":r+" trước":r};const K7=q7;var G7={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},X7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Y7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Q7={date:Dn({formats:G7,defaultWidth:"full"}),time:Dn({formats:X7,defaultWidth:"full"}),dateTime:Dn({formats:Y7,defaultWidth:"full"})};const J7=Q7;var Z7={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},eN=function(t,n,o,r){return Z7[t]};const tN=eN;var nN={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},oN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},rN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},iN={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},aN={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},sN={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},lN={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},cN={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},uN=function(t,n){var o=Number(t),r=n==null?void 0:n.unit;if(r==="quarter")switch(o){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(r==="day")switch(o){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(r==="week")return o===1?"thứ nhất":"thứ "+o;if(r==="dayOfYear")return o===1?"đầu tiên":"thứ "+o}return String(o)},dN={ordinalNumber:uN,era:Zt({values:nN,defaultWidth:"wide"}),quarter:Zt({values:oN,defaultWidth:"wide",formattingValues:rN,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zt({values:iN,defaultWidth:"wide",formattingValues:aN,defaultFormattingWidth:"wide"}),day:Zt({values:sN,defaultWidth:"wide"}),dayPeriod:Zt({values:lN,defaultWidth:"wide",formattingValues:cN,defaultFormattingWidth:"wide"})};const fN=dN;var hN=/^(\d+)/i,pN=/\d+/i,mN={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},gN={any:[/^t/i,/^s/i]},vN={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},bN={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},yN={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},xN={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},CN={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},wN={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},_N={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},SN={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},kN={ordinalNumber:hl({matchPattern:hN,parsePattern:pN,valueCallback:function(t){return parseInt(t,10)}}),era:en({matchPatterns:mN,defaultMatchWidth:"wide",parsePatterns:gN,defaultParseWidth:"any"}),quarter:en({matchPatterns:vN,defaultMatchWidth:"wide",parsePatterns:bN,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:en({matchPatterns:yN,defaultMatchWidth:"wide",parsePatterns:xN,defaultParseWidth:"wide"}),day:en({matchPatterns:CN,defaultMatchWidth:"wide",parsePatterns:wN,defaultParseWidth:"wide"}),dayPeriod:en({matchPatterns:_N,defaultMatchWidth:"wide",parsePatterns:SN,defaultParseWidth:"any"})};const PN=kN;var TN={code:"vi",formatDistance:K7,formatLong:J7,formatRelative:tN,localize:fN,match:PN,options:{weekStartsOn:1,firstWeekContainsDate:1}};const AN=TN,RN={name:"vi-VN",locale:AN},EN=RN,$N={name:"fa-IR",locale:V_},IN=$N;function Ui(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Ve(Eo,null)||{},o=M(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:U_[e]});return{dateLocaleRef:M(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:W_}),localeRef:o}}function ni(e,t,n){if(!t)return;const o=Bi(),r=Ve(Eo,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:$a,props:{bPrefix:a?`.${a}-`:void 0},ssr:o}),r!=null&&r.preflightStyleDisabled||H_.mount({id:"n-global",head:!0,anchorMetaName:$a,ssr:o})};o?i():hn(i)}function Pt(e,t,n,o){var r;n||hr("useThemeClass","cssVarsRef is not passed");const i=(r=Ve(Eo,null))===null||r===void 0?void 0:r.mergedThemeHashRef,a=j(""),s=Bi();let l;const c=`__${e}`,u=()=>{let d=c;const f=t?t.value:void 0,h=i==null?void 0:i.value;h&&(d+=`-${h}`),f&&(d+=`-${f}`);const{themeOverrides:p,builtinThemeOverrides:g}=o;p&&(d+=`-${Js(JSON.stringify(p))}`),g&&(d+=`-${Js(JSON.stringify(g))}`),a.value=d,l=()=>{const m=n.value;let b="";for(const w in m)b+=`${w}: ${m[w]};`;q(`.${d}`,b).mount({id:d,ssr:s}),l=void 0}};return Yt(()=>{u()}),{themeClass:a,onRender:()=>{l==null||l()}}}function pn(e,t,n){if(!t)return;const o=Bi(),r=M(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Yt(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(g8(s,o))return;const{value:l}=r;l&&l.style.mount({id:s,head:!0,anchorMetaName:$a,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():hn(i),r}const ON=ye({name:"Add",render(){return v("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),MN=ye({name:"ArrowDown",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function Ka(e,t){return ye({name:x_(e),setup(){var n;const o=(n=Ve(Eo,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var r;const i=(r=o==null?void 0:o.value)===null||r===void 0?void 0:r[e];return i?i():t}}})}const H0=ye({name:"Backward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),zN=ye({name:"Checkmark",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),vm=ye({name:"ChevronRight",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),FN=Ka("close",v("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),DN=ye({name:"Eye",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),v("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),LN=ye({name:"EyeOff",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),v("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),v("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),v("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),v("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),BN=ye({name:"Empty",render(){return v("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),v("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Vi=Ka("error",v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),j0=ye({name:"FastBackward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),U0=ye({name:"FastForward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),NN=ye({name:"Filter",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),V0=ye({name:"Forward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Wr=Ka("info",v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),W0=ye({name:"More",render(){return v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),HN=ye({name:"Remove",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px; - `}))}}),Ui=Va("success",v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Vi=Va("warning",v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),B_=xe({name:"ChevronDown",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),ON=Va("clear",v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),MN=xe({name:"ChevronDownFilled",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Wi=xe({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Zr();return()=>v(fn,{name:"icon-switch-transition",appear:n.value},t)}}),Au=xe({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function o(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function r(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,d=s?ST:fn,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:o,onAfterLeave:r};return s||(f.mode=u),v(d,f,t)}}}),zN=z("base-icon",` + `}))}}),Wi=Ka("success",v("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),qi=Ka("warning",v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),q_=ye({name:"ChevronDown",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),jN=Ka("clear",v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),UN=ye({name:"ChevronDownFilled",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Ki=ye({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=ti();return()=>v(fn,{name:"icon-switch-transition",appear:n.value},t)}}),zu=ye({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function o(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function r(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,d=s?OT:fn,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:o,onAfterLeave:r};return s||(f.mode=u),v(d,f,t)}}}),VN=z("base-icon",` height: 1em; width: 1em; line-height: 1em; @@ -92,10 +92,10 @@ ${t} position: relative; fill: currentColor; transform: translateZ(0); -`,[W("svg",` +`,[q("svg",` height: 1em; width: 1em; - `)]),Wt=xe({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ei("-base-icon",zN,Ue(e,"clsPrefix"))},render(){return v("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),FN=z("base-close",` + `)]),Wt=ye({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ni("-base-icon",VN,Ue(e,"clsPrefix"))},render(){return v("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),WN=z("base-close",` display: flex; align-items: center; justify-content: center; @@ -110,10 +110,10 @@ ${t} border: none; position: relative; padding: 0; -`,[J("absolute",` +`,[Z("absolute",` height: var(--n-close-icon-size); width: var(--n-close-icon-size); - `),W("&::before",` + `),q("&::before",` content: ""; position: absolute; width: var(--n-close-size); @@ -123,23 +123,23 @@ ${t} transform: translateY(-50%) translateX(-50%); transition: inherit; border-radius: inherit; - `),Et("disabled",[W("&:hover",` + `),At("disabled",[q("&:hover",` color: var(--n-close-icon-color-hover); - `),W("&:hover::before",` + `),q("&:hover::before",` background-color: var(--n-close-color-hover); - `),W("&:focus::before",` + `),q("&:focus::before",` background-color: var(--n-close-color-hover); - `),W("&:active",` + `),q("&:active",` color: var(--n-close-icon-color-pressed); - `),W("&:active::before",` + `),q("&:active::before",` background-color: var(--n-close-color-pressed); - `)]),J("disabled",` + `)]),Z("disabled",` cursor: not-allowed; color: var(--n-close-icon-color-disabled); background-color: transparent; - `),J("round",[W("&::before",` + `),Z("round",[q("&::before",` border-radius: 50%; - `)])]),qi=xe({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ei("-base-close",FN,Ue(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:o,round:r,isButtonTag:i}=e;return v(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},v(Wt,{clsPrefix:t},{default:()=>v(TN,null)}))}}}),DN=xe({props:{onFocus:Function,onBlur:Function},setup(e){return()=>v("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:LN}=mo;function Kn({originalTransform:e="",left:t=0,top:n=0,transition:o=`all .3s ${LN} !important`}={}){return[W("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),W("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),W("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:o})]}const BN=W([W("@keyframes rotator",` + `)])]),Gi=ye({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ni("-base-close",WN,Ue(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:o,round:r,isButtonTag:i}=e;return v(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},v(Wt,{clsPrefix:t},{default:()=>v(FN,null)}))}}}),qN=ye({props:{onFocus:Function,onBlur:Function},setup(e){return()=>v("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:KN}=mo;function Kn({originalTransform:e="",left:t=0,top:n=0,transition:o=`all .3s ${KN} !important`}={}){return[q("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),q("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),q("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:o})]}const GN=q([q("@keyframes rotator",` 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); @@ -152,26 +152,26 @@ ${t} line-height: 0; width: 1em; height: 1em; - `,[j("transition-wrapper",` + `,[U("transition-wrapper",` position: absolute; width: 100%; height: 100%; - `,[Kn()]),j("placeholder",` + `,[Kn()]),U("placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[Kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),j("container",` + `,[Kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),U("container",` animation: rotator 3s linear infinite both; - `,[j("icon",` + `,[U("icon",` height: 1em; width: 1em; - `)])])]),Kd="1.6s",NN={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},ti=xe({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},NN),setup(e){ei("-base-loading",BN,Ue(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:o,scale:r}=this,i=t/r;return v("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},v(Wi,null,{default:()=>this.show?v("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},v("div",{class:`${e}-base-loading__container`},v("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},v("g",null,v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"}),v("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"}),v("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Kd,fill:"freeze",repeatCount:"indefinite"})))))):v("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function B0(e){return Array.isArray(e)?e:[e]}const Mh={STOP:"STOP"};function N_(e,t){const n=t(e);e.children!==void 0&&n!==Mh.STOP&&e.children.forEach(o=>N_(o,t))}function HN(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),o}function jN(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function UN(e){return e.children}function VN(e){return e.key}function WN(){return!1}function qN(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function KN(e){return e.disabled===!0}function GN(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Gd(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function Xd(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function XN(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function YN(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function QN(e){return(e==null?void 0:e.type)==="group"}function JN(e){const t=new Map;return e.forEach((n,o)=>{t.set(n.key,o)}),n=>{var o;return(o=t.get(n))!==null&&o!==void 0?o:null}}class ZN extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function eH(e,t,n,o){return Dc(t.concat(e),n,o,!1)}function tH(e,t){const n=new Set;return e.forEach(o=>{const r=t.treeNodeMap.get(o);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function nH(e,t,n,o){const r=Dc(t,n,o,!1),i=Dc(e,n,o,!0),a=tH(e,n),s=[];return r.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>r.delete(l)),r}function Yd(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return o!==void 0?{checkedKeys:XN(n,o),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:YN(n,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;r!==void 0?d=nH(r,n,t,c):o!==void 0?d=eH(o,n,t,c):d=Dc(n,t,c,!1);const f=l==="parent",h=l==="child"||s,p=d,g=new Set,m=Math.max.apply(null,Array.from(u.keys()));for(let b=m;b>=0;b-=1){const w=b===0,C=u.get(b);for(const _ of C){if(_.isLeaf)continue;const{key:S,shallowLoaded:y}=_;if(h&&y&&_.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&p.has(T.key)&&p.delete(T.key)}),_.disabled||!y)continue;let x=!0,P=!1,k=!0;for(const T of _.children){const R=T.key;if(!T.disabled){if(k&&(k=!1),p.has(R))P=!0;else if(g.has(R)){P=!0,x=!1;break}else if(x=!1,P)break}}x&&!k?(f&&_.children.forEach(T=>{!T.disabled&&p.has(T.key)&&p.delete(T.key)}),p.add(S)):P&&g.add(S),w&&h&&p.has(S)&&p.delete(S)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function Dc(e,t,n,o){const{treeNodeMap:r,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=r.get(l);c!==void 0&&N_(c,u=>{if(u.disabled)return Mh.STOP;const{key:d}=u;if(!a.has(d)&&(a.add(d),s.add(d),GN(u.rawNode,i))){if(o)return Mh.STOP;if(!n)throw new ZN}})}),s}function oH(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const i=o.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),n||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function rH(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function iH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function N0(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r=t==="prev"?aH:iH,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const u=dm(c,i);u!==null?s=u:l(r(c,n))}else{const u=r(c,!1);if(u!==null)l(u);else{const d=sH(c);d!=null&&d.isGroup?l(r(d,n)):n&&l(r(c,!0))}}}}return l(e),s}function aH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:r===0?null:n[r-1]}function sH(e){return e.parent}function dm(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:r}=o,i=n?r-1:0,a=n?-1:r,s=n?-1:1;for(let l=i;l!==a;l+=s){const c=o[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const u=dm(c,t);if(u!==null)return u}else return c}}return null}const lH={getChild(){return this.ignored?null:dm(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return N0(this,"next",e)},getPrev(e={}){return N0(this,"prev",e)}};function cH(e,t){const n=t?new Set(t):void 0,o=[];function r(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&r(a.children)})}return r(e),o}function uH(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function H_(e,t,n,o,r,i=null,a=0){const s=[];return e.forEach((l,c)=>{var u;const d=Object.create(o);if(d.rawNode=l,d.siblings=s,d.level=a,d.index=c,d.isFirstChild=c===0,d.isLastChild=c+1===e.length,d.parent=i,!d.ignored){const f=r(l);Array.isArray(f)&&(d.children=H_(f,t,n,o,r,d,a+1))}s.push(d),t.set(d.key,d),n.has(a)||n.set(a,[]),(u=n.get(a))===null||u===void 0||u.push(d)}),s}function Pi(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:i=KN,getIgnored:a=WN,getIsGroup:s=QN,getKey:l=VN}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:UN,u=t.ignoreEmptyChildren?_=>{const S=c(_);return Array.isArray(S)?S.length?S:null:S}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return jN(this.rawNode,u)},get shallowLoaded(){return qN(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(_){return uH(this,_)}},lH),f=H_(e,o,r,d,u);function h(_){if(_==null)return null;const S=o.get(_);return S&&!S.isGroup&&!S.ignored?S:null}function p(_){if(_==null)return null;const S=o.get(_);return S&&!S.ignored?S:null}function g(_,S){const y=p(_);return y?y.getPrev(S):null}function m(_,S){const y=p(_);return y?y.getNext(S):null}function b(_){const S=p(_);return S?S.getParent():null}function w(_){const S=p(_);return S?S.getChild():null}const C={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:u,getFlattenedNodes(_){return cH(f,_)},getNode:h,getPrev:g,getNext:m,getParent:b,getChild:w,getFirstAvailableNode(){return rH(f)},getPath(_,S={}){return oH(_,S,C)},getCheckedKeys(_,S={}){const{cascade:y=!0,leafOnly:x=!1,checkStrategy:P="all",allowNotLoaded:k=!1}=S;return Yd({checkedKeys:Gd(_),indeterminateKeys:Xd(_),cascade:y,leafOnly:x,checkStrategy:P,allowNotLoaded:k},C)},check(_,S,y={}){const{cascade:x=!0,leafOnly:P=!1,checkStrategy:k="all",allowNotLoaded:T=!1}=y;return Yd({checkedKeys:Gd(S),indeterminateKeys:Xd(S),keysToCheck:_==null?[]:B0(_),cascade:x,leafOnly:P,checkStrategy:k,allowNotLoaded:T},C)},uncheck(_,S,y={}){const{cascade:x=!0,leafOnly:P=!1,checkStrategy:k="all",allowNotLoaded:T=!1}=y;return Yd({checkedKeys:Gd(S),indeterminateKeys:Xd(S),keysToUncheck:_==null?[]:B0(_),cascade:x,leafOnly:P,checkStrategy:k,allowNotLoaded:T},C)},getNonLeafKeys(_={}){return HN(f,_)}};return C}const Ye={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},dH=qo(Ye.neutralBase),j_=qo(Ye.neutralInvertBase),fH=`rgba(${j_.slice(0,3).join(", ")}, `;function Ot(e){return`${fH+String(e)})`}function hH(e){const t=Array.from(j_);return t[3]=Number(e),Ke(dH,t)}const pH=Object.assign(Object.assign({name:"common"},mo),{baseColor:Ye.neutralBase,primaryColor:Ye.primaryDefault,primaryColorHover:Ye.primaryHover,primaryColorPressed:Ye.primaryActive,primaryColorSuppl:Ye.primarySuppl,infoColor:Ye.infoDefault,infoColorHover:Ye.infoHover,infoColorPressed:Ye.infoActive,infoColorSuppl:Ye.infoSuppl,successColor:Ye.successDefault,successColorHover:Ye.successHover,successColorPressed:Ye.successActive,successColorSuppl:Ye.successSuppl,warningColor:Ye.warningDefault,warningColorHover:Ye.warningHover,warningColorPressed:Ye.warningActive,warningColorSuppl:Ye.warningSuppl,errorColor:Ye.errorDefault,errorColorHover:Ye.errorHover,errorColorPressed:Ye.errorActive,errorColorSuppl:Ye.errorSuppl,textColorBase:Ye.neutralTextBase,textColor1:Ot(Ye.alpha1),textColor2:Ot(Ye.alpha2),textColor3:Ot(Ye.alpha3),textColorDisabled:Ot(Ye.alpha4),placeholderColor:Ot(Ye.alpha4),placeholderColorDisabled:Ot(Ye.alpha5),iconColor:Ot(Ye.alpha4),iconColorDisabled:Ot(Ye.alpha5),iconColorHover:Ot(Number(Ye.alpha4)*1.25),iconColorPressed:Ot(Number(Ye.alpha4)*.8),opacity1:Ye.alpha1,opacity2:Ye.alpha2,opacity3:Ye.alpha3,opacity4:Ye.alpha4,opacity5:Ye.alpha5,dividerColor:Ot(Ye.alphaDivider),borderColor:Ot(Ye.alphaBorder),closeIconColorHover:Ot(Number(Ye.alphaClose)),closeIconColor:Ot(Number(Ye.alphaClose)),closeIconColorPressed:Ot(Number(Ye.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Ot(Ye.alpha4),clearColorHover:un(Ot(Ye.alpha4),{alpha:1.25}),clearColorPressed:un(Ot(Ye.alpha4),{alpha:.8}),scrollbarColor:Ot(Ye.alphaScrollbar),scrollbarColorHover:Ot(Ye.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ot(Ye.alphaProgressRail),railColor:Ot(Ye.alphaRail),popoverColor:Ye.neutralPopover,tableColor:Ye.neutralCard,cardColor:Ye.neutralCard,modalColor:Ye.neutralModal,bodyColor:Ye.neutralBody,tagColor:hH(Ye.alphaTag),avatarColor:Ot(Ye.alphaAvatar),invertedColor:Ye.neutralBase,inputColor:Ot(Ye.alphaInput),codeColor:Ot(Ye.alphaCode),tabColor:Ot(Ye.alphaTab),actionColor:Ot(Ye.alphaAction),tableHeaderColor:Ot(Ye.alphaAction),hoverColor:Ot(Ye.alphaPending),tableColorHover:Ot(Ye.alphaTablePending),tableColorStriped:Ot(Ye.alphaTableStriped),pressedColor:Ot(Ye.alphaPressed),opacityDisabled:Ye.alphaDisabled,inputColorDisabled:Ot(Ye.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),He=pH,lt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},mH=qo(lt.neutralBase),U_=qo(lt.neutralInvertBase),gH=`rgba(${U_.slice(0,3).join(", ")}, `;function H0(e){return`${gH+String(e)})`}function En(e){const t=Array.from(U_);return t[3]=Number(e),Ke(mH,t)}const vH=Object.assign(Object.assign({name:"common"},mo),{baseColor:lt.neutralBase,primaryColor:lt.primaryDefault,primaryColorHover:lt.primaryHover,primaryColorPressed:lt.primaryActive,primaryColorSuppl:lt.primarySuppl,infoColor:lt.infoDefault,infoColorHover:lt.infoHover,infoColorPressed:lt.infoActive,infoColorSuppl:lt.infoSuppl,successColor:lt.successDefault,successColorHover:lt.successHover,successColorPressed:lt.successActive,successColorSuppl:lt.successSuppl,warningColor:lt.warningDefault,warningColorHover:lt.warningHover,warningColorPressed:lt.warningActive,warningColorSuppl:lt.warningSuppl,errorColor:lt.errorDefault,errorColorHover:lt.errorHover,errorColorPressed:lt.errorActive,errorColorSuppl:lt.errorSuppl,textColorBase:lt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:En(lt.alpha4),placeholderColor:En(lt.alpha4),placeholderColorDisabled:En(lt.alpha5),iconColor:En(lt.alpha4),iconColorHover:un(En(lt.alpha4),{lightness:.75}),iconColorPressed:un(En(lt.alpha4),{lightness:.9}),iconColorDisabled:En(lt.alpha5),opacity1:lt.alpha1,opacity2:lt.alpha2,opacity3:lt.alpha3,opacity4:lt.alpha4,opacity5:lt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:En(Number(lt.alphaClose)),closeIconColorHover:En(Number(lt.alphaClose)),closeIconColorPressed:En(Number(lt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:En(lt.alpha4),clearColorHover:un(En(lt.alpha4),{lightness:.75}),clearColorPressed:un(En(lt.alpha4),{lightness:.9}),scrollbarColor:H0(lt.alphaScrollbar),scrollbarColorHover:H0(lt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:En(lt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:lt.neutralPopover,tableColor:lt.neutralCard,cardColor:lt.neutralCard,modalColor:lt.neutralModal,bodyColor:lt.neutralBody,tagColor:"#eee",avatarColor:En(lt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:En(lt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:lt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),xt=vH,bH={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function V_(e){const{textColorDisabled:t,iconColor:n,textColor2:o,fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},bH),{fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:n,extraTextColor:o})}const yH={name:"Empty",common:xt,self:V_},$u=yH,xH={name:"Empty",common:He,self:V_},Ki=xH,CH=z("empty",` + `)])])]),Jd="1.6s",XN={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},oi=ye({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},XN),setup(e){ni("-base-loading",GN,Ue(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:o,scale:r}=this,i=t/r;return v("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},v(Ki,null,{default:()=>this.show?v("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},v("div",{class:`${e}-base-loading__container`},v("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},v("g",null,v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Jd,fill:"freeze",repeatCount:"indefinite"}),v("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Jd,fill:"freeze",repeatCount:"indefinite"}),v("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Jd,fill:"freeze",repeatCount:"indefinite"})))))):v("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function q0(e){return Array.isArray(e)?e:[e]}const Nh={STOP:"STOP"};function K_(e,t){const n=t(e);e.children!==void 0&&n!==Nh.STOP&&e.children.forEach(o=>K_(o,t))}function YN(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(r)}return i(e),o}function QN(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function JN(e){return e.children}function ZN(e){return e.key}function eH(){return!1}function tH(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function nH(e){return e.disabled===!0}function oH(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Zd(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function ef(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function rH(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function iH(e,t){const n=new Set(e);return t.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function aH(e){return(e==null?void 0:e.type)==="group"}function sH(e){const t=new Map;return e.forEach((n,o)=>{t.set(n.key,o)}),n=>{var o;return(o=t.get(n))!==null&&o!==void 0?o:null}}class lH extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function cH(e,t,n,o){return jc(t.concat(e),n,o,!1)}function uH(e,t){const n=new Set;return e.forEach(o=>{const r=t.treeNodeMap.get(o);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function dH(e,t,n,o){const r=jc(t,n,o,!1),i=jc(e,n,o,!0),a=uH(e,n),s=[];return r.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>r.delete(l)),r}function tf(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return o!==void 0?{checkedKeys:rH(n,o),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:iH(n,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;r!==void 0?d=dH(r,n,t,c):o!==void 0?d=cH(o,n,t,c):d=jc(n,t,c,!1);const f=l==="parent",h=l==="child"||s,p=d,g=new Set,m=Math.max.apply(null,Array.from(u.keys()));for(let b=m;b>=0;b-=1){const w=b===0,C=u.get(b);for(const _ of C){if(_.isLeaf)continue;const{key:S,shallowLoaded:y}=_;if(h&&y&&_.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&p.has(T.key)&&p.delete(T.key)}),_.disabled||!y)continue;let x=!0,k=!1,P=!0;for(const T of _.children){const $=T.key;if(!T.disabled){if(P&&(P=!1),p.has($))k=!0;else if(g.has($)){k=!0,x=!1;break}else if(x=!1,k)break}}x&&!P?(f&&_.children.forEach(T=>{!T.disabled&&p.has(T.key)&&p.delete(T.key)}),p.add(S)):k&&g.add(S),w&&h&&p.has(S)&&p.delete(S)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function jc(e,t,n,o){const{treeNodeMap:r,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=r.get(l);c!==void 0&&K_(c,u=>{if(u.disabled)return Nh.STOP;const{key:d}=u;if(!a.has(d)&&(a.add(d),s.add(d),oH(u.rawNode,i))){if(o)return Nh.STOP;if(!n)throw new lH}})}),s}function fH(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const i=o.treeNodeMap;let a=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),n||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function hH(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function pH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function K0(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r=t==="prev"?mH:pH,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const u=bm(c,i);u!==null?s=u:l(r(c,n))}else{const u=r(c,!1);if(u!==null)l(u);else{const d=gH(c);d!=null&&d.isGroup?l(r(d,n)):n&&l(r(c,!0))}}}}return l(e),s}function mH(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:r===0?null:n[r-1]}function gH(e){return e.parent}function bm(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:r}=o,i=n?r-1:0,a=n?-1:r,s=n?-1:1;for(let l=i;l!==a;l+=s){const c=o[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const u=bm(c,t);if(u!==null)return u}else return c}}return null}const vH={getChild(){return this.ignored?null:bm(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return K0(this,"next",e)},getPrev(e={}){return K0(this,"prev",e)}};function bH(e,t){const n=t?new Set(t):void 0,o=[];function r(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&r(a.children)})}return r(e),o}function yH(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function G_(e,t,n,o,r,i=null,a=0){const s=[];return e.forEach((l,c)=>{var u;const d=Object.create(o);if(d.rawNode=l,d.siblings=s,d.level=a,d.index=c,d.isFirstChild=c===0,d.isLastChild=c+1===e.length,d.parent=i,!d.ignored){const f=r(l);Array.isArray(f)&&(d.children=G_(f,t,n,o,r,d,a+1))}s.push(d),t.set(d.key,d),n.has(a)||n.set(a,[]),(u=n.get(a))===null||u===void 0||u.push(d)}),s}function Ai(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:i=nH,getIgnored:a=eH,getIsGroup:s=aH,getKey:l=ZN}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:JN,u=t.ignoreEmptyChildren?_=>{const S=c(_);return Array.isArray(S)?S.length?S:null:S}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return QN(this.rawNode,u)},get shallowLoaded(){return tH(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(_){return yH(this,_)}},vH),f=G_(e,o,r,d,u);function h(_){if(_==null)return null;const S=o.get(_);return S&&!S.isGroup&&!S.ignored?S:null}function p(_){if(_==null)return null;const S=o.get(_);return S&&!S.ignored?S:null}function g(_,S){const y=p(_);return y?y.getPrev(S):null}function m(_,S){const y=p(_);return y?y.getNext(S):null}function b(_){const S=p(_);return S?S.getParent():null}function w(_){const S=p(_);return S?S.getChild():null}const C={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:u,getFlattenedNodes(_){return bH(f,_)},getNode:h,getPrev:g,getNext:m,getParent:b,getChild:w,getFirstAvailableNode(){return hH(f)},getPath(_,S={}){return fH(_,S,C)},getCheckedKeys(_,S={}){const{cascade:y=!0,leafOnly:x=!1,checkStrategy:k="all",allowNotLoaded:P=!1}=S;return tf({checkedKeys:Zd(_),indeterminateKeys:ef(_),cascade:y,leafOnly:x,checkStrategy:k,allowNotLoaded:P},C)},check(_,S,y={}){const{cascade:x=!0,leafOnly:k=!1,checkStrategy:P="all",allowNotLoaded:T=!1}=y;return tf({checkedKeys:Zd(S),indeterminateKeys:ef(S),keysToCheck:_==null?[]:q0(_),cascade:x,leafOnly:k,checkStrategy:P,allowNotLoaded:T},C)},uncheck(_,S,y={}){const{cascade:x=!0,leafOnly:k=!1,checkStrategy:P="all",allowNotLoaded:T=!1}=y;return tf({checkedKeys:Zd(S),indeterminateKeys:ef(S),keysToUncheck:_==null?[]:q0(_),cascade:x,leafOnly:k,checkStrategy:P,allowNotLoaded:T},C)},getNonLeafKeys(_={}){return YN(f,_)}};return C}const Ye={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},xH=qo(Ye.neutralBase),X_=qo(Ye.neutralInvertBase),CH=`rgba(${X_.slice(0,3).join(", ")}, `;function Ot(e){return`${CH+String(e)})`}function wH(e){const t=Array.from(X_);return t[3]=Number(e),Ke(xH,t)}const _H=Object.assign(Object.assign({name:"common"},mo),{baseColor:Ye.neutralBase,primaryColor:Ye.primaryDefault,primaryColorHover:Ye.primaryHover,primaryColorPressed:Ye.primaryActive,primaryColorSuppl:Ye.primarySuppl,infoColor:Ye.infoDefault,infoColorHover:Ye.infoHover,infoColorPressed:Ye.infoActive,infoColorSuppl:Ye.infoSuppl,successColor:Ye.successDefault,successColorHover:Ye.successHover,successColorPressed:Ye.successActive,successColorSuppl:Ye.successSuppl,warningColor:Ye.warningDefault,warningColorHover:Ye.warningHover,warningColorPressed:Ye.warningActive,warningColorSuppl:Ye.warningSuppl,errorColor:Ye.errorDefault,errorColorHover:Ye.errorHover,errorColorPressed:Ye.errorActive,errorColorSuppl:Ye.errorSuppl,textColorBase:Ye.neutralTextBase,textColor1:Ot(Ye.alpha1),textColor2:Ot(Ye.alpha2),textColor3:Ot(Ye.alpha3),textColorDisabled:Ot(Ye.alpha4),placeholderColor:Ot(Ye.alpha4),placeholderColorDisabled:Ot(Ye.alpha5),iconColor:Ot(Ye.alpha4),iconColorDisabled:Ot(Ye.alpha5),iconColorHover:Ot(Number(Ye.alpha4)*1.25),iconColorPressed:Ot(Number(Ye.alpha4)*.8),opacity1:Ye.alpha1,opacity2:Ye.alpha2,opacity3:Ye.alpha3,opacity4:Ye.alpha4,opacity5:Ye.alpha5,dividerColor:Ot(Ye.alphaDivider),borderColor:Ot(Ye.alphaBorder),closeIconColorHover:Ot(Number(Ye.alphaClose)),closeIconColor:Ot(Number(Ye.alphaClose)),closeIconColorPressed:Ot(Number(Ye.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Ot(Ye.alpha4),clearColorHover:un(Ot(Ye.alpha4),{alpha:1.25}),clearColorPressed:un(Ot(Ye.alpha4),{alpha:.8}),scrollbarColor:Ot(Ye.alphaScrollbar),scrollbarColorHover:Ot(Ye.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ot(Ye.alphaProgressRail),railColor:Ot(Ye.alphaRail),popoverColor:Ye.neutralPopover,tableColor:Ye.neutralCard,cardColor:Ye.neutralCard,modalColor:Ye.neutralModal,bodyColor:Ye.neutralBody,tagColor:wH(Ye.alphaTag),avatarColor:Ot(Ye.alphaAvatar),invertedColor:Ye.neutralBase,inputColor:Ot(Ye.alphaInput),codeColor:Ot(Ye.alphaCode),tabColor:Ot(Ye.alphaTab),actionColor:Ot(Ye.alphaAction),tableHeaderColor:Ot(Ye.alphaAction),hoverColor:Ot(Ye.alphaPending),tableColorHover:Ot(Ye.alphaTablePending),tableColorStriped:Ot(Ye.alphaTableStriped),pressedColor:Ot(Ye.alphaPressed),opacityDisabled:Ye.alphaDisabled,inputColorDisabled:Ot(Ye.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),je=_H,lt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},SH=qo(lt.neutralBase),Y_=qo(lt.neutralInvertBase),kH=`rgba(${Y_.slice(0,3).join(", ")}, `;function G0(e){return`${kH+String(e)})`}function An(e){const t=Array.from(Y_);return t[3]=Number(e),Ke(SH,t)}const PH=Object.assign(Object.assign({name:"common"},mo),{baseColor:lt.neutralBase,primaryColor:lt.primaryDefault,primaryColorHover:lt.primaryHover,primaryColorPressed:lt.primaryActive,primaryColorSuppl:lt.primarySuppl,infoColor:lt.infoDefault,infoColorHover:lt.infoHover,infoColorPressed:lt.infoActive,infoColorSuppl:lt.infoSuppl,successColor:lt.successDefault,successColorHover:lt.successHover,successColorPressed:lt.successActive,successColorSuppl:lt.successSuppl,warningColor:lt.warningDefault,warningColorHover:lt.warningHover,warningColorPressed:lt.warningActive,warningColorSuppl:lt.warningSuppl,errorColor:lt.errorDefault,errorColorHover:lt.errorHover,errorColorPressed:lt.errorActive,errorColorSuppl:lt.errorSuppl,textColorBase:lt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:An(lt.alpha4),placeholderColor:An(lt.alpha4),placeholderColorDisabled:An(lt.alpha5),iconColor:An(lt.alpha4),iconColorHover:un(An(lt.alpha4),{lightness:.75}),iconColorPressed:un(An(lt.alpha4),{lightness:.9}),iconColorDisabled:An(lt.alpha5),opacity1:lt.alpha1,opacity2:lt.alpha2,opacity3:lt.alpha3,opacity4:lt.alpha4,opacity5:lt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:An(Number(lt.alphaClose)),closeIconColorHover:An(Number(lt.alphaClose)),closeIconColorPressed:An(Number(lt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:An(lt.alpha4),clearColorHover:un(An(lt.alpha4),{lightness:.75}),clearColorPressed:un(An(lt.alpha4),{lightness:.9}),scrollbarColor:G0(lt.alphaScrollbar),scrollbarColorHover:G0(lt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:An(lt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:lt.neutralPopover,tableColor:lt.neutralCard,cardColor:lt.neutralCard,modalColor:lt.neutralModal,bodyColor:lt.neutralBody,tagColor:"#eee",avatarColor:An(lt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:An(lt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:lt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),xt=PH,TH={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function Q_(e){const{textColorDisabled:t,iconColor:n,textColor2:o,fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},TH),{fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:n,extraTextColor:o})}const AH={name:"Empty",common:xt,self:Q_},Fu=AH,RH={name:"Empty",common:je,self:Q_},Xi=RH,EH=z("empty",` display: flex; flex-direction: column; align-items: center; font-size: var(--n-font-size); -`,[j("icon",` +`,[U("icon",` width: var(--n-icon-size); height: var(--n-icon-size); font-size: var(--n-icon-size); @@ -179,64 +179,64 @@ ${t} color: var(--n-icon-color); transition: color .3s var(--n-bezier); - `,[W("+",[j("description",` + `,[q("+",[U("description",` margin-top: 8px; - `)])]),j("description",` + `)])]),U("description",` transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),j("extra",` + `),U("extra",` text-align: center; transition: color .3s var(--n-bezier); margin-top: 12px; color: var(--n-extra-text-color); - `)]),wH=Object.assign(Object.assign({},Le.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),W_=xe({name:"Empty",props:wH,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Empty","-empty",CH,$u,e,t),{localeRef:r}=Hi("Empty"),i=Ve(Ao,null),a=I(()=>{var u,d,f;return(u=e.description)!==null&&u!==void 0?u:(f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.description}),s=I(()=>{var u,d;return((d=(u=i==null?void 0:i.mergedComponentPropsRef.value)===null||u===void 0?void 0:u.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>v(AN,null))}),l=I(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:d},self:{[Te("iconSize",u)]:f,[Te("fontSize",u)]:h,textColor:p,iconColor:g,extraTextColor:m}}=o.value;return{"--n-icon-size":f,"--n-font-size":h,"--n-bezier":d,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":m}}),c=n?Pt("empty",I(()=>{let u="";const{size:d}=e;return u+=d[0],u}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:I(()=>a.value||r.value.description),cssVars:n?void 0:l,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),v("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?v("div",{class:`${t}-empty__icon`},e.icon?e.icon():v(Wt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?v("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?v("div",{class:`${t}-empty__extra`},e.extra()):null)}}),_H={railInsetHorizontal:"auto 2px 4px 2px",railInsetVertical:"2px 4px 2px auto",railColor:"transparent"};function q_(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:o,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},_H),{height:o,width:r,borderRadius:i,color:t,colorHover:n})}const SH={name:"Scrollbar",common:xt,self:q_},Gi=SH,kH={name:"Scrollbar",common:He,self:q_},Un=kH,{cubicBezierEaseInOut:j0}=mo;function dl({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=j0,leaveCubicBezier:r=j0}={}){return[W(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),W(`&.${e}-transition-leave-active`,{transition:`all ${n} ${r}!important`}),W(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),W(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const PH=z("scrollbar",` + `)]),$H=Object.assign(Object.assign({},Le.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),J_=ye({name:"Empty",props:$H,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Empty","-empty",EH,Fu,e,t),{localeRef:r}=Ui("Empty"),i=Ve(Eo,null),a=M(()=>{var u,d,f;return(u=e.description)!==null&&u!==void 0?u:(f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.description}),s=M(()=>{var u,d;return((d=(u=i==null?void 0:i.mergedComponentPropsRef.value)===null||u===void 0?void 0:u.Empty)===null||d===void 0?void 0:d.renderIcon)||(()=>v(BN,null))}),l=M(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:d},self:{[Te("iconSize",u)]:f,[Te("fontSize",u)]:h,textColor:p,iconColor:g,extraTextColor:m}}=o.value;return{"--n-icon-size":f,"--n-font-size":h,"--n-bezier":d,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":m}}),c=n?Pt("empty",M(()=>{let u="";const{size:d}=e;return u+=d[0],u}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:M(()=>a.value||r.value.description),cssVars:n?void 0:l,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),v("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?v("div",{class:`${t}-empty__icon`},e.icon?e.icon():v(Wt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?v("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?v("div",{class:`${t}-empty__extra`},e.extra()):null)}}),IH={railInsetHorizontal:"auto 2px 4px 2px",railInsetVertical:"2px 4px 2px auto",railColor:"transparent"};function Z_(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:o,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},IH),{height:o,width:r,borderRadius:i,color:t,colorHover:n})}const OH={name:"Scrollbar",common:xt,self:Z_},Yi=OH,MH={name:"Scrollbar",common:je,self:Z_},Un=MH,{cubicBezierEaseInOut:X0}=mo;function pl({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=X0,leaveCubicBezier:r=X0}={}){return[q(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),q(`&.${e}-transition-leave-active`,{transition:`all ${n} ${r}!important`}),q(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),q(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const zH=z("scrollbar",` overflow: hidden; position: relative; z-index: auto; height: 100%; width: 100%; -`,[W(">",[z("scrollbar-container",` +`,[q(">",[z("scrollbar-container",` width: 100%; overflow: scroll; height: 100%; min-height: inherit; max-height: inherit; scrollbar-width: none; - `,[W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + `,[q("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` width: 0; height: 0; display: none; - `),W(">",[z("scrollbar-content",` + `),q(">",[z("scrollbar-content",` box-sizing: border-box; min-width: 100%; - `)])])]),W(">, +",[z("scrollbar-rail",` + `)])])]),q(">, +",[z("scrollbar-rail",` position: absolute; pointer-events: none; user-select: none; background: var(--n-scrollbar-rail-color); -webkit-user-select: none; - `,[J("horizontal",` + `,[Z("horizontal",` inset: var(--n-scrollbar-rail-inset-horizontal); height: var(--n-scrollbar-height); - `,[W(">",[j("scrollbar",` + `,[q(">",[U("scrollbar",` height: var(--n-scrollbar-height); border-radius: var(--n-scrollbar-border-radius); right: 0; - `)])]),J("vertical",` + `)])]),Z("vertical",` inset: var(--n-scrollbar-rail-inset-vertical); width: var(--n-scrollbar-width); - `,[W(">",[j("scrollbar",` + `,[q(">",[U("scrollbar",` width: var(--n-scrollbar-width); border-radius: var(--n-scrollbar-border-radius); bottom: 0; - `)])]),J("disabled",[W(">",[j("scrollbar","pointer-events: none;")])]),W(">",[j("scrollbar",` + `)])]),Z("disabled",[q(">",[U("scrollbar","pointer-events: none;")])]),q(">",[U("scrollbar",` z-index: 1; position: absolute; cursor: pointer; pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); - `,[dl(),W("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),TH=Object.assign(Object.assign({},Le.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),K_=xe({name:"Scrollbar",props:TH,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=st(e),r=pn("Scrollbar",o,t),i=U(null),a=U(null),s=U(null),l=U(null),c=U(null),u=U(null),d=U(null),f=U(null),h=U(null),p=U(null),g=U(null),m=U(0),b=U(0),w=U(!1),C=U(!1);let _=!1,S=!1,y,x,P=0,k=0,T=0,R=0;const E=P8(),q=Le("Scrollbar","-scrollbar",PH,Gi,e,t),D=I(()=>{const{value:Q}=f,{value:ye}=u,{value:Ae}=p;return Q===null||ye===null||Ae===null?0:Math.min(Q,Ae*Q/ye+bn(q.value.self.width)*1.5)}),B=I(()=>`${D.value}px`),M=I(()=>{const{value:Q}=h,{value:ye}=d,{value:Ae}=g;return Q===null||ye===null||Ae===null?0:Ae*Q/ye+bn(q.value.self.height)*1.5}),K=I(()=>`${M.value}px`),V=I(()=>{const{value:Q}=f,{value:ye}=m,{value:Ae}=u,{value:qe}=p;if(Q===null||Ae===null||qe===null)return 0;{const Qe=Ae-Q;return Qe?ye/Qe*(qe-D.value):0}}),ae=I(()=>`${V.value}px`),pe=I(()=>{const{value:Q}=h,{value:ye}=b,{value:Ae}=d,{value:qe}=g;if(Q===null||Ae===null||qe===null)return 0;{const Qe=Ae-Q;return Qe?ye/Qe*(qe-M.value):0}}),Z=I(()=>`${pe.value}px`),N=I(()=>{const{value:Q}=f,{value:ye}=u;return Q!==null&&ye!==null&&ye>Q}),O=I(()=>{const{value:Q}=h,{value:ye}=d;return Q!==null&&ye!==null&&ye>Q}),ee=I(()=>{const{trigger:Q}=e;return Q==="none"||w.value}),G=I(()=>{const{trigger:Q}=e;return Q==="none"||C.value}),ne=I(()=>{const{container:Q}=e;return Q?Q():a.value}),X=I(()=>{const{content:Q}=e;return Q?Q():s.value}),ce=(Q,ye)=>{if(!e.scrollable)return;if(typeof Q=="number"){F(Q,ye??0,0,!1,"auto");return}const{left:Ae,top:qe,index:Qe,elSize:Je,position:tt,behavior:it,el:vt,debounce:an=!0}=Q;(Ae!==void 0||qe!==void 0)&&F(Ae??0,qe??0,0,!1,it),vt!==void 0?F(0,vt.offsetTop,vt.offsetHeight,an,it):Qe!==void 0&&Je!==void 0?F(0,Qe*Je,Je,an,it):tt==="bottom"?F(0,Number.MAX_SAFE_INTEGER,0,!1,it):tt==="top"&&F(0,0,0,!1,it)},L=Qp(()=>{e.container||ce({top:m.value,left:b.value})}),be=()=>{L.isDeactivated||ue()},Oe=Q=>{if(L.isDeactivated)return;const{onResize:ye}=e;ye&&ye(Q),ue()},je=(Q,ye)=>{if(!e.scrollable)return;const{value:Ae}=ne;Ae&&(typeof Q=="object"?Ae.scrollBy(Q):Ae.scrollBy(Q,ye||0))};function F(Q,ye,Ae,qe,Qe){const{value:Je}=ne;if(Je){if(qe){const{scrollTop:tt,offsetHeight:it}=Je;if(ye>tt){ye+Ae<=tt+it||Je.scrollTo({left:Q,top:ye+Ae-it,behavior:Qe});return}}Je.scrollTo({left:Q,top:ye,behavior:Qe})}}function A(){ke(),$(),ue()}function re(){we()}function we(){oe(),ve()}function oe(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{C.value=!1},e.duration)}function ve(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{w.value=!1},e.duration)}function ke(){y!==void 0&&window.clearTimeout(y),w.value=!0}function $(){x!==void 0&&window.clearTimeout(x),C.value=!0}function H(Q){const{onScroll:ye}=e;ye&&ye(Q),te()}function te(){const{value:Q}=ne;Q&&(m.value=Q.scrollTop,b.value=Q.scrollLeft*(r!=null&&r.value?-1:1))}function Ce(){const{value:Q}=X;Q&&(u.value=Q.offsetHeight,d.value=Q.offsetWidth);const{value:ye}=ne;ye&&(f.value=ye.offsetHeight,h.value=ye.offsetWidth);const{value:Ae}=c,{value:qe}=l;Ae&&(g.value=Ae.offsetWidth),qe&&(p.value=qe.offsetHeight)}function de(){const{value:Q}=ne;Q&&(m.value=Q.scrollTop,b.value=Q.scrollLeft*(r!=null&&r.value?-1:1),f.value=Q.offsetHeight,h.value=Q.offsetWidth,u.value=Q.scrollHeight,d.value=Q.scrollWidth);const{value:ye}=c,{value:Ae}=l;ye&&(g.value=ye.offsetWidth),Ae&&(p.value=Ae.offsetHeight)}function ue(){e.scrollable&&(e.useUnifiedContainer?de():(Ce(),te()))}function ie(Q){var ye;return!(!((ye=i.value)===null||ye===void 0)&&ye.contains($i(Q)))}function fe(Q){Q.preventDefault(),Q.stopPropagation(),S=!0,$t("mousemove",window,Fe,!0),$t("mouseup",window,De,!0),k=b.value,T=r!=null&&r.value?window.innerWidth-Q.clientX:Q.clientX}function Fe(Q){if(!S)return;y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x);const{value:ye}=h,{value:Ae}=d,{value:qe}=M;if(ye===null||Ae===null)return;const Je=(r!=null&&r.value?window.innerWidth-Q.clientX-T:Q.clientX-T)*(Ae-ye)/(ye-qe),tt=Ae-ye;let it=k+Je;it=Math.min(tt,it),it=Math.max(it,0);const{value:vt}=ne;if(vt){vt.scrollLeft=it*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:an}=e;an&&an(it)}}function De(Q){Q.preventDefault(),Q.stopPropagation(),Tt("mousemove",window,Fe,!0),Tt("mouseup",window,De,!0),S=!1,ue(),ie(Q)&&we()}function Me(Q){Q.preventDefault(),Q.stopPropagation(),_=!0,$t("mousemove",window,Ne,!0),$t("mouseup",window,et,!0),P=m.value,R=Q.clientY}function Ne(Q){if(!_)return;y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x);const{value:ye}=f,{value:Ae}=u,{value:qe}=D;if(ye===null||Ae===null)return;const Je=(Q.clientY-R)*(Ae-ye)/(ye-qe),tt=Ae-ye;let it=P+Je;it=Math.min(tt,it),it=Math.max(it,0);const{value:vt}=ne;vt&&(vt.scrollTop=it)}function et(Q){Q.preventDefault(),Q.stopPropagation(),Tt("mousemove",window,Ne,!0),Tt("mouseup",window,et,!0),_=!1,ue(),ie(Q)&&we()}Yt(()=>{const{value:Q}=O,{value:ye}=N,{value:Ae}=t,{value:qe}=c,{value:Qe}=l;qe&&(Q?qe.classList.remove(`${Ae}-scrollbar-rail--disabled`):qe.classList.add(`${Ae}-scrollbar-rail--disabled`)),Qe&&(ye?Qe.classList.remove(`${Ae}-scrollbar-rail--disabled`):Qe.classList.add(`${Ae}-scrollbar-rail--disabled`))}),jt(()=>{e.container||ue()}),on(()=>{y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x),Tt("mousemove",window,Ne,!0),Tt("mouseup",window,et,!0)});const $e=I(()=>{const{common:{cubicBezierEaseInOut:Q},self:{color:ye,colorHover:Ae,height:qe,width:Qe,borderRadius:Je,railInsetHorizontal:tt,railInsetVertical:it,railColor:vt}}=q.value;return{"--n-scrollbar-bezier":Q,"--n-scrollbar-color":ye,"--n-scrollbar-color-hover":Ae,"--n-scrollbar-border-radius":Je,"--n-scrollbar-width":Qe,"--n-scrollbar-height":qe,"--n-scrollbar-rail-inset-horizontal":tt,"--n-scrollbar-rail-inset-vertical":r!=null&&r.value?WI(it):it,"--n-scrollbar-rail-color":vt}}),Xe=n?Pt("scrollbar",void 0,$e,e):void 0;return Object.assign(Object.assign({},{scrollTo:ce,scrollBy:je,sync:ue,syncUnifiedContainer:de,handleMouseEnterWrapper:A,handleMouseLeaveWrapper:re}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:N,needXBar:O,yBarSizePx:B,xBarSizePx:K,yBarTopPx:ae,xBarLeftPx:Z,isShowXBar:ee,isShowYBar:G,isIos:E,handleScroll:H,handleContentResize:be,handleContainerResize:Oe,handleYScrollMouseDown:Me,handleXScrollMouseDown:fe,cssVars:n?void 0:$e,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:r,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(u,d)=>v("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[d||"",this.verticalRailStyle],"aria-hidden":!0},v(a?vh:fn,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var u,d;return(u=this.onRender)===null||u===void 0||u.call(this),v("div",Ln(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,r&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):v("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},v(ur,{onResize:this.handleContentResize},{default:()=>v("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&v("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},v(a?vh:fn,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():v(ur,{onResize:this.handleContainerResize},{default:l});return i?v(rt,null,c,s(this.themeClass,this.cssVars)):c}}),Oo=K_,G_=K_,EH={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function X_(e){const{borderRadius:t,popoverColor:n,textColor3:o,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,fontSizeHuge:p,heightSmall:g,heightMedium:m,heightLarge:b,heightHuge:w}=e;return Object.assign(Object.assign({},EH),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:h,optionFontSizeHuge:p,optionHeightSmall:g,optionHeightMedium:m,optionHeightLarge:b,optionHeightHuge:w,borderRadius:t,color:n,groupHeaderTextColor:o,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})}const RH={name:"InternalSelectMenu",common:xt,peers:{Scrollbar:Gi,Empty:$u},self:X_},fm=RH,AH={name:"InternalSelectMenu",common:He,peers:{Scrollbar:Un,Empty:Ki},self:X_},fl=AH;function $H(e,t){return v(fn,{name:"fade-in-scale-up-transition"},{default:()=>e?v(Wt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>v(PN)}):null})}const U0=xe({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:s,valueFieldRef:l,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:d,handleOptionMouseEnter:f}=Ve(jp),h=kt(()=>{const{value:b}=n;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:w}=e;w.disabled||d(b,w)}function g(b){const{tmNode:w}=e;w.disabled||f(b,w)}function m(b){const{tmNode:w}=e,{value:C}=h;w.disabled||C||f(b,w)}return{multiple:o,isGrouped:kt(()=>{const{tmNode:b}=e,{parent:w}=b;return w&&w.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:h,isSelected:kt(()=>{const{value:b}=t,{value:w}=o;if(b===null)return!1;const C=e.tmNode.rawNode[l.value];if(w){const{value:_}=r;return _.has(C)}else return b===C}),labelField:s,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:s,renderLabel:l,handleClick:c,handleMouseEnter:u,handleMouseMove:d}=this,f=$H(n,e),h=l?[l(t,n),i&&f]:[Vt(t[this.labelField],t,n),i&&f],p=a==null?void 0:a(t),g=v("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:Es([c,p==null?void 0:p.onClick]),onMouseenter:Es([u,p==null?void 0:p.onMouseenter]),onMousemove:Es([d,p==null?void 0:p.onMousemove])}),v("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:g,option:t,selected:n}):s?s({node:g,option:t,selected:n}):g}}),V0=xe({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=Ve(jp);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:r}}=this,i=o==null?void 0:o(r),a=t?t(r,!1):Vt(r[this.labelField],r,!1),s=v("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:s,option:r}):n?n({node:s,option:r,selected:!1}):s}}),{cubicBezierEaseIn:W0,cubicBezierEaseOut:q0}=mo;function Wa({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:r=""}={}){return[W("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${W0}, transform ${t} ${W0} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${q0}, transform ${t} ${q0} ${r&&`,${r}`}`}),W("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),W("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const IH=z("base-select-menu",` + `,[pl(),q("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),FH=Object.assign(Object.assign({},Le.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),eS=ye({name:"Scrollbar",props:FH,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=st(e),r=pn("Scrollbar",o,t),i=j(null),a=j(null),s=j(null),l=j(null),c=j(null),u=j(null),d=j(null),f=j(null),h=j(null),p=j(null),g=j(null),m=j(0),b=j(0),w=j(!1),C=j(!1);let _=!1,S=!1,y,x,k=0,P=0,T=0,$=0;const E=z8(),G=Le("Scrollbar","-scrollbar",zH,Yi,e,t),B=M(()=>{const{value:J}=f,{value:xe}=u,{value:Ee}=p;return J===null||xe===null||Ee===null?0:Math.min(J,Ee*J/xe+bn(G.value.self.width)*1.5)}),D=M(()=>`${B.value}px`),L=M(()=>{const{value:J}=h,{value:xe}=d,{value:Ee}=g;return J===null||xe===null||Ee===null?0:Ee*J/xe+bn(G.value.self.height)*1.5}),X=M(()=>`${L.value}px`),V=M(()=>{const{value:J}=f,{value:xe}=m,{value:Ee}=u,{value:qe}=p;if(J===null||Ee===null||qe===null)return 0;{const Qe=Ee-J;return Qe?xe/Qe*(qe-B.value):0}}),ae=M(()=>`${V.value}px`),ue=M(()=>{const{value:J}=h,{value:xe}=b,{value:Ee}=d,{value:qe}=g;if(J===null||Ee===null||qe===null)return 0;{const Qe=Ee-J;return Qe?xe/Qe*(qe-L.value):0}}),ee=M(()=>`${ue.value}px`),R=M(()=>{const{value:J}=f,{value:xe}=u;return J!==null&&xe!==null&&xe>J}),A=M(()=>{const{value:J}=h,{value:xe}=d;return J!==null&&xe!==null&&xe>J}),Y=M(()=>{const{trigger:J}=e;return J==="none"||w.value}),W=M(()=>{const{trigger:J}=e;return J==="none"||C.value}),oe=M(()=>{const{container:J}=e;return J?J():a.value}),K=M(()=>{const{content:J}=e;return J?J():s.value}),le=(J,xe)=>{if(!e.scrollable)return;if(typeof J=="number"){F(J,xe??0,0,!1,"auto");return}const{left:Ee,top:qe,index:Qe,elSize:Je,position:tt,behavior:it,el:vt,debounce:an=!0}=J;(Ee!==void 0||qe!==void 0)&&F(Ee??0,qe??0,0,!1,it),vt!==void 0?F(0,vt.offsetTop,vt.offsetHeight,an,it):Qe!==void 0&&Je!==void 0?F(0,Qe*Je,Je,an,it):tt==="bottom"?F(0,Number.MAX_SAFE_INTEGER,0,!1,it):tt==="top"&&F(0,0,0,!1,it)},N=rm(()=>{e.container||le({top:m.value,left:b.value})}),be=()=>{N.isDeactivated||de()},Ie=J=>{if(N.isDeactivated)return;const{onResize:xe}=e;xe&&xe(J),de()},Ne=(J,xe)=>{if(!e.scrollable)return;const{value:Ee}=oe;Ee&&(typeof J=="object"?Ee.scrollBy(J):Ee.scrollBy(J,xe||0))};function F(J,xe,Ee,qe,Qe){const{value:Je}=oe;if(Je){if(qe){const{scrollTop:tt,offsetHeight:it}=Je;if(xe>tt){xe+Ee<=tt+it||Je.scrollTo({left:J,top:xe+Ee-it,behavior:Qe});return}}Je.scrollTo({left:J,top:xe,behavior:Qe})}}function I(){we(),O(),de()}function re(){_e()}function _e(){ne(),me()}function ne(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{C.value=!1},e.duration)}function me(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{w.value=!1},e.duration)}function we(){y!==void 0&&window.clearTimeout(y),w.value=!0}function O(){x!==void 0&&window.clearTimeout(x),C.value=!0}function H(J){const{onScroll:xe}=e;xe&&xe(J),te()}function te(){const{value:J}=oe;J&&(m.value=J.scrollTop,b.value=J.scrollLeft*(r!=null&&r.value?-1:1))}function Ce(){const{value:J}=K;J&&(u.value=J.offsetHeight,d.value=J.offsetWidth);const{value:xe}=oe;xe&&(f.value=xe.offsetHeight,h.value=xe.offsetWidth);const{value:Ee}=c,{value:qe}=l;Ee&&(g.value=Ee.offsetWidth),qe&&(p.value=qe.offsetHeight)}function fe(){const{value:J}=oe;J&&(m.value=J.scrollTop,b.value=J.scrollLeft*(r!=null&&r.value?-1:1),f.value=J.offsetHeight,h.value=J.offsetWidth,u.value=J.scrollHeight,d.value=J.scrollWidth);const{value:xe}=c,{value:Ee}=l;xe&&(g.value=xe.offsetWidth),Ee&&(p.value=Ee.offsetHeight)}function de(){e.scrollable&&(e.useUnifiedContainer?fe():(Ce(),te()))}function ie(J){var xe;return!(!((xe=i.value)===null||xe===void 0)&&xe.contains(Oi(J)))}function he(J){J.preventDefault(),J.stopPropagation(),S=!0,$t("mousemove",window,Fe,!0),$t("mouseup",window,De,!0),P=b.value,T=r!=null&&r.value?window.innerWidth-J.clientX:J.clientX}function Fe(J){if(!S)return;y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x);const{value:xe}=h,{value:Ee}=d,{value:qe}=L;if(xe===null||Ee===null)return;const Je=(r!=null&&r.value?window.innerWidth-J.clientX-T:J.clientX-T)*(Ee-xe)/(xe-qe),tt=Ee-xe;let it=P+Je;it=Math.min(tt,it),it=Math.max(it,0);const{value:vt}=oe;if(vt){vt.scrollLeft=it*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:an}=e;an&&an(it)}}function De(J){J.preventDefault(),J.stopPropagation(),Tt("mousemove",window,Fe,!0),Tt("mouseup",window,De,!0),S=!1,de(),ie(J)&&_e()}function Me(J){J.preventDefault(),J.stopPropagation(),_=!0,$t("mousemove",window,He,!0),$t("mouseup",window,et,!0),k=m.value,$=J.clientY}function He(J){if(!_)return;y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x);const{value:xe}=f,{value:Ee}=u,{value:qe}=B;if(xe===null||Ee===null)return;const Je=(J.clientY-$)*(Ee-xe)/(xe-qe),tt=Ee-xe;let it=k+Je;it=Math.min(tt,it),it=Math.max(it,0);const{value:vt}=oe;vt&&(vt.scrollTop=it)}function et(J){J.preventDefault(),J.stopPropagation(),Tt("mousemove",window,He,!0),Tt("mouseup",window,et,!0),_=!1,de(),ie(J)&&_e()}Yt(()=>{const{value:J}=A,{value:xe}=R,{value:Ee}=t,{value:qe}=c,{value:Qe}=l;qe&&(J?qe.classList.remove(`${Ee}-scrollbar-rail--disabled`):qe.classList.add(`${Ee}-scrollbar-rail--disabled`)),Qe&&(xe?Qe.classList.remove(`${Ee}-scrollbar-rail--disabled`):Qe.classList.add(`${Ee}-scrollbar-rail--disabled`))}),jt(()=>{e.container||de()}),on(()=>{y!==void 0&&window.clearTimeout(y),x!==void 0&&window.clearTimeout(x),Tt("mousemove",window,He,!0),Tt("mouseup",window,et,!0)});const $e=M(()=>{const{common:{cubicBezierEaseInOut:J},self:{color:xe,colorHover:Ee,height:qe,width:Qe,borderRadius:Je,railInsetHorizontal:tt,railInsetVertical:it,railColor:vt}}=G.value;return{"--n-scrollbar-bezier":J,"--n-scrollbar-color":xe,"--n-scrollbar-color-hover":Ee,"--n-scrollbar-border-radius":Je,"--n-scrollbar-width":Qe,"--n-scrollbar-height":qe,"--n-scrollbar-rail-inset-horizontal":tt,"--n-scrollbar-rail-inset-vertical":r!=null&&r.value?e8(it):it,"--n-scrollbar-rail-color":vt}}),Xe=n?Pt("scrollbar",void 0,$e,e):void 0;return Object.assign(Object.assign({},{scrollTo:le,scrollBy:Ne,sync:de,syncUnifiedContainer:fe,handleMouseEnterWrapper:I,handleMouseLeaveWrapper:re}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:R,needXBar:A,yBarSizePx:D,xBarSizePx:X,yBarTopPx:ae,xBarLeftPx:ee,isShowXBar:Y,isShowYBar:W,isIos:E,handleScroll:H,handleContentResize:be,handleContainerResize:Ie,handleYScrollMouseDown:Me,handleXScrollMouseDown:he,cssVars:n?void 0:$e,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:r,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(u,d)=>v("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,u],"data-scrollbar-rail":!0,style:[d||"",this.verticalRailStyle],"aria-hidden":!0},v(a?_h:fn,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var u,d;return(u=this.onRender)===null||u===void 0||u.call(this),v("div",Ln(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,r&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(d=t.default)===null||d===void 0?void 0:d.call(t):v("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},v(ur,{onResize:this.handleContentResize},{default:()=>v("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&v("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},v(a?_h:fn,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?v("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():v(ur,{onResize:this.handleContainerResize},{default:l});return i?v(rt,null,c,s(this.themeClass,this.cssVars)):c}}),Oo=eS,tS=eS,DH={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function nS(e){const{borderRadius:t,popoverColor:n,textColor3:o,dividerColor:r,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,fontSizeHuge:p,heightSmall:g,heightMedium:m,heightLarge:b,heightHuge:w}=e;return Object.assign(Object.assign({},DH),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:h,optionFontSizeHuge:p,optionHeightSmall:g,optionHeightMedium:m,optionHeightLarge:b,optionHeightHuge:w,borderRadius:t,color:n,groupHeaderTextColor:o,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:l})}const LH={name:"InternalSelectMenu",common:xt,peers:{Scrollbar:Yi,Empty:Fu},self:nS},ym=LH,BH={name:"InternalSelectMenu",common:je,peers:{Scrollbar:Un,Empty:Xi},self:nS},ml=BH;function NH(e,t){return v(fn,{name:"fade-in-scale-up-transition"},{default:()=>e?v(Wt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>v(zN)}):null})}const Y0=ye({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:i,renderOptionRef:a,labelFieldRef:s,valueFieldRef:l,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:d,handleOptionMouseEnter:f}=Ve(Xp),h=kt(()=>{const{value:b}=n;return b?e.tmNode.key===b.key:!1});function p(b){const{tmNode:w}=e;w.disabled||d(b,w)}function g(b){const{tmNode:w}=e;w.disabled||f(b,w)}function m(b){const{tmNode:w}=e,{value:C}=h;w.disabled||C||f(b,w)}return{multiple:o,isGrouped:kt(()=>{const{tmNode:b}=e,{parent:w}=b;return w&&w.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:h,isSelected:kt(()=>{const{value:b}=t,{value:w}=o;if(b===null)return!1;const C=e.tmNode.rawNode[l.value];if(w){const{value:_}=r;return _.has(C)}else return b===C}),labelField:s,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,showCheckmark:i,nodeProps:a,renderOption:s,renderLabel:l,handleClick:c,handleMouseEnter:u,handleMouseMove:d}=this,f=NH(n,e),h=l?[l(t,n),i&&f]:[Vt(t[this.labelField],t,n),i&&f],p=a==null?void 0:a(t),g=v("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:$s([c,p==null?void 0:p.onClick]),onMouseenter:$s([u,p==null?void 0:p.onMouseenter]),onMousemove:$s([d,p==null?void 0:p.onMousemove])}),v("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:g,option:t,selected:n}):s?s({node:g,option:t,selected:n}):g}}),Q0=ye({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=Ve(Xp);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:r}}=this,i=o==null?void 0:o(r),a=t?t(r,!1):Vt(r[this.labelField],r,!1),s=v("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return r.render?r.render({node:s,option:r}):n?n({node:s,option:r,selected:!1}):s}}),{cubicBezierEaseIn:J0,cubicBezierEaseOut:Z0}=mo;function Ga({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:r=""}={}){return[q("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${J0}, transform ${t} ${J0} ${r&&`,${r}`}`}),q("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Z0}, transform ${t} ${Z0} ${r&&`,${r}`}`}),q("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),q("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const HH=z("base-select-menu",` line-height: 1.5; outline: none; z-index: 0; @@ -255,7 +255,7 @@ ${t} font-size: var(--n-option-font-size); display: flex; align-items: center; - `,[j("content",` + `,[U("content",` z-index: 1; white-space: nowrap; text-overflow: ellipsis; @@ -268,15 +268,15 @@ ${t} `),z("base-select-menu-option-wrapper",` position: relative; width: 100%; - `),j("loading, empty",` + `),U("loading, empty",` display: flex; padding: 12px 32px; flex: 1; justify-content: center; - `),j("loading",` + `),U("loading",` color: var(--n-loading-color); font-size: var(--n-loading-size); - `),j("header",` + `),U("header",` padding: 8px var(--n-option-padding-left); font-size: var(--n-option-font-size); transition: @@ -284,7 +284,7 @@ ${t} border-color .3s var(--n-bezier); border-bottom: 1px solid var(--n-action-divider-color); color: var(--n-action-text-color); - `),j("action",` + `),U("action",` padding: 8px var(--n-option-padding-left); font-size: var(--n-option-font-size); transition: @@ -307,9 +307,9 @@ ${t} box-sizing: border-box; color: var(--n-option-text-color); opacity: 1; - `,[J("show-checkmark",` + `,[Z("show-checkmark",` padding-right: calc(var(--n-option-padding-right) + 20px); - `),W("&::before",` + `),q("&::before",` content: ""; position: absolute; left: 4px; @@ -318,39 +318,39 @@ ${t} bottom: 0; border-radius: var(--n-border-radius); transition: background-color .3s var(--n-bezier); - `),W("&:active",` + `),q("&:active",` color: var(--n-option-text-color-pressed); - `),J("grouped",` + `),Z("grouped",` padding-left: calc(var(--n-option-padding-left) * 1.5); - `),J("pending",[W("&::before",` + `),Z("pending",[q("&::before",` background-color: var(--n-option-color-pending); - `)]),J("selected",` + `)]),Z("selected",` color: var(--n-option-text-color-active); - `,[W("&::before",` + `,[q("&::before",` background-color: var(--n-option-color-active); - `),J("pending",[W("&::before",` + `),Z("pending",[q("&::before",` background-color: var(--n-option-color-active-pending); - `)])]),J("disabled",` + `)])]),Z("disabled",` cursor: not-allowed; - `,[Et("selected",` + `,[At("selected",` color: var(--n-option-text-color-disabled); - `),J("selected",` + `),Z("selected",` opacity: var(--n-option-opacity-disabled); - `)]),j("check",` + `)]),U("check",` font-size: 16px; position: absolute; right: calc(var(--n-option-padding-right) - 4px); top: calc(50% - 7px); color: var(--n-option-check-color); transition: color .3s var(--n-bezier); - `,[Wa({enterScale:"0.5"})])])]),Y_=xe({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Le.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("InternalSelectMenu",n,t),r=Le("InternalSelectMenu","-internal-select-menu",IH,fm,e,Ue(e,"clsPrefix")),i=U(null),a=U(null),s=U(null),l=I(()=>e.treeMate.getFlattenedNodes()),c=I(()=>JN(l.value)),u=U(null);function d(){const{treeMate:N}=e;let O=null;const{value:ee}=e;ee===null?O=N.getFirstAvailableNode():(e.multiple?O=N.getNode((ee||[])[(ee||[]).length-1]):O=N.getNode(ee),(!O||O.disabled)&&(O=N.getFirstAvailableNode())),D(O||null)}function f(){const{value:N}=u;N&&!e.treeMate.getNode(N.key)&&(u.value=null)}let h;ft(()=>e.show,N=>{N?h=ft(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?d():f(),Ht(B)):f()},{immediate:!0}):h==null||h()},{immediate:!0}),on(()=>{h==null||h()});const p=I(()=>bn(r.value.self[Te("optionHeight",e.size)])),g=I(()=>co(r.value.self[Te("padding",e.size)])),m=I(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=I(()=>{const N=l.value;return N&&N.length===0});function w(N){const{onToggle:O}=e;O&&O(N)}function C(N){const{onScroll:O}=e;O&&O(N)}function _(N){var O;(O=s.value)===null||O===void 0||O.sync(),C(N)}function S(){var N;(N=s.value)===null||N===void 0||N.sync()}function y(){const{value:N}=u;return N||null}function x(N,O){O.disabled||D(O,!1)}function P(N,O){O.disabled||w(O)}function k(N){var O;lo(N,"action")||(O=e.onKeyup)===null||O===void 0||O.call(e,N)}function T(N){var O;lo(N,"action")||(O=e.onKeydown)===null||O===void 0||O.call(e,N)}function R(N){var O;(O=e.onMousedown)===null||O===void 0||O.call(e,N),!e.focusable&&N.preventDefault()}function E(){const{value:N}=u;N&&D(N.getNext({loop:!0}),!0)}function q(){const{value:N}=u;N&&D(N.getPrev({loop:!0}),!0)}function D(N,O=!1){u.value=N,O&&B()}function B(){var N,O;const ee=u.value;if(!ee)return;const G=c.value(ee.key);G!==null&&(e.virtualScroll?(N=a.value)===null||N===void 0||N.scrollTo({index:G}):(O=s.value)===null||O===void 0||O.scrollTo({index:G,elSize:p.value}))}function M(N){var O,ee;!((O=i.value)===null||O===void 0)&&O.contains(N.target)&&((ee=e.onFocus)===null||ee===void 0||ee.call(e,N))}function K(N){var O,ee;!((O=i.value)===null||O===void 0)&&O.contains(N.relatedTarget)||(ee=e.onBlur)===null||ee===void 0||ee.call(e,N)}at(jp,{handleOptionMouseEnter:x,handleOptionClick:P,valueSetRef:m,pendingTmNodeRef:u,nodePropsRef:Ue(e,"nodeProps"),showCheckmarkRef:Ue(e,"showCheckmark"),multipleRef:Ue(e,"multiple"),valueRef:Ue(e,"value"),renderLabelRef:Ue(e,"renderLabel"),renderOptionRef:Ue(e,"renderOption"),labelFieldRef:Ue(e,"labelField"),valueFieldRef:Ue(e,"valueField")}),at(kw,i),jt(()=>{const{value:N}=s;N&&N.sync()});const V=I(()=>{const{size:N}=e,{common:{cubicBezierEaseInOut:O},self:{height:ee,borderRadius:G,color:ne,groupHeaderTextColor:X,actionDividerColor:ce,optionTextColorPressed:L,optionTextColor:be,optionTextColorDisabled:Oe,optionTextColorActive:je,optionOpacityDisabled:F,optionCheckColor:A,actionTextColor:re,optionColorPending:we,optionColorActive:oe,loadingColor:ve,loadingSize:ke,optionColorActivePending:$,[Te("optionFontSize",N)]:H,[Te("optionHeight",N)]:te,[Te("optionPadding",N)]:Ce}}=r.value;return{"--n-height":ee,"--n-action-divider-color":ce,"--n-action-text-color":re,"--n-bezier":O,"--n-border-radius":G,"--n-color":ne,"--n-option-font-size":H,"--n-group-header-text-color":X,"--n-option-check-color":A,"--n-option-color-pending":we,"--n-option-color-active":oe,"--n-option-color-active-pending":$,"--n-option-height":te,"--n-option-opacity-disabled":F,"--n-option-text-color":be,"--n-option-text-color-active":je,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":L,"--n-option-padding":Ce,"--n-option-padding-left":co(Ce,"left"),"--n-option-padding-right":co(Ce,"right"),"--n-loading-color":ve,"--n-loading-size":ke}}),{inlineThemeDisabled:ae}=e,pe=ae?Pt("internal-select-menu",I(()=>e.size[0]),V,e):void 0,Z={selfRef:i,next:E,prev:q,getPendingTmNode:y};return jw(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:o,virtualListRef:a,scrollbarRef:s,itemSize:p,padding:g,flattenedNodes:l,empty:b,virtualListContainer(){const{value:N}=a;return N==null?void 0:N.listElRef},virtualListContent(){const{value:N}=a;return N==null?void 0:N.itemsElRef},doScroll:C,handleFocusin:M,handleFocusout:K,handleKeyUp:k,handleKeyDown:T,handleMouseDown:R,handleVirtualListResize:S,handleVirtualListScroll:_,cssVars:ae?void 0:V,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender},Z)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:r,onRender:i}=this;return i==null||i(),v("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,r,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},At(e.header,a=>a&&v("div",{class:`${n}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?v("div",{class:`${n}-base-select-menu__loading`},v(ti,{clsPrefix:n,strokeWidth:20})):this.empty?v("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},$n(e.empty,()=>[v(W_,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})])):v(Oo,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?v(Dw,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?v(V0,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:v(U0,{clsPrefix:n,key:a.key,tmNode:a})}):v("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?v(V0,{key:a.key,clsPrefix:n,tmNode:a}):v(U0,{clsPrefix:n,key:a.key,tmNode:a})))}),At(e.action,a=>a&&[v("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),v(DN,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),OH=z("base-wave",` + `,[Ga({enterScale:"0.5"})])])]),oS=ye({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Le.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("InternalSelectMenu",n,t),r=Le("InternalSelectMenu","-internal-select-menu",HH,ym,e,Ue(e,"clsPrefix")),i=j(null),a=j(null),s=j(null),l=M(()=>e.treeMate.getFlattenedNodes()),c=M(()=>sH(l.value)),u=j(null);function d(){const{treeMate:R}=e;let A=null;const{value:Y}=e;Y===null?A=R.getFirstAvailableNode():(e.multiple?A=R.getNode((Y||[])[(Y||[]).length-1]):A=R.getNode(Y),(!A||A.disabled)&&(A=R.getFirstAvailableNode())),B(A||null)}function f(){const{value:R}=u;R&&!e.treeMate.getNode(R.key)&&(u.value=null)}let h;ut(()=>e.show,R=>{R?h=ut(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?d():f(),Ht(D)):f()},{immediate:!0}):h==null||h()},{immediate:!0}),on(()=>{h==null||h()});const p=M(()=>bn(r.value.self[Te("optionHeight",e.size)])),g=M(()=>co(r.value.self[Te("padding",e.size)])),m=M(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=M(()=>{const R=l.value;return R&&R.length===0});function w(R){const{onToggle:A}=e;A&&A(R)}function C(R){const{onScroll:A}=e;A&&A(R)}function _(R){var A;(A=s.value)===null||A===void 0||A.sync(),C(R)}function S(){var R;(R=s.value)===null||R===void 0||R.sync()}function y(){const{value:R}=u;return R||null}function x(R,A){A.disabled||B(A,!1)}function k(R,A){A.disabled||w(A)}function P(R){var A;lo(R,"action")||(A=e.onKeyup)===null||A===void 0||A.call(e,R)}function T(R){var A;lo(R,"action")||(A=e.onKeydown)===null||A===void 0||A.call(e,R)}function $(R){var A;(A=e.onMousedown)===null||A===void 0||A.call(e,R),!e.focusable&&R.preventDefault()}function E(){const{value:R}=u;R&&B(R.getNext({loop:!0}),!0)}function G(){const{value:R}=u;R&&B(R.getPrev({loop:!0}),!0)}function B(R,A=!1){u.value=R,A&&D()}function D(){var R,A;const Y=u.value;if(!Y)return;const W=c.value(Y.key);W!==null&&(e.virtualScroll?(R=a.value)===null||R===void 0||R.scrollTo({index:W}):(A=s.value)===null||A===void 0||A.scrollTo({index:W,elSize:p.value}))}function L(R){var A,Y;!((A=i.value)===null||A===void 0)&&A.contains(R.target)&&((Y=e.onFocus)===null||Y===void 0||Y.call(e,R))}function X(R){var A,Y;!((A=i.value)===null||A===void 0)&&A.contains(R.relatedTarget)||(Y=e.onBlur)===null||Y===void 0||Y.call(e,R)}at(Xp,{handleOptionMouseEnter:x,handleOptionClick:k,valueSetRef:m,pendingTmNodeRef:u,nodePropsRef:Ue(e,"nodeProps"),showCheckmarkRef:Ue(e,"showCheckmark"),multipleRef:Ue(e,"multiple"),valueRef:Ue(e,"value"),renderLabelRef:Ue(e,"renderLabel"),renderOptionRef:Ue(e,"renderOption"),labelFieldRef:Ue(e,"labelField"),valueFieldRef:Ue(e,"valueField")}),at(Iw,i),jt(()=>{const{value:R}=s;R&&R.sync()});const V=M(()=>{const{size:R}=e,{common:{cubicBezierEaseInOut:A},self:{height:Y,borderRadius:W,color:oe,groupHeaderTextColor:K,actionDividerColor:le,optionTextColorPressed:N,optionTextColor:be,optionTextColorDisabled:Ie,optionTextColorActive:Ne,optionOpacityDisabled:F,optionCheckColor:I,actionTextColor:re,optionColorPending:_e,optionColorActive:ne,loadingColor:me,loadingSize:we,optionColorActivePending:O,[Te("optionFontSize",R)]:H,[Te("optionHeight",R)]:te,[Te("optionPadding",R)]:Ce}}=r.value;return{"--n-height":Y,"--n-action-divider-color":le,"--n-action-text-color":re,"--n-bezier":A,"--n-border-radius":W,"--n-color":oe,"--n-option-font-size":H,"--n-group-header-text-color":K,"--n-option-check-color":I,"--n-option-color-pending":_e,"--n-option-color-active":ne,"--n-option-color-active-pending":O,"--n-option-height":te,"--n-option-opacity-disabled":F,"--n-option-text-color":be,"--n-option-text-color-active":Ne,"--n-option-text-color-disabled":Ie,"--n-option-text-color-pressed":N,"--n-option-padding":Ce,"--n-option-padding-left":co(Ce,"left"),"--n-option-padding-right":co(Ce,"right"),"--n-loading-color":me,"--n-loading-size":we}}),{inlineThemeDisabled:ae}=e,ue=ae?Pt("internal-select-menu",M(()=>e.size[0]),V,e):void 0,ee={selfRef:i,next:E,prev:G,getPendingTmNode:y};return Xw(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:o,virtualListRef:a,scrollbarRef:s,itemSize:p,padding:g,flattenedNodes:l,empty:b,virtualListContainer(){const{value:R}=a;return R==null?void 0:R.listElRef},virtualListContent(){const{value:R}=a;return R==null?void 0:R.itemsElRef},doScroll:C,handleFocusin:L,handleFocusout:X,handleKeyUp:P,handleKeyDown:T,handleMouseDown:$,handleVirtualListResize:S,handleVirtualListScroll:_,cssVars:ae?void 0:V,themeClass:ue==null?void 0:ue.themeClass,onRender:ue==null?void 0:ue.onRender},ee)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:r,onRender:i}=this;return i==null||i(),v("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,r,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},Et(e.header,a=>a&&v("div",{class:`${n}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?v("div",{class:`${n}-base-select-menu__loading`},v(oi,{clsPrefix:n,strokeWidth:20})):this.empty?v("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},$n(e.empty,()=>[v(J_,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})])):v(Oo,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?v(Vw,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?v(Q0,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:v(Y0,{clsPrefix:n,key:a.key,tmNode:a})}):v("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?v(Q0,{key:a.key,clsPrefix:n,tmNode:a}):v(Y0,{clsPrefix:n,key:a.key,tmNode:a})))}),Et(e.action,a=>a&&[v("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),v(qN,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),jH=z("base-wave",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: inherit; -`),MH=xe({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ei("-base-wave",OH,Ue(e,"clsPrefix"));const t=U(null),n=U(!1);let o=null;return on(()=>{o!==null&&window.clearTimeout(o)}),{active:n,selfRef:t,play(){o!==null&&(window.clearTimeout(o),n.value=!1,o=null),Ht(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,n.value=!0,o=window.setTimeout(()=>{n.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return v("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),zH={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function Q_(e){const{boxShadow2:t,popoverColor:n,textColor2:o,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},zH),{fontSize:i,borderRadius:r,color:n,dividerColor:a,textColor:o,boxShadow:t})}const FH={name:"Popover",common:xt,self:Q_},qa=FH,DH={name:"Popover",common:He,self:Q_},Xi=DH,Qd={top:"bottom",bottom:"top",left:"right",right:"left"},vn="var(--n-arrow-height) * 1.414",LH=W([z("popover",` +`),UH=ye({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){ni("-base-wave",jH,Ue(e,"clsPrefix"));const t=j(null),n=j(!1);let o=null;return on(()=>{o!==null&&window.clearTimeout(o)}),{active:n,selfRef:t,play(){o!==null&&(window.clearTimeout(o),n.value=!1,o=null),Ht(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,n.value=!0,o=window.setTimeout(()=>{n.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return v("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),VH={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function rS(e){const{boxShadow2:t,popoverColor:n,textColor2:o,borderRadius:r,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},VH),{fontSize:i,borderRadius:r,color:n,dividerColor:a,textColor:o,boxShadow:t})}const WH={name:"Popover",common:xt,self:rS},Xa=WH,qH={name:"Popover",common:je,self:rS},Qi=qH,nf={top:"bottom",bottom:"top",left:"right",right:"left"},vn="var(--n-arrow-height) * 1.414",KH=q([z("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -360,21 +360,21 @@ ${t} color: var(--n-text-color); box-shadow: var(--n-box-shadow); word-break: break-word; - `,[W(">",[z("scrollbar",` + `,[q(">",[z("scrollbar",` height: inherit; max-height: inherit; - `)]),Et("raw",` + `)]),At("raw",` background-color: var(--n-color); border-radius: var(--n-border-radius); - `,[Et("scrollable",[Et("show-header-or-footer","padding: var(--n-padding);")])]),j("header",` + `,[At("scrollable",[At("show-header-or-footer","padding: var(--n-padding);")])]),U("header",` padding: var(--n-padding); border-bottom: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); - `),j("footer",` + `),U("footer",` padding: var(--n-padding); border-top: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); - `),J("scrollable, show-header-or-footer",[j("content",` + `),Z("scrollable, show-header-or-footer",[U("content",` padding: var(--n-padding); `)])]),z("popover-shared",` transform-origin: inherit; @@ -392,20 +392,20 @@ ${t} transform: rotate(45deg); background-color: var(--n-color); pointer-events: all; - `)]),W("&.popover-transition-enter-from, &.popover-transition-leave-to",` + `)]),q("&.popover-transition-enter-from, &.popover-transition-leave-to",` opacity: 0; transform: scale(.85); - `),W("&.popover-transition-enter-to, &.popover-transition-leave-from",` + `),q("&.popover-transition-enter-to, &.popover-transition-leave-from",` transform: scale(1); opacity: 1; - `),W("&.popover-transition-enter-active",` + `),q("&.popover-transition-enter-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-out), transform .15s var(--n-bezier-ease-out); - `),W("&.popover-transition-leave-active",` + `),q("&.popover-transition-leave-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), @@ -452,21 +452,21 @@ ${t} `),io("right-end",` right: calc(${vn} / -2); bottom: calc(${rr("right-end")} + var(--v-offset-top)); - `),...xL({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),o=n?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",s=`calc((${`var(--v-target-${o}, 0px)`} - ${vn}) / 2)`,l=rr(r);return W(`[v-placement="${r}"] >`,[z("popover-shared",[J("center-arrow",[z("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function rr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function io(e,t){const n=e.split("-")[0],o=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return W(`[v-placement="${e}"] >`,[z("popover-shared",` - margin-${Qd[n]}: var(--n-space); - `,[J("show-arrow",` - margin-${Qd[n]}: var(--n-space-arrow); - `),J("overlap",` + `),...RL({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),o=n?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",s=`calc((${`var(--v-target-${o}, 0px)`} - ${vn}) / 2)`,l=rr(r);return q(`[v-placement="${r}"] >`,[z("popover-shared",[Z("center-arrow",[z("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function rr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function io(e,t){const n=e.split("-")[0],o=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return q(`[v-placement="${e}"] >`,[z("popover-shared",` + margin-${nf[n]}: var(--n-space); + `,[Z("show-arrow",` + margin-${nf[n]}: var(--n-space-arrow); + `),Z("overlap",` margin: 0; - `),f8("popover-arrow-wrapper",` + `),C8("popover-arrow-wrapper",` right: 0; left: 0; top: 0; bottom: 0; ${n}: 100%; - ${Qd[n]}: auto; + ${nf[n]}: auto; ${o} - `,[z("popover-arrow",t)])])])}const J_=Object.assign(Object.assign({},Le.props),{to:Ko.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Z_({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:o,clsPrefix:r}){return v("div",{key:"__popover-arrow__",style:o,class:[`${r}-popover-arrow-wrapper`,n]},v("div",{class:[`${r}-popover-arrow`,e],style:t}))}const BH=xe({name:"PopoverBody",inheritAttrs:!1,props:J_,setup(e,{slots:t,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:i}=st(e),a=Le("Popover","-popover",LH,qa,e,r),s=U(null),l=Ve("NPopover"),c=U(null),u=U(e.show),d=U(!1);Yt(()=>{const{show:x}=e;x&&!h8()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=I(()=>{const{trigger:x,onClickoutside:P}=e,k=[],{positionManuallyRef:{value:T}}=l;return T||(x==="click"&&!P&&k.push([Ea,_,void 0,{capture:!0}]),x==="hover"&&k.push([M8,C])),P&&k.push([Ea,_,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&k.push([Mn,e.show]),k}),h=I(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:P,cubicBezierEaseOut:k},self:{space:T,spaceArrow:R,padding:E,fontSize:q,textColor:D,dividerColor:B,color:M,boxShadow:K,borderRadius:V,arrowHeight:ae,arrowOffset:pe,arrowOffsetVertical:Z}}=a.value;return{"--n-box-shadow":K,"--n-bezier":x,"--n-bezier-ease-in":P,"--n-bezier-ease-out":k,"--n-font-size":q,"--n-text-color":D,"--n-color":M,"--n-divider-color":B,"--n-border-radius":V,"--n-arrow-height":ae,"--n-arrow-offset":pe,"--n-arrow-offset-vertical":Z,"--n-padding":E,"--n-space":T,"--n-space-arrow":R}}),p=I(()=>{const x=e.width==="trigger"?void 0:qt(e.width),P=[];x&&P.push({width:x});const{maxWidth:k,minWidth:T}=e;return k&&P.push({maxWidth:qt(k)}),T&&P.push({maxWidth:qt(T)}),i||P.push(h.value),P}),g=i?Pt("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:m}),on(()=>{l.setBodyInstance(null)}),ft(Ue(e,"show"),x=>{e.animated||(x?u.value=!0:u.value=!1)});function m(){var x;(x=s.value)===null||x===void 0||x.syncPosition()}function b(x){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(x)}function w(x){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(x)}function C(x){e.trigger==="hover"&&!S().contains($i(x))&&l.handleMouseMoveOutside(x)}function _(x){(e.trigger==="click"&&!S().contains($i(x))||e.onClickoutside)&&l.handleClickOutside(x)}function S(){return l.getTriggerElement()}at(ja,c),at(ll,null),at(sl,null);function y(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let P;const k=l.internalRenderBodyRef.value,{value:T}=r;if(k)P=k([`${T}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],c,p.value,b,w);else{const{value:R}=l.extraClassRef,{internalTrapFocus:E}=e,q=!pa(t.header)||!pa(t.footer),D=()=>{var B,M;const K=q?v(rt,null,At(t.header,pe=>pe?v("div",{class:[`${T}-popover__header`,e.headerClass],style:e.headerStyle},pe):null),At(t.default,pe=>pe?v("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t):null),At(t.footer,pe=>pe?v("div",{class:[`${T}-popover__footer`,e.footerClass],style:e.footerStyle},pe):null)):e.scrollable?(B=t.default)===null||B===void 0?void 0:B.call(t):v("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t),V=e.scrollable?v(G_,{contentClass:q?void 0:`${T}-popover__content ${(M=e.contentClass)!==null&&M!==void 0?M:""}`,contentStyle:q?void 0:e.contentStyle},{default:()=>K}):K,ae=e.showArrow?Z_({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:T}):null;return[V,ae]};P=v("div",Ln({class:[`${T}-popover`,`${T}-popover-shared`,g==null?void 0:g.themeClass.value,R.map(B=>`${T}-${B}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:q,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:b,onMouseleave:w},n),E?v(Xp,{active:e.show,autoFocus:!0},{default:D}):D())}return dn(P,f.value)}return{displayed:d,namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Ko(e),followerEnabled:u,renderContentNode:y}},render(){return v(Kp,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Ko.tdkey},{default:()=>this.animated?v(fn,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),NH=Object.keys(J_),HH={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function jH(e,t,n){HH[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[o],i=n[o];r?e.props[o]=(...a)=>{r(...a),i(...a)}:e.props[o]=i})}const Aa={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ko.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},UH=Object.assign(Object.assign(Object.assign({},Le.props),Aa),{internalOnAfterLeave:Function,internalRenderBody:Function}),hl=xe({name:"Popover",inheritAttrs:!1,props:UH,__popover__:!0,setup(e){const t=Zr(),n=U(null),o=I(()=>e.show),r=U(e.defaultShow),i=rn(o,r),a=kt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:B}=e;return!!(B!=null&&B())},l=()=>s()?!1:i.value,c=_u(e,["arrow","showArrow"]),u=I(()=>e.overlap?!1:c.value);let d=null;const f=U(null),h=U(null),p=kt(()=>e.x!==void 0&&e.y!==void 0);function g(B){const{"onUpdate:show":M,onUpdateShow:K,onShow:V,onHide:ae}=e;r.value=B,M&&Re(M,B),K&&Re(K,B),B&&V&&Re(V,!0),B&&ae&&Re(ae,!1)}function m(){d&&d.syncPosition()}function b(){const{value:B}=f;B&&(window.clearTimeout(B),f.value=null)}function w(){const{value:B}=h;B&&(window.clearTimeout(B),h.value=null)}function C(){const B=s();if(e.trigger==="focus"&&!B){if(l())return;g(!0)}}function _(){const B=s();if(e.trigger==="focus"&&!B){if(!l())return;g(!1)}}function S(){const B=s();if(e.trigger==="hover"&&!B){if(w(),f.value!==null||l())return;const M=()=>{g(!0),f.value=null},{delay:K}=e;K===0?M():f.value=window.setTimeout(M,K)}}function y(){const B=s();if(e.trigger==="hover"&&!B){if(b(),h.value!==null||!l())return;const M=()=>{g(!1),h.value=null},{duration:K}=e;K===0?M():h.value=window.setTimeout(M,K)}}function x(){y()}function P(B){var M;l()&&(e.trigger==="click"&&(b(),w(),g(!1)),(M=e.onClickoutside)===null||M===void 0||M.call(e,B))}function k(){if(e.trigger==="click"&&!s()){b(),w();const B=!l();g(B)}}function T(B){e.internalTrapFocus&&B.key==="Escape"&&(b(),w(),g(!1))}function R(B){r.value=B}function E(){var B;return(B=n.value)===null||B===void 0?void 0:B.targetRef}function q(B){d=B}return at("NPopover",{getTriggerElement:E,handleKeydown:T,handleMouseEnter:S,handleMouseLeave:y,handleClickOutside:P,handleMouseMoveOutside:x,setBodyInstance:q,positionManuallyRef:p,isMountedRef:t,zIndexRef:Ue(e,"zIndex"),extraClassRef:Ue(e,"internalExtraClass"),internalRenderBodyRef:Ue(e,"internalRenderBody")}),Yt(()=>{i.value&&s()&&g(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:u,getMergedShow:l,setShow:R,handleClick:k,handleMouseEnter:S,handleMouseLeave:y,handleFocus:C,handleBlur:_,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let o,r=!1;if(!t&&(n.activator?o=mh(n,"activator"):o=mh(n,"trigger"),o)){o=fo(o),o=o.type===Ma?v("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)r=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(u=>{u.onBlur(c)})},onFocus:c=>{s.forEach(u=>{u.onFocus(c)})},onClick:c=>{s.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{s.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{s.forEach(u=>{u.onMouseleave(c)})}};jH(o,a?"nested":t?"manual":this.trigger,l)}}return v(Vp,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?dn(v("div",{style:{position:"fixed",inset:0}}),[[Su,{enabled:i,zIndex:this.zIndex}]]):null,t?null:v(Wp,null,{default:()=>o}),v(BH,eo(this.$props,NH,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),eS={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},VH={name:"Tag",common:He,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:m,closeColorPressed:b,borderRadiusSmall:w,fontSizeMini:C,fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,heightMini:x,heightTiny:P,heightSmall:k,heightMedium:T,buttonColor2Hover:R,buttonColor2Pressed:E,fontWeightStrong:q}=e;return Object.assign(Object.assign({},eS),{closeBorderRadius:w,heightTiny:x,heightSmall:P,heightMedium:k,heightLarge:T,borderRadius:w,opacityDisabled:f,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,fontWeightStrong:q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:R,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:m,closeColorPressed:b,borderPrimary:`1px solid ${Ie(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ie(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:un(r,{lightness:.7}),closeIconColorHoverPrimary:un(r,{lightness:.7}),closeIconColorPressedPrimary:un(r,{lightness:.7}),closeColorHoverPrimary:Ie(r,{alpha:.16}),closeColorPressedPrimary:Ie(r,{alpha:.12}),borderInfo:`1px solid ${Ie(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ie(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:un(i,{alpha:.7}),closeIconColorHoverInfo:un(i,{alpha:.7}),closeIconColorPressedInfo:un(i,{alpha:.7}),closeColorHoverInfo:Ie(i,{alpha:.16}),closeColorPressedInfo:Ie(i,{alpha:.12}),borderSuccess:`1px solid ${Ie(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ie(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:un(a,{alpha:.7}),closeIconColorHoverSuccess:un(a,{alpha:.7}),closeIconColorPressedSuccess:un(a,{alpha:.7}),closeColorHoverSuccess:Ie(a,{alpha:.16}),closeColorPressedSuccess:Ie(a,{alpha:.12}),borderWarning:`1px solid ${Ie(s,{alpha:.3})}`,textColorWarning:s,colorWarning:Ie(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:un(s,{alpha:.7}),closeIconColorHoverWarning:un(s,{alpha:.7}),closeIconColorPressedWarning:un(s,{alpha:.7}),closeColorHoverWarning:Ie(s,{alpha:.16}),closeColorPressedWarning:Ie(s,{alpha:.11}),borderError:`1px solid ${Ie(l,{alpha:.3})}`,textColorError:l,colorError:Ie(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:un(l,{alpha:.7}),closeIconColorHoverError:un(l,{alpha:.7}),closeIconColorPressedError:un(l,{alpha:.7}),closeColorHoverError:Ie(l,{alpha:.16}),closeColorPressedError:Ie(l,{alpha:.12})})}},tS=VH;function WH(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:m,fontSizeMini:b,fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:_,heightMini:S,heightTiny:y,heightSmall:x,heightMedium:P,closeColorHover:k,closeColorPressed:T,buttonColor2Hover:R,buttonColor2Pressed:E,fontWeightStrong:q}=e;return Object.assign(Object.assign({},eS),{closeBorderRadius:m,heightTiny:S,heightSmall:y,heightMedium:x,heightLarge:P,borderRadius:m,opacityDisabled:d,fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:_,fontWeightStrong:q,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:R,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:k,closeColorPressed:T,borderPrimary:`1px solid ${Ie(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Ie(r,{alpha:.12}),colorBorderedPrimary:Ie(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Ie(r,{alpha:.12}),closeColorPressedPrimary:Ie(r,{alpha:.18}),borderInfo:`1px solid ${Ie(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ie(i,{alpha:.12}),colorBorderedInfo:Ie(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Ie(i,{alpha:.12}),closeColorPressedInfo:Ie(i,{alpha:.18}),borderSuccess:`1px solid ${Ie(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ie(a,{alpha:.12}),colorBorderedSuccess:Ie(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Ie(a,{alpha:.12}),closeColorPressedSuccess:Ie(a,{alpha:.18}),borderWarning:`1px solid ${Ie(s,{alpha:.35})}`,textColorWarning:s,colorWarning:Ie(s,{alpha:.15}),colorBorderedWarning:Ie(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:Ie(s,{alpha:.12}),closeColorPressedWarning:Ie(s,{alpha:.18}),borderError:`1px solid ${Ie(l,{alpha:.23})}`,textColorError:l,colorError:Ie(l,{alpha:.1}),colorBorderedError:Ie(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:Ie(l,{alpha:.12}),closeColorPressedError:Ie(l,{alpha:.18})})}const qH={name:"Tag",common:xt,self:WH},KH=qH,GH={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},XH=z("tag",` + `,[z("popover-arrow",t)])])])}const iS=Object.assign(Object.assign({},Le.props),{to:Ko.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function aS({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:o,clsPrefix:r}){return v("div",{key:"__popover-arrow__",style:o,class:[`${r}-popover-arrow-wrapper`,n]},v("div",{class:[`${r}-popover-arrow`,e],style:t}))}const GH=ye({name:"PopoverBody",inheritAttrs:!1,props:iS,setup(e,{slots:t,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:i}=st(e),a=Le("Popover","-popover",KH,Xa,e,r),s=j(null),l=Ve("NPopover"),c=j(null),u=j(e.show),d=j(!1);Yt(()=>{const{show:x}=e;x&&!w8()&&!e.internalDeactivateImmediately&&(d.value=!0)});const f=M(()=>{const{trigger:x,onClickoutside:k}=e,P=[],{positionManuallyRef:{value:T}}=l;return T||(x==="click"&&!k&&P.push([Ea,_,void 0,{capture:!0}]),x==="hover"&&P.push([U8,C])),k&&P.push([Ea,_,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&d.value)&&P.push([Mn,e.show]),P}),h=M(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:k,cubicBezierEaseOut:P},self:{space:T,spaceArrow:$,padding:E,fontSize:G,textColor:B,dividerColor:D,color:L,boxShadow:X,borderRadius:V,arrowHeight:ae,arrowOffset:ue,arrowOffsetVertical:ee}}=a.value;return{"--n-box-shadow":X,"--n-bezier":x,"--n-bezier-ease-in":k,"--n-bezier-ease-out":P,"--n-font-size":G,"--n-text-color":B,"--n-color":L,"--n-divider-color":D,"--n-border-radius":V,"--n-arrow-height":ae,"--n-arrow-offset":ue,"--n-arrow-offset-vertical":ee,"--n-padding":E,"--n-space":T,"--n-space-arrow":$}}),p=M(()=>{const x=e.width==="trigger"?void 0:qt(e.width),k=[];x&&k.push({width:x});const{maxWidth:P,minWidth:T}=e;return P&&k.push({maxWidth:qt(P)}),T&&k.push({maxWidth:qt(T)}),i||k.push(h.value),k}),g=i?Pt("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:m}),on(()=>{l.setBodyInstance(null)}),ut(Ue(e,"show"),x=>{e.animated||(x?u.value=!0:u.value=!1)});function m(){var x;(x=s.value)===null||x===void 0||x.syncPosition()}function b(x){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(x)}function w(x){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(x)}function C(x){e.trigger==="hover"&&!S().contains(Oi(x))&&l.handleMouseMoveOutside(x)}function _(x){(e.trigger==="click"&&!S().contains(Oi(x))||e.onClickoutside)&&l.handleClickOutside(x)}function S(){return l.getTriggerElement()}at(Wa,c),at(dl,null),at(ul,null);function y(){if(g==null||g.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&d.value))return null;let k;const P=l.internalRenderBodyRef.value,{value:T}=r;if(P)k=P([`${T}-popover-shared`,g==null?void 0:g.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],c,p.value,b,w);else{const{value:$}=l.extraClassRef,{internalTrapFocus:E}=e,G=!ga(t.header)||!ga(t.footer),B=()=>{var D,L;const X=G?v(rt,null,Et(t.header,ue=>ue?v("div",{class:[`${T}-popover__header`,e.headerClass],style:e.headerStyle},ue):null),Et(t.default,ue=>ue?v("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Et(t.footer,ue=>ue?v("div",{class:[`${T}-popover__footer`,e.footerClass],style:e.footerStyle},ue):null)):e.scrollable?(D=t.default)===null||D===void 0?void 0:D.call(t):v("div",{class:[`${T}-popover__content`,e.contentClass],style:e.contentStyle},t),V=e.scrollable?v(tS,{contentClass:G?void 0:`${T}-popover__content ${(L=e.contentClass)!==null&&L!==void 0?L:""}`,contentStyle:G?void 0:e.contentStyle},{default:()=>X}):X,ae=e.showArrow?aS({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:T}):null;return[V,ae]};k=v("div",Ln({class:[`${T}-popover`,`${T}-popover-shared`,g==null?void 0:g.themeClass.value,$.map(D=>`${T}-${D}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:G,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:b,onMouseleave:w},n),E?v(nm,{active:e.show,autoFocus:!0},{default:B}):B())}return dn(k,f.value)}return{displayed:d,namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Ko(e),followerEnabled:u,renderContentNode:y}},render(){return v(em,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Ko.tdkey},{default:()=>this.animated?v(fn,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),XH=Object.keys(iS),YH={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function QH(e,t,n){YH[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[o],i=n[o];r?e.props[o]=(...a)=>{r(...a),i(...a)}:e.props[o]=i})}const Ia={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ko.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},JH=Object.assign(Object.assign(Object.assign({},Le.props),Ia),{internalOnAfterLeave:Function,internalRenderBody:Function}),gl=ye({name:"Popover",inheritAttrs:!1,props:JH,__popover__:!0,setup(e){const t=ti(),n=j(null),o=M(()=>e.show),r=j(e.defaultShow),i=rn(o,r),a=kt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:D}=e;return!!(D!=null&&D())},l=()=>s()?!1:i.value,c=Au(e,["arrow","showArrow"]),u=M(()=>e.overlap?!1:c.value);let d=null;const f=j(null),h=j(null),p=kt(()=>e.x!==void 0&&e.y!==void 0);function g(D){const{"onUpdate:show":L,onUpdateShow:X,onShow:V,onHide:ae}=e;r.value=D,L&&Re(L,D),X&&Re(X,D),D&&V&&Re(V,!0),D&&ae&&Re(ae,!1)}function m(){d&&d.syncPosition()}function b(){const{value:D}=f;D&&(window.clearTimeout(D),f.value=null)}function w(){const{value:D}=h;D&&(window.clearTimeout(D),h.value=null)}function C(){const D=s();if(e.trigger==="focus"&&!D){if(l())return;g(!0)}}function _(){const D=s();if(e.trigger==="focus"&&!D){if(!l())return;g(!1)}}function S(){const D=s();if(e.trigger==="hover"&&!D){if(w(),f.value!==null||l())return;const L=()=>{g(!0),f.value=null},{delay:X}=e;X===0?L():f.value=window.setTimeout(L,X)}}function y(){const D=s();if(e.trigger==="hover"&&!D){if(b(),h.value!==null||!l())return;const L=()=>{g(!1),h.value=null},{duration:X}=e;X===0?L():h.value=window.setTimeout(L,X)}}function x(){y()}function k(D){var L;l()&&(e.trigger==="click"&&(b(),w(),g(!1)),(L=e.onClickoutside)===null||L===void 0||L.call(e,D))}function P(){if(e.trigger==="click"&&!s()){b(),w();const D=!l();g(D)}}function T(D){e.internalTrapFocus&&D.key==="Escape"&&(b(),w(),g(!1))}function $(D){r.value=D}function E(){var D;return(D=n.value)===null||D===void 0?void 0:D.targetRef}function G(D){d=D}return at("NPopover",{getTriggerElement:E,handleKeydown:T,handleMouseEnter:S,handleMouseLeave:y,handleClickOutside:k,handleMouseMoveOutside:x,setBodyInstance:G,positionManuallyRef:p,isMountedRef:t,zIndexRef:Ue(e,"zIndex"),extraClassRef:Ue(e,"internalExtraClass"),internalRenderBodyRef:Ue(e,"internalRenderBody")}),Yt(()=>{i.value&&s()&&g(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:r,mergedShowArrow:u,getMergedShow:l,setShow:$,handleClick:P,handleMouseEnter:S,handleMouseLeave:y,handleFocus:C,handleBlur:_,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let o,r=!1;if(!t&&(n.activator?o=Ch(n,"activator"):o=Ch(n,"trigger"),o)){o=fo(o),o=o.type===Da?v("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)r=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(u=>{u.onBlur(c)})},onFocus:c=>{s.forEach(u=>{u.onFocus(c)})},onClick:c=>{s.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{s.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{s.forEach(u=>{u.onMouseleave(c)})}};QH(o,a?"nested":t?"manual":this.trigger,l)}}return v(Qp,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?dn(v("div",{style:{position:"fixed",inset:0}}),[[Ru,{enabled:i,zIndex:this.zIndex}]]):null,t?null:v(Jp,null,{default:()=>o}),v(GH,eo(this.$props,XH,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),sS={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},ZH={name:"Tag",common:je,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:m,closeColorPressed:b,borderRadiusSmall:w,fontSizeMini:C,fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,heightMini:x,heightTiny:k,heightSmall:P,heightMedium:T,buttonColor2Hover:$,buttonColor2Pressed:E,fontWeightStrong:G}=e;return Object.assign(Object.assign({},sS),{closeBorderRadius:w,heightTiny:x,heightSmall:k,heightMedium:P,heightLarge:T,borderRadius:w,opacityDisabled:f,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,fontWeightStrong:G,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:$,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:"#0000",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:m,closeColorPressed:b,borderPrimary:`1px solid ${Oe(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Oe(r,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:un(r,{lightness:.7}),closeIconColorHoverPrimary:un(r,{lightness:.7}),closeIconColorPressedPrimary:un(r,{lightness:.7}),closeColorHoverPrimary:Oe(r,{alpha:.16}),closeColorPressedPrimary:Oe(r,{alpha:.12}),borderInfo:`1px solid ${Oe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Oe(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:un(i,{alpha:.7}),closeIconColorHoverInfo:un(i,{alpha:.7}),closeIconColorPressedInfo:un(i,{alpha:.7}),closeColorHoverInfo:Oe(i,{alpha:.16}),closeColorPressedInfo:Oe(i,{alpha:.12}),borderSuccess:`1px solid ${Oe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Oe(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:un(a,{alpha:.7}),closeIconColorHoverSuccess:un(a,{alpha:.7}),closeIconColorPressedSuccess:un(a,{alpha:.7}),closeColorHoverSuccess:Oe(a,{alpha:.16}),closeColorPressedSuccess:Oe(a,{alpha:.12}),borderWarning:`1px solid ${Oe(s,{alpha:.3})}`,textColorWarning:s,colorWarning:Oe(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:un(s,{alpha:.7}),closeIconColorHoverWarning:un(s,{alpha:.7}),closeIconColorPressedWarning:un(s,{alpha:.7}),closeColorHoverWarning:Oe(s,{alpha:.16}),closeColorPressedWarning:Oe(s,{alpha:.11}),borderError:`1px solid ${Oe(l,{alpha:.3})}`,textColorError:l,colorError:Oe(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:un(l,{alpha:.7}),closeIconColorHoverError:un(l,{alpha:.7}),closeIconColorPressedError:un(l,{alpha:.7}),closeColorHoverError:Oe(l,{alpha:.16}),closeColorPressedError:Oe(l,{alpha:.12})})}},lS=ZH;function ej(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:m,fontSizeMini:b,fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:_,heightMini:S,heightTiny:y,heightSmall:x,heightMedium:k,closeColorHover:P,closeColorPressed:T,buttonColor2Hover:$,buttonColor2Pressed:E,fontWeightStrong:G}=e;return Object.assign(Object.assign({},sS),{closeBorderRadius:m,heightTiny:S,heightSmall:y,heightMedium:x,heightLarge:k,borderRadius:m,opacityDisabled:d,fontSizeTiny:b,fontSizeSmall:w,fontSizeMedium:C,fontSizeLarge:_,fontWeightStrong:G,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:$,colorPressedCheckable:E,colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:P,closeColorPressed:T,borderPrimary:`1px solid ${Oe(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Oe(r,{alpha:.12}),colorBorderedPrimary:Oe(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Oe(r,{alpha:.12}),closeColorPressedPrimary:Oe(r,{alpha:.18}),borderInfo:`1px solid ${Oe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Oe(i,{alpha:.12}),colorBorderedInfo:Oe(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Oe(i,{alpha:.12}),closeColorPressedInfo:Oe(i,{alpha:.18}),borderSuccess:`1px solid ${Oe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Oe(a,{alpha:.12}),colorBorderedSuccess:Oe(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Oe(a,{alpha:.12}),closeColorPressedSuccess:Oe(a,{alpha:.18}),borderWarning:`1px solid ${Oe(s,{alpha:.35})}`,textColorWarning:s,colorWarning:Oe(s,{alpha:.15}),colorBorderedWarning:Oe(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:Oe(s,{alpha:.12}),closeColorPressedWarning:Oe(s,{alpha:.18}),borderError:`1px solid ${Oe(l,{alpha:.23})}`,textColorError:l,colorError:Oe(l,{alpha:.1}),colorBorderedError:Oe(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:Oe(l,{alpha:.12}),closeColorPressedError:Oe(l,{alpha:.18})})}const tj={name:"Tag",common:xt,self:ej},nj=tj,oj={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},rj=z("tag",` --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); white-space: nowrap; position: relative; @@ -488,9 +488,9 @@ ${t} line-height: 1; height: var(--n-height); font-size: var(--n-font-size); -`,[J("strong",` +`,[Z("strong",` font-weight: var(--n-font-weight-strong); - `),j("border",` + `),U("border",` pointer-events: none; position: absolute; left: 0; @@ -500,48 +500,48 @@ ${t} border-radius: inherit; border: var(--n-border); transition: border-color .3s var(--n-bezier); - `),j("icon",` + `),U("icon",` display: flex; margin: 0 4px 0 0; color: var(--n-text-color); transition: color .3s var(--n-bezier); font-size: var(--n-avatar-size-override); - `),j("avatar",` + `),U("avatar",` display: flex; margin: 0 6px 0 0; - `),j("close",` + `),U("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `),J("round",` + `),Z("round",` padding: 0 calc(var(--n-height) / 3); border-radius: calc(var(--n-height) / 2); - `,[j("icon",` + `,[U("icon",` margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),j("avatar",` + `),U("avatar",` margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),J("closable",` + `),Z("closable",` padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),J("icon, avatar",[J("round",` + `)]),Z("icon, avatar",[Z("round",` padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),J("disabled",` + `)]),Z("disabled",` cursor: not-allowed !important; opacity: var(--n-opacity-disabled); - `),J("checkable",` + `),Z("checkable",` cursor: pointer; box-shadow: none; color: var(--n-text-color-checkable); background-color: var(--n-color-checkable); - `,[Et("disabled",[W("&:hover","background-color: var(--n-color-hover-checkable);",[Et("checked","color: var(--n-text-color-hover-checkable);")]),W("&:active","background-color: var(--n-color-pressed-checkable);",[Et("checked","color: var(--n-text-color-pressed-checkable);")])]),J("checked",` + `,[At("disabled",[q("&:hover","background-color: var(--n-color-hover-checkable);",[At("checked","color: var(--n-text-color-hover-checkable);")]),q("&:active","background-color: var(--n-color-pressed-checkable);",[At("checked","color: var(--n-text-color-pressed-checkable);")])]),Z("checked",` color: var(--n-text-color-checked); background-color: var(--n-color-checked); - `,[Et("disabled",[W("&:hover","background-color: var(--n-color-checked-hover);"),W("&:active","background-color: var(--n-color-checked-pressed);")])])])]),YH=Object.assign(Object.assign(Object.assign({},Le.props),GH),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),QH="n-tag",Ti=xe({name:"Tag",props:YH,setup(e){const t=U(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=Le("Tag","-tag",XH,KH,e,o);at(QH,{roundRef:Ue(e,"round")});function s(){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!h),m&&m(!h),p&&p(!h)}}function l(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Re(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},u=pn("Tag",i,o),d=I(()=>{const{type:h,size:p,color:{color:g,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:w,closeMargin:C,borderRadius:_,opacityDisabled:S,textColorCheckable:y,textColorHoverCheckable:x,textColorPressedCheckable:P,textColorChecked:k,colorCheckable:T,colorHoverCheckable:R,colorPressedCheckable:E,colorChecked:q,colorCheckedHover:D,colorCheckedPressed:B,closeBorderRadius:M,fontWeightStrong:K,[Te("colorBordered",h)]:V,[Te("closeSize",p)]:ae,[Te("closeIconSize",p)]:pe,[Te("fontSize",p)]:Z,[Te("height",p)]:N,[Te("color",h)]:O,[Te("textColor",h)]:ee,[Te("border",h)]:G,[Te("closeIconColor",h)]:ne,[Te("closeIconColorHover",h)]:X,[Te("closeIconColorPressed",h)]:ce,[Te("closeColorHover",h)]:L,[Te("closeColorPressed",h)]:be}}=a.value,Oe=co(C);return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${N} - 8px)`,"--n-bezier":b,"--n-border-radius":_,"--n-border":G,"--n-close-icon-size":pe,"--n-close-color-pressed":be,"--n-close-color-hover":L,"--n-close-border-radius":M,"--n-close-icon-color":ne,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":ce,"--n-close-icon-color-disabled":ne,"--n-close-margin-top":Oe.top,"--n-close-margin-right":Oe.right,"--n-close-margin-bottom":Oe.bottom,"--n-close-margin-left":Oe.left,"--n-close-size":ae,"--n-color":g||(n.value?V:O),"--n-color-checkable":T,"--n-color-checked":q,"--n-color-checked-hover":D,"--n-color-checked-pressed":B,"--n-color-hover-checkable":R,"--n-color-pressed-checkable":E,"--n-font-size":Z,"--n-height":N,"--n-opacity-disabled":S,"--n-padding":w,"--n-text-color":m||ee,"--n-text-color-checkable":y,"--n-text-color-checked":k,"--n-text-color-hover-checkable":x,"--n-text-color-pressed-checkable":P}}),f=r?Pt("tag",I(()=>{let h="";const{type:p,size:g,color:{color:m,textColor:b}={}}=e;return h+=p[0],h+=g[0],m&&(h+=`a${Ec(m)}`),b&&(h+=`b${Ec(b)}`),n.value&&(h+="c"),h}),d,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:s,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:o,closable:r,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=At(l.avatar,d=>d&&v("div",{class:`${n}-tag__avatar`},d)),u=At(l.icon,d=>d&&v("div",{class:`${n}-tag__icon`},d));return v("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:o,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,v("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?v(qi,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?v("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),JH=z("base-clear",` + `,[At("disabled",[q("&:hover","background-color: var(--n-color-checked-hover);"),q("&:active","background-color: var(--n-color-checked-pressed);")])])])]),ij=Object.assign(Object.assign(Object.assign({},Le.props),oj),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),aj="n-tag",Ri=ye({name:"Tag",props:ij,setup(e){const t=j(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=Le("Tag","-tag",rj,nj,e,o);at(aj,{roundRef:Ue(e,"round")});function s(){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!h),m&&m(!h),p&&p(!h)}}function l(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Re(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},u=pn("Tag",i,o),d=M(()=>{const{type:h,size:p,color:{color:g,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:w,closeMargin:C,borderRadius:_,opacityDisabled:S,textColorCheckable:y,textColorHoverCheckable:x,textColorPressedCheckable:k,textColorChecked:P,colorCheckable:T,colorHoverCheckable:$,colorPressedCheckable:E,colorChecked:G,colorCheckedHover:B,colorCheckedPressed:D,closeBorderRadius:L,fontWeightStrong:X,[Te("colorBordered",h)]:V,[Te("closeSize",p)]:ae,[Te("closeIconSize",p)]:ue,[Te("fontSize",p)]:ee,[Te("height",p)]:R,[Te("color",h)]:A,[Te("textColor",h)]:Y,[Te("border",h)]:W,[Te("closeIconColor",h)]:oe,[Te("closeIconColorHover",h)]:K,[Te("closeIconColorPressed",h)]:le,[Te("closeColorHover",h)]:N,[Te("closeColorPressed",h)]:be}}=a.value,Ie=co(C);return{"--n-font-weight-strong":X,"--n-avatar-size-override":`calc(${R} - 8px)`,"--n-bezier":b,"--n-border-radius":_,"--n-border":W,"--n-close-icon-size":ue,"--n-close-color-pressed":be,"--n-close-color-hover":N,"--n-close-border-radius":L,"--n-close-icon-color":oe,"--n-close-icon-color-hover":K,"--n-close-icon-color-pressed":le,"--n-close-icon-color-disabled":oe,"--n-close-margin-top":Ie.top,"--n-close-margin-right":Ie.right,"--n-close-margin-bottom":Ie.bottom,"--n-close-margin-left":Ie.left,"--n-close-size":ae,"--n-color":g||(n.value?V:A),"--n-color-checkable":T,"--n-color-checked":G,"--n-color-checked-hover":B,"--n-color-checked-pressed":D,"--n-color-hover-checkable":$,"--n-color-pressed-checkable":E,"--n-font-size":ee,"--n-height":R,"--n-opacity-disabled":S,"--n-padding":w,"--n-text-color":m||Y,"--n-text-color-checkable":y,"--n-text-color-checked":P,"--n-text-color-hover-checkable":x,"--n-text-color-pressed-checkable":k}}),f=r?Pt("tag",M(()=>{let h="";const{type:p,size:g,color:{color:m,textColor:b}={}}=e;return h+=p[0],h+=g[0],m&&(h+=`a${Oc(m)}`),b&&(h+=`b${Oc(b)}`),n.value&&(h+="c"),h}),d,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:s,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:o,closable:r,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=Et(l.avatar,d=>d&&v("div",{class:`${n}-tag__avatar`},d)),u=Et(l.icon,d=>d&&v("div",{class:`${n}-tag__icon`},d));return v("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:o,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,v("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?v(Gi,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?v("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),sj=z("base-clear",` flex-shrink: 0; height: 1em; width: 1em; position: relative; -`,[W(">",[j("clear",` +`,[q(">",[U("clear",` font-size: var(--n-clear-size); height: 1em; width: 1em; @@ -549,18 +549,18 @@ ${t} color: var(--n-clear-color); transition: color .3s var(--n-bezier); display: flex; - `,[W("&:hover",` + `,[q("&:hover",` color: var(--n-clear-color-hover)!important; - `),W("&:active",` + `),q("&:active",` color: var(--n-clear-color-pressed)!important; - `)]),j("placeholder",` + `)]),U("placeholder",` display: flex; - `),j("clear, placeholder",` + `),U("clear, placeholder",` position: absolute; left: 50%; top: 50%; transform: translateX(-50%) translateY(-50%); - `,[Kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),zh=xe({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ei("-base-clear",JH,Ue(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-base-clear`},v(Wi,null,{default:()=>{var t,n;return this.show?v("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},$n(this.$slots.icon,()=>[v(Wt,{clsPrefix:e},{default:()=>v(ON,null)})])):v("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),nS=xe({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return v(ti,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?v(zh,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>v(Wt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>$n(t.default,()=>[v(B_,null)])})}):null})}}}),oS={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function ZH(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:m,clearColorPressed:b,placeholderColor:w,placeholderColorDisabled:C,fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:x,heightTiny:P,heightSmall:k,heightMedium:T,heightLarge:R}=e;return Object.assign(Object.assign({},oS),{fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:x,heightTiny:P,heightSmall:k,heightMedium:T,heightLarge:R,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:w,placeholderColorDisabled:C,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Ie(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Ie(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Ie(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Ie(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Ie(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Ie(u,{alpha:.2})}`,colorActiveError:r,caretColorError:u,clearColor:g,clearColorHover:m,clearColorPressed:b})}const ej={name:"InternalSelection",common:xt,peers:{Popover:qa},self:ZH},rS=ej,tj={name:"InternalSelection",common:He,peers:{Popover:Xi},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:h,clearColor:p,clearColorHover:g,clearColorPressed:m,placeholderColor:b,placeholderColorDisabled:w,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,heightTiny:x,heightSmall:P,heightMedium:k,heightLarge:T}=e;return Object.assign(Object.assign({},oS),{fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,heightTiny:x,heightSmall:P,heightMedium:k,heightLarge:T,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:b,placeholderColorDisabled:w,color:r,colorDisabled:i,colorActive:Ie(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Ie(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Ie(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Ie(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Ie(l,{alpha:.4})}`,colorActiveWarning:Ie(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Ie(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Ie(u,{alpha:.4})}`,colorActiveError:Ie(u,{alpha:.1}),caretColorError:u,clearColor:p,clearColorHover:g,clearColorPressed:m})}},hm=tj,nj=W([z("base-selection",` + `,[Kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Hh=ye({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ni("-base-clear",sj,Ue(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-base-clear`},v(Ki,null,{default:()=>{var t,n;return this.show?v("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},$n(this.$slots.icon,()=>[v(Wt,{clsPrefix:e},{default:()=>v(jN,null)})])):v("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),cS=ye({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return v(oi,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?v(Hh,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>v(Wt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>$n(t.default,()=>[v(q_,null)])})}):null})}}}),uS={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function lj(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:m,clearColorPressed:b,placeholderColor:w,placeholderColorDisabled:C,fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:x,heightTiny:k,heightSmall:P,heightMedium:T,heightLarge:$}=e;return Object.assign(Object.assign({},uS),{fontSizeTiny:_,fontSizeSmall:S,fontSizeMedium:y,fontSizeLarge:x,heightTiny:k,heightSmall:P,heightMedium:T,heightLarge:$,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:w,placeholderColorDisabled:C,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Oe(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Oe(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Oe(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Oe(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Oe(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Oe(u,{alpha:.2})}`,colorActiveError:r,caretColorError:u,clearColor:g,clearColorHover:m,clearColorPressed:b})}const cj={name:"InternalSelection",common:xt,peers:{Popover:Xa},self:lj},dS=cj,uj={name:"InternalSelection",common:je,peers:{Popover:Qi},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:h,clearColor:p,clearColorHover:g,clearColorPressed:m,placeholderColor:b,placeholderColorDisabled:w,fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,heightTiny:x,heightSmall:k,heightMedium:P,heightLarge:T}=e;return Object.assign(Object.assign({},uS),{fontSizeTiny:C,fontSizeSmall:_,fontSizeMedium:S,fontSizeLarge:y,heightTiny:x,heightSmall:k,heightMedium:P,heightLarge:T,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:b,placeholderColorDisabled:w,color:r,colorDisabled:i,colorActive:Oe(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Oe(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Oe(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Oe(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Oe(l,{alpha:.4})}`,colorActiveWarning:Oe(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Oe(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Oe(u,{alpha:.4})}`,colorActiveError:Oe(u,{alpha:.1}),caretColorError:u,clearColor:p,clearColorHover:g,clearColorPressed:m})}},xm=uj,dj=q([z("base-selection",` --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); position: relative; @@ -576,7 +576,7 @@ ${t} font-size: var(--n-font-size); `,[z("base-loading",` color: var(--n-loading-color); - `),z("base-selection-tags","min-height: var(--n-height);"),j("border, state-border",` + `),z("base-selection-tags","min-height: var(--n-height);"),U("border, state-border",` position: absolute; left: 0; right: 0; @@ -588,7 +588,7 @@ ${t} transition: box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `),j("state-border",` + `),U("state-border",` z-index: 1; border-color: #0000; `),z("base-suffix",` @@ -597,7 +597,7 @@ ${t} top: 50%; transform: translateY(-50%); right: 10px; - `,[j("arrow",` + `,[U("arrow",` font-size: var(--n-arrow-size); color: var(--n-arrow-color); transition: color .3s var(--n-bezier); @@ -613,14 +613,14 @@ ${t} left: 0; padding: var(--n-padding-single); transition: color .3s var(--n-bezier); - `,[j("wrapper",` + `,[U("wrapper",` flex-basis: 0; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; `)]),z("base-selection-placeholder",` color: var(--n-placeholder-color); - `,[j("inner",` + `,[U("inner",` max-width: 100%; overflow: hidden; `)]),z("base-selection-tags",` @@ -671,22 +671,22 @@ ${t} color: var(--n-text-color); transition: color .3s var(--n-bezier); caret-color: var(--n-caret-color); - `,[j("content",` + `,[U("content",` text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - `)]),j("render-label",` + `)]),U("render-label",` color: var(--n-text-color); - `)]),Et("disabled",[W("&:hover",[j("state-border",` + `)]),At("disabled",[q("&:hover",[U("state-border",` box-shadow: var(--n-box-shadow-hover); border: var(--n-border-hover); - `)]),J("focus",[j("state-border",` + `)]),Z("focus",[U("state-border",` box-shadow: var(--n-box-shadow-focus); border: var(--n-border-focus); - `)]),J("active",[j("state-border",` + `)]),Z("active",[U("state-border",` box-shadow: var(--n-box-shadow-active); border: var(--n-border-active); - `),z("base-selection-label","background-color: var(--n-color-active);"),z("base-selection-tags","background-color: var(--n-color-active);")])]),J("disabled","cursor: not-allowed;",[j("arrow",` + `),z("base-selection-label","background-color: var(--n-color-active);"),z("base-selection-tags","background-color: var(--n-color-active);")])]),Z("disabled","cursor: not-allowed;",[U("arrow",` color: var(--n-arrow-color-disabled); `),z("base-selection-label",` cursor: not-allowed; @@ -694,7 +694,7 @@ ${t} `,[z("base-selection-input",` cursor: not-allowed; color: var(--n-text-color-disabled); - `),j("render-label",` + `),U("render-label",` color: var(--n-text-color-disabled); `)]),z("base-selection-tags",` cursor: not-allowed; @@ -711,7 +711,7 @@ ${t} margin-bottom: 3px; max-width: 100%; vertical-align: bottom; - `,[j("input",` + `,[U("input",` font-size: inherit; font-family: inherit; min-width: 1px; @@ -726,7 +726,7 @@ ${t} cursor: pointer; color: var(--n-text-color); caret-color: var(--n-caret-color); - `),j("mirror",` + `),U("mirror",` position: absolute; left: 0; top: 0; @@ -735,13 +735,13 @@ ${t} user-select: none; -webkit-user-select: none; opacity: 0; - `)]),["warning","error"].map(e=>J(`${e}-status`,[j("state-border",`border: var(--n-border-${e});`),Et("disabled",[W("&:hover",[j("state-border",` + `)]),["warning","error"].map(e=>Z(`${e}-status`,[U("state-border",`border: var(--n-border-${e});`),At("disabled",[q("&:hover",[U("state-border",` box-shadow: var(--n-box-shadow-hover-${e}); border: var(--n-border-hover-${e}); - `)]),J("active",[j("state-border",` + `)]),Z("active",[U("state-border",` box-shadow: var(--n-box-shadow-active-${e}); border: var(--n-border-active-${e}); - `),z("base-selection-label",`background-color: var(--n-color-active-${e});`),z("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),J("focus",[j("state-border",` + `),z("base-selection-label",`background-color: var(--n-color-active-${e});`),z("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Z("focus",[U("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); `)])])]))]),z("base-selection-popover",` @@ -753,54 +753,54 @@ ${t} max-width: 100%; display: inline-flex; padding: 0 7px 3px 0; - `,[W("&:last-child","padding-right: 0;"),z("tag",` + `,[q("&:last-child","padding-right: 0;"),z("tag",` font-size: 14px; max-width: 100%; - `,[j("content",` + `,[U("content",` line-height: 1.25; text-overflow: ellipsis; overflow: hidden; - `)])])]),oj=xe({name:"InternalSelection",props:Object.assign(Object.assign({},Le.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("InternalSelection",n,t),r=U(null),i=U(null),a=U(null),s=U(null),l=U(null),c=U(null),u=U(null),d=U(null),f=U(null),h=U(null),p=U(!1),g=U(!1),m=U(!1),b=Le("InternalSelection","-internal-selection",nj,rS,e,Ue(e,"clsPrefix")),w=I(()=>e.clearable&&!e.disabled&&(m.value||e.active)),C=I(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Vt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),_=I(()=>{const de=e.selectedOption;if(de)return de[e.labelField]}),S=I(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function y(){var de;const{value:ue}=r;if(ue){const{value:ie}=i;ie&&(ie.style.width=`${ue.offsetWidth}px`,e.maxTagCount!=="responsive"&&((de=f.value)===null||de===void 0||de.sync({showAllItemsBeforeCalculate:!1})))}}function x(){const{value:de}=h;de&&(de.style.display="none")}function P(){const{value:de}=h;de&&(de.style.display="inline-block")}ft(Ue(e,"active"),de=>{de||x()}),ft(Ue(e,"pattern"),()=>{e.multiple&&Ht(y)});function k(de){const{onFocus:ue}=e;ue&&ue(de)}function T(de){const{onBlur:ue}=e;ue&&ue(de)}function R(de){const{onDeleteOption:ue}=e;ue&&ue(de)}function E(de){const{onClear:ue}=e;ue&&ue(de)}function q(de){const{onPatternInput:ue}=e;ue&&ue(de)}function D(de){var ue;(!de.relatedTarget||!(!((ue=a.value)===null||ue===void 0)&&ue.contains(de.relatedTarget)))&&k(de)}function B(de){var ue;!((ue=a.value)===null||ue===void 0)&&ue.contains(de.relatedTarget)||T(de)}function M(de){E(de)}function K(){m.value=!0}function V(){m.value=!1}function ae(de){!e.active||!e.filterable||de.target!==i.value&&de.preventDefault()}function pe(de){R(de)}const Z=U(!1);function N(de){if(de.key==="Backspace"&&!Z.value&&!e.pattern.length){const{selectedOptions:ue}=e;ue!=null&&ue.length&&pe(ue[ue.length-1])}}let O=null;function ee(de){const{value:ue}=r;if(ue){const ie=de.target.value;ue.textContent=ie,y()}e.ignoreComposition&&Z.value?O=de:q(de)}function G(){Z.value=!0}function ne(){Z.value=!1,e.ignoreComposition&&q(O),O=null}function X(de){var ue;g.value=!0,(ue=e.onPatternFocus)===null||ue===void 0||ue.call(e,de)}function ce(de){var ue;g.value=!1,(ue=e.onPatternBlur)===null||ue===void 0||ue.call(e,de)}function L(){var de,ue;if(e.filterable)g.value=!1,(de=c.value)===null||de===void 0||de.blur(),(ue=i.value)===null||ue===void 0||ue.blur();else if(e.multiple){const{value:ie}=s;ie==null||ie.blur()}else{const{value:ie}=l;ie==null||ie.blur()}}function be(){var de,ue,ie;e.filterable?(g.value=!1,(de=c.value)===null||de===void 0||de.focus()):e.multiple?(ue=s.value)===null||ue===void 0||ue.focus():(ie=l.value)===null||ie===void 0||ie.focus()}function Oe(){const{value:de}=i;de&&(P(),de.focus())}function je(){const{value:de}=i;de&&de.blur()}function F(de){const{value:ue}=u;ue&&ue.setTextContent(`+${de}`)}function A(){const{value:de}=d;return de}function re(){return i.value}let we=null;function oe(){we!==null&&window.clearTimeout(we)}function ve(){e.active||(oe(),we=window.setTimeout(()=>{S.value&&(p.value=!0)},100))}function ke(){oe()}function $(de){de||(oe(),p.value=!1)}ft(S,de=>{de||(p.value=!1)}),jt(()=>{Yt(()=>{const de=c.value;de&&(e.disabled?de.removeAttribute("tabindex"):de.tabIndex=g.value?-1:0)})}),jw(a,e.onResize);const{inlineThemeDisabled:H}=e,te=I(()=>{const{size:de}=e,{common:{cubicBezierEaseInOut:ue},self:{borderRadius:ie,color:fe,placeholderColor:Fe,textColor:De,paddingSingle:Me,paddingMultiple:Ne,caretColor:et,colorDisabled:$e,textColorDisabled:Xe,placeholderColorDisabled:gt,colorActive:Q,boxShadowFocus:ye,boxShadowActive:Ae,boxShadowHover:qe,border:Qe,borderFocus:Je,borderHover:tt,borderActive:it,arrowColor:vt,arrowColorDisabled:an,loadingColor:Ft,colorActiveWarning:_e,boxShadowFocusWarning:Be,boxShadowActiveWarning:Ze,boxShadowHoverWarning:ht,borderWarning:bt,borderFocusWarning:ut,borderHoverWarning:Rt,borderActiveWarning:le,colorActiveError:Ee,boxShadowFocusError:ot,boxShadowActiveError:Bt,boxShadowHoverError:Kt,borderError:Dt,borderFocusError:yo,borderHoverError:xo,borderActiveError:Co,clearColor:Jo,clearColorHover:Zo,clearColorPressed:oi,clearSize:Qa,arrowSize:Ja,[Te("height",de)]:Za,[Te("fontSize",de)]:es}}=b.value,yr=co(Me),xr=co(Ne);return{"--n-bezier":ue,"--n-border":Qe,"--n-border-active":it,"--n-border-focus":Je,"--n-border-hover":tt,"--n-border-radius":ie,"--n-box-shadow-active":Ae,"--n-box-shadow-focus":ye,"--n-box-shadow-hover":qe,"--n-caret-color":et,"--n-color":fe,"--n-color-active":Q,"--n-color-disabled":$e,"--n-font-size":es,"--n-height":Za,"--n-padding-single-top":yr.top,"--n-padding-multiple-top":xr.top,"--n-padding-single-right":yr.right,"--n-padding-multiple-right":xr.right,"--n-padding-single-left":yr.left,"--n-padding-multiple-left":xr.left,"--n-padding-single-bottom":yr.bottom,"--n-padding-multiple-bottom":xr.bottom,"--n-placeholder-color":Fe,"--n-placeholder-color-disabled":gt,"--n-text-color":De,"--n-text-color-disabled":Xe,"--n-arrow-color":vt,"--n-arrow-color-disabled":an,"--n-loading-color":Ft,"--n-color-active-warning":_e,"--n-box-shadow-focus-warning":Be,"--n-box-shadow-active-warning":Ze,"--n-box-shadow-hover-warning":ht,"--n-border-warning":bt,"--n-border-focus-warning":ut,"--n-border-hover-warning":Rt,"--n-border-active-warning":le,"--n-color-active-error":Ee,"--n-box-shadow-focus-error":ot,"--n-box-shadow-active-error":Bt,"--n-box-shadow-hover-error":Kt,"--n-border-error":Dt,"--n-border-focus-error":yo,"--n-border-hover-error":xo,"--n-border-active-error":Co,"--n-clear-size":Qa,"--n-clear-color":Jo,"--n-clear-color-hover":Zo,"--n-clear-color-pressed":oi,"--n-arrow-size":Ja}}),Ce=H?Pt("internal-selection",I(()=>e.size[0]),te,e):void 0;return{mergedTheme:b,mergedClearable:w,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:g,filterablePlaceholder:C,label:_,selected:S,showTagsPanel:p,isComposing:Z,counterRef:u,counterWrapperRef:d,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:s,singleElRef:l,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:h,handleMouseDown:ae,handleFocusin:D,handleClear:M,handleMouseEnter:K,handleMouseLeave:V,handleDeleteOption:pe,handlePatternKeyDown:N,handlePatternInputInput:ee,handlePatternInputBlur:ce,handlePatternInputFocus:X,handleMouseEnterCounter:ve,handleMouseLeaveCounter:ke,handleFocusout:B,handleCompositionEnd:ne,handleCompositionStart:G,onPopoverUpdateShow:$,focus:be,focusInput:Oe,blur:L,blurInput:je,updateCounter:F,getCounter:A,getTail:re,renderLabel:e.renderLabel,cssVars:H?void 0:te,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:r,maxTagCount:i,bordered:a,clsPrefix:s,ellipsisTagPopoverProps:l,onRender:c,renderTag:u,renderLabel:d}=this;c==null||c();const f=i==="responsive",h=typeof i=="number",p=f||h,g=v(vh,null,{default:()=>v(nS,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,w;return(w=(b=this.$slots).arrow)===null||w===void 0?void 0:w.call(b)}})});let m;if(t){const{labelField:b}=this,w=q=>v("div",{class:`${s}-base-selection-tag-wrapper`,key:q.value},u?u({option:q,handleClose:()=>{this.handleDeleteOption(q)}}):v(Ti,{size:n,closable:!q.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(q)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(q,!0):Vt(q[b],q,!0)})),C=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(w),_=r?v("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),v("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern)):null,S=f?()=>v("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},v(Ti,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let y;if(h){const q=this.selectedOptions.length-i;q>0&&(y=v("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},v(Ti,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${q}`})))}const x=f?r?v(wh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:S,tail:()=>_}):v(wh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:S}):h&&y?C().concat(y):C(),P=p?()=>v("div",{class:`${s}-base-selection-popover`},f?C():this.selectedOptions.map(w)):void 0,k=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},l):null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},v("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)):null,E=r?v("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},x,f?null:_,g):v("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:o?void 0:0},x,g);m=v(rt,null,p?v(hl,Object.assign({},k,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:P}):E,R)}else if(r){const b=this.pattern||this.isComposing,w=this.active?!b:!this.selected,C=this.active?!1:this.selected;m=v("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`,title:this.patternInputFocused?void 0:vb(this.label)},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),C?v("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},v("div",{class:`${s}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):null,w?v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${s}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else m=v("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?v("div",{class:`${s}-base-selection-input`,title:vb(this.label),key:"input"},v("div",{class:`${s}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)),g);return v("div",{ref:"selfRef",class:[`${s}-base-selection`,this.rtlEnabled&&`${s}-base-selection--rtl`,this.themeClass,e&&`${s}-base-selection--${e}-status`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,a?v("div",{class:`${s}-base-selection__border`}):null,a?v("div",{class:`${s}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Tr}=mo;function rj({duration:e=".2s",delay:t=".1s"}={}){return[W("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),W("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + `)])])]),fj=ye({name:"InternalSelection",props:Object.assign(Object.assign({},Le.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("InternalSelection",n,t),r=j(null),i=j(null),a=j(null),s=j(null),l=j(null),c=j(null),u=j(null),d=j(null),f=j(null),h=j(null),p=j(!1),g=j(!1),m=j(!1),b=Le("InternalSelection","-internal-selection",dj,dS,e,Ue(e,"clsPrefix")),w=M(()=>e.clearable&&!e.disabled&&(m.value||e.active)),C=M(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Vt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),_=M(()=>{const fe=e.selectedOption;if(fe)return fe[e.labelField]}),S=M(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function y(){var fe;const{value:de}=r;if(de){const{value:ie}=i;ie&&(ie.style.width=`${de.offsetWidth}px`,e.maxTagCount!=="responsive"&&((fe=f.value)===null||fe===void 0||fe.sync({showAllItemsBeforeCalculate:!1})))}}function x(){const{value:fe}=h;fe&&(fe.style.display="none")}function k(){const{value:fe}=h;fe&&(fe.style.display="inline-block")}ut(Ue(e,"active"),fe=>{fe||x()}),ut(Ue(e,"pattern"),()=>{e.multiple&&Ht(y)});function P(fe){const{onFocus:de}=e;de&&de(fe)}function T(fe){const{onBlur:de}=e;de&&de(fe)}function $(fe){const{onDeleteOption:de}=e;de&&de(fe)}function E(fe){const{onClear:de}=e;de&&de(fe)}function G(fe){const{onPatternInput:de}=e;de&&de(fe)}function B(fe){var de;(!fe.relatedTarget||!(!((de=a.value)===null||de===void 0)&&de.contains(fe.relatedTarget)))&&P(fe)}function D(fe){var de;!((de=a.value)===null||de===void 0)&&de.contains(fe.relatedTarget)||T(fe)}function L(fe){E(fe)}function X(){m.value=!0}function V(){m.value=!1}function ae(fe){!e.active||!e.filterable||fe.target!==i.value&&fe.preventDefault()}function ue(fe){$(fe)}const ee=j(!1);function R(fe){if(fe.key==="Backspace"&&!ee.value&&!e.pattern.length){const{selectedOptions:de}=e;de!=null&&de.length&&ue(de[de.length-1])}}let A=null;function Y(fe){const{value:de}=r;if(de){const ie=fe.target.value;de.textContent=ie,y()}e.ignoreComposition&&ee.value?A=fe:G(fe)}function W(){ee.value=!0}function oe(){ee.value=!1,e.ignoreComposition&&G(A),A=null}function K(fe){var de;g.value=!0,(de=e.onPatternFocus)===null||de===void 0||de.call(e,fe)}function le(fe){var de;g.value=!1,(de=e.onPatternBlur)===null||de===void 0||de.call(e,fe)}function N(){var fe,de;if(e.filterable)g.value=!1,(fe=c.value)===null||fe===void 0||fe.blur(),(de=i.value)===null||de===void 0||de.blur();else if(e.multiple){const{value:ie}=s;ie==null||ie.blur()}else{const{value:ie}=l;ie==null||ie.blur()}}function be(){var fe,de,ie;e.filterable?(g.value=!1,(fe=c.value)===null||fe===void 0||fe.focus()):e.multiple?(de=s.value)===null||de===void 0||de.focus():(ie=l.value)===null||ie===void 0||ie.focus()}function Ie(){const{value:fe}=i;fe&&(k(),fe.focus())}function Ne(){const{value:fe}=i;fe&&fe.blur()}function F(fe){const{value:de}=u;de&&de.setTextContent(`+${fe}`)}function I(){const{value:fe}=d;return fe}function re(){return i.value}let _e=null;function ne(){_e!==null&&window.clearTimeout(_e)}function me(){e.active||(ne(),_e=window.setTimeout(()=>{S.value&&(p.value=!0)},100))}function we(){ne()}function O(fe){fe||(ne(),p.value=!1)}ut(S,fe=>{fe||(p.value=!1)}),jt(()=>{Yt(()=>{const fe=c.value;fe&&(e.disabled?fe.removeAttribute("tabindex"):fe.tabIndex=g.value?-1:0)})}),Xw(a,e.onResize);const{inlineThemeDisabled:H}=e,te=M(()=>{const{size:fe}=e,{common:{cubicBezierEaseInOut:de},self:{borderRadius:ie,color:he,placeholderColor:Fe,textColor:De,paddingSingle:Me,paddingMultiple:He,caretColor:et,colorDisabled:$e,textColorDisabled:Xe,placeholderColorDisabled:gt,colorActive:J,boxShadowFocus:xe,boxShadowActive:Ee,boxShadowHover:qe,border:Qe,borderFocus:Je,borderHover:tt,borderActive:it,arrowColor:vt,arrowColorDisabled:an,loadingColor:Ft,colorActiveWarning:Se,boxShadowFocusWarning:Be,boxShadowActiveWarning:Ze,boxShadowHoverWarning:ht,borderWarning:bt,borderFocusWarning:dt,borderHoverWarning:Rt,borderActiveWarning:ce,colorActiveError:Ae,boxShadowFocusError:ot,boxShadowActiveError:Bt,boxShadowHoverError:Kt,borderError:Dt,borderFocusError:yo,borderHoverError:xo,borderActiveError:Co,clearColor:Jo,clearColorHover:Zo,clearColorPressed:ii,clearSize:es,arrowSize:ts,[Te("height",fe)]:ns,[Te("fontSize",fe)]:os}}=b.value,yr=co(Me),xr=co(He);return{"--n-bezier":de,"--n-border":Qe,"--n-border-active":it,"--n-border-focus":Je,"--n-border-hover":tt,"--n-border-radius":ie,"--n-box-shadow-active":Ee,"--n-box-shadow-focus":xe,"--n-box-shadow-hover":qe,"--n-caret-color":et,"--n-color":he,"--n-color-active":J,"--n-color-disabled":$e,"--n-font-size":os,"--n-height":ns,"--n-padding-single-top":yr.top,"--n-padding-multiple-top":xr.top,"--n-padding-single-right":yr.right,"--n-padding-multiple-right":xr.right,"--n-padding-single-left":yr.left,"--n-padding-multiple-left":xr.left,"--n-padding-single-bottom":yr.bottom,"--n-padding-multiple-bottom":xr.bottom,"--n-placeholder-color":Fe,"--n-placeholder-color-disabled":gt,"--n-text-color":De,"--n-text-color-disabled":Xe,"--n-arrow-color":vt,"--n-arrow-color-disabled":an,"--n-loading-color":Ft,"--n-color-active-warning":Se,"--n-box-shadow-focus-warning":Be,"--n-box-shadow-active-warning":Ze,"--n-box-shadow-hover-warning":ht,"--n-border-warning":bt,"--n-border-focus-warning":dt,"--n-border-hover-warning":Rt,"--n-border-active-warning":ce,"--n-color-active-error":Ae,"--n-box-shadow-focus-error":ot,"--n-box-shadow-active-error":Bt,"--n-box-shadow-hover-error":Kt,"--n-border-error":Dt,"--n-border-focus-error":yo,"--n-border-hover-error":xo,"--n-border-active-error":Co,"--n-clear-size":es,"--n-clear-color":Jo,"--n-clear-color-hover":Zo,"--n-clear-color-pressed":ii,"--n-arrow-size":ts}}),Ce=H?Pt("internal-selection",M(()=>e.size[0]),te,e):void 0;return{mergedTheme:b,mergedClearable:w,mergedClsPrefix:t,rtlEnabled:o,patternInputFocused:g,filterablePlaceholder:C,label:_,selected:S,showTagsPanel:p,isComposing:ee,counterRef:u,counterWrapperRef:d,patternInputMirrorRef:r,patternInputRef:i,selfRef:a,multipleElRef:s,singleElRef:l,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:h,handleMouseDown:ae,handleFocusin:B,handleClear:L,handleMouseEnter:X,handleMouseLeave:V,handleDeleteOption:ue,handlePatternKeyDown:R,handlePatternInputInput:Y,handlePatternInputBlur:le,handlePatternInputFocus:K,handleMouseEnterCounter:me,handleMouseLeaveCounter:we,handleFocusout:D,handleCompositionEnd:oe,handleCompositionStart:W,onPopoverUpdateShow:O,focus:be,focusInput:Ie,blur:N,blurInput:Ne,updateCounter:F,getCounter:I,getTail:re,renderLabel:e.renderLabel,cssVars:H?void 0:te,themeClass:Ce==null?void 0:Ce.themeClass,onRender:Ce==null?void 0:Ce.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:r,maxTagCount:i,bordered:a,clsPrefix:s,ellipsisTagPopoverProps:l,onRender:c,renderTag:u,renderLabel:d}=this;c==null||c();const f=i==="responsive",h=typeof i=="number",p=f||h,g=v(_h,null,{default:()=>v(cS,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,w;return(w=(b=this.$slots).arrow)===null||w===void 0?void 0:w.call(b)}})});let m;if(t){const{labelField:b}=this,w=G=>v("div",{class:`${s}-base-selection-tag-wrapper`,key:G.value},u?u({option:G,handleClose:()=>{this.handleDeleteOption(G)}}):v(Ri,{size:n,closable:!G.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(G)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(G,!0):Vt(G[b],G,!0)})),C=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(w),_=r?v("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),v("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern)):null,S=f?()=>v("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},v(Ri,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let y;if(h){const G=this.selectedOptions.length-i;G>0&&(y=v("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},v(Ri,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${G}`})))}const x=f?r?v(Ah,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:S,tail:()=>_}):v(Ah,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:C,counter:S}):h&&y?C().concat(y):C(),k=p?()=>v("div",{class:`${s}-base-selection-popover`},f?C():this.selectedOptions.map(w)):void 0,P=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},l):null,$=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},v("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)):null,E=r?v("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},x,f?null:_,g):v("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:o?void 0:0},x,g);m=v(rt,null,p?v(gl,Object.assign({},P,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:k}):E,$)}else if(r){const b=this.pattern||this.isComposing,w=this.active?!b:!this.selected,C=this.active?!1:this.selected;m=v("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`,title:this.patternInputFocused?void 0:Sb(this.label)},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),C?v("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},v("div",{class:`${s}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):null,w?v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${s}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else m=v("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?v("div",{class:`${s}-base-selection-input`,title:Sb(this.label),key:"input"},v("div",{class:`${s}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Vt(this.label,this.selectedOption,!0))):v("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${s}-base-selection-placeholder__inner`},this.placeholder)),g);return v("div",{ref:"selfRef",class:[`${s}-base-selection`,this.rtlEnabled&&`${s}-base-selection--rtl`,this.themeClass,e&&`${s}-base-selection--${e}-status`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,a?v("div",{class:`${s}-base-selection__border`}):null,a?v("div",{class:`${s}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:Tr}=mo;function hj({duration:e=".2s",delay:t=".1s"}={}){return[q("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),q("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; - `),W("&.fade-in-width-expand-transition-leave-active",` + `),q("&.fade-in-width-expand-transition-leave-active",` overflow: hidden; transition: opacity ${e} ${Tr}, max-width ${e} ${Tr} ${t}, margin-left ${e} ${Tr} ${t}, margin-right ${e} ${Tr} ${t}; - `),W("&.fade-in-width-expand-transition-enter-active",` + `),q("&.fade-in-width-expand-transition-enter-active",` overflow: hidden; transition: opacity ${e} ${Tr} ${t}, max-width ${e} ${Tr}, margin-left ${e} ${Tr}, margin-right ${e} ${Tr}; - `)]}const iS={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},ij={name:"Alert",common:He,self(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:m,fontSize:b}=e;return Object.assign(Object.assign({},iS),{fontSize:b,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${Ie(h,{alpha:.35})}`,colorInfo:Ie(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Ie(p,{alpha:.35})}`,colorSuccess:Ie(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Ie(g,{alpha:.35})}`,colorWarning:Ie(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${Ie(m,{alpha:.35})}`,colorError:Ie(m,{alpha:.25}),titleTextColorError:a,iconColorError:m,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},aj=ij;function sj(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,baseColor:r,dividerColor:i,actionColor:a,textColor1:s,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,infoColor:p,successColor:g,warningColor:m,errorColor:b,fontSize:w}=e;return Object.assign(Object.assign({},iS),{fontSize:w,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderInfo:`1px solid ${Ke(r,Ie(p,{alpha:.25}))}`,colorInfo:Ke(r,Ie(p,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Ke(r,Ie(g,{alpha:.25}))}`,colorSuccess:Ke(r,Ie(g,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:g,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Ke(r,Ie(m,{alpha:.33}))}`,colorWarning:Ke(r,Ie(m,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:m,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:h,borderError:`1px solid ${Ke(r,Ie(b,{alpha:.25}))}`,colorError:Ke(r,Ie(b,{alpha:.08})),titleTextColorError:s,iconColorError:b,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:h})}const lj={name:"Alert",common:xt,self:sj},cj=lj,{cubicBezierEaseInOut:Lo,cubicBezierEaseOut:uj,cubicBezierEaseIn:dj}=mo;function pm({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:o="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[W(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),W(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),W(`&.fade-in-height-expand-transition-${c}-active`,` + `)]}const fS={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},pj={name:"Alert",common:je,self(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,dividerColor:r,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:h,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:m,fontSize:b}=e;return Object.assign(Object.assign({},fS),{fontSize:b,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${r}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${Oe(h,{alpha:.35})}`,colorInfo:Oe(h,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:h,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${Oe(p,{alpha:.35})}`,colorSuccess:Oe(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${Oe(g,{alpha:.35})}`,colorWarning:Oe(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${Oe(m,{alpha:.35})}`,colorError:Oe(m,{alpha:.25}),titleTextColorError:a,iconColorError:m,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},mj=pj;function gj(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,baseColor:r,dividerColor:i,actionColor:a,textColor1:s,textColor2:l,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,infoColor:p,successColor:g,warningColor:m,errorColor:b,fontSize:w}=e;return Object.assign(Object.assign({},fS),{fontSize:w,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:s,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:c,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderInfo:`1px solid ${Ke(r,Oe(p,{alpha:.25}))}`,colorInfo:Ke(r,Oe(p,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:p,contentTextColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Ke(r,Oe(g,{alpha:.25}))}`,colorSuccess:Ke(r,Oe(g,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:g,contentTextColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Ke(r,Oe(m,{alpha:.33}))}`,colorWarning:Ke(r,Oe(m,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:m,contentTextColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:h,borderError:`1px solid ${Ke(r,Oe(b,{alpha:.25}))}`,colorError:Ke(r,Oe(b,{alpha:.08})),titleTextColorError:s,iconColorError:b,contentTextColorError:l,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:h})}const vj={name:"Alert",common:xt,self:gj},bj=vj,{cubicBezierEaseInOut:Lo,cubicBezierEaseOut:yj,cubicBezierEaseIn:xj}=mo;function Cm({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:o="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[q(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),q(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),q(`&.fade-in-height-expand-transition-${c}-active`,` overflow: ${e}; transition: max-height ${t} ${Lo} ${o}, - opacity ${t} ${uj} ${o}, + opacity ${t} ${yj} ${o}, margin-top ${t} ${Lo} ${o}, margin-bottom ${t} ${Lo} ${o}, padding-top ${t} ${Lo} ${o}, padding-bottom ${t} ${Lo} ${o} ${n?`,${n}`:""} - `),W(`&.fade-in-height-expand-transition-${l}-active`,` + `),q(`&.fade-in-height-expand-transition-${l}-active`,` overflow: ${e}; transition: max-height ${t} ${Lo}, - opacity ${t} ${dj}, + opacity ${t} ${xj}, margin-top ${t} ${Lo}, margin-bottom ${t} ${Lo}, padding-top ${t} ${Lo}, padding-bottom ${t} ${Lo} ${n?`,${n}`:""} - `)]}const fj=z("alert",` + `)]}const Cj=z("alert",` line-height: var(--n-line-height); border-radius: var(--n-border-radius); position: relative; @@ -808,7 +808,7 @@ ${t} background-color: var(--n-color); text-align: start; word-break: break-word; -`,[j("border",` +`,[U("border",` border-radius: inherit; position: absolute; left: 0; @@ -818,9 +818,9 @@ ${t} transition: border-color .3s var(--n-bezier); border: var(--n-border); pointer-events: none; - `),J("closable",[z("alert-body",[j("title",` + `),Z("closable",[z("alert-body",[U("title",` padding-right: 24px; - `)])]),j("icon",{color:"var(--n-icon-color)"}),z("alert-body",{padding:"var(--n-padding)"},[j("title",{color:"var(--n-title-text-color)"}),j("content",{color:"var(--n-content-text-color)"})]),pm({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),j("icon",` + `)])]),U("icon",{color:"var(--n-icon-color)"}),z("alert-body",{padding:"var(--n-padding)"},[U("title",{color:"var(--n-title-text-color)"}),U("content",{color:"var(--n-content-text-color)"})]),Cm({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),U("icon",` position: absolute; left: 0; top: 0; @@ -831,7 +831,7 @@ ${t} height: var(--n-icon-size); font-size: var(--n-icon-size); margin: var(--n-icon-margin); - `),j("close",` + `),U("close",` transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier); @@ -839,15 +839,15 @@ ${t} right: 0; top: 0; margin: var(--n-close-margin); - `),J("show-icon",[z("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),J("right-adjust",[z("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),z("alert-body",` + `),Z("show-icon",[z("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),Z("right-adjust",[z("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),z("alert-body",` border-radius: var(--n-border-radius); transition: border-color .3s var(--n-bezier); - `,[j("title",` + `,[U("title",` transition: color .3s var(--n-bezier); font-size: 16px; line-height: 19px; font-weight: var(--n-title-font-weight); - `,[W("& +",[j("content",{marginTop:"9px"})])]),j("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),j("icon",{transition:"color .3s var(--n-bezier)"})]),hj=Object.assign(Object.assign({},Le.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),pl=xe({name:"Alert",inheritAttrs:!1,props:hj,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Alert","-alert",fj,cj,e,t),a=pn("Alert",r,t),s=I(()=>{const{common:{cubicBezierEaseInOut:h},self:p}=i.value,{fontSize:g,borderRadius:m,titleFontWeight:b,lineHeight:w,iconSize:C,iconMargin:_,iconMarginRtl:S,closeIconSize:y,closeBorderRadius:x,closeSize:P,closeMargin:k,closeMarginRtl:T,padding:R}=p,{type:E}=e,{left:q,right:D}=co(_);return{"--n-bezier":h,"--n-color":p[Te("color",E)],"--n-close-icon-size":y,"--n-close-border-radius":x,"--n-close-color-hover":p[Te("closeColorHover",E)],"--n-close-color-pressed":p[Te("closeColorPressed",E)],"--n-close-icon-color":p[Te("closeIconColor",E)],"--n-close-icon-color-hover":p[Te("closeIconColorHover",E)],"--n-close-icon-color-pressed":p[Te("closeIconColorPressed",E)],"--n-icon-color":p[Te("iconColor",E)],"--n-border":p[Te("border",E)],"--n-title-text-color":p[Te("titleTextColor",E)],"--n-content-text-color":p[Te("contentTextColor",E)],"--n-line-height":w,"--n-border-radius":m,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":C,"--n-icon-margin":_,"--n-icon-margin-rtl":S,"--n-close-size":P,"--n-close-margin":k,"--n-close-margin-rtl":T,"--n-padding":R,"--n-icon-margin-left":q,"--n-icon-margin-right":D}}),l=o?Pt("alert",I(()=>e.type[0]),s,e):void 0,c=U(!0),u=()=>{const{onAfterLeave:h,onAfterHide:p}=e;h&&h(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var h;Promise.resolve((h=e.onClose)===null||h===void 0?void 0:h.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:o?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Au,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,o={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?v("div",Object.assign({},Ln(this.$attrs,o)),this.closable&&v(qi,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&v("div",{class:`${t}-alert__border`}),this.showIcon&&v("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},$n(n.icon,()=>[v(Wt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return v(Ui,null);case"info":return v(Ur,null);case"warning":return v(Vi,null);case"error":return v(ji,null);default:return null}}})])),v("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},At(n.header,r=>{const i=r||this.title;return i?v("div",{class:`${t}-alert-body__title`},i):null}),n.default&&v("div",{class:`${t}-alert-body__content`},n))):null}})}}),pj={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function mj(e){const{borderRadius:t,railColor:n,primaryColor:o,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},pj),{borderRadius:t,railColor:n,railColorActive:o,linkColor:Ie(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:o})}const gj={name:"Anchor",common:He,self:mj},vj=gj;function Lc(e){return e.type==="group"}function aS(e){return e.type==="ignored"}function Jd(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function sS(e,t){return{getIsGroup:Lc,getIgnored:aS,getKey(o){return Lc(o)?o.name||o.key||"key-required":o[e]},getChildren(o){return o[t]}}}function bj(e,t,n,o){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const s of i)if(Lc(s)){const l=r(s[o]);l.length&&a.push(Object.assign({},s,{[o]:l}))}else{if(aS(s))continue;t(n,s)&&a.push(s)}return a}return r(e)}function yj(e,t,n){const o=new Map;return e.forEach(r=>{Lc(r)?r[n].forEach(i=>{o.set(i[t],i)}):o.set(r[t],r)}),o}const xj=pr&&"chrome"in window;pr&&navigator.userAgent.includes("Firefox");const lS=pr&&navigator.userAgent.includes("Safari")&&!xj,cS={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Cj={name:"Input",common:He,self(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:h,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:b,heightTiny:w,heightSmall:C,heightMedium:_,heightLarge:S,clearColor:y,clearColorHover:x,clearColorPressed:P,placeholderColor:k,placeholderColorDisabled:T,iconColor:R,iconColorDisabled:E,iconColorHover:q,iconColorPressed:D}=e;return Object.assign(Object.assign({},cS),{countTextColorDisabled:o,countTextColor:n,heightTiny:w,heightSmall:C,heightMedium:_,heightLarge:S,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:k,placeholderColorDisabled:T,color:a,colorDisabled:s,colorFocus:Ie(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Ie(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Ie(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Ie(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:Ie(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${Ie(u,{alpha:.3})}`,caretColorError:u,clearColor:y,clearColorHover:x,clearColorPressed:P,iconColor:R,iconColorDisabled:E,iconColorHover:q,iconColorPressed:D,suffixTextColor:t})}},go=Cj;function wj(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:b,fontSizeLarge:w,heightTiny:C,heightSmall:_,heightMedium:S,heightLarge:y,actionColor:x,clearColor:P,clearColorHover:k,clearColorPressed:T,placeholderColor:R,placeholderColorDisabled:E,iconColor:q,iconColorDisabled:D,iconColorHover:B,iconColorPressed:M}=e;return Object.assign(Object.assign({},cS),{countTextColorDisabled:o,countTextColor:n,heightTiny:C,heightSmall:_,heightMedium:S,heightLarge:y,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:b,fontSizeLarge:w,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:r,placeholderColor:R,placeholderColorDisabled:E,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Ie(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Ie(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Ie(d,{alpha:.2})}`,caretColorError:d,clearColor:P,clearColorHover:k,clearColorPressed:T,iconColor:q,iconColorDisabled:D,iconColorHover:B,iconColorPressed:M,suffixTextColor:t})}const _j={name:"Input",common:xt,self:wj},mm=_j,uS="n-input";function Sj(e){let t=0;for(const n of e)t++;return t}function Nl(e){return e===""||e==null}function kj(e){const t=U(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){r();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function o(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:u,afterText:d}=a;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(u))f=u.length;else{const h=u[c-1],p=l.indexOf(h,c-1);p!==-1&&(f=p+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function r(){t.value=null}return ft(e,r),{recordCursor:n,restoreCursor:o}}const K0=xe({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:o,mergedClsPrefixRef:r,countGraphemesRef:i}=Ve(uS),a=I(()=>{const{value:s}=n;return s===null||Array.isArray(s)?0:(i.value||Sj)(s)});return()=>{const{value:s}=o,{value:l}=n;return v("span",{class:`${r.value}-input-word-count`},gh(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),Pj=z("input",` + `,[q("& +",[U("content",{marginTop:"9px"})])]),U("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),U("icon",{transition:"color .3s var(--n-bezier)"})]),wj=Object.assign(Object.assign({},Le.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),vl=ye({name:"Alert",inheritAttrs:!1,props:wj,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Alert","-alert",Cj,bj,e,t),a=pn("Alert",r,t),s=M(()=>{const{common:{cubicBezierEaseInOut:h},self:p}=i.value,{fontSize:g,borderRadius:m,titleFontWeight:b,lineHeight:w,iconSize:C,iconMargin:_,iconMarginRtl:S,closeIconSize:y,closeBorderRadius:x,closeSize:k,closeMargin:P,closeMarginRtl:T,padding:$}=p,{type:E}=e,{left:G,right:B}=co(_);return{"--n-bezier":h,"--n-color":p[Te("color",E)],"--n-close-icon-size":y,"--n-close-border-radius":x,"--n-close-color-hover":p[Te("closeColorHover",E)],"--n-close-color-pressed":p[Te("closeColorPressed",E)],"--n-close-icon-color":p[Te("closeIconColor",E)],"--n-close-icon-color-hover":p[Te("closeIconColorHover",E)],"--n-close-icon-color-pressed":p[Te("closeIconColorPressed",E)],"--n-icon-color":p[Te("iconColor",E)],"--n-border":p[Te("border",E)],"--n-title-text-color":p[Te("titleTextColor",E)],"--n-content-text-color":p[Te("contentTextColor",E)],"--n-line-height":w,"--n-border-radius":m,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":C,"--n-icon-margin":_,"--n-icon-margin-rtl":S,"--n-close-size":k,"--n-close-margin":P,"--n-close-margin-rtl":T,"--n-padding":$,"--n-icon-margin-left":G,"--n-icon-margin-right":B}}),l=o?Pt("alert",M(()=>e.type[0]),s,e):void 0,c=j(!0),u=()=>{const{onAfterLeave:h,onAfterHide:p}=e;h&&h(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var h;Promise.resolve((h=e.onClose)===null||h===void 0?void 0:h.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:o?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(zu,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,o={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?v("div",Object.assign({},Ln(this.$attrs,o)),this.closable&&v(Gi,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&v("div",{class:`${t}-alert__border`}),this.showIcon&&v("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},$n(n.icon,()=>[v(Wt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return v(Wi,null);case"info":return v(Wr,null);case"warning":return v(qi,null);case"error":return v(Vi,null);default:return null}}})])),v("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Et(n.header,r=>{const i=r||this.title;return i?v("div",{class:`${t}-alert-body__title`},i):null}),n.default&&v("div",{class:`${t}-alert-body__content`},n))):null}})}}),_j={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function Sj(e){const{borderRadius:t,railColor:n,primaryColor:o,primaryColorHover:r,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},_j),{borderRadius:t,railColor:n,railColorActive:o,linkColor:Oe(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:o})}const kj={name:"Anchor",common:je,self:Sj},Pj=kj;function Uc(e){return e.type==="group"}function hS(e){return e.type==="ignored"}function of(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function pS(e,t){return{getIsGroup:Uc,getIgnored:hS,getKey(o){return Uc(o)?o.name||o.key||"key-required":o[e]},getChildren(o){return o[t]}}}function Tj(e,t,n,o){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const a=[];for(const s of i)if(Uc(s)){const l=r(s[o]);l.length&&a.push(Object.assign({},s,{[o]:l}))}else{if(hS(s))continue;t(n,s)&&a.push(s)}return a}return r(e)}function Aj(e,t,n){const o=new Map;return e.forEach(r=>{Uc(r)?r[n].forEach(i=>{o.set(i[t],i)}):o.set(r[t],r)}),o}const Rj=pr&&"chrome"in window;pr&&navigator.userAgent.includes("Firefox");const mS=pr&&navigator.userAgent.includes("Safari")&&!Rj,gS={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},Ej={name:"Input",common:je,self(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:h,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:b,heightTiny:w,heightSmall:C,heightMedium:_,heightLarge:S,clearColor:y,clearColorHover:x,clearColorPressed:k,placeholderColor:P,placeholderColorDisabled:T,iconColor:$,iconColorDisabled:E,iconColorHover:G,iconColorPressed:B}=e;return Object.assign(Object.assign({},gS),{countTextColorDisabled:o,countTextColor:n,heightTiny:w,heightSmall:C,heightMedium:_,heightLarge:S,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:b,lineHeight:h,lineHeightTextarea:h,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:P,placeholderColorDisabled:T,color:a,colorDisabled:s,colorFocus:Oe(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Oe(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Oe(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Oe(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:Oe(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${Oe(u,{alpha:.3})}`,caretColorError:u,clearColor:y,clearColorHover:x,clearColorPressed:k,iconColor:$,iconColorDisabled:E,iconColorHover:G,iconColorPressed:B,suffixTextColor:t})}},go=Ej;function $j(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:b,fontSizeLarge:w,heightTiny:C,heightSmall:_,heightMedium:S,heightLarge:y,actionColor:x,clearColor:k,clearColorHover:P,clearColorPressed:T,placeholderColor:$,placeholderColorDisabled:E,iconColor:G,iconColorDisabled:B,iconColorHover:D,iconColorPressed:L}=e;return Object.assign(Object.assign({},gS),{countTextColorDisabled:o,countTextColor:n,heightTiny:C,heightSmall:_,heightMedium:S,heightLarge:y,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:b,fontSizeLarge:w,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:r,placeholderColor:$,placeholderColorDisabled:E,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Oe(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Oe(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Oe(d,{alpha:.2})}`,caretColorError:d,clearColor:k,clearColorHover:P,clearColorPressed:T,iconColor:G,iconColorDisabled:B,iconColorHover:D,iconColorPressed:L,suffixTextColor:t})}const Ij={name:"Input",common:xt,self:$j},wm=Ij,vS="n-input";function Oj(e){let t=0;for(const n of e)t++;return t}function Vl(e){return e===""||e==null}function Mj(e){const t=j(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){r();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function o(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:u,afterText:d}=a;let f=l.length;if(l.endsWith(d))f=l.length-d.length;else if(l.startsWith(u))f=u.length;else{const h=u[c-1],p=l.indexOf(h,c-1);p!==-1&&(f=p+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function r(){t.value=null}return ut(e,r),{recordCursor:n,restoreCursor:o}}const e1=ye({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:o,mergedClsPrefixRef:r,countGraphemesRef:i}=Ve(vS),a=M(()=>{const{value:s}=n;return s===null||Array.isArray(s)?0:(i.value||Oj)(s)});return()=>{const{value:s}=o,{value:l}=n;return v("span",{class:`${r.value}-input-word-count`},wh(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),zj=z("input",` max-width: 100%; cursor: text; line-height: 1.5; @@ -861,11 +861,11 @@ ${t} transition: background-color .3s var(--n-bezier); font-size: var(--n-font-size); --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[j("input, textarea",` +`,[U("input, textarea",` overflow: hidden; flex-grow: 1; position: relative; - `),j("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + `),U("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` box-sizing: border-box; font-size: inherit; line-height: 1.5; @@ -879,7 +879,7 @@ ${t} caret-color .3s var(--n-bezier), color .3s var(--n-bezier), text-decoration-color .3s var(--n-bezier); - `),j("input-el, textarea-el",` + `),U("input-el, textarea-el",` -webkit-appearance: none; scrollbar-width: none; width: 100%; @@ -888,14 +888,14 @@ ${t} color: var(--n-text-color); caret-color: var(--n-caret-color); background-color: transparent; - `,[W("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + `,[q("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` width: 0; height: 0; display: none; - `),W("&::placeholder",` + `),q("&::placeholder",` color: #0000; -webkit-text-fill-color: transparent !important; - `),W("&:-webkit-autofill ~",[j("placeholder","display: none;")])]),J("round",[Et("textarea","border-radius: calc(var(--n-height) / 2);")]),j("placeholder",` + `),q("&:-webkit-autofill ~",[U("placeholder","display: none;")])]),Z("round",[At("textarea","border-radius: calc(var(--n-height) / 2);")]),U("placeholder",` pointer-events: none; position: absolute; left: 0; @@ -904,10 +904,10 @@ ${t} bottom: 0; overflow: hidden; color: var(--n-placeholder-color); - `,[W("span",` + `,[q("span",` width: 100%; display: inline-block; - `)]),J("textarea",[j("placeholder","overflow: visible;")]),Et("autosize","width: 100%;"),J("autosize",[j("textarea-el, input-el",` + `)]),Z("textarea",[U("placeholder","overflow: visible;")]),At("autosize","width: 100%;"),Z("autosize",[U("textarea-el, input-el",` position: absolute; top: 0; left: 0; @@ -919,7 +919,7 @@ ${t} position: relative; padding-left: var(--n-padding-left); padding-right: var(--n-padding-right); - `),j("input-mirror",` + `),U("input-mirror",` padding: 0; height: var(--n-height); line-height: var(--n-height); @@ -928,26 +928,26 @@ ${t} position: static; white-space: pre; pointer-events: none; - `),j("input-el",` + `),U("input-el",` padding: 0; height: var(--n-height); line-height: var(--n-height); - `,[W("&[type=password]::-ms-reveal","display: none;"),W("+",[j("placeholder",` + `,[q("&[type=password]::-ms-reveal","display: none;"),q("+",[U("placeholder",` display: flex; align-items: center; - `)])]),Et("textarea",[j("placeholder","white-space: nowrap;")]),j("eye",` + `)])]),At("textarea",[U("placeholder","white-space: nowrap;")]),U("eye",` display: flex; align-items: center; justify-content: center; transition: color .3s var(--n-bezier); - `),J("textarea","width: 100%;",[z("input-word-count",` + `),Z("textarea","width: 100%;",[z("input-word-count",` position: absolute; right: var(--n-padding-right); bottom: var(--n-padding-vertical); - `),J("resizable",[z("input-wrapper",` + `),Z("resizable",[z("input-wrapper",` resize: vertical; min-height: var(--n-height); - `)]),j("textarea-el, textarea-mirror, placeholder",` + `)]),U("textarea-el, textarea-mirror, placeholder",` height: 100%; padding-left: 0; padding-right: 0; @@ -962,7 +962,7 @@ ${t} resize: none; white-space: pre-wrap; scroll-padding-block-end: var(--n-padding-vertical); - `),j("textarea-mirror",` + `),U("textarea-mirror",` width: 100%; pointer-events: none; overflow: hidden; @@ -970,7 +970,7 @@ ${t} position: static; white-space: pre-wrap; overflow-wrap: break-word; - `)]),J("pair",[j("input-el, placeholder","text-align: center;"),j("separator",` + `)]),Z("pair",[U("input-el, placeholder","text-align: center;"),U("separator",` display: flex; align-items: center; transition: color .3s var(--n-bezier); @@ -980,34 +980,34 @@ ${t} color: var(--n-icon-color); `),z("base-icon",` color: var(--n-icon-color); - `)])]),J("disabled",` + `)])]),Z("disabled",` cursor: not-allowed; background-color: var(--n-color-disabled); - `,[j("border","border: var(--n-border-disabled);"),j("input-el, textarea-el",` + `,[U("border","border: var(--n-border-disabled);"),U("input-el, textarea-el",` cursor: not-allowed; color: var(--n-text-color-disabled); text-decoration-color: var(--n-text-color-disabled); - `),j("placeholder","color: var(--n-placeholder-color-disabled);"),j("separator","color: var(--n-text-color-disabled);",[z("icon",` + `),U("placeholder","color: var(--n-placeholder-color-disabled);"),U("separator","color: var(--n-text-color-disabled);",[z("icon",` color: var(--n-icon-color-disabled); `),z("base-icon",` color: var(--n-icon-color-disabled); `)]),z("input-word-count",` color: var(--n-count-text-color-disabled); - `),j("suffix, prefix","color: var(--n-text-color-disabled);",[z("icon",` + `),U("suffix, prefix","color: var(--n-text-color-disabled);",[z("icon",` color: var(--n-icon-color-disabled); `),z("internal-icon",` color: var(--n-icon-color-disabled); - `)])]),Et("disabled",[j("eye",` + `)])]),At("disabled",[U("eye",` color: var(--n-icon-color); cursor: pointer; - `,[W("&:hover",` + `,[q("&:hover",` color: var(--n-icon-color-hover); - `),W("&:active",` + `),q("&:active",` color: var(--n-icon-color-pressed); - `)]),W("&:hover",[j("state-border","border: var(--n-border-hover);")]),J("focus","background-color: var(--n-color-focus);",[j("state-border",` + `)]),q("&:hover",[U("state-border","border: var(--n-border-hover);")]),Z("focus","background-color: var(--n-color-focus);",[U("state-border",` border: var(--n-border-focus); box-shadow: var(--n-box-shadow-focus); - `)])]),j("border, state-border",` + `)])]),U("border, state-border",` box-sizing: border-box; position: absolute; left: 0; @@ -1020,12 +1020,12 @@ ${t} transition: box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `),j("state-border",` + `),U("state-border",` border-color: #0000; z-index: 1; - `),j("prefix","margin-right: 4px;"),j("suffix",` + `),U("prefix","margin-right: 4px;"),U("suffix",` margin-left: 4px; - `),j("suffix, prefix",` + `),U("suffix, prefix",` transition: color .3s var(--n-bezier); flex-wrap: nowrap; flex-shrink: 0; @@ -1041,11 +1041,11 @@ ${t} color: var(--n-loading-color); `),z("base-clear",` font-size: var(--n-icon-size); - `,[j("placeholder",[z("base-icon",` + `,[U("placeholder",[z("base-icon",` transition: color .3s var(--n-bezier); color: var(--n-icon-color); font-size: var(--n-icon-size); - `)])]),W(">",[z("icon",` + `)])]),q(">",[z("icon",` transition: color .3s var(--n-bezier); color: var(--n-icon-color); font-size: var(--n-icon-size); @@ -1059,55 +1059,55 @@ ${t} transition: color .3s var(--n-bezier); margin-left: 4px; font-variant: tabular-nums; - `),["warning","error"].map(e=>J(`${e}-status`,[Et("disabled",[z("base-loading",` + `),["warning","error"].map(e=>Z(`${e}-status`,[At("disabled",[z("base-loading",` color: var(--n-loading-color-${e}) - `),j("input-el, textarea-el",` + `),U("input-el, textarea-el",` caret-color: var(--n-caret-color-${e}); - `),j("state-border",` + `),U("state-border",` border: var(--n-border-${e}); - `),W("&:hover",[j("state-border",` + `),q("&:hover",[U("state-border",` border: var(--n-border-hover-${e}); - `)]),W("&:focus",` + `)]),q("&:focus",` background-color: var(--n-color-focus-${e}); - `,[j("state-border",` + `,[U("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)]),J("focus",` + `)]),Z("focus",` background-color: var(--n-color-focus-${e}); - `,[j("state-border",` + `,[U("state-border",` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)])])]))]),Tj=z("input",[J("disabled",[j("input-el, textarea-el",` + `)])])]))]),Fj=z("input",[Z("disabled",[U("input-el, textarea-el",` -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),Ej=Object.assign(Object.assign({},Le.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),dr=xe({name:"Input",props:Ej,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Input","-input",Pj,mm,e,t);lS&&ei("-input-safari",Tj,t);const a=U(null),s=U(null),l=U(null),c=U(null),u=U(null),d=U(null),f=U(null),h=kj(f),p=U(null),{localeRef:g}=Hi("Input"),m=U(e.defaultValue),b=Ue(e,"value"),w=rn(b,m),C=mr(e),{mergedSizeRef:_,mergedDisabledRef:S,mergedStatusRef:y}=C,x=U(!1),P=U(!1),k=U(!1),T=U(!1);let R=null;const E=I(()=>{const{placeholder:le,pair:Ee}=e;return Ee?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[g.value.placeholder]:[le]}),q=I(()=>{const{value:le}=k,{value:Ee}=w,{value:ot}=E;return!le&&(Nl(Ee)||Array.isArray(Ee)&&Nl(Ee[0]))&&ot[0]}),D=I(()=>{const{value:le}=k,{value:Ee}=w,{value:ot}=E;return!le&&ot[1]&&(Nl(Ee)||Array.isArray(Ee)&&Nl(Ee[1]))}),B=kt(()=>e.internalForceFocus||x.value),M=kt(()=>{if(S.value||e.readonly||!e.clearable||!B.value&&!P.value)return!1;const{value:le}=w,{value:Ee}=B;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(P.value||Ee):!!le&&(P.value||Ee)}),K=I(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),V=U(!1),ae=I(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ee=>({textDecoration:Ee})):[{textDecoration:le}]:["",""]}),pe=U(void 0),Z=()=>{var le,Ee;if(e.type==="textarea"){const{autosize:ot}=e;if(ot&&(pe.value=(Ee=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ee===void 0?void 0:Ee.offsetWidth),!s.value||typeof ot=="boolean")return;const{paddingTop:Bt,paddingBottom:Kt,lineHeight:Dt}=window.getComputedStyle(s.value),yo=Number(Bt.slice(0,-2)),xo=Number(Kt.slice(0,-2)),Co=Number(Dt.slice(0,-2)),{value:Jo}=l;if(!Jo)return;if(ot.minRows){const Zo=Math.max(ot.minRows,1),oi=`${yo+xo+Co*Zo}px`;Jo.style.minHeight=oi}if(ot.maxRows){const Zo=`${yo+xo+Co*ot.maxRows}px`;Jo.style.maxHeight=Zo}}},N=I(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});jt(()=>{const{value:le}=w;Array.isArray(le)||vt(le)});const O=no().proxy;function ee(le,Ee){const{onUpdateValue:ot,"onUpdate:value":Bt,onInput:Kt}=e,{nTriggerFormInput:Dt}=C;ot&&Re(ot,le,Ee),Bt&&Re(Bt,le,Ee),Kt&&Re(Kt,le,Ee),m.value=le,Dt()}function G(le,Ee){const{onChange:ot}=e,{nTriggerFormChange:Bt}=C;ot&&Re(ot,le,Ee),m.value=le,Bt()}function ne(le){const{onBlur:Ee}=e,{nTriggerFormBlur:ot}=C;Ee&&Re(Ee,le),ot()}function X(le){const{onFocus:Ee}=e,{nTriggerFormFocus:ot}=C;Ee&&Re(Ee,le),ot()}function ce(le){const{onClear:Ee}=e;Ee&&Re(Ee,le)}function L(le){const{onInputBlur:Ee}=e;Ee&&Re(Ee,le)}function be(le){const{onInputFocus:Ee}=e;Ee&&Re(Ee,le)}function Oe(){const{onDeactivate:le}=e;le&&Re(le)}function je(){const{onActivate:le}=e;le&&Re(le)}function F(le){const{onClick:Ee}=e;Ee&&Re(Ee,le)}function A(le){const{onWrapperFocus:Ee}=e;Ee&&Re(Ee,le)}function re(le){const{onWrapperBlur:Ee}=e;Ee&&Re(Ee,le)}function we(){k.value=!0}function oe(le){k.value=!1,le.target===d.value?ve(le,1):ve(le,0)}function ve(le,Ee=0,ot="input"){const Bt=le.target.value;if(vt(Bt),le instanceof InputEvent&&!le.isComposing&&(k.value=!1),e.type==="textarea"){const{value:Dt}=p;Dt&&Dt.syncUnifiedContainer()}if(R=Bt,k.value)return;h.recordCursor();const Kt=ke(Bt);if(Kt)if(!e.pair)ot==="input"?ee(Bt,{source:Ee}):G(Bt,{source:Ee});else{let{value:Dt}=w;Array.isArray(Dt)?Dt=[Dt[0],Dt[1]]:Dt=["",""],Dt[Ee]=Bt,ot==="input"?ee(Dt,{source:Ee}):G(Dt,{source:Ee})}O.$forceUpdate(),Kt||Ht(h.restoreCursor)}function ke(le){const{countGraphemes:Ee,maxlength:ot,minlength:Bt}=e;if(Ee){let Dt;if(ot!==void 0&&(Dt===void 0&&(Dt=Ee(le)),Dt>Number(ot))||Bt!==void 0&&(Dt===void 0&&(Dt=Ee(le)),Dt{Bt.preventDefault(),Tt("mouseup",document,Ee)};if($t("mouseup",document,Ee),K.value!=="mousedown")return;V.value=!0;const ot=()=>{V.value=!1,Tt("mouseup",document,ot)};$t("mouseup",document,ot)}function Xe(le){e.onKeyup&&Re(e.onKeyup,le)}function gt(le){switch(e.onKeydown&&Re(e.onKeydown,le),le.key){case"Escape":ye();break;case"Enter":Q(le);break}}function Q(le){var Ee,ot;if(e.passivelyActivated){const{value:Bt}=T;if(Bt){e.internalDeactivateOnEnter&&ye();return}le.preventDefault(),e.type==="textarea"?(Ee=s.value)===null||Ee===void 0||Ee.focus():(ot=u.value)===null||ot===void 0||ot.focus()}}function ye(){e.passivelyActivated&&(T.value=!1,Ht(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function Ae(){var le,Ee,ot;S.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ee=s.value)===null||Ee===void 0||Ee.focus(),(ot=u.value)===null||ot===void 0||ot.focus()))}function qe(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function Qe(){var le,Ee;(le=s.value)===null||le===void 0||le.select(),(Ee=u.value)===null||Ee===void 0||Ee.select()}function Je(){S.value||(s.value?s.value.focus():u.value&&u.value.focus())}function tt(){const{value:le}=a;le!=null&&le.contains(document.activeElement)&&le!==document.activeElement&&ye()}function it(le){if(e.type==="textarea"){const{value:Ee}=s;Ee==null||Ee.scrollTo(le)}else{const{value:Ee}=u;Ee==null||Ee.scrollTo(le)}}function vt(le){const{type:Ee,pair:ot,autosize:Bt}=e;if(!ot&&Bt)if(Ee==="textarea"){const{value:Kt}=l;Kt&&(Kt.textContent=`${le??""}\r -`)}else{const{value:Kt}=c;Kt&&(le?Kt.textContent=le:Kt.innerHTML=" ")}}function an(){Z()}const Ft=U({top:"0"});function _e(le){var Ee;const{scrollTop:ot}=le.target;Ft.value.top=`${-ot}px`,(Ee=p.value)===null||Ee===void 0||Ee.syncUnifiedContainer()}let Be=null;Yt(()=>{const{autosize:le,type:Ee}=e;le&&Ee==="textarea"?Be=ft(w,ot=>{!Array.isArray(ot)&&ot!==R&&vt(ot)}):Be==null||Be()});let Ze=null;Yt(()=>{e.type==="textarea"?Ze=ft(w,le=>{var Ee;!Array.isArray(le)&&le!==R&&((Ee=p.value)===null||Ee===void 0||Ee.syncUnifiedContainer())}):Ze==null||Ze()}),at(uS,{mergedValueRef:w,maxlengthRef:N,mergedClsPrefixRef:t,countGraphemesRef:Ue(e,"countGraphemes")});const ht={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:k,clear:Fe,focus:Ae,blur:qe,select:Qe,deactivate:tt,activate:Je,scrollTo:it},bt=pn("Input",r,t),ut=I(()=>{const{value:le}=_,{common:{cubicBezierEaseInOut:Ee},self:{color:ot,borderRadius:Bt,textColor:Kt,caretColor:Dt,caretColorError:yo,caretColorWarning:xo,textDecorationColor:Co,border:Jo,borderDisabled:Zo,borderHover:oi,borderFocus:Qa,placeholderColor:Ja,placeholderColorDisabled:Za,lineHeightTextarea:es,colorDisabled:yr,colorFocus:xr,textColorDisabled:ed,boxShadowFocus:td,iconSize:nd,colorFocusWarning:od,boxShadowFocusWarning:rd,borderWarning:id,borderFocusWarning:ad,borderHoverWarning:sd,colorFocusError:ld,boxShadowFocusError:cd,borderError:ud,borderFocusError:dd,borderHoverError:jk,clearSize:Uk,clearColor:Vk,clearColorHover:Wk,clearColorPressed:qk,iconColor:Kk,iconColorDisabled:Gk,suffixTextColor:Xk,countTextColor:Yk,countTextColorDisabled:Qk,iconColorHover:Jk,iconColorPressed:Zk,loadingColor:e3,loadingColorError:t3,loadingColorWarning:n3,[Te("padding",le)]:o3,[Te("fontSize",le)]:r3,[Te("height",le)]:i3}}=i.value,{left:a3,right:s3}=co(o3);return{"--n-bezier":Ee,"--n-count-text-color":Yk,"--n-count-text-color-disabled":Qk,"--n-color":ot,"--n-font-size":r3,"--n-border-radius":Bt,"--n-height":i3,"--n-padding-left":a3,"--n-padding-right":s3,"--n-text-color":Kt,"--n-caret-color":Dt,"--n-text-decoration-color":Co,"--n-border":Jo,"--n-border-disabled":Zo,"--n-border-hover":oi,"--n-border-focus":Qa,"--n-placeholder-color":Ja,"--n-placeholder-color-disabled":Za,"--n-icon-size":nd,"--n-line-height-textarea":es,"--n-color-disabled":yr,"--n-color-focus":xr,"--n-text-color-disabled":ed,"--n-box-shadow-focus":td,"--n-loading-color":e3,"--n-caret-color-warning":xo,"--n-color-focus-warning":od,"--n-box-shadow-focus-warning":rd,"--n-border-warning":id,"--n-border-focus-warning":ad,"--n-border-hover-warning":sd,"--n-loading-color-warning":n3,"--n-caret-color-error":yo,"--n-color-focus-error":ld,"--n-box-shadow-focus-error":cd,"--n-border-error":ud,"--n-border-focus-error":dd,"--n-border-hover-error":jk,"--n-loading-color-error":t3,"--n-clear-color":Vk,"--n-clear-size":Uk,"--n-clear-color-hover":Wk,"--n-clear-color-pressed":qk,"--n-icon-color":Kk,"--n-icon-color-hover":Jk,"--n-icon-color-pressed":Zk,"--n-icon-color-disabled":Gk,"--n-suffix-text-color":Xk}}),Rt=o?Pt("input",I(()=>{const{value:le}=_;return le[0]}),ut,e):void 0;return Object.assign(Object.assign({},ht),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:p,rtlEnabled:bt,uncontrolledValue:m,mergedValue:w,passwordVisible:V,mergedPlaceholder:E,showPlaceholder1:q,showPlaceholder2:D,mergedFocus:B,isComposing:k,activated:T,showClearButton:M,mergedSize:_,mergedDisabled:S,textDecorationStyle:ae,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:K,placeholderStyle:Ft,mergedStatus:y,textAreaScrollContainerWidth:pe,handleTextAreaScroll:_e,handleCompositionStart:we,handleCompositionEnd:oe,handleInput:ve,handleInputBlur:$,handleInputFocus:H,handleWrapperBlur:te,handleWrapperFocus:Ce,handleMouseEnter:Me,handleMouseLeave:Ne,handleMouseDown:De,handleChange:ue,handleClick:ie,handleClear:fe,handlePasswordToggleClick:et,handlePasswordToggleMousedown:$e,handleWrapperKeydown:gt,handleWrapperKeyup:Xe,handleTextAreaMirrorResize:an,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:o?void 0:ut,themeClass:Rt==null?void 0:Rt.themeClass,onRender:Rt==null?void 0:Rt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:o,themeClass:r,type:i,countGraphemes:a,onRender:s}=this,l=this.$slots;return s==null||s(),v("div",{ref:"wrapperElRef",class:[`${n}-input`,r,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},v("div",{class:`${n}-input-wrapper`},At(l.prefix,c=>c&&v("div",{class:`${n}-input__prefix`},c)),i==="textarea"?v(Oo,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:d}=this,f={width:this.autosize&&d&&`${d}px`};return v(rt,null,v("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,f],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?v(ur,{onResize:this.handleTextAreaMirrorResize},{default:()=>v("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):v("div",{class:`${n}-input__input`},v("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[0])):null,this.autosize?v("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&At(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?v("div",{class:`${n}-input__suffix`},[At(l["clear-icon-placeholder"],u=>(this.clearable||u)&&v(zh,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var d,f;return(f=(d=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(d)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?v(nS,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?v(K0,null,{default:u=>{var d;return(d=l.count)===null||d===void 0?void 0:d.call(l,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?v("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?$n(l["password-visible-icon"],()=>[v(Wt,{clsPrefix:n},{default:()=>v(EN,null)})]):$n(l["password-invisible-icon"],()=>[v(Wt,{clsPrefix:n},{default:()=>v(RN,null)})])):null]):null)),this.pair?v("span",{class:`${n}-input__separator`},$n(l.separator,()=>[this.separator])):null,this.pair?v("div",{class:`${n}-input-wrapper`},v("div",{class:`${n}-input__input`},v("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[1])):null),At(l.suffix,c=>(this.clearable||c)&&v("div",{class:`${n}-input__suffix`},[this.clearable&&v(zh,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=l["clear-icon"])===null||u===void 0?void 0:u.call(l)},placeholder:()=>{var u;return(u=l["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(l)}}),c]))):null,this.mergedBordered?v("div",{class:`${n}-input__border`}):null,this.mergedBordered?v("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?v(K0,null,{default:c=>{var u;const{renderCount:d}=this;return d?d(c):(u=l.count)===null||u===void 0?void 0:u.call(l,c)}}):null)}}),Rj=z("input-group",` + `)])]),Dj=Object.assign(Object.assign({},Le.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),dr=ye({name:"Input",props:Dj,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Input","-input",zj,wm,e,t);mS&&ni("-input-safari",Fj,t);const a=j(null),s=j(null),l=j(null),c=j(null),u=j(null),d=j(null),f=j(null),h=Mj(f),p=j(null),{localeRef:g}=Ui("Input"),m=j(e.defaultValue),b=Ue(e,"value"),w=rn(b,m),C=mr(e),{mergedSizeRef:_,mergedDisabledRef:S,mergedStatusRef:y}=C,x=j(!1),k=j(!1),P=j(!1),T=j(!1);let $=null;const E=M(()=>{const{placeholder:ce,pair:Ae}=e;return Ae?Array.isArray(ce)?ce:ce===void 0?["",""]:[ce,ce]:ce===void 0?[g.value.placeholder]:[ce]}),G=M(()=>{const{value:ce}=P,{value:Ae}=w,{value:ot}=E;return!ce&&(Vl(Ae)||Array.isArray(Ae)&&Vl(Ae[0]))&&ot[0]}),B=M(()=>{const{value:ce}=P,{value:Ae}=w,{value:ot}=E;return!ce&&ot[1]&&(Vl(Ae)||Array.isArray(Ae)&&Vl(Ae[1]))}),D=kt(()=>e.internalForceFocus||x.value),L=kt(()=>{if(S.value||e.readonly||!e.clearable||!D.value&&!k.value)return!1;const{value:ce}=w,{value:Ae}=D;return e.pair?!!(Array.isArray(ce)&&(ce[0]||ce[1]))&&(k.value||Ae):!!ce&&(k.value||Ae)}),X=M(()=>{const{showPasswordOn:ce}=e;if(ce)return ce;if(e.showPasswordToggle)return"click"}),V=j(!1),ae=M(()=>{const{textDecoration:ce}=e;return ce?Array.isArray(ce)?ce.map(Ae=>({textDecoration:Ae})):[{textDecoration:ce}]:["",""]}),ue=j(void 0),ee=()=>{var ce,Ae;if(e.type==="textarea"){const{autosize:ot}=e;if(ot&&(ue.value=(Ae=(ce=p.value)===null||ce===void 0?void 0:ce.$el)===null||Ae===void 0?void 0:Ae.offsetWidth),!s.value||typeof ot=="boolean")return;const{paddingTop:Bt,paddingBottom:Kt,lineHeight:Dt}=window.getComputedStyle(s.value),yo=Number(Bt.slice(0,-2)),xo=Number(Kt.slice(0,-2)),Co=Number(Dt.slice(0,-2)),{value:Jo}=l;if(!Jo)return;if(ot.minRows){const Zo=Math.max(ot.minRows,1),ii=`${yo+xo+Co*Zo}px`;Jo.style.minHeight=ii}if(ot.maxRows){const Zo=`${yo+xo+Co*ot.maxRows}px`;Jo.style.maxHeight=Zo}}},R=M(()=>{const{maxlength:ce}=e;return ce===void 0?void 0:Number(ce)});jt(()=>{const{value:ce}=w;Array.isArray(ce)||vt(ce)});const A=no().proxy;function Y(ce,Ae){const{onUpdateValue:ot,"onUpdate:value":Bt,onInput:Kt}=e,{nTriggerFormInput:Dt}=C;ot&&Re(ot,ce,Ae),Bt&&Re(Bt,ce,Ae),Kt&&Re(Kt,ce,Ae),m.value=ce,Dt()}function W(ce,Ae){const{onChange:ot}=e,{nTriggerFormChange:Bt}=C;ot&&Re(ot,ce,Ae),m.value=ce,Bt()}function oe(ce){const{onBlur:Ae}=e,{nTriggerFormBlur:ot}=C;Ae&&Re(Ae,ce),ot()}function K(ce){const{onFocus:Ae}=e,{nTriggerFormFocus:ot}=C;Ae&&Re(Ae,ce),ot()}function le(ce){const{onClear:Ae}=e;Ae&&Re(Ae,ce)}function N(ce){const{onInputBlur:Ae}=e;Ae&&Re(Ae,ce)}function be(ce){const{onInputFocus:Ae}=e;Ae&&Re(Ae,ce)}function Ie(){const{onDeactivate:ce}=e;ce&&Re(ce)}function Ne(){const{onActivate:ce}=e;ce&&Re(ce)}function F(ce){const{onClick:Ae}=e;Ae&&Re(Ae,ce)}function I(ce){const{onWrapperFocus:Ae}=e;Ae&&Re(Ae,ce)}function re(ce){const{onWrapperBlur:Ae}=e;Ae&&Re(Ae,ce)}function _e(){P.value=!0}function ne(ce){P.value=!1,ce.target===d.value?me(ce,1):me(ce,0)}function me(ce,Ae=0,ot="input"){const Bt=ce.target.value;if(vt(Bt),ce instanceof InputEvent&&!ce.isComposing&&(P.value=!1),e.type==="textarea"){const{value:Dt}=p;Dt&&Dt.syncUnifiedContainer()}if($=Bt,P.value)return;h.recordCursor();const Kt=we(Bt);if(Kt)if(!e.pair)ot==="input"?Y(Bt,{source:Ae}):W(Bt,{source:Ae});else{let{value:Dt}=w;Array.isArray(Dt)?Dt=[Dt[0],Dt[1]]:Dt=["",""],Dt[Ae]=Bt,ot==="input"?Y(Dt,{source:Ae}):W(Dt,{source:Ae})}A.$forceUpdate(),Kt||Ht(h.restoreCursor)}function we(ce){const{countGraphemes:Ae,maxlength:ot,minlength:Bt}=e;if(Ae){let Dt;if(ot!==void 0&&(Dt===void 0&&(Dt=Ae(ce)),Dt>Number(ot))||Bt!==void 0&&(Dt===void 0&&(Dt=Ae(ce)),Dt{Bt.preventDefault(),Tt("mouseup",document,Ae)};if($t("mouseup",document,Ae),X.value!=="mousedown")return;V.value=!0;const ot=()=>{V.value=!1,Tt("mouseup",document,ot)};$t("mouseup",document,ot)}function Xe(ce){e.onKeyup&&Re(e.onKeyup,ce)}function gt(ce){switch(e.onKeydown&&Re(e.onKeydown,ce),ce.key){case"Escape":xe();break;case"Enter":J(ce);break}}function J(ce){var Ae,ot;if(e.passivelyActivated){const{value:Bt}=T;if(Bt){e.internalDeactivateOnEnter&&xe();return}ce.preventDefault(),e.type==="textarea"?(Ae=s.value)===null||Ae===void 0||Ae.focus():(ot=u.value)===null||ot===void 0||ot.focus()}}function xe(){e.passivelyActivated&&(T.value=!1,Ht(()=>{var ce;(ce=a.value)===null||ce===void 0||ce.focus()}))}function Ee(){var ce,Ae,ot;S.value||(e.passivelyActivated?(ce=a.value)===null||ce===void 0||ce.focus():((Ae=s.value)===null||Ae===void 0||Ae.focus(),(ot=u.value)===null||ot===void 0||ot.focus()))}function qe(){var ce;!((ce=a.value)===null||ce===void 0)&&ce.contains(document.activeElement)&&document.activeElement.blur()}function Qe(){var ce,Ae;(ce=s.value)===null||ce===void 0||ce.select(),(Ae=u.value)===null||Ae===void 0||Ae.select()}function Je(){S.value||(s.value?s.value.focus():u.value&&u.value.focus())}function tt(){const{value:ce}=a;ce!=null&&ce.contains(document.activeElement)&&ce!==document.activeElement&&xe()}function it(ce){if(e.type==="textarea"){const{value:Ae}=s;Ae==null||Ae.scrollTo(ce)}else{const{value:Ae}=u;Ae==null||Ae.scrollTo(ce)}}function vt(ce){const{type:Ae,pair:ot,autosize:Bt}=e;if(!ot&&Bt)if(Ae==="textarea"){const{value:Kt}=l;Kt&&(Kt.textContent=`${ce??""}\r +`)}else{const{value:Kt}=c;Kt&&(ce?Kt.textContent=ce:Kt.innerHTML=" ")}}function an(){ee()}const Ft=j({top:"0"});function Se(ce){var Ae;const{scrollTop:ot}=ce.target;Ft.value.top=`${-ot}px`,(Ae=p.value)===null||Ae===void 0||Ae.syncUnifiedContainer()}let Be=null;Yt(()=>{const{autosize:ce,type:Ae}=e;ce&&Ae==="textarea"?Be=ut(w,ot=>{!Array.isArray(ot)&&ot!==$&&vt(ot)}):Be==null||Be()});let Ze=null;Yt(()=>{e.type==="textarea"?Ze=ut(w,ce=>{var Ae;!Array.isArray(ce)&&ce!==$&&((Ae=p.value)===null||Ae===void 0||Ae.syncUnifiedContainer())}):Ze==null||Ze()}),at(vS,{mergedValueRef:w,maxlengthRef:R,mergedClsPrefixRef:t,countGraphemesRef:Ue(e,"countGraphemes")});const ht={wrapperElRef:a,inputElRef:u,textareaElRef:s,isCompositing:P,clear:Fe,focus:Ee,blur:qe,select:Qe,deactivate:tt,activate:Je,scrollTo:it},bt=pn("Input",r,t),dt=M(()=>{const{value:ce}=_,{common:{cubicBezierEaseInOut:Ae},self:{color:ot,borderRadius:Bt,textColor:Kt,caretColor:Dt,caretColorError:yo,caretColorWarning:xo,textDecorationColor:Co,border:Jo,borderDisabled:Zo,borderHover:ii,borderFocus:es,placeholderColor:ts,placeholderColorDisabled:ns,lineHeightTextarea:os,colorDisabled:yr,colorFocus:xr,textColorDisabled:id,boxShadowFocus:ad,iconSize:sd,colorFocusWarning:ld,boxShadowFocusWarning:cd,borderWarning:ud,borderFocusWarning:dd,borderHoverWarning:fd,colorFocusError:hd,boxShadowFocusError:pd,borderError:md,borderFocusError:gd,borderHoverError:Qk,clearSize:Jk,clearColor:Zk,clearColorHover:e3,clearColorPressed:t3,iconColor:n3,iconColorDisabled:o3,suffixTextColor:r3,countTextColor:i3,countTextColorDisabled:a3,iconColorHover:s3,iconColorPressed:l3,loadingColor:c3,loadingColorError:u3,loadingColorWarning:d3,[Te("padding",ce)]:f3,[Te("fontSize",ce)]:h3,[Te("height",ce)]:p3}}=i.value,{left:m3,right:g3}=co(f3);return{"--n-bezier":Ae,"--n-count-text-color":i3,"--n-count-text-color-disabled":a3,"--n-color":ot,"--n-font-size":h3,"--n-border-radius":Bt,"--n-height":p3,"--n-padding-left":m3,"--n-padding-right":g3,"--n-text-color":Kt,"--n-caret-color":Dt,"--n-text-decoration-color":Co,"--n-border":Jo,"--n-border-disabled":Zo,"--n-border-hover":ii,"--n-border-focus":es,"--n-placeholder-color":ts,"--n-placeholder-color-disabled":ns,"--n-icon-size":sd,"--n-line-height-textarea":os,"--n-color-disabled":yr,"--n-color-focus":xr,"--n-text-color-disabled":id,"--n-box-shadow-focus":ad,"--n-loading-color":c3,"--n-caret-color-warning":xo,"--n-color-focus-warning":ld,"--n-box-shadow-focus-warning":cd,"--n-border-warning":ud,"--n-border-focus-warning":dd,"--n-border-hover-warning":fd,"--n-loading-color-warning":d3,"--n-caret-color-error":yo,"--n-color-focus-error":hd,"--n-box-shadow-focus-error":pd,"--n-border-error":md,"--n-border-focus-error":gd,"--n-border-hover-error":Qk,"--n-loading-color-error":u3,"--n-clear-color":Zk,"--n-clear-size":Jk,"--n-clear-color-hover":e3,"--n-clear-color-pressed":t3,"--n-icon-color":n3,"--n-icon-color-hover":s3,"--n-icon-color-pressed":l3,"--n-icon-color-disabled":o3,"--n-suffix-text-color":r3}}),Rt=o?Pt("input",M(()=>{const{value:ce}=_;return ce[0]}),dt,e):void 0;return Object.assign(Object.assign({},ht),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:d,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:p,rtlEnabled:bt,uncontrolledValue:m,mergedValue:w,passwordVisible:V,mergedPlaceholder:E,showPlaceholder1:G,showPlaceholder2:B,mergedFocus:D,isComposing:P,activated:T,showClearButton:L,mergedSize:_,mergedDisabled:S,textDecorationStyle:ae,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:X,placeholderStyle:Ft,mergedStatus:y,textAreaScrollContainerWidth:ue,handleTextAreaScroll:Se,handleCompositionStart:_e,handleCompositionEnd:ne,handleInput:me,handleInputBlur:O,handleInputFocus:H,handleWrapperBlur:te,handleWrapperFocus:Ce,handleMouseEnter:Me,handleMouseLeave:He,handleMouseDown:De,handleChange:de,handleClick:ie,handleClear:he,handlePasswordToggleClick:et,handlePasswordToggleMousedown:$e,handleWrapperKeydown:gt,handleWrapperKeyup:Xe,handleTextAreaMirrorResize:an,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:o?void 0:dt,themeClass:Rt==null?void 0:Rt.themeClass,onRender:Rt==null?void 0:Rt.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:o,themeClass:r,type:i,countGraphemes:a,onRender:s}=this,l=this.$slots;return s==null||s(),v("div",{ref:"wrapperElRef",class:[`${n}-input`,r,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},v("div",{class:`${n}-input-wrapper`},Et(l.prefix,c=>c&&v("div",{class:`${n}-input__prefix`},c)),i==="textarea"?v(Oo,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,u;const{textAreaScrollContainerWidth:d}=this,f={width:this.autosize&&d&&`${d}px`};return v(rt,null,v("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(u=this.inputProps)===null||u===void 0?void 0:u.style,f],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?v(ur,{onResize:this.handleTextAreaMirrorResize},{default:()=>v("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):v("div",{class:`${n}-input__input`},v("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[0])):null,this.autosize?v("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Et(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?v("div",{class:`${n}-input__suffix`},[Et(l["clear-icon-placeholder"],u=>(this.clearable||u)&&v(Hh,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>u,icon:()=>{var d,f;return(f=(d=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(d)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?v(cS,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?v(e1,null,{default:u=>{var d;return(d=l.count)===null||d===void 0?void 0:d.call(l,u)}}):null,this.mergedShowPasswordOn&&this.type==="password"?v("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?$n(l["password-visible-icon"],()=>[v(Wt,{clsPrefix:n},{default:()=>v(DN,null)})]):$n(l["password-invisible-icon"],()=>[v(Wt,{clsPrefix:n},{default:()=>v(LN,null)})])):null]):null)),this.pair?v("span",{class:`${n}-input__separator`},$n(l.separator,()=>[this.separator])):null,this.pair?v("div",{class:`${n}-input-wrapper`},v("div",{class:`${n}-input__input`},v("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?v("div",{class:`${n}-input__placeholder`},v("span",null,this.mergedPlaceholder[1])):null),Et(l.suffix,c=>(this.clearable||c)&&v("div",{class:`${n}-input__suffix`},[this.clearable&&v(Hh,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var u;return(u=l["clear-icon"])===null||u===void 0?void 0:u.call(l)},placeholder:()=>{var u;return(u=l["clear-icon-placeholder"])===null||u===void 0?void 0:u.call(l)}}),c]))):null,this.mergedBordered?v("div",{class:`${n}-input__border`}):null,this.mergedBordered?v("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?v(e1,null,{default:c=>{var u;const{renderCount:d}=this;return d?d(c):(u=l.count)===null||u===void 0?void 0:u.call(l,c)}}):null)}}),Lj=z("input-group",` display: inline-flex; width: 100%; flex-wrap: nowrap; vertical-align: bottom; -`,[W(">",[z("input",[W("&:not(:last-child)",` +`,[q(">",[z("input",[q("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),W("&:not(:first-child)",` + `),q("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; margin-left: -1px!important; - `)]),z("button",[W("&:not(:last-child)",` + `)]),z("button",[q("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `,[j("state-border, border",` + `,[U("state-border, border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `)]),W("&:not(:first-child)",` + `)]),q("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `,[j("state-border, border",` + `,[U("state-border, border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `)])]),W("*",[W("&:not(:last-child)",` + `)])]),q("*",[q("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `,[W(">",[z("input",` + `,[q(">",[z("input",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),z("base-selection",[z("base-selection-label",` @@ -1116,14 +1116,14 @@ ${t} `),z("base-selection-tags",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `),j("box-shadow, border, state-border",` + `),U("box-shadow, border, state-border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; - `)])])]),W("&:not(:first-child)",` + `)])])]),q("&:not(:first-child)",` margin-left: -1px!important; border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `,[W(">",[z("input",` + `,[q(">",[z("input",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),z("base-selection",[z("base-selection-label",` @@ -1132,10 +1132,10 @@ ${t} `),z("base-selection-tags",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `),j("box-shadow, border, state-border",` + `),U("box-shadow, border, state-border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `)])])])])])]),Aj={},gm=xe({name:"InputGroup",props:Aj,setup(e){const{mergedClsPrefixRef:t}=st(e);return ei("-input-group",Rj,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-input-group`},this.$slots)}});function $j(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Ij={name:"AutoComplete",common:He,peers:{InternalSelectMenu:fl,Input:go},self:$j},Oj=Ij;function Mj(e){const{borderRadius:t,avatarColor:n,cardColor:o,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:Ke(o,n),colorModal:Ke(u,n),colorPopover:Ke(d,n)}}const zj={name:"Avatar",common:He,self:Mj},dS=zj;function Fj(){return{gap:"-12px"}}const Dj={name:"AvatarGroup",common:He,peers:{Avatar:dS},self:Fj},Lj=Dj,fS={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Bj={name:"BackTop",common:He,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},fS),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Nj=Bj;function Hj(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},fS),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const jj={name:"BackTop",common:xt,self:Hj},Uj=jj,Vj=v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},v("g",{transform:"translate(120.000000, 4285.000000)"},v("g",{transform:"translate(7.000000, 126.000000)"},v("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},v("g",{transform:"translate(4.000000, 2.000000)"},v("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),v("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Wj=z("back-top",` + `)])])])])])]),Bj={},_m=ye({name:"InputGroup",props:Bj,setup(e){const{mergedClsPrefixRef:t}=st(e);return ni("-input-group",Lj,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-input-group`},this.$slots)}});function Nj(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Hj={name:"AutoComplete",common:je,peers:{InternalSelectMenu:ml,Input:go},self:Nj},jj=Hj;function Uj(e){const{borderRadius:t,avatarColor:n,cardColor:o,fontSize:r,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:Ke(o,n),colorModal:Ke(u,n),colorPopover:Ke(d,n)}}const Vj={name:"Avatar",common:je,self:Uj},bS=Vj;function Wj(){return{gap:"-12px"}}const qj={name:"AvatarGroup",common:je,peers:{Avatar:bS},self:Wj},Kj=qj,yS={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Gj={name:"BackTop",common:je,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},yS),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Xj=Gj;function Yj(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},yS),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const Qj={name:"BackTop",common:xt,self:Yj},Jj=Qj,Zj=v("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},v("g",{transform:"translate(120.000000, 4285.000000)"},v("g",{transform:"translate(7.000000, 126.000000)"},v("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},v("g",{transform:"translate(4.000000, 2.000000)"},v("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),v("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),eU=z("back-top",` position: fixed; right: 40px; bottom: 40px; @@ -1153,19 +1153,19 @@ ${t} min-width: var(--n-width); box-shadow: var(--n-box-shadow); background-color: var(--n-color); -`,[Wa(),J("transition-disabled",{transition:"none !important"}),z("base-icon",` +`,[Ga(),Z("transition-disabled",{transition:"none !important"}),z("base-icon",` font-size: var(--n-icon-size); color: var(--n-icon-color); transition: color .3s var(--n-bezier); - `),W("svg",{pointerEvents:"none"}),W("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[z("base-icon",{color:"var(--n-icon-color-hover)"})]),W("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[z("base-icon",{color:"var(--n-icon-color-pressed)"})])]),qj=Object.assign(Object.assign({},Le.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Kj=xe({name:"BackTop",inheritAttrs:!1,props:qj,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=U(null),r=U(!1);Yt(()=>{const{value:_}=o;if(_===null){r.value=!1;return}r.value=_>=e.visibilityHeight});const i=U(!1);ft(r,_=>{var S;i.value&&((S=e["onUpdate:show"])===null||S===void 0||S.call(e,_))});const a=Ue(e,"show"),s=rn(a,r),l=U(!0),c=U(null),u=I(()=>({right:`calc(${qt(e.right)} + ${_h.value})`,bottom:qt(e.bottom)}));let d,f;ft(s,_=>{var S,y;i.value&&(_&&((S=e.onShow)===null||S===void 0||S.call(e)),(y=e.onHide)===null||y===void 0||y.call(e))});const h=Le("BackTop","-back-top",Wj,Uj,e,t);function p(){var _;if(f)return;f=!0;const S=((_=e.target)===null||_===void 0?void 0:_.call(e))||OI(e.listenTo)||uw(c.value);if(!S)return;d=S===document.documentElement?document:S;const{to:y}=e;typeof y=="string"&&document.querySelector(y),d.addEventListener("scroll",m),m()}function g(){(Yb(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})}function m(){o.value=(Yb(d)?document.documentElement:d).scrollTop,i.value||Ht(()=>{i.value=!0})}function b(){l.value=!1}jt(()=>{p(),l.value=s.value}),on(()=>{d&&d.removeEventListener("scroll",m)});const w=I(()=>{const{self:{color:_,boxShadow:S,boxShadowHover:y,boxShadowPressed:x,iconColor:P,iconColorHover:k,iconColorPressed:T,width:R,height:E,iconSize:q,borderRadius:D,textColor:B},common:{cubicBezierEaseInOut:M}}=h.value;return{"--n-bezier":M,"--n-border-radius":D,"--n-height":E,"--n-width":R,"--n-box-shadow":S,"--n-box-shadow-hover":y,"--n-box-shadow-pressed":x,"--n-color":_,"--n-icon-size":q,"--n-icon-color":P,"--n-icon-color-hover":k,"--n-icon-color-pressed":T,"--n-text-color":B}}),C=n?Pt("back-top",void 0,w,e):void 0;return{placeholderRef:c,style:u,mergedShow:s,isMounted:Zr(),scrollElement:U(null),scrollTop:o,DomInfoReady:i,transitionDisabled:l,mergedClsPrefix:t,handleAfterEnter:b,handleScroll:m,handleClick:g,cssVars:n?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return v("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},v(ku,{to:this.to,show:this.mergedShow},{default:()=>v(fn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?v("div",Ln(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),$n(this.$slots.default,()=>[v(Wt,{clsPrefix:e},{default:()=>Vj})])):null}})}))}}),Gj={name:"Badge",common:He,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:o,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:o,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},Xj=Gj,Yj={fontWeightActive:"400"};function hS(e){const{fontSize:t,textColor3:n,textColor2:o,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Yj),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:n})}const Qj={name:"Breadcrumb",common:xt,self:hS},Jj=Qj,Zj={name:"Breadcrumb",common:He,self:hS},eU=Zj,tU=z("breadcrumb",` + `),q("svg",{pointerEvents:"none"}),q("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[z("base-icon",{color:"var(--n-icon-color-hover)"})]),q("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[z("base-icon",{color:"var(--n-icon-color-pressed)"})])]),tU=Object.assign(Object.assign({},Le.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),nU=ye({name:"BackTop",inheritAttrs:!1,props:tU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=j(null),r=j(!1);Yt(()=>{const{value:_}=o;if(_===null){r.value=!1;return}r.value=_>=e.visibilityHeight});const i=j(!1);ut(r,_=>{var S;i.value&&((S=e["onUpdate:show"])===null||S===void 0||S.call(e,_))});const a=Ue(e,"show"),s=rn(a,r),l=j(!0),c=j(null),u=M(()=>({right:`calc(${qt(e.right)} + ${Rh.value})`,bottom:qt(e.bottom)}));let d,f;ut(s,_=>{var S,y;i.value&&(_&&((S=e.onShow)===null||S===void 0||S.call(e)),(y=e.onHide)===null||y===void 0||y.call(e))});const h=Le("BackTop","-back-top",eU,Jj,e,t);function p(){var _;if(f)return;f=!0;const S=((_=e.target)===null||_===void 0?void 0:_.call(e))||jI(e.listenTo)||vw(c.value);if(!S)return;d=S===document.documentElement?document:S;const{to:y}=e;typeof y=="string"&&document.querySelector(y),d.addEventListener("scroll",m),m()}function g(){(o0(d)?document.documentElement:d).scrollTo({top:0,behavior:"smooth"})}function m(){o.value=(o0(d)?document.documentElement:d).scrollTop,i.value||Ht(()=>{i.value=!0})}function b(){l.value=!1}jt(()=>{p(),l.value=s.value}),on(()=>{d&&d.removeEventListener("scroll",m)});const w=M(()=>{const{self:{color:_,boxShadow:S,boxShadowHover:y,boxShadowPressed:x,iconColor:k,iconColorHover:P,iconColorPressed:T,width:$,height:E,iconSize:G,borderRadius:B,textColor:D},common:{cubicBezierEaseInOut:L}}=h.value;return{"--n-bezier":L,"--n-border-radius":B,"--n-height":E,"--n-width":$,"--n-box-shadow":S,"--n-box-shadow-hover":y,"--n-box-shadow-pressed":x,"--n-color":_,"--n-icon-size":G,"--n-icon-color":k,"--n-icon-color-hover":P,"--n-icon-color-pressed":T,"--n-text-color":D}}),C=n?Pt("back-top",void 0,w,e):void 0;return{placeholderRef:c,style:u,mergedShow:s,isMounted:ti(),scrollElement:j(null),scrollTop:o,DomInfoReady:i,transitionDisabled:l,mergedClsPrefix:t,handleAfterEnter:b,handleScroll:m,handleClick:g,cssVars:n?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return v("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},v(Eu,{to:this.to,show:this.mergedShow},{default:()=>v(fn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?v("div",Ln(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),$n(this.$slots.default,()=>[v(Wt,{clsPrefix:e},{default:()=>Zj})])):null}})}))}}),oU={name:"Badge",common:je,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:o,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:o,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},rU=oU,iU={fontWeightActive:"400"};function xS(e){const{fontSize:t,textColor3:n,textColor2:o,borderRadius:r,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},iU),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:r,itemColorHover:i,itemColorPressed:a,separatorColor:n})}const aU={name:"Breadcrumb",common:xt,self:xS},sU=aU,lU={name:"Breadcrumb",common:je,self:xS},cU=lU,uU=z("breadcrumb",` white-space: nowrap; cursor: default; line-height: var(--n-item-line-height); -`,[W("ul",` +`,[q("ul",` list-style: none; padding: 0; margin: 0; - `),W("a",` + `),q("a",` color: inherit; text-decoration: inherit; `),z("breadcrumb-item",` @@ -1178,13 +1178,13 @@ ${t} vertical-align: -.2em; transition: color .3s var(--n-bezier); color: var(--n-item-text-color); - `),W("&:not(:last-child)",[J("clickable",[j("link",` + `),q("&:not(:last-child)",[Z("clickable",[U("link",` cursor: pointer; - `,[W("&:hover",` + `,[q("&:hover",` background-color: var(--n-item-color-hover); - `),W("&:active",` + `),q("&:active",` background-color: var(--n-item-color-pressed); - `)])])]),j("link",` + `)])])]),U("link",` padding: 4px; border-radius: var(--n-item-border-radius); transition: @@ -1192,29 +1192,29 @@ ${t} color .3s var(--n-bezier); color: var(--n-item-text-color); position: relative; - `,[W("&:hover",` + `,[q("&:hover",` color: var(--n-item-text-color-hover); `,[z("icon",` color: var(--n-item-text-color-hover); - `)]),W("&:active",` + `)]),q("&:active",` color: var(--n-item-text-color-pressed); `,[z("icon",` color: var(--n-item-text-color-pressed); - `)])]),j("separator",` + `)])]),U("separator",` margin: 0 8px; color: var(--n-separator-color); transition: color .3s var(--n-bezier); user-select: none; -webkit-user-select: none; - `),W("&:last-child",[j("link",` + `),q("&:last-child",[U("link",` font-weight: var(--n-font-weight-active); cursor: unset; color: var(--n-item-text-color-active); `,[z("icon",` color: var(--n-item-text-color-active); - `)]),j("separator",` + `)]),U("separator",` display: none; - `)])])]),pS="n-breadcrumb",nU=Object.assign(Object.assign({},Le.props),{separator:{type:String,default:"/"}}),oU=xe({name:"Breadcrumb",props:nU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Breadcrumb","-breadcrumb",tU,Jj,e,t);at(pS,{separatorRef:Ue(e,"separator"),mergedClsPrefixRef:t});const r=I(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:s,itemTextColor:l,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:d,fontSize:f,fontWeightActive:h,itemBorderRadius:p,itemColorHover:g,itemColorPressed:m,itemLineHeight:b}}=o.value;return{"--n-font-size":f,"--n-bezier":a,"--n-item-text-color":l,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":d,"--n-separator-color":s,"--n-item-color-hover":g,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":h,"--n-item-line-height":b}}),i=n?Pt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},v("ul",null,this.$slots))}});function rU(e=pr?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:f}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:f}},n=U(t()),o=()=>{n.value=t()};return jt(()=>{e&&(e.addEventListener("popstate",o),e.addEventListener("hashchange",o))}),Oa(()=>{e&&(e.removeEventListener("popstate",o),e.removeEventListener("hashchange",o))}),n}const iU={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},aU=xe({name:"BreadcrumbItem",props:iU,setup(e,{slots:t}){const n=Ve(pS,null);if(!n)return()=>null;const{separatorRef:o,mergedClsPrefixRef:r}=n,i=rU(),a=I(()=>e.href?"a":"span"),s=I(()=>i.value.href===e.href?"location":null);return()=>{const{value:l}=r;return v("li",{class:[`${l}-breadcrumb-item`,e.clickable&&`${l}-breadcrumb-item--clickable`]},v(a.value,{class:`${l}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),v("span",{class:`${l}-breadcrumb-item__separator`,"aria-hidden":"true"},$n(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:o.value]})))}}});function ci(e){return Ke(e,[255,255,255,.16])}function Hl(e){return Ke(e,[0,0,0,.12])}const sU="n-button-group",lU={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function mS(e){const{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:m,baseColor:b,infoColor:w,infoColorHover:C,infoColorPressed:_,successColor:S,successColorHover:y,successColorPressed:x,warningColor:P,warningColorHover:k,warningColorPressed:T,errorColor:R,errorColorHover:E,errorColorPressed:q,fontWeight:D,buttonColor2:B,buttonColor2Hover:M,buttonColor2Pressed:K,fontWeightStrong:V}=e;return Object.assign(Object.assign({},lU),{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:B,colorSecondaryHover:M,colorSecondaryPressed:K,colorTertiary:B,colorTertiaryHover:M,colorTertiaryPressed:K,colorQuaternary:"#0000",colorQuaternaryHover:M,colorQuaternaryPressed:K,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:d,textColorText:d,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:d,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:m,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:m,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:d,textColorGhostPrimary:m,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:w,colorHoverInfo:C,colorPressedInfo:_,colorFocusInfo:C,colorDisabledInfo:w,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:w,textColorTextHoverInfo:C,textColorTextPressedInfo:_,textColorTextFocusInfo:C,textColorTextDisabledInfo:d,textColorGhostInfo:w,textColorGhostHoverInfo:C,textColorGhostPressedInfo:_,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:S,colorHoverSuccess:y,colorPressedSuccess:x,colorFocusSuccess:y,colorDisabledSuccess:S,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:S,textColorTextHoverSuccess:y,textColorTextPressedSuccess:x,textColorTextFocusSuccess:y,textColorTextDisabledSuccess:d,textColorGhostSuccess:S,textColorGhostHoverSuccess:y,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:y,textColorGhostDisabledSuccess:S,borderSuccess:`1px solid ${S}`,borderHoverSuccess:`1px solid ${y}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${y}`,borderDisabledSuccess:`1px solid ${S}`,rippleColorSuccess:S,colorWarning:P,colorHoverWarning:k,colorPressedWarning:T,colorFocusWarning:k,colorDisabledWarning:P,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:P,textColorTextHoverWarning:k,textColorTextPressedWarning:T,textColorTextFocusWarning:k,textColorTextDisabledWarning:d,textColorGhostWarning:P,textColorGhostHoverWarning:k,textColorGhostPressedWarning:T,textColorGhostFocusWarning:k,textColorGhostDisabledWarning:P,borderWarning:`1px solid ${P}`,borderHoverWarning:`1px solid ${k}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${k}`,borderDisabledWarning:`1px solid ${P}`,rippleColorWarning:P,colorError:R,colorHoverError:E,colorPressedError:q,colorFocusError:E,colorDisabledError:R,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:R,textColorTextHoverError:E,textColorTextPressedError:q,textColorTextFocusError:E,textColorTextDisabledError:d,textColorGhostError:R,textColorGhostHoverError:E,textColorGhostPressedError:q,textColorGhostFocusError:E,textColorGhostDisabledError:R,borderError:`1px solid ${R}`,borderHoverError:`1px solid ${E}`,borderPressedError:`1px solid ${q}`,borderFocusError:`1px solid ${E}`,borderDisabledError:`1px solid ${R}`,rippleColorError:R,waveOpacity:"0.6",fontWeight:D,fontWeightStrong:V})}const cU={name:"Button",common:xt,self:mS},Iu=cU,uU={name:"Button",common:He,self(e){const t=mS(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Vn=uU,dU=W([z("button",` + `)])])]),CS="n-breadcrumb",dU=Object.assign(Object.assign({},Le.props),{separator:{type:String,default:"/"}}),fU=ye({name:"Breadcrumb",props:dU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Breadcrumb","-breadcrumb",uU,sU,e,t);at(CS,{separatorRef:Ue(e,"separator"),mergedClsPrefixRef:t});const r=M(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:s,itemTextColor:l,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:d,fontSize:f,fontWeightActive:h,itemBorderRadius:p,itemColorHover:g,itemColorPressed:m,itemLineHeight:b}}=o.value;return{"--n-font-size":f,"--n-bezier":a,"--n-item-text-color":l,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":d,"--n-separator-color":s,"--n-item-color-hover":g,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":h,"--n-item-line-height":b}}),i=n?Pt("breadcrumb",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},v("ul",null,this.$slots))}});function hU(e=pr?window:null){const t=()=>{const{hash:r,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:f}=(e==null?void 0:e.location)||{};return{hash:r,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:f}},n=j(t()),o=()=>{n.value=t()};return jt(()=>{e&&(e.addEventListener("popstate",o),e.addEventListener("hashchange",o))}),Fa(()=>{e&&(e.removeEventListener("popstate",o),e.removeEventListener("hashchange",o))}),n}const pU={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},mU=ye({name:"BreadcrumbItem",props:pU,setup(e,{slots:t}){const n=Ve(CS,null);if(!n)return()=>null;const{separatorRef:o,mergedClsPrefixRef:r}=n,i=hU(),a=M(()=>e.href?"a":"span"),s=M(()=>i.value.href===e.href?"location":null);return()=>{const{value:l}=r;return v("li",{class:[`${l}-breadcrumb-item`,e.clickable&&`${l}-breadcrumb-item--clickable`]},v(a.value,{class:`${l}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t),v("span",{class:`${l}-breadcrumb-item__separator`,"aria-hidden":"true"},$n(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:o.value]})))}}});function di(e){return Ke(e,[255,255,255,.16])}function Wl(e){return Ke(e,[0,0,0,.12])}const gU="n-button-group",vU={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function wS(e){const{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:m,baseColor:b,infoColor:w,infoColorHover:C,infoColorPressed:_,successColor:S,successColorHover:y,successColorPressed:x,warningColor:k,warningColorHover:P,warningColorPressed:T,errorColor:$,errorColorHover:E,errorColorPressed:G,fontWeight:B,buttonColor2:D,buttonColor2Hover:L,buttonColor2Pressed:X,fontWeightStrong:V}=e;return Object.assign(Object.assign({},vU),{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:D,colorSecondaryHover:L,colorSecondaryPressed:X,colorTertiary:D,colorTertiaryHover:L,colorTertiaryPressed:X,colorQuaternary:"#0000",colorQuaternaryHover:L,colorQuaternaryPressed:X,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:d,textColorText:d,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:d,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:m,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:m,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:d,textColorGhostPrimary:m,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:w,colorHoverInfo:C,colorPressedInfo:_,colorFocusInfo:C,colorDisabledInfo:w,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:w,textColorTextHoverInfo:C,textColorTextPressedInfo:_,textColorTextFocusInfo:C,textColorTextDisabledInfo:d,textColorGhostInfo:w,textColorGhostHoverInfo:C,textColorGhostPressedInfo:_,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:w,borderInfo:`1px solid ${w}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${w}`,rippleColorInfo:w,colorSuccess:S,colorHoverSuccess:y,colorPressedSuccess:x,colorFocusSuccess:y,colorDisabledSuccess:S,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:S,textColorTextHoverSuccess:y,textColorTextPressedSuccess:x,textColorTextFocusSuccess:y,textColorTextDisabledSuccess:d,textColorGhostSuccess:S,textColorGhostHoverSuccess:y,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:y,textColorGhostDisabledSuccess:S,borderSuccess:`1px solid ${S}`,borderHoverSuccess:`1px solid ${y}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${y}`,borderDisabledSuccess:`1px solid ${S}`,rippleColorSuccess:S,colorWarning:k,colorHoverWarning:P,colorPressedWarning:T,colorFocusWarning:P,colorDisabledWarning:k,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:k,textColorTextHoverWarning:P,textColorTextPressedWarning:T,textColorTextFocusWarning:P,textColorTextDisabledWarning:d,textColorGhostWarning:k,textColorGhostHoverWarning:P,textColorGhostPressedWarning:T,textColorGhostFocusWarning:P,textColorGhostDisabledWarning:k,borderWarning:`1px solid ${k}`,borderHoverWarning:`1px solid ${P}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${P}`,borderDisabledWarning:`1px solid ${k}`,rippleColorWarning:k,colorError:$,colorHoverError:E,colorPressedError:G,colorFocusError:E,colorDisabledError:$,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:$,textColorTextHoverError:E,textColorTextPressedError:G,textColorTextFocusError:E,textColorTextDisabledError:d,textColorGhostError:$,textColorGhostHoverError:E,textColorGhostPressedError:G,textColorGhostFocusError:E,textColorGhostDisabledError:$,borderError:`1px solid ${$}`,borderHoverError:`1px solid ${E}`,borderPressedError:`1px solid ${G}`,borderFocusError:`1px solid ${E}`,borderDisabledError:`1px solid ${$}`,rippleColorError:$,waveOpacity:"0.6",fontWeight:B,fontWeightStrong:V})}const bU={name:"Button",common:xt,self:wS},Du=bU,yU={name:"Button",common:je,self(e){const t=wS(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},Vn=yU,xU=q([z("button",` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -1246,7 +1246,7 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[J("color",[j("border",{borderColor:"var(--n-border-color)"}),J("disabled",[j("border",{borderColor:"var(--n-border-color-disabled)"})]),Et("disabled",[W("&:focus",[j("state-border",{borderColor:"var(--n-border-color-focus)"})]),W("&:hover",[j("state-border",{borderColor:"var(--n-border-color-hover)"})]),W("&:active",[j("state-border",{borderColor:"var(--n-border-color-pressed)"})]),J("pressed",[j("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),J("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[j("border",{border:"var(--n-border-disabled)"})]),Et("disabled",[W("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[j("state-border",{border:"var(--n-border-focus)"})]),W("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[j("state-border",{border:"var(--n-border-hover)"})]),W("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[j("state-border",{border:"var(--n-border-pressed)"})]),J("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[j("state-border",{border:"var(--n-border-pressed)"})])]),J("loading","cursor: wait;"),z("base-wave",` + `,[Z("color",[U("border",{borderColor:"var(--n-border-color)"}),Z("disabled",[U("border",{borderColor:"var(--n-border-color-disabled)"})]),At("disabled",[q("&:focus",[U("state-border",{borderColor:"var(--n-border-color-focus)"})]),q("&:hover",[U("state-border",{borderColor:"var(--n-border-color-hover)"})]),q("&:active",[U("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Z("pressed",[U("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Z("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[U("border",{border:"var(--n-border-disabled)"})]),At("disabled",[q("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[U("state-border",{border:"var(--n-border-focus)"})]),q("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[U("state-border",{border:"var(--n-border-hover)"})]),q("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[U("state-border",{border:"var(--n-border-pressed)"})]),Z("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[U("state-border",{border:"var(--n-border-pressed)"})])]),Z("loading","cursor: wait;"),z("base-wave",` pointer-events: none; top: 0; right: 0; @@ -1255,7 +1255,7 @@ ${t} animation-iteration-count: 1; animation-duration: var(--n-ripple-duration); animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[J("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),pr&&"MozBoxSizing"in document.createElement("div").style?W("&::moz-focus-inner",{border:0}):null,j("border, state-border",` + `,[Z("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),pr&&"MozBoxSizing"in document.createElement("div").style?q("&::moz-focus-inner",{border:0}):null,U("border, state-border",` position: absolute; left: 0; top: 0; @@ -1264,7 +1264,7 @@ ${t} border-radius: inherit; transition: border-color .3s var(--n-bezier); pointer-events: none; - `),j("border",{border:"var(--n-border)"}),j("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),j("icon",` + `),U("border",{border:"var(--n-border)"}),U("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),U("icon",` margin: var(--n-icon-margin); margin-left: 0; height: var(--n-icon-size); @@ -1283,15 +1283,15 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[Kn({top:"50%",originalTransform:"translateY(-50%)"})]),rj()]),j("content",` + `,[Kn({top:"50%",originalTransform:"translateY(-50%)"})]),hj()]),U("content",` display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; - `,[W("~",[j("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),J("block",` + `,[q("~",[U("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Z("block",` display: flex; width: 100%; - `),J("dashed",[j("border, state-border",{borderStyle:"dashed !important"})]),J("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),W("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),W("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),fU=Object.assign(Object.assign({},Le.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!lS}}),gS=xe({name:"Button",props:fU,setup(e){const t=U(null),n=U(null),o=U(!1),r=kt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ve(sU,{}),{mergedSizeRef:a}=mr({},{defaultSize:"medium",mergedSize:_=>{const{size:S}=e;if(S)return S;const{size:y}=i;if(y)return y;const{mergedSize:x}=_||{};return x?x.value:"medium"}}),s=I(()=>e.focusable&&!e.disabled),l=_=>{var S;s.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&s.value&&((S=t.value)===null||S===void 0||S.focus({preventScroll:!0})))},c=_=>{var S;if(!e.disabled&&!e.loading){const{onClick:y}=e;y&&Re(y,_),e.text||(S=n.value)===null||S===void 0||S.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;o.value=!1}},d=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:g}=st(e),m=Le("Button","-button",dU,Iu,e,p),b=pn("Button",g,p),w=I(()=>{const _=m.value,{common:{cubicBezierEaseInOut:S,cubicBezierEaseOut:y},self:x}=_,{rippleDuration:P,opacityDisabled:k,fontWeight:T,fontWeightStrong:R}=x,E=a.value,{dashed:q,type:D,ghost:B,text:M,color:K,round:V,circle:ae,textColor:pe,secondary:Z,tertiary:N,quaternary:O,strong:ee}=e,G={"font-weight":ee?R:T};let ne={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const X=D==="tertiary",ce=D==="default",L=X?"default":D;if(M){const $=pe||K;ne={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":$||x[Te("textColorText",L)],"--n-text-color-hover":$?ci($):x[Te("textColorTextHover",L)],"--n-text-color-pressed":$?Hl($):x[Te("textColorTextPressed",L)],"--n-text-color-focus":$?ci($):x[Te("textColorTextHover",L)],"--n-text-color-disabled":$||x[Te("textColorTextDisabled",L)]}}else if(B||q){const $=pe||K;ne={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":K||x[Te("rippleColor",L)],"--n-text-color":$||x[Te("textColorGhost",L)],"--n-text-color-hover":$?ci($):x[Te("textColorGhostHover",L)],"--n-text-color-pressed":$?Hl($):x[Te("textColorGhostPressed",L)],"--n-text-color-focus":$?ci($):x[Te("textColorGhostHover",L)],"--n-text-color-disabled":$||x[Te("textColorGhostDisabled",L)]}}else if(Z){const $=ce?x.textColor:X?x.textColorTertiary:x[Te("color",L)],H=K||$,te=D!=="default"&&D!=="tertiary";ne={"--n-color":te?Ie(H,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":te?Ie(H,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":te?Ie(H,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":te?Ie(H,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(N||O){const $=ce?x.textColor:X?x.textColorTertiary:x[Te("color",L)],H=K||$;N?(ne["--n-color"]=x.colorTertiary,ne["--n-color-hover"]=x.colorTertiaryHover,ne["--n-color-pressed"]=x.colorTertiaryPressed,ne["--n-color-focus"]=x.colorSecondaryHover,ne["--n-color-disabled"]=x.colorTertiary):(ne["--n-color"]=x.colorQuaternary,ne["--n-color-hover"]=x.colorQuaternaryHover,ne["--n-color-pressed"]=x.colorQuaternaryPressed,ne["--n-color-focus"]=x.colorQuaternaryHover,ne["--n-color-disabled"]=x.colorQuaternary),ne["--n-ripple-color"]="#0000",ne["--n-text-color"]=H,ne["--n-text-color-hover"]=H,ne["--n-text-color-pressed"]=H,ne["--n-text-color-focus"]=H,ne["--n-text-color-disabled"]=H}else ne={"--n-color":K||x[Te("color",L)],"--n-color-hover":K?ci(K):x[Te("colorHover",L)],"--n-color-pressed":K?Hl(K):x[Te("colorPressed",L)],"--n-color-focus":K?ci(K):x[Te("colorFocus",L)],"--n-color-disabled":K||x[Te("colorDisabled",L)],"--n-ripple-color":K||x[Te("rippleColor",L)],"--n-text-color":pe||(K?x.textColorPrimary:X?x.textColorTertiary:x[Te("textColor",L)]),"--n-text-color-hover":pe||(K?x.textColorHoverPrimary:x[Te("textColorHover",L)]),"--n-text-color-pressed":pe||(K?x.textColorPressedPrimary:x[Te("textColorPressed",L)]),"--n-text-color-focus":pe||(K?x.textColorFocusPrimary:x[Te("textColorFocus",L)]),"--n-text-color-disabled":pe||(K?x.textColorDisabledPrimary:x[Te("textColorDisabled",L)])};let be={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};M?be={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:be={"--n-border":x[Te("border",L)],"--n-border-hover":x[Te("borderHover",L)],"--n-border-pressed":x[Te("borderPressed",L)],"--n-border-focus":x[Te("borderFocus",L)],"--n-border-disabled":x[Te("borderDisabled",L)]};const{[Te("height",E)]:Oe,[Te("fontSize",E)]:je,[Te("padding",E)]:F,[Te("paddingRound",E)]:A,[Te("iconSize",E)]:re,[Te("borderRadius",E)]:we,[Te("iconMargin",E)]:oe,waveOpacity:ve}=x,ke={"--n-width":ae&&!M?Oe:"initial","--n-height":M?"initial":Oe,"--n-font-size":je,"--n-padding":ae||M?"initial":V?A:F,"--n-icon-size":re,"--n-icon-margin":oe,"--n-border-radius":M?"initial":ae||V?Oe:we};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":S,"--n-bezier-ease-out":y,"--n-ripple-duration":P,"--n-opacity-disabled":k,"--n-wave-opacity":ve},G),ne),be),ke)}),C=h?Pt("button",I(()=>{let _="";const{dashed:S,type:y,ghost:x,text:P,color:k,round:T,circle:R,textColor:E,secondary:q,tertiary:D,quaternary:B,strong:M}=e;S&&(_+="a"),x&&(_+="b"),P&&(_+="c"),T&&(_+="d"),R&&(_+="e"),q&&(_+="f"),D&&(_+="g"),B&&(_+="h"),M&&(_+="i"),k&&(_+=`j${Ec(k)}`),E&&(_+=`k${Ec(E)}`);const{value:K}=a;return _+=`l${K[0]}`,_+=`m${y[0]}`,_}),w,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:s,mergedSize:a,showBorder:r,enterPressed:o,rtlEnabled:b,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:c,customColorCssVars:I(()=>{const{color:_}=e;if(!_)return null;const S=ci(_);return{"--n-border-color":_,"--n-border-color-hover":S,"--n-border-color-pressed":Hl(_),"--n-border-color-focus":S,"--n-border-color-disabled":_}}),cssVars:h?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const o=At(this.$slots.default,r=>r&&v("span",{class:`${e}-button__content`},r));return v(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,v(Au,{width:!0},{default:()=>At(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&v("span",{class:`${e}-button__icon`,style:{margin:pa(this.$slots.default)?"0":""}},v(Wi,null,{default:()=>this.loading?v(ti,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):v("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&o,this.text?null:v(MH,{ref:"waveElRef",clsPrefix:e}),this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),zt=gS,G0=gS,hU={titleFontSize:"22px"};function pU(e){const{borderRadius:t,fontSize:n,lineHeight:o,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:d,cardColor:f,modalColor:h,popoverColor:p}=e;return Object.assign(Object.assign({},hU),{borderRadius:t,borderColor:Ke(f,s),borderColorModal:Ke(h,s),borderColorPopover:Ke(p,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Ke(f,d),cellColorHoverModal:Ke(h,d),cellColorHoverPopover:Ke(p,d),cellColor:f,cellColorModal:h,cellColorPopover:p,barColor:c})}const mU={name:"Calendar",common:He,peers:{Button:Vn},self:pU},gU=mU;function vU(e){const{fontSize:t,boxShadow2:n,popoverColor:o,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:n,color:o,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}}const bU={name:"ColorPicker",common:He,peers:{Input:go,Button:Vn},self:vU},yU=bU,xU={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function vS(e){const{primaryColor:t,borderRadius:n,lineHeight:o,fontSize:r,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:m,popoverColor:b,actionColor:w}=e;return Object.assign(Object.assign({},xU),{lineHeight:o,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:w,colorEmbeddedModal:w,colorEmbeddedPopover:w,textColor:a,titleTextColor:s,borderColor:l,actionColor:w,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:m,borderRadius:n})}const CU={name:"Card",common:xt,self:vS},bS=CU,wU={name:"Card",common:He,self(e){const t=vS(e),{cardColor:n,modalColor:o,popoverColor:r}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=r,t}},yS=wU,_U=W([z("card",` + `),Z("dashed",[U("border, state-border",{borderStyle:"dashed !important"})]),Z("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),q("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),q("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),CU=Object.assign(Object.assign({},Le.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!mS}}),_S=ye({name:"Button",props:CU,setup(e){const t=j(null),n=j(null),o=j(!1),r=kt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ve(gU,{}),{mergedSizeRef:a}=mr({},{defaultSize:"medium",mergedSize:_=>{const{size:S}=e;if(S)return S;const{size:y}=i;if(y)return y;const{mergedSize:x}=_||{};return x?x.value:"medium"}}),s=M(()=>e.focusable&&!e.disabled),l=_=>{var S;s.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&s.value&&((S=t.value)===null||S===void 0||S.focus({preventScroll:!0})))},c=_=>{var S;if(!e.disabled&&!e.loading){const{onClick:y}=e;y&&Re(y,_),e.text||(S=n.value)===null||S===void 0||S.play()}},u=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;o.value=!1}},d=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:g}=st(e),m=Le("Button","-button",xU,Du,e,p),b=pn("Button",g,p),w=M(()=>{const _=m.value,{common:{cubicBezierEaseInOut:S,cubicBezierEaseOut:y},self:x}=_,{rippleDuration:k,opacityDisabled:P,fontWeight:T,fontWeightStrong:$}=x,E=a.value,{dashed:G,type:B,ghost:D,text:L,color:X,round:V,circle:ae,textColor:ue,secondary:ee,tertiary:R,quaternary:A,strong:Y}=e,W={"font-weight":Y?$:T};let oe={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const K=B==="tertiary",le=B==="default",N=K?"default":B;if(L){const O=ue||X;oe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":O||x[Te("textColorText",N)],"--n-text-color-hover":O?di(O):x[Te("textColorTextHover",N)],"--n-text-color-pressed":O?Wl(O):x[Te("textColorTextPressed",N)],"--n-text-color-focus":O?di(O):x[Te("textColorTextHover",N)],"--n-text-color-disabled":O||x[Te("textColorTextDisabled",N)]}}else if(D||G){const O=ue||X;oe={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":X||x[Te("rippleColor",N)],"--n-text-color":O||x[Te("textColorGhost",N)],"--n-text-color-hover":O?di(O):x[Te("textColorGhostHover",N)],"--n-text-color-pressed":O?Wl(O):x[Te("textColorGhostPressed",N)],"--n-text-color-focus":O?di(O):x[Te("textColorGhostHover",N)],"--n-text-color-disabled":O||x[Te("textColorGhostDisabled",N)]}}else if(ee){const O=le?x.textColor:K?x.textColorTertiary:x[Te("color",N)],H=X||O,te=B!=="default"&&B!=="tertiary";oe={"--n-color":te?Oe(H,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":te?Oe(H,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":te?Oe(H,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":te?Oe(H,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(R||A){const O=le?x.textColor:K?x.textColorTertiary:x[Te("color",N)],H=X||O;R?(oe["--n-color"]=x.colorTertiary,oe["--n-color-hover"]=x.colorTertiaryHover,oe["--n-color-pressed"]=x.colorTertiaryPressed,oe["--n-color-focus"]=x.colorSecondaryHover,oe["--n-color-disabled"]=x.colorTertiary):(oe["--n-color"]=x.colorQuaternary,oe["--n-color-hover"]=x.colorQuaternaryHover,oe["--n-color-pressed"]=x.colorQuaternaryPressed,oe["--n-color-focus"]=x.colorQuaternaryHover,oe["--n-color-disabled"]=x.colorQuaternary),oe["--n-ripple-color"]="#0000",oe["--n-text-color"]=H,oe["--n-text-color-hover"]=H,oe["--n-text-color-pressed"]=H,oe["--n-text-color-focus"]=H,oe["--n-text-color-disabled"]=H}else oe={"--n-color":X||x[Te("color",N)],"--n-color-hover":X?di(X):x[Te("colorHover",N)],"--n-color-pressed":X?Wl(X):x[Te("colorPressed",N)],"--n-color-focus":X?di(X):x[Te("colorFocus",N)],"--n-color-disabled":X||x[Te("colorDisabled",N)],"--n-ripple-color":X||x[Te("rippleColor",N)],"--n-text-color":ue||(X?x.textColorPrimary:K?x.textColorTertiary:x[Te("textColor",N)]),"--n-text-color-hover":ue||(X?x.textColorHoverPrimary:x[Te("textColorHover",N)]),"--n-text-color-pressed":ue||(X?x.textColorPressedPrimary:x[Te("textColorPressed",N)]),"--n-text-color-focus":ue||(X?x.textColorFocusPrimary:x[Te("textColorFocus",N)]),"--n-text-color-disabled":ue||(X?x.textColorDisabledPrimary:x[Te("textColorDisabled",N)])};let be={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};L?be={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:be={"--n-border":x[Te("border",N)],"--n-border-hover":x[Te("borderHover",N)],"--n-border-pressed":x[Te("borderPressed",N)],"--n-border-focus":x[Te("borderFocus",N)],"--n-border-disabled":x[Te("borderDisabled",N)]};const{[Te("height",E)]:Ie,[Te("fontSize",E)]:Ne,[Te("padding",E)]:F,[Te("paddingRound",E)]:I,[Te("iconSize",E)]:re,[Te("borderRadius",E)]:_e,[Te("iconMargin",E)]:ne,waveOpacity:me}=x,we={"--n-width":ae&&!L?Ie:"initial","--n-height":L?"initial":Ie,"--n-font-size":Ne,"--n-padding":ae||L?"initial":V?I:F,"--n-icon-size":re,"--n-icon-margin":ne,"--n-border-radius":L?"initial":ae||V?Ie:_e};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":S,"--n-bezier-ease-out":y,"--n-ripple-duration":k,"--n-opacity-disabled":P,"--n-wave-opacity":me},W),oe),be),we)}),C=h?Pt("button",M(()=>{let _="";const{dashed:S,type:y,ghost:x,text:k,color:P,round:T,circle:$,textColor:E,secondary:G,tertiary:B,quaternary:D,strong:L}=e;S&&(_+="a"),x&&(_+="b"),k&&(_+="c"),T&&(_+="d"),$&&(_+="e"),G&&(_+="f"),B&&(_+="g"),D&&(_+="h"),L&&(_+="i"),P&&(_+=`j${Oc(P)}`),E&&(_+=`k${Oc(E)}`);const{value:X}=a;return _+=`l${X[0]}`,_+=`m${y[0]}`,_}),w,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:s,mergedSize:a,showBorder:r,enterPressed:o,rtlEnabled:b,handleMousedown:l,handleKeydown:d,handleBlur:f,handleKeyup:u,handleClick:c,customColorCssVars:M(()=>{const{color:_}=e;if(!_)return null;const S=di(_);return{"--n-border-color":_,"--n-border-color-hover":S,"--n-border-color-pressed":Wl(_),"--n-border-color-focus":S,"--n-border-color-disabled":_}}),cssVars:h?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const o=Et(this.$slots.default,r=>r&&v("span",{class:`${e}-button__content`},r));return v(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,v(zu,{width:!0},{default:()=>Et(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&v("span",{class:`${e}-button__icon`,style:{margin:ga(this.$slots.default)?"0":""}},v(Ki,null,{default:()=>this.loading?v(oi,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):v("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&o,this.text?null:v(UH,{ref:"waveElRef",clsPrefix:e}),this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),zt=_S,t1=_S,wU={titleFontSize:"22px"};function _U(e){const{borderRadius:t,fontSize:n,lineHeight:o,textColor2:r,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:u,hoverColor:d,cardColor:f,modalColor:h,popoverColor:p}=e;return Object.assign(Object.assign({},wU),{borderRadius:t,borderColor:Ke(f,s),borderColorModal:Ke(h,s),borderColorPopover:Ke(p,s),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:u,cellColorHover:Ke(f,d),cellColorHoverModal:Ke(h,d),cellColorHoverPopover:Ke(p,d),cellColor:f,cellColorModal:h,cellColorPopover:p,barColor:c})}const SU={name:"Calendar",common:je,peers:{Button:Vn},self:_U},kU=SU;function PU(e){const{fontSize:t,boxShadow2:n,popoverColor:o,textColor2:r,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}=e;return{panelFontSize:t,boxShadow:n,color:o,textColor:r,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:h}}const TU={name:"ColorPicker",common:je,peers:{Input:go,Button:Vn},self:PU},AU=TU,RU={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function SS(e){const{primaryColor:t,borderRadius:n,lineHeight:o,fontSize:r,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:m,popoverColor:b,actionColor:w}=e;return Object.assign(Object.assign({},RU),{lineHeight:o,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:w,colorEmbeddedModal:w,colorEmbeddedPopover:w,textColor:a,titleTextColor:s,borderColor:l,actionColor:w,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:m,borderRadius:n})}const EU={name:"Card",common:xt,self:SS},kS=EU,$U={name:"Card",common:je,self(e){const t=SS(e),{cardColor:n,modalColor:o,popoverColor:r}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=r,t}},PS=$U,IU=q([z("card",` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -1308,13 +1308,13 @@ ${t} background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[Cw({background:"var(--n-color-modal)"}),J("hoverable",[W("&:hover","box-shadow: var(--n-box-shadow);")]),J("content-segmented",[W(">",[j("content",{paddingTop:"var(--n-padding-bottom)"})])]),J("content-soft-segmented",[W(">",[j("content",` + `,[Aw({background:"var(--n-color-modal)"}),Z("hoverable",[q("&:hover","box-shadow: var(--n-box-shadow);")]),Z("content-segmented",[q(">",[U("content",{paddingTop:"var(--n-padding-bottom)"})])]),Z("content-soft-segmented",[q(">",[U("content",` margin: 0 var(--n-padding-left); padding: var(--n-padding-bottom) 0; - `)])]),J("footer-segmented",[W(">",[j("footer",{paddingTop:"var(--n-padding-bottom)"})])]),J("footer-soft-segmented",[W(">",[j("footer",` + `)])]),Z("footer-segmented",[q(">",[U("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Z("footer-soft-segmented",[q(">",[U("footer",` padding: var(--n-padding-bottom) 0; margin: 0 var(--n-padding-left); - `)])]),W(">",[z("card-header",` + `)])]),q(">",[z("card-header",` box-sizing: border-box; display: flex; align-items: center; @@ -1324,36 +1324,36 @@ ${t} var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - `,[j("main",` + `,[U("main",` font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); flex: 1; min-width: 0; color: var(--n-title-text-color); - `),j("extra",` + `),U("extra",` display: flex; align-items: center; font-size: var(--n-font-size); font-weight: 400; transition: color .3s var(--n-bezier); color: var(--n-text-color); - `),j("close",` + `),U("close",` margin: 0 0 0 8px; transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),j("action",` + `)]),U("action",` box-sizing: border-box; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); background-clip: padding-box; background-color: var(--n-action-color); - `),j("content","flex: 1; min-width: 0;"),j("content, footer",` + `),U("content","flex: 1; min-width: 0;"),U("content, footer",` box-sizing: border-box; padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); font-size: var(--n-font-size); - `,[W("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),j("action",` + `,[q("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),U("action",` background-color: var(--n-action-color); padding: var(--n-padding-bottom) var(--n-padding-left); border-bottom-left-radius: var(--n-border-radius); @@ -1362,47 +1362,47 @@ ${t} overflow: hidden; width: 100%; border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[W("img",` + `,[q("img",` display: block; width: 100%; - `)]),J("bordered",` + `)]),Z("bordered",` border: 1px solid var(--n-border-color); - `,[W("&:target","border-color: var(--n-color-target);")]),J("action-segmented",[W(">",[j("action",[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("content-segmented, content-soft-segmented",[W(">",[j("content",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("footer-segmented, footer-soft-segmented",[W(">",[j("footer",{transition:"border-color 0.3s var(--n-bezier)"},[W("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),J("embedded",` + `,[q("&:target","border-color: var(--n-color-target);")]),Z("action-segmented",[q(">",[U("action",[q("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Z("content-segmented, content-soft-segmented",[q(">",[U("content",{transition:"border-color 0.3s var(--n-bezier)"},[q("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Z("footer-segmented, footer-soft-segmented",[q(">",[U("footer",{transition:"border-color 0.3s var(--n-bezier)"},[q("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Z("embedded",` background-color: var(--n-color-embedded); - `)]),al(z("card",` + `)]),cl(z("card",` background: var(--n-color-modal); - `,[J("embedded",` + `,[Z("embedded",` background-color: var(--n-color-embedded-modal); - `)])),wu(z("card",` + `)])),Tu(z("card",` background: var(--n-color-popover); - `,[J("embedded",` + `,[Z("embedded",` background-color: var(--n-color-embedded-popover); - `)]))]),vm={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},SU=Jr(vm),kU=Object.assign(Object.assign({},Le.props),vm),vo=xe({name:"Card",props:kU,setup(e){const t=()=>{const{onClose:c}=e;c&&Re(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:o,mergedRtlRef:r}=st(e),i=Le("Card","-card",_U,bS,e,o),a=pn("Card",r,o),s=I(()=>{const{size:c}=e,{self:{color:u,colorModal:d,colorTarget:f,textColor:h,titleTextColor:p,titleFontWeight:g,borderColor:m,actionColor:b,borderRadius:w,lineHeight:C,closeIconColor:_,closeIconColorHover:S,closeIconColorPressed:y,closeColorHover:x,closeColorPressed:P,closeBorderRadius:k,closeIconSize:T,closeSize:R,boxShadow:E,colorPopover:q,colorEmbedded:D,colorEmbeddedModal:B,colorEmbeddedPopover:M,[Te("padding",c)]:K,[Te("fontSize",c)]:V,[Te("titleFontSize",c)]:ae},common:{cubicBezierEaseInOut:pe}}=i.value,{top:Z,left:N,bottom:O}=co(K);return{"--n-bezier":pe,"--n-border-radius":w,"--n-color":u,"--n-color-modal":d,"--n-color-popover":q,"--n-color-embedded":D,"--n-color-embedded-modal":B,"--n-color-embedded-popover":M,"--n-color-target":f,"--n-text-color":h,"--n-line-height":C,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":_,"--n-close-icon-color-hover":S,"--n-close-icon-color-pressed":y,"--n-close-color-hover":x,"--n-close-color-pressed":P,"--n-border-color":m,"--n-box-shadow":E,"--n-padding-top":Z,"--n-padding-bottom":O,"--n-padding-left":N,"--n-font-size":V,"--n-title-font-size":ae,"--n-close-size":R,"--n-close-icon-size":T,"--n-close-border-radius":k}}),l=n?Pt("card",I(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:o,rtlEnabled:r,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),v(s,{class:[`${o}-card`,this.themeClass,a&&`${o}-card--embedded`,{[`${o}-card--rtl`]:r,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:n}],style:this.cssVars,role:this.role},At(l.cover,c=>{const u=this.cover?So([this.cover()]):c;return u&&v("div",{class:`${o}-card-cover`,role:"none"},u)}),At(l.header,c=>{const{title:u}=this,d=u?So(typeof u=="function"?[u()]:[u]):c;return d||this.closable?v("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},v("div",{class:`${o}-card-header__main`,role:"heading"},d),At(l["header-extra"],f=>{const h=this.headerExtra?So([this.headerExtra()]):f;return h&&v("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&v(qi,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),At(l.default,c=>{const{content:u}=this,d=u?So(typeof u=="function"?[u()]:[u]):c;return d&&v("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},d)}),At(l.footer,c=>{const u=this.footer?So([this.footer()]):c;return u&&v("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),At(l.action,c=>{const u=this.action?So([this.action()]):c;return u&&v("div",{class:`${o}-card__action`,role:"none"},u)}))}});function xS(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const PU={name:"Carousel",common:xt,self:xS},TU=PU,EU={name:"Carousel",common:He,self:xS},RU=EU;function AU(e){const{length:t}=e;return t>1&&(e.push(X0(e[0],0,"append")),e.unshift(X0(e[t-1],t-1,"prepend"))),e}function X0(e,t,n){return fo(e,{key:`carousel-item-duplicate-${t}-${n}`})}function Y0(e,t,n){return t===1?0:n?e===0?t-3:e===t-1?0:e-1:e}function Zd(e,t){return t?e+1:e}function $U(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function IU(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function OU(e,t){return t&&e>3?e-2:e}function Q0(e){return window.TouchEvent&&e instanceof window.TouchEvent}function J0(e,t){let{offsetWidth:n,offsetHeight:o}=e;if(t){const r=getComputedStyle(e);n=n-Number.parseFloat(r.getPropertyValue("padding-left"))-Number.parseFloat(r.getPropertyValue("padding-right")),o=o-Number.parseFloat(r.getPropertyValue("padding-top"))-Number.parseFloat(r.getPropertyValue("padding-bottom"))}return{width:n,height:o}}function jl(e,t,n){return en?n:e}function MU(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,o,,r="ms"]=n;return Number(o)*(r==="ms"?1:1e3)}return 0}const CS="n-carousel-methods";function zU(e){at(CS,e)}function bm(e="unknown",t="component"){const n=Ve(CS);return n||hr(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n}const FU={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},DU=xe({name:"CarouselDots",props:FU,setup(e){const{mergedClsPrefixRef:t}=st(e),n=U([]),o=bm();function r(c,u){switch(c.key){case"Enter":case" ":c.preventDefault(),o.to(u);return}e.keyboard&&s(c)}function i(c){e.trigger==="hover"&&o.to(c)}function a(c){e.trigger==="click"&&o.to(c)}function s(c){var u;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const d=(u=document.activeElement)===null||u===void 0?void 0:u.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:f}=c,h=f==="PageUp"||f==="ArrowUp",p=f==="PageDown"||f==="ArrowDown",g=f==="PageUp"||f==="ArrowRight",m=f==="PageDown"||f==="ArrowLeft",b=o.isVertical(),w=b?h:g,C=b?p:m;!w&&!C||(c.preventDefault(),w&&!o.isNextDisabled()?(o.next(),l(o.currentIndexRef.value)):C&&!o.isPrevDisabled()&&(o.prev(),l(o.currentIndexRef.value)))}function l(c){var u;(u=n.value[c])===null||u===void 0||u.focus()}return jy(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:r,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return v("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},UI(this.total,n=>{const o=n===this.currentIndex;return v("div",{"aria-selected":o,ref:r=>t.push(r),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,o&&`${e}-carousel__dot--active`],key:n,onClick:()=>{this.handleClick(n)},onMouseenter:()=>{this.handleMouseenter(n)},onKeydown:r=>{this.handleKeydown(r,n)}})}))}}),LU=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),BU=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),NU=xe({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=st(e),{isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:a}=bm();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-carousel__arrow-group`},v("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},LU),v("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},BU))}}),dc="CarouselItem";function HU(e){var t;return((t=e.type)===null||t===void 0?void 0:t.name)===dc}const jU=xe({name:dc,setup(e){const{mergedClsPrefixRef:t}=st(e),n=bm(m0(dc),`n-${m0(dc)}`),o=U(),r=I(()=>{const{value:u}=o;return u?n.getSlideIndex(u):-1}),i=I(()=>n.isPrev(r.value)),a=I(()=>n.isNext(r.value)),s=I(()=>n.isActive(r.value)),l=I(()=>n.getSlideStyle(r.value));jt(()=>{n.addSlide(o.value)}),on(()=>{n.removeSlide(o.value)});function c(u){const{value:d}=r;d!==void 0&&(n==null||n.onCarouselItemClick(d,u))}return{mergedClsPrefix:t,selfElRef:o,isPrev:i,isNext:a,isActive:s,index:r,style:l,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:o,isNext:r,isActive:i,index:a,style:s}=this,l=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:o,[`${n}-carousel__slide--next`]:r}];return v("div",{ref:"selfElRef",class:l,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:s,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:o,isNext:r,isActive:i,index:a}))}}),UU=z("carousel",` + `)]))]),Sm={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},OU=ei(Sm),MU=Object.assign(Object.assign({},Le.props),Sm),vo=ye({name:"Card",props:MU,setup(e){const t=()=>{const{onClose:c}=e;c&&Re(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:o,mergedRtlRef:r}=st(e),i=Le("Card","-card",IU,kS,e,o),a=pn("Card",r,o),s=M(()=>{const{size:c}=e,{self:{color:u,colorModal:d,colorTarget:f,textColor:h,titleTextColor:p,titleFontWeight:g,borderColor:m,actionColor:b,borderRadius:w,lineHeight:C,closeIconColor:_,closeIconColorHover:S,closeIconColorPressed:y,closeColorHover:x,closeColorPressed:k,closeBorderRadius:P,closeIconSize:T,closeSize:$,boxShadow:E,colorPopover:G,colorEmbedded:B,colorEmbeddedModal:D,colorEmbeddedPopover:L,[Te("padding",c)]:X,[Te("fontSize",c)]:V,[Te("titleFontSize",c)]:ae},common:{cubicBezierEaseInOut:ue}}=i.value,{top:ee,left:R,bottom:A}=co(X);return{"--n-bezier":ue,"--n-border-radius":w,"--n-color":u,"--n-color-modal":d,"--n-color-popover":G,"--n-color-embedded":B,"--n-color-embedded-modal":D,"--n-color-embedded-popover":L,"--n-color-target":f,"--n-text-color":h,"--n-line-height":C,"--n-action-color":b,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":_,"--n-close-icon-color-hover":S,"--n-close-icon-color-pressed":y,"--n-close-color-hover":x,"--n-close-color-pressed":k,"--n-border-color":m,"--n-box-shadow":E,"--n-padding-top":ee,"--n-padding-bottom":A,"--n-padding-left":R,"--n-font-size":V,"--n-title-font-size":ae,"--n-close-size":$,"--n-close-icon-size":T,"--n-close-border-radius":P}}),l=n?Pt("card",M(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:o,rtlEnabled:r,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),v(s,{class:[`${o}-card`,this.themeClass,a&&`${o}-card--embedded`,{[`${o}-card--rtl`]:r,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Et(l.cover,c=>{const u=this.cover?So([this.cover()]):c;return u&&v("div",{class:`${o}-card-cover`,role:"none"},u)}),Et(l.header,c=>{const{title:u}=this,d=u?So(typeof u=="function"?[u()]:[u]):c;return d||this.closable?v("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},v("div",{class:`${o}-card-header__main`,role:"heading"},d),Et(l["header-extra"],f=>{const h=this.headerExtra?So([this.headerExtra()]):f;return h&&v("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&v(Gi,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),Et(l.default,c=>{const{content:u}=this,d=u?So(typeof u=="function"?[u()]:[u]):c;return d&&v("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},d)}),Et(l.footer,c=>{const u=this.footer?So([this.footer()]):c;return u&&v("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),Et(l.action,c=>{const u=this.action?So([this.action()]):c;return u&&v("div",{class:`${o}-card__action`,role:"none"},u)}))}});function TS(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const zU={name:"Carousel",common:xt,self:TS},FU=zU,DU={name:"Carousel",common:je,self:TS},LU=DU;function BU(e){const{length:t}=e;return t>1&&(e.push(n1(e[0],0,"append")),e.unshift(n1(e[t-1],t-1,"prepend"))),e}function n1(e,t,n){return fo(e,{key:`carousel-item-duplicate-${t}-${n}`})}function o1(e,t,n){return t===1?0:n?e===0?t-3:e===t-1?0:e-1:e}function rf(e,t){return t?e+1:e}function NU(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function HU(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function jU(e,t){return t&&e>3?e-2:e}function r1(e){return window.TouchEvent&&e instanceof window.TouchEvent}function i1(e,t){let{offsetWidth:n,offsetHeight:o}=e;if(t){const r=getComputedStyle(e);n=n-Number.parseFloat(r.getPropertyValue("padding-left"))-Number.parseFloat(r.getPropertyValue("padding-right")),o=o-Number.parseFloat(r.getPropertyValue("padding-top"))-Number.parseFloat(r.getPropertyValue("padding-bottom"))}return{width:n,height:o}}function ql(e,t,n){return en?n:e}function UU(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,o,,r="ms"]=n;return Number(o)*(r==="ms"?1:1e3)}return 0}const AS="n-carousel-methods";function VU(e){at(AS,e)}function km(e="unknown",t="component"){const n=Ve(AS);return n||hr(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n}const WU={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},qU=ye({name:"CarouselDots",props:WU,setup(e){const{mergedClsPrefixRef:t}=st(e),n=j([]),o=km();function r(c,u){switch(c.key){case"Enter":case" ":c.preventDefault(),o.to(u);return}e.keyboard&&s(c)}function i(c){e.trigger==="hover"&&o.to(c)}function a(c){e.trigger==="click"&&o.to(c)}function s(c){var u;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const d=(u=document.activeElement)===null||u===void 0?void 0:u.nodeName.toLowerCase();if(d==="input"||d==="textarea")return;const{code:f}=c,h=f==="PageUp"||f==="ArrowUp",p=f==="PageDown"||f==="ArrowDown",g=f==="PageUp"||f==="ArrowRight",m=f==="PageDown"||f==="ArrowLeft",b=o.isVertical(),w=b?h:g,C=b?p:m;!w&&!C||(c.preventDefault(),w&&!o.isNextDisabled()?(o.next(),l(o.currentIndexRef.value)):C&&!o.isPrevDisabled()&&(o.prev(),l(o.currentIndexRef.value)))}function l(c){var u;(u=n.value[c])===null||u===void 0||u.focus()}return Yy(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:r,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return v("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},JI(this.total,n=>{const o=n===this.currentIndex;return v("div",{"aria-selected":o,ref:r=>t.push(r),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,o&&`${e}-carousel__dot--active`],key:n,onClick:()=>{this.handleClick(n)},onMouseenter:()=>{this.handleMouseenter(n)},onKeydown:r=>{this.handleKeydown(r,n)}})}))}}),KU=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),GU=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),XU=ye({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=st(e),{isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:a}=km();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:o,isNextDisabled:r,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return v("div",{class:`${e}-carousel__arrow-group`},v("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},KU),v("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},GU))}}),gc="CarouselItem";function YU(e){var t;return((t=e.type)===null||t===void 0?void 0:t.name)===gc}const QU=ye({name:gc,setup(e){const{mergedClsPrefixRef:t}=st(e),n=km(w0(gc),`n-${w0(gc)}`),o=j(),r=M(()=>{const{value:u}=o;return u?n.getSlideIndex(u):-1}),i=M(()=>n.isPrev(r.value)),a=M(()=>n.isNext(r.value)),s=M(()=>n.isActive(r.value)),l=M(()=>n.getSlideStyle(r.value));jt(()=>{n.addSlide(o.value)}),on(()=>{n.removeSlide(o.value)});function c(u){const{value:d}=r;d!==void 0&&(n==null||n.onCarouselItemClick(d,u))}return{mergedClsPrefix:t,selfElRef:o,isPrev:i,isNext:a,isActive:s,index:r,style:l,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:o,isNext:r,isActive:i,index:a,style:s}=this,l=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:o,[`${n}-carousel__slide--next`]:r}];return v("div",{ref:"selfElRef",class:l,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:s,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:o,isNext:r,isActive:i,index:a}))}}),JU=z("carousel",` position: relative; width: 100%; height: 100%; touch-action: pan-y; overflow: hidden; -`,[j("slides",` +`,[U("slides",` display: flex; width: 100%; height: 100%; transition-timing-function: var(--n-bezier); transition-property: transform; - `,[j("slide",` + `,[U("slide",` flex-shrink: 0; position: relative; width: 100%; height: 100%; outline: none; overflow: hidden; - `,[W("> img",` + `,[q("> img",` display: block; - `)])]),j("dots",` + `)])]),U("dots",` position: absolute; display: flex; flex-wrap: nowrap; - `,[J("dot",[j("dot",` + `,[Z("dot",[U("dot",` height: var(--n-dot-size); width: var(--n-dot-size); background-color: var(--n-dot-color); @@ -1412,11 +1412,11 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[W("&:focus",` + `,[q("&:focus",` background-color: var(--n-dot-color-focus); - `),J("active",` + `),Z("active",` background-color: var(--n-dot-color-active); - `)])]),J("line",[j("dot",` + `)])]),Z("line",[U("dot",` border-radius: 9999px; width: var(--n-dot-line-width); height: 4px; @@ -1427,12 +1427,12 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[W("&:focus",` + `,[q("&:focus",` background-color: var(--n-dot-color-focus); - `),J("active",` + `),Z("active",` width: var(--n-dot-line-width-active); background-color: var(--n-dot-color-active); - `)])])]),j("arrow",` + `)])])]),U("arrow",` transition: background-color .3s var(--n-bezier); cursor: pointer; height: 28px; @@ -1446,42 +1446,42 @@ ${t} user-select: none; -webkit-user-select: none; font-size: 18px; - `,[W("svg",` + `,[q("svg",` height: 1em; width: 1em; - `),W("&:hover",` + `),q("&:hover",` background-color: rgba(255, 255, 255, .3); - `)]),J("vertical",` + `)]),Z("vertical",` touch-action: pan-x; - `,[j("slides",` + `,[U("slides",` flex-direction: column; - `),J("fade",[j("slide",` + `),Z("fade",[U("slide",` top: 50%; left: unset; transform: translateY(-50%); - `)]),J("card",[j("slide",` + `)]),Z("card",[U("slide",` top: 50%; left: unset; transform: translateY(-50%) translateZ(-400px); - `,[J("current",` + `,[Z("current",` transform: translateY(-50%) translateZ(0); - `),J("prev",` + `),Z("prev",` transform: translateY(-100%) translateZ(-200px); - `),J("next",` + `),Z("next",` transform: translateY(0%) translateZ(-200px); - `)])])]),J("usercontrol",[j("slides",[W(">",[W("div",` + `)])])]),Z("usercontrol",[U("slides",[q(">",[q("div",` position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); - `)])])]),J("left",[j("dots",` + `)])])]),Z("left",[U("dots",` transform: translateY(-50%); top: 50%; left: 12px; flex-direction: column; - `,[J("line",[j("dot",` + `,[Z("line",[U("dot",` width: 4px; height: var(--n-dot-line-width); margin: 4px 0; @@ -1490,44 +1490,44 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[J("active",` + `,[Z("active",` height: var(--n-dot-line-width-active); - `)])])]),j("dot",` + `)])])]),U("dot",` margin: 4px 0; - `)]),j("arrow-group",` + `)]),U("arrow-group",` position: absolute; display: flex; flex-wrap: nowrap; - `),J("vertical",[j("arrow",` + `),Z("vertical",[U("arrow",` transform: rotate(90deg); - `)]),J("show-arrow",[J("bottom",[j("dots",` + `)]),Z("show-arrow",[Z("bottom",[U("dots",` transform: translateX(0); bottom: 18px; left: 18px; - `)]),J("top",[j("dots",` + `)]),Z("top",[U("dots",` transform: translateX(0); top: 18px; left: 18px; - `)]),J("left",[j("dots",` + `)]),Z("left",[U("dots",` transform: translateX(0); top: 18px; left: 18px; - `)]),J("right",[j("dots",` + `)]),Z("right",[U("dots",` transform: translateX(0); top: 18px; right: 18px; - `)])]),J("left",[j("arrow-group",` + `)])]),Z("left",[U("arrow-group",` bottom: 12px; left: 12px; flex-direction: column; - `,[W("> *:first-child",` + `,[q("> *:first-child",` margin-bottom: 12px; - `)])]),J("right",[j("dots",` + `)])]),Z("right",[U("dots",` transform: translateY(-50%); top: 50%; right: 12px; flex-direction: column; - `,[J("line",[j("dot",` + `,[Z("line",[U("dot",` width: 4px; height: var(--n-dot-line-width); margin: 4px 0; @@ -1536,69 +1536,69 @@ ${t} box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); outline: none; - `,[J("active",` + `,[Z("active",` height: var(--n-dot-line-width-active); - `)])])]),j("dot",` + `)])])]),U("dot",` margin: 4px 0; - `),j("arrow-group",` + `),U("arrow-group",` bottom: 12px; right: 12px; flex-direction: column; - `,[W("> *:first-child",` + `,[q("> *:first-child",` margin-bottom: 12px; - `)])]),J("top",[j("dots",` + `)])]),Z("top",[U("dots",` transform: translateX(-50%); top: 12px; left: 50%; - `,[J("line",[j("dot",` + `,[Z("line",[U("dot",` margin: 0 4px; - `)])]),j("dot",` + `)])]),U("dot",` margin: 0 4px; - `),j("arrow-group",` + `),U("arrow-group",` top: 12px; right: 12px; - `,[W("> *:first-child",` + `,[q("> *:first-child",` margin-right: 12px; - `)])]),J("bottom",[j("dots",` + `)])]),Z("bottom",[U("dots",` transform: translateX(-50%); bottom: 12px; left: 50%; - `,[J("line",[j("dot",` + `,[Z("line",[U("dot",` margin: 0 4px; - `)])]),j("dot",` + `)])]),U("dot",` margin: 0 4px; - `),j("arrow-group",` + `),U("arrow-group",` bottom: 12px; right: 12px; - `,[W("> *:first-child",` + `,[q("> *:first-child",` margin-right: 12px; - `)])]),J("fade",[j("slide",` + `)])]),Z("fade",[U("slide",` position: absolute; opacity: 0; transition-property: opacity; pointer-events: none; - `,[J("current",` + `,[Z("current",` opacity: 1; pointer-events: auto; - `)])]),J("card",[j("slides",` + `)])]),Z("card",[U("slides",` perspective: 1000px; - `),j("slide",` + `),U("slide",` position: absolute; left: 50%; opacity: 0; transform: translateX(-50%) translateZ(-400px); transition-property: opacity, transform; - `,[J("current",` + `,[Z("current",` opacity: 1; transform: translateX(-50%) translateZ(0); z-index: 1; - `),J("prev",` + `),Z("prev",` opacity: 0.4; transform: translateX(-100%) translateZ(-200px); - `),J("next",` + `),Z("next",` opacity: 0.4; transform: translateX(0%) translateZ(-200px); - `)])])]),VU=["transitionDuration","transitionTimingFunction"],WU=Object.assign(Object.assign({},Le.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let ef=!1;const qU=xe({name:"Carousel",props:WU,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=U(null),r=U(null),i=U([]),a={value:[]},s=I(()=>e.direction==="vertical"),l=I(()=>s.value?"height":"width"),c=I(()=>s.value?"bottom":"right"),u=I(()=>e.effect==="slide"),d=I(()=>e.loop&&e.slidesPerView===1&&u.value),f=I(()=>e.effect==="custom"),h=I(()=>!u.value||e.centeredSlides?1:e.slidesPerView),p=I(()=>f.value?1:e.slidesPerView),g=I(()=>h.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=U({width:0,height:0}),b=I(()=>{const{value:_e}=i;if(!_e.length)return[];const{value:Be}=g;if(Be)return _e.map(le=>J0(le));const{value:Ze}=p,{value:ht}=m,{value:bt}=l;let ut=ht[bt];if(Ze!=="auto"){const{spaceBetween:le}=e,Ee=ut-(Ze-1)*le,ot=1/Math.max(1,Ze);ut=Ee*ot}const Rt=Object.assign(Object.assign({},ht),{[bt]:ut});return _e.map(()=>Rt)}),w=I(()=>{const{value:_e}=b;if(!_e.length)return[];const{centeredSlides:Be,spaceBetween:Ze}=e,{value:ht}=l,{[ht]:bt}=m.value;let ut=0;return _e.map(({[ht]:Rt})=>{let le=ut;return Be&&(le+=(Rt-bt)/2),ut+=Rt+Ze,le})}),C=U(!1),_=I(()=>{const{transitionStyle:_e}=e;return _e?eo(_e,VU):{}}),S=I(()=>f.value?0:MU(_.value.transitionDuration)),y=I(()=>{const{value:_e}=i;if(!_e.length)return[];const Be=!(g.value||p.value===1),Ze=Rt=>{if(Be){const{value:le}=l;return{[le]:`${b.value[Rt][le]}px`}}};if(f.value)return _e.map((Rt,le)=>Ze(le));const{effect:ht,spaceBetween:bt}=e,{value:ut}=c;return _e.reduce((Rt,le,Ee)=>{const ot=Object.assign(Object.assign({},Ze(Ee)),{[`margin-${ut}`]:`${bt}px`});return Rt.push(ot),C.value&&(ht==="fade"||ht==="card")&&Object.assign(ot,_.value),Rt},[])}),x=I(()=>{const{value:_e}=h,{length:Be}=i.value;if(_e!=="auto")return Math.max(Be-_e,0)+1;{const{value:Ze}=b,{length:ht}=Ze;if(!ht)return Be;const{value:bt}=w,{value:ut}=l,Rt=m.value[ut];let le=Ze[Ze.length-1][ut],Ee=ht;for(;Ee>1&&leOU(x.value,d.value)),k=Zd(e.defaultIndex,d.value),T=U(Y0(k,x.value,d.value)),R=rn(Ue(e,"currentIndex"),T),E=I(()=>Zd(R.value,d.value));function q(_e){var Be,Ze;_e=jl(_e,0,x.value-1);const ht=Y0(_e,x.value,d.value),{value:bt}=R;ht!==R.value&&(T.value=ht,(Be=e["onUpdate:currentIndex"])===null||Be===void 0||Be.call(e,ht,bt),(Ze=e.onUpdateCurrentIndex)===null||Ze===void 0||Ze.call(e,ht,bt))}function D(_e=E.value){return $U(_e,x.value,e.loop)}function B(_e=E.value){return IU(_e,x.value,e.loop)}function M(_e){const Be=ve(_e);return Be!==null&&D()===Be}function K(_e){const Be=ve(_e);return Be!==null&&B()===Be}function V(_e){return E.value===ve(_e)}function ae(_e){return R.value===_e}function pe(){return D()===null}function Z(){return B()===null}function N(_e){const Be=jl(Zd(_e,d.value),0,x.value);(_e!==R.value||Be!==E.value)&&q(Be)}function O(){const _e=D();_e!==null&&q(_e)}function ee(){const _e=B();_e!==null&&q(_e)}let G=!1;function ne(){(!G||!d.value)&&O()}function X(){(!G||!d.value)&&ee()}let ce=0;const L=U({});function be(_e,Be=0){L.value=Object.assign({},_.value,{transform:s.value?`translateY(${-_e}px)`:`translateX(${-_e}px)`,transitionDuration:`${Be}ms`})}function Oe(_e=0){u.value?je(E.value,_e):ce!==0&&(!G&&_e>0&&(G=!0),be(ce=0,_e))}function je(_e,Be){const Ze=F(_e);Ze!==ce&&Be>0&&(G=!0),ce=F(E.value),be(Ze,Be)}function F(_e){let Be;return _e>=x.value-1?Be=A():Be=w.value[_e]||0,Be}function A(){if(h.value==="auto"){const{value:_e}=l,{[_e]:Be}=m.value,{value:Ze}=w,ht=Ze[Ze.length-1];let bt;if(ht===void 0)bt=Be;else{const{value:ut}=b;bt=ht+ut[ut.length-1][_e]}return bt-Be}else{const{value:_e}=w;return _e[x.value-1]||0}}const re={currentIndexRef:R,to:N,prev:ne,next:X,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:M,isNext:K,isActive:V,isPrevDisabled:pe,isNextDisabled:Z,getSlideIndex:ve,getSlideStyle:ke,addSlide:we,removeSlide:oe,onCarouselItemClick:ie};zU(re);function we(_e){_e&&i.value.push(_e)}function oe(_e){if(!_e)return;const Be=ve(_e);Be!==-1&&i.value.splice(Be,1)}function ve(_e){return typeof _e=="number"?_e:_e?i.value.indexOf(_e):-1}function ke(_e){const Be=ve(_e);if(Be!==-1){const Ze=[y.value[Be]],ht=re.isPrev(Be),bt=re.isNext(Be);return ht&&Ze.push(e.prevSlideStyle||""),bt&&Ze.push(e.nextSlideStyle||""),Fi(Ze)}}let $=0,H=0,te=0,Ce=0,de=!1,ue=!1;function ie(_e,Be){let Ze=!G&&!de&&!ue;e.effect==="card"&&Ze&&!V(_e)&&(N(_e),Ze=!1),Ze||(Be.preventDefault(),Be.stopPropagation())}let fe=null;function Fe(){fe&&(clearInterval(fe),fe=null)}function De(){Fe(),!e.autoplay||P.value<2||(fe=window.setInterval(ee,e.interval))}function Me(_e){var Be;if(ef||!(!((Be=r.value)===null||Be===void 0)&&Be.contains($i(_e))))return;ef=!0,de=!0,ue=!1,Ce=Date.now(),Fe(),_e.type!=="touchstart"&&!_e.target.isContentEditable&&_e.preventDefault();const Ze=Q0(_e)?_e.touches[0]:_e;s.value?H=Ze.clientY:$=Ze.clientX,e.touchable&&($t("touchmove",document,Ne),$t("touchend",document,et),$t("touchcancel",document,et)),e.draggable&&($t("mousemove",document,Ne),$t("mouseup",document,et))}function Ne(_e){const{value:Be}=s,{value:Ze}=l,ht=Q0(_e)?_e.touches[0]:_e,bt=Be?ht.clientY-H:ht.clientX-$,ut=m.value[Ze];te=jl(bt,-ut,ut),_e.cancelable&&_e.preventDefault(),u.value&&be(ce-te,0)}function et(){const{value:_e}=E;let Be=_e;if(!G&&te!==0&&u.value){const Ze=ce-te,ht=[...w.value.slice(0,x.value-1),A()];let bt=null;for(let ut=0;utbt/2||te/Ze>.4?Be=D(_e):(te<-bt/2||te/Ze<-.4)&&(Be=B(_e))}Be!==null&&Be!==_e?(ue=!0,q(Be),Ht(()=>{(!d.value||T.value!==R.value)&&Oe(S.value)})):Oe(S.value),$e(),De()}function $e(){de&&(ef=!1),de=!1,$=0,H=0,te=0,Ce=0,Tt("touchmove",document,Ne),Tt("touchend",document,et),Tt("touchcancel",document,et),Tt("mousemove",document,Ne),Tt("mouseup",document,et)}function Xe(){if(u.value&&G){const{value:_e}=E;je(_e,0)}else De();u.value&&(L.value.transitionDuration="0ms"),G=!1}function gt(_e){if(_e.preventDefault(),G)return;let{deltaX:Be,deltaY:Ze}=_e;_e.shiftKey&&!Be&&(Be=Ze);const ht=-1,bt=1,ut=(Be||Ze)>0?bt:ht;let Rt=0,le=0;s.value?le=ut:Rt=ut;const Ee=10;(le*Ze>=Ee||Rt*Be>=Ee)&&(ut===bt&&!Z()?ee():ut===ht&&!pe()&&O())}function Q(){m.value=J0(o.value,!0),De()}function ye(){var _e,Be;g.value&&((Be=(_e=b.effect).scheduler)===null||Be===void 0||Be.call(_e),b.effect.run())}function Ae(){e.autoplay&&Fe()}function qe(){e.autoplay&&De()}jt(()=>{Yt(De),requestAnimationFrame(()=>C.value=!0)}),on(()=>{$e(),Fe()}),lp(()=>{const{value:_e}=i,{value:Be}=a,Ze=new Map,ht=ut=>Ze.has(ut)?Ze.get(ut):-1;let bt=!1;for(let ut=0;ut<_e.length;ut++){const Rt=Be.findIndex(le=>le.el===_e[ut]);Rt!==ut&&(bt=!0),Ze.set(_e[ut],Rt)}bt&&_e.sort((ut,Rt)=>ht(ut)-ht(Rt))}),ft(E,(_e,Be)=>{if(_e!==Be)if(De(),u.value){if(d.value){const{value:Ze}=x;P.value>2&&_e===Ze-2&&Be===1?_e=0:_e===1&&Be===Ze-2&&(_e=Ze-1)}je(_e,S.value)}else Oe()},{immediate:!0}),ft([d,h],()=>void Ht(()=>{q(E.value)})),ft(w,()=>{u.value&&Oe()},{deep:!0}),ft(u,_e=>{_e?Oe():(G=!1,be(ce=0))});const Qe=I(()=>({onTouchstartPassive:e.touchable?Me:void 0,onMousedown:e.draggable?Me:void 0,onWheel:e.mousewheel?gt:void 0})),Je=I(()=>Object.assign(Object.assign({},eo(re,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:P.value,currentIndex:R.value})),tt=I(()=>({total:P.value,currentIndex:R.value,to:re.to})),it={getCurrentIndex:()=>R.value,to:N,prev:O,next:ee},vt=Le("Carousel","-carousel",UU,TU,e,t),an=I(()=>{const{common:{cubicBezierEaseInOut:_e},self:{dotSize:Be,dotColor:Ze,dotColorActive:ht,dotColorFocus:bt,dotLineWidth:ut,dotLineWidthActive:Rt,arrowColor:le}}=vt.value;return{"--n-bezier":_e,"--n-dot-color":Ze,"--n-dot-color-focus":bt,"--n-dot-color-active":ht,"--n-dot-size":Be,"--n-dot-line-width":ut,"--n-dot-line-width-active":Rt,"--n-arrow-color":le}}),Ft=n?Pt("carousel",void 0,an,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:o,slidesElRef:r,slideVNodes:a,duplicatedable:d,userWantsControl:f,autoSlideSize:g,realIndex:E,slideStyles:y,translateStyle:L,slidesControlListeners:Qe,handleTransitionEnd:Xe,handleResize:Q,handleSlideResize:ye,handleMouseenter:Ae,handleMouseleave:qe,isActive:ae,arrowSlotProps:Je,dotSlotProps:tt},it),{cssVars:n?void 0:an,themeClass:Ft==null?void 0:Ft.themeClass,onRender:Ft==null?void 0:Ft.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:o,slideStyles:r,dotType:i,dotPlacement:a,slidesControlListeners:s,transitionProps:l={},arrowSlotProps:c,dotSlotProps:u,$slots:{default:d,dots:f,arrow:h}}=this,p=d&&Ta(d())||[];let g=KU(p);return g.length||(g=p.map(m=>v(jU,null,{default:()=>fo(m)}))),this.duplicatedable&&(g=AU(g)),this.slideVNodes.value=g,this.autoSlideSize&&(g=g.map(m=>v(ur,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),v("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,o&&`${t}-carousel--usercontrol`],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),v(ur,{onResize:this.handleResize},{default:()=>v("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},o?g.map((m,b)=>v("div",{style:r[b],key:b},dn(v(fn,Object.assign({},l),{default:()=>m}),[[Mn,this.isActive(b)]]))):g)}),this.showDots&&u.total>1&&gh(f,u,()=>[v(DU,{key:i+a,total:u.total,currentIndex:u.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&gh(h,c,()=>[v(NU,null)]))}});function KU(e){return e.reduce((t,n)=>(HU(n)&&t.push(n),t),[])}const GU={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function wS(e){const{baseColor:t,inputColorDisabled:n,cardColor:o,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},GU),{labelLineHeight:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:o,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${Ie(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const XU={name:"Checkbox",common:xt,self:wS},_S=XU,YU={name:"Checkbox",common:He,self(e){const{cardColor:t}=e,n=wS(e);return n.color="#0000",n.checkMarkColor=t,n}},Ka=YU;function QU(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:n,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:u,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const JU={name:"Cascader",common:He,peers:{InternalSelectMenu:fl,InternalSelection:hm,Scrollbar:Un,Checkbox:Ka,Empty:$u},self:QU},ZU=JU,eV=v("svg",{viewBox:"0 0 64 64",class:"check-icon"},v("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),tV=v("svg",{viewBox:"0 0 100 100",class:"line-icon"},v("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),SS="n-checkbox-group",nV={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},oV=xe({name:"CheckboxGroup",props:nV,setup(e){const{mergedClsPrefixRef:t}=st(e),n=mr(e),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=U(e.defaultValue),a=I(()=>e.value),s=rn(a,i),l=I(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),c=I(()=>Array.isArray(s.value)?new Set(s.value):new Set);function u(d,f){const{nTriggerFormInput:h,nTriggerFormChange:p}=n,{onChange:g,"onUpdate:value":m,onUpdateValue:b}=e;if(Array.isArray(s.value)){const w=Array.from(s.value),C=w.findIndex(_=>_===f);d?~C||(w.push(f),b&&Re(b,w,{actionType:"check",value:f}),m&&Re(m,w,{actionType:"check",value:f}),h(),p(),i.value=w,g&&Re(g,w)):~C&&(w.splice(C,1),b&&Re(b,w,{actionType:"uncheck",value:f}),m&&Re(m,w,{actionType:"uncheck",value:f}),g&&Re(g,w),i.value=w,h(),p())}else d?(b&&Re(b,[f],{actionType:"check",value:f}),m&&Re(m,[f],{actionType:"check",value:f}),g&&Re(g,[f]),i.value=[f],h(),p()):(b&&Re(b,[],{actionType:"uncheck",value:f}),m&&Re(m,[],{actionType:"uncheck",value:f}),g&&Re(g,[]),i.value=[],h(),p())}return at(SS,{checkedCountRef:l,maxRef:Ue(e,"max"),minRef:Ue(e,"min"),valueSetRef:c,disabledRef:r,mergedSizeRef:o,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return v("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),rV=W([z("checkbox",` + `)])])]),ZU=["transitionDuration","transitionTimingFunction"],eV=Object.assign(Object.assign({},Le.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let af=!1;const tV=ye({name:"Carousel",props:eV,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=j(null),r=j(null),i=j([]),a={value:[]},s=M(()=>e.direction==="vertical"),l=M(()=>s.value?"height":"width"),c=M(()=>s.value?"bottom":"right"),u=M(()=>e.effect==="slide"),d=M(()=>e.loop&&e.slidesPerView===1&&u.value),f=M(()=>e.effect==="custom"),h=M(()=>!u.value||e.centeredSlides?1:e.slidesPerView),p=M(()=>f.value?1:e.slidesPerView),g=M(()=>h.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=j({width:0,height:0}),b=M(()=>{const{value:Se}=i;if(!Se.length)return[];const{value:Be}=g;if(Be)return Se.map(ce=>i1(ce));const{value:Ze}=p,{value:ht}=m,{value:bt}=l;let dt=ht[bt];if(Ze!=="auto"){const{spaceBetween:ce}=e,Ae=dt-(Ze-1)*ce,ot=1/Math.max(1,Ze);dt=Ae*ot}const Rt=Object.assign(Object.assign({},ht),{[bt]:dt});return Se.map(()=>Rt)}),w=M(()=>{const{value:Se}=b;if(!Se.length)return[];const{centeredSlides:Be,spaceBetween:Ze}=e,{value:ht}=l,{[ht]:bt}=m.value;let dt=0;return Se.map(({[ht]:Rt})=>{let ce=dt;return Be&&(ce+=(Rt-bt)/2),dt+=Rt+Ze,ce})}),C=j(!1),_=M(()=>{const{transitionStyle:Se}=e;return Se?eo(Se,ZU):{}}),S=M(()=>f.value?0:UU(_.value.transitionDuration)),y=M(()=>{const{value:Se}=i;if(!Se.length)return[];const Be=!(g.value||p.value===1),Ze=Rt=>{if(Be){const{value:ce}=l;return{[ce]:`${b.value[Rt][ce]}px`}}};if(f.value)return Se.map((Rt,ce)=>Ze(ce));const{effect:ht,spaceBetween:bt}=e,{value:dt}=c;return Se.reduce((Rt,ce,Ae)=>{const ot=Object.assign(Object.assign({},Ze(Ae)),{[`margin-${dt}`]:`${bt}px`});return Rt.push(ot),C.value&&(ht==="fade"||ht==="card")&&Object.assign(ot,_.value),Rt},[])}),x=M(()=>{const{value:Se}=h,{length:Be}=i.value;if(Se!=="auto")return Math.max(Be-Se,0)+1;{const{value:Ze}=b,{length:ht}=Ze;if(!ht)return Be;const{value:bt}=w,{value:dt}=l,Rt=m.value[dt];let ce=Ze[Ze.length-1][dt],Ae=ht;for(;Ae>1&&cejU(x.value,d.value)),P=rf(e.defaultIndex,d.value),T=j(o1(P,x.value,d.value)),$=rn(Ue(e,"currentIndex"),T),E=M(()=>rf($.value,d.value));function G(Se){var Be,Ze;Se=ql(Se,0,x.value-1);const ht=o1(Se,x.value,d.value),{value:bt}=$;ht!==$.value&&(T.value=ht,(Be=e["onUpdate:currentIndex"])===null||Be===void 0||Be.call(e,ht,bt),(Ze=e.onUpdateCurrentIndex)===null||Ze===void 0||Ze.call(e,ht,bt))}function B(Se=E.value){return NU(Se,x.value,e.loop)}function D(Se=E.value){return HU(Se,x.value,e.loop)}function L(Se){const Be=me(Se);return Be!==null&&B()===Be}function X(Se){const Be=me(Se);return Be!==null&&D()===Be}function V(Se){return E.value===me(Se)}function ae(Se){return $.value===Se}function ue(){return B()===null}function ee(){return D()===null}function R(Se){const Be=ql(rf(Se,d.value),0,x.value);(Se!==$.value||Be!==E.value)&&G(Be)}function A(){const Se=B();Se!==null&&G(Se)}function Y(){const Se=D();Se!==null&&G(Se)}let W=!1;function oe(){(!W||!d.value)&&A()}function K(){(!W||!d.value)&&Y()}let le=0;const N=j({});function be(Se,Be=0){N.value=Object.assign({},_.value,{transform:s.value?`translateY(${-Se}px)`:`translateX(${-Se}px)`,transitionDuration:`${Be}ms`})}function Ie(Se=0){u.value?Ne(E.value,Se):le!==0&&(!W&&Se>0&&(W=!0),be(le=0,Se))}function Ne(Se,Be){const Ze=F(Se);Ze!==le&&Be>0&&(W=!0),le=F(E.value),be(Ze,Be)}function F(Se){let Be;return Se>=x.value-1?Be=I():Be=w.value[Se]||0,Be}function I(){if(h.value==="auto"){const{value:Se}=l,{[Se]:Be}=m.value,{value:Ze}=w,ht=Ze[Ze.length-1];let bt;if(ht===void 0)bt=Be;else{const{value:dt}=b;bt=ht+dt[dt.length-1][Se]}return bt-Be}else{const{value:Se}=w;return Se[x.value-1]||0}}const re={currentIndexRef:$,to:R,prev:oe,next:K,isVertical:()=>s.value,isHorizontal:()=>!s.value,isPrev:L,isNext:X,isActive:V,isPrevDisabled:ue,isNextDisabled:ee,getSlideIndex:me,getSlideStyle:we,addSlide:_e,removeSlide:ne,onCarouselItemClick:ie};VU(re);function _e(Se){Se&&i.value.push(Se)}function ne(Se){if(!Se)return;const Be=me(Se);Be!==-1&&i.value.splice(Be,1)}function me(Se){return typeof Se=="number"?Se:Se?i.value.indexOf(Se):-1}function we(Se){const Be=me(Se);if(Be!==-1){const Ze=[y.value[Be]],ht=re.isPrev(Be),bt=re.isNext(Be);return ht&&Ze.push(e.prevSlideStyle||""),bt&&Ze.push(e.nextSlideStyle||""),Li(Ze)}}let O=0,H=0,te=0,Ce=0,fe=!1,de=!1;function ie(Se,Be){let Ze=!W&&!fe&&!de;e.effect==="card"&&Ze&&!V(Se)&&(R(Se),Ze=!1),Ze||(Be.preventDefault(),Be.stopPropagation())}let he=null;function Fe(){he&&(clearInterval(he),he=null)}function De(){Fe(),!e.autoplay||k.value<2||(he=window.setInterval(Y,e.interval))}function Me(Se){var Be;if(af||!(!((Be=r.value)===null||Be===void 0)&&Be.contains(Oi(Se))))return;af=!0,fe=!0,de=!1,Ce=Date.now(),Fe(),Se.type!=="touchstart"&&!Se.target.isContentEditable&&Se.preventDefault();const Ze=r1(Se)?Se.touches[0]:Se;s.value?H=Ze.clientY:O=Ze.clientX,e.touchable&&($t("touchmove",document,He),$t("touchend",document,et),$t("touchcancel",document,et)),e.draggable&&($t("mousemove",document,He),$t("mouseup",document,et))}function He(Se){const{value:Be}=s,{value:Ze}=l,ht=r1(Se)?Se.touches[0]:Se,bt=Be?ht.clientY-H:ht.clientX-O,dt=m.value[Ze];te=ql(bt,-dt,dt),Se.cancelable&&Se.preventDefault(),u.value&&be(le-te,0)}function et(){const{value:Se}=E;let Be=Se;if(!W&&te!==0&&u.value){const Ze=le-te,ht=[...w.value.slice(0,x.value-1),I()];let bt=null;for(let dt=0;dtbt/2||te/Ze>.4?Be=B(Se):(te<-bt/2||te/Ze<-.4)&&(Be=D(Se))}Be!==null&&Be!==Se?(de=!0,G(Be),Ht(()=>{(!d.value||T.value!==$.value)&&Ie(S.value)})):Ie(S.value),$e(),De()}function $e(){fe&&(af=!1),fe=!1,O=0,H=0,te=0,Ce=0,Tt("touchmove",document,He),Tt("touchend",document,et),Tt("touchcancel",document,et),Tt("mousemove",document,He),Tt("mouseup",document,et)}function Xe(){if(u.value&&W){const{value:Se}=E;Ne(Se,0)}else De();u.value&&(N.value.transitionDuration="0ms"),W=!1}function gt(Se){if(Se.preventDefault(),W)return;let{deltaX:Be,deltaY:Ze}=Se;Se.shiftKey&&!Be&&(Be=Ze);const ht=-1,bt=1,dt=(Be||Ze)>0?bt:ht;let Rt=0,ce=0;s.value?ce=dt:Rt=dt;const Ae=10;(ce*Ze>=Ae||Rt*Be>=Ae)&&(dt===bt&&!ee()?Y():dt===ht&&!ue()&&A())}function J(){m.value=i1(o.value,!0),De()}function xe(){var Se,Be;g.value&&((Be=(Se=b.effect).scheduler)===null||Be===void 0||Be.call(Se),b.effect.run())}function Ee(){e.autoplay&&Fe()}function qe(){e.autoplay&&De()}jt(()=>{Yt(De),requestAnimationFrame(()=>C.value=!0)}),on(()=>{$e(),Fe()}),mp(()=>{const{value:Se}=i,{value:Be}=a,Ze=new Map,ht=dt=>Ze.has(dt)?Ze.get(dt):-1;let bt=!1;for(let dt=0;dtce.el===Se[dt]);Rt!==dt&&(bt=!0),Ze.set(Se[dt],Rt)}bt&&Se.sort((dt,Rt)=>ht(dt)-ht(Rt))}),ut(E,(Se,Be)=>{if(Se!==Be)if(De(),u.value){if(d.value){const{value:Ze}=x;k.value>2&&Se===Ze-2&&Be===1?Se=0:Se===1&&Be===Ze-2&&(Se=Ze-1)}Ne(Se,S.value)}else Ie()},{immediate:!0}),ut([d,h],()=>void Ht(()=>{G(E.value)})),ut(w,()=>{u.value&&Ie()},{deep:!0}),ut(u,Se=>{Se?Ie():(W=!1,be(le=0))});const Qe=M(()=>({onTouchstartPassive:e.touchable?Me:void 0,onMousedown:e.draggable?Me:void 0,onWheel:e.mousewheel?gt:void 0})),Je=M(()=>Object.assign(Object.assign({},eo(re,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:k.value,currentIndex:$.value})),tt=M(()=>({total:k.value,currentIndex:$.value,to:re.to})),it={getCurrentIndex:()=>$.value,to:R,prev:A,next:Y},vt=Le("Carousel","-carousel",JU,FU,e,t),an=M(()=>{const{common:{cubicBezierEaseInOut:Se},self:{dotSize:Be,dotColor:Ze,dotColorActive:ht,dotColorFocus:bt,dotLineWidth:dt,dotLineWidthActive:Rt,arrowColor:ce}}=vt.value;return{"--n-bezier":Se,"--n-dot-color":Ze,"--n-dot-color-focus":bt,"--n-dot-color-active":ht,"--n-dot-size":Be,"--n-dot-line-width":dt,"--n-dot-line-width-active":Rt,"--n-arrow-color":ce}}),Ft=n?Pt("carousel",void 0,an,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:o,slidesElRef:r,slideVNodes:a,duplicatedable:d,userWantsControl:f,autoSlideSize:g,realIndex:E,slideStyles:y,translateStyle:N,slidesControlListeners:Qe,handleTransitionEnd:Xe,handleResize:J,handleSlideResize:xe,handleMouseenter:Ee,handleMouseleave:qe,isActive:ae,arrowSlotProps:Je,dotSlotProps:tt},it),{cssVars:n?void 0:an,themeClass:Ft==null?void 0:Ft.themeClass,onRender:Ft==null?void 0:Ft.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:o,slideStyles:r,dotType:i,dotPlacement:a,slidesControlListeners:s,transitionProps:l={},arrowSlotProps:c,dotSlotProps:u,$slots:{default:d,dots:f,arrow:h}}=this,p=d&&Ra(d())||[];let g=nV(p);return g.length||(g=p.map(m=>v(QU,null,{default:()=>fo(m)}))),this.duplicatedable&&(g=BU(g)),this.slideVNodes.value=g,this.autoSlideSize&&(g=g.map(m=>v(ur,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),v("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,o&&`${t}-carousel--usercontrol`],style:this.cssVars},s,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),v(ur,{onResize:this.handleResize},{default:()=>v("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},o?g.map((m,b)=>v("div",{style:r[b],key:b},dn(v(fn,Object.assign({},l),{default:()=>m}),[[Mn,this.isActive(b)]]))):g)}),this.showDots&&u.total>1&&wh(f,u,()=>[v(qU,{key:i+a,total:u.total,currentIndex:u.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&wh(h,c,()=>[v(XU,null)]))}});function nV(e){return e.reduce((t,n)=>(YU(n)&&t.push(n),t),[])}const oV={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function RS(e){const{baseColor:t,inputColorDisabled:n,cardColor:o,modalColor:r,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},oV),{labelLineHeight:p,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:o,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${Oe(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const rV={name:"Checkbox",common:xt,self:RS},ES=rV,iV={name:"Checkbox",common:je,self(e){const{cardColor:t}=e,n=RS(e);return n.color="#0000",n.checkMarkColor=t,n}},Ya=iV;function aV(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:n,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:d,optionFontSize:u,optionColorHover:c,optionTextColor:r,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const sV={name:"Cascader",common:je,peers:{InternalSelectMenu:ml,InternalSelection:xm,Scrollbar:Un,Checkbox:Ya,Empty:Fu},self:aV},lV=sV,cV=v("svg",{viewBox:"0 0 64 64",class:"check-icon"},v("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),uV=v("svg",{viewBox:"0 0 100 100",class:"line-icon"},v("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),$S="n-checkbox-group",dV={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},fV=ye({name:"CheckboxGroup",props:dV,setup(e){const{mergedClsPrefixRef:t}=st(e),n=mr(e),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=j(e.defaultValue),a=M(()=>e.value),s=rn(a,i),l=M(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),c=M(()=>Array.isArray(s.value)?new Set(s.value):new Set);function u(d,f){const{nTriggerFormInput:h,nTriggerFormChange:p}=n,{onChange:g,"onUpdate:value":m,onUpdateValue:b}=e;if(Array.isArray(s.value)){const w=Array.from(s.value),C=w.findIndex(_=>_===f);d?~C||(w.push(f),b&&Re(b,w,{actionType:"check",value:f}),m&&Re(m,w,{actionType:"check",value:f}),h(),p(),i.value=w,g&&Re(g,w)):~C&&(w.splice(C,1),b&&Re(b,w,{actionType:"uncheck",value:f}),m&&Re(m,w,{actionType:"uncheck",value:f}),g&&Re(g,w),i.value=w,h(),p())}else d?(b&&Re(b,[f],{actionType:"check",value:f}),m&&Re(m,[f],{actionType:"check",value:f}),g&&Re(g,[f]),i.value=[f],h(),p()):(b&&Re(b,[],{actionType:"uncheck",value:f}),m&&Re(m,[],{actionType:"uncheck",value:f}),g&&Re(g,[]),i.value=[],h(),p())}return at($S,{checkedCountRef:l,maxRef:Ue(e,"max"),minRef:Ue(e,"min"),valueSetRef:c,disabledRef:r,mergedSizeRef:o,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return v("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),hV=q([z("checkbox",` font-size: var(--n-font-size); outline: none; cursor: pointer; @@ -1608,38 +1608,38 @@ ${t} word-break: break-word; line-height: var(--n-size); --n-merged-color-table: var(--n-color-table); - `,[J("show-label","line-height: var(--n-label-line-height);"),W("&:hover",[z("checkbox-box",[j("border","border: var(--n-border-checked);")])]),W("&:focus:not(:active)",[z("checkbox-box",[j("border",` + `,[Z("show-label","line-height: var(--n-label-line-height);"),q("&:hover",[z("checkbox-box",[U("border","border: var(--n-border-checked);")])]),q("&:focus:not(:active)",[z("checkbox-box",[U("border",` border: var(--n-border-focus); box-shadow: var(--n-box-shadow-focus); - `)])]),J("inside-table",[z("checkbox-box",` + `)])]),Z("inside-table",[z("checkbox-box",` background-color: var(--n-merged-color-table); - `)]),J("checked",[z("checkbox-box",` + `)]),Z("checked",[z("checkbox-box",` background-color: var(--n-color-checked); - `,[z("checkbox-icon",[W(".check-icon",` + `,[z("checkbox-icon",[q(".check-icon",` opacity: 1; transform: scale(1); - `)])])]),J("indeterminate",[z("checkbox-box",[z("checkbox-icon",[W(".check-icon",` + `)])])]),Z("indeterminate",[z("checkbox-box",[z("checkbox-icon",[q(".check-icon",` opacity: 0; transform: scale(.5); - `),W(".line-icon",` + `),q(".line-icon",` opacity: 1; transform: scale(1); - `)])])]),J("checked, indeterminate",[W("&:focus:not(:active)",[z("checkbox-box",[j("border",` + `)])])]),Z("checked, indeterminate",[q("&:focus:not(:active)",[z("checkbox-box",[U("border",` border: var(--n-border-checked); box-shadow: var(--n-box-shadow-focus); `)])]),z("checkbox-box",` background-color: var(--n-color-checked); border-left: 0; border-top: 0; - `,[j("border",{border:"var(--n-border-checked)"})])]),J("disabled",{cursor:"not-allowed"},[J("checked",[z("checkbox-box",` + `,[U("border",{border:"var(--n-border-checked)"})])]),Z("disabled",{cursor:"not-allowed"},[Z("checked",[z("checkbox-box",` background-color: var(--n-color-disabled-checked); - `,[j("border",{border:"var(--n-border-disabled-checked)"}),z("checkbox-icon",[W(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),z("checkbox-box",` + `,[U("border",{border:"var(--n-border-disabled-checked)"}),z("checkbox-icon",[q(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),z("checkbox-box",` background-color: var(--n-color-disabled); - `,[j("border",` + `,[U("border",` border: var(--n-border-disabled); - `),z("checkbox-icon",[W(".check-icon, .line-icon",` + `),z("checkbox-icon",[q(".check-icon, .line-icon",` fill: var(--n-check-mark-color-disabled); - `)])]),j("label",` + `)])]),U("label",` color: var(--n-text-color-disabled); `)]),z("checkbox-box-wrapper",` position: relative; @@ -1660,7 +1660,7 @@ ${t} border-radius: var(--n-border-radius); background-color: var(--n-color); transition: background-color 0.3s var(--n-bezier); - `,[j("border",` + `,[U("border",` transition: border-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); @@ -1680,7 +1680,7 @@ ${t} right: 1px; top: 1px; bottom: 1px; - `,[W(".check-icon, .line-icon",` + `,[q(".check-icon, .line-icon",` width: 100%; fill: var(--n-check-mark-color); opacity: 0; @@ -1691,20 +1691,20 @@ ${t} transform 0.3s var(--n-bezier), opacity 0.3s var(--n-bezier), border-color 0.3s var(--n-bezier); - `),Kn({left:"1px",top:"1px"})])]),j("label",` + `),Kn({left:"1px",top:"1px"})])]),U("label",` color: var(--n-text-color); transition: color .3s var(--n-bezier); user-select: none; -webkit-user-select: none; padding: var(--n-label-padding); font-weight: var(--n-label-font-weight); - `,[W("&:empty",{display:"none"})])]),al(z("checkbox",` + `,[q("&:empty",{display:"none"})])]),cl(z("checkbox",` --n-merged-color-table: var(--n-color-table-modal); - `)),wu(z("checkbox",` + `)),Tu(z("checkbox",` --n-merged-color-table: var(--n-color-table-popover); - `))]),iV=Object.assign(Object.assign({},Le.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),ml=xe({name:"Checkbox",props:iV,setup(e){const t=Ve(SS,null),n=U(null),{mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=U(e.defaultChecked),s=Ue(e,"checked"),l=rn(s,a),c=kt(()=>{if(t){const y=t.valueSetRef.value;return y&&e.value!==void 0?y.has(e.value):!1}else return l.value===e.checkedValue}),u=mr(e,{mergedSize(y){const{size:x}=e;if(x!==void 0)return x;if(t){const{value:P}=t.mergedSizeRef;if(P!==void 0)return P}if(y){const{mergedSize:P}=y;if(P!==void 0)return P.value}return"medium"},mergedDisabled(y){const{disabled:x}=e;if(x!==void 0)return x;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:P},checkedCountRef:k}=t;if(P!==void 0&&k.value>=P&&!c.value)return!0;const{minRef:{value:T}}=t;if(T!==void 0&&k.value<=T&&c.value)return!0}return y?y.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,h=Le("Checkbox","-checkbox",rV,_S,e,o);function p(y){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:x,"onUpdate:checked":P,onUpdateChecked:k}=e,{nTriggerFormInput:T,nTriggerFormChange:R}=u,E=c.value?e.uncheckedValue:e.checkedValue;P&&Re(P,E,y),k&&Re(k,E,y),x&&Re(x,E,y),T(),R(),a.value=E}}function g(y){d.value||p(y)}function m(y){if(!d.value)switch(y.key){case" ":case"Enter":p(y)}}function b(y){switch(y.key){case" ":y.preventDefault()}}const w={focus:()=>{var y;(y=n.value)===null||y===void 0||y.focus()},blur:()=>{var y;(y=n.value)===null||y===void 0||y.blur()}},C=pn("Checkbox",i,o),_=I(()=>{const{value:y}=f,{common:{cubicBezierEaseInOut:x},self:{borderRadius:P,color:k,colorChecked:T,colorDisabled:R,colorTableHeader:E,colorTableHeaderModal:q,colorTableHeaderPopover:D,checkMarkColor:B,checkMarkColorDisabled:M,border:K,borderFocus:V,borderDisabled:ae,borderChecked:pe,boxShadowFocus:Z,textColor:N,textColorDisabled:O,checkMarkColorDisabledChecked:ee,colorDisabledChecked:G,borderDisabledChecked:ne,labelPadding:X,labelLineHeight:ce,labelFontWeight:L,[Te("fontSize",y)]:be,[Te("size",y)]:Oe}}=h.value;return{"--n-label-line-height":ce,"--n-label-font-weight":L,"--n-size":Oe,"--n-bezier":x,"--n-border-radius":P,"--n-border":K,"--n-border-checked":pe,"--n-border-focus":V,"--n-border-disabled":ae,"--n-border-disabled-checked":ne,"--n-box-shadow-focus":Z,"--n-color":k,"--n-color-checked":T,"--n-color-table":E,"--n-color-table-modal":q,"--n-color-table-popover":D,"--n-color-disabled":R,"--n-color-disabled-checked":G,"--n-text-color":N,"--n-text-color-disabled":O,"--n-check-mark-color":B,"--n-check-mark-color-disabled":M,"--n-check-mark-color-disabled-checked":ee,"--n-font-size":be,"--n-label-padding":X}}),S=r?Pt("checkbox",I(()=>f.value[0]),_,e):void 0;return Object.assign(u,w,{rtlEnabled:C,selfRef:n,mergedClsPrefix:o,mergedDisabled:d,renderedChecked:c,mergedTheme:h,labelId:Qr(),handleClick:g,handleKeyUp:m,handleKeyDown:b,cssVars:r?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:o,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:s,label:l,mergedClsPrefix:c,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=At(t.default,g=>l||g?v("span",{class:`${c}-checkbox__label`,id:s},l||g):null);return v("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,o&&`${c}-checkbox--disabled`,r&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:o||!u?void 0:0,role:"checkbox","aria-checked":r?"mixed":n,"aria-labelledby":s,style:a,onKeyup:d,onKeydown:f,onClick:h,onMousedown:()=>{$t("selectstart",window,g=>{g.preventDefault()},{once:!0})}},v("div",{class:`${c}-checkbox-box-wrapper`}," ",v("div",{class:`${c}-checkbox-box`},v(Wi,null,{default:()=>this.indeterminate?v("div",{key:"indeterminate",class:`${c}-checkbox-icon`},tV):v("div",{key:"check",class:`${c}-checkbox-icon`},eV)}),v("div",{class:`${c}-checkbox-box__border`}))),p)}}),aV={name:"Code",common:He,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:o,textColor3:r}=e;return{textColor:t,fontSize:n,fontWeightStrong:o,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}},kS=aV;function sV(e){const{fontWeight:t,textColor1:n,textColor2:o,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:r,fontSize:a,textColor:o,arrowColor:o,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const lV={name:"Collapse",common:He,self:sV},cV=lV;function uV(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const dV={name:"CollapseTransition",common:He,self:uV},fV=dV,hV={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:el},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(cr("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},PS=xe({name:"ConfigProvider",alias:["App"],props:hV,setup(e){const t=Ve(Ao,null),n=I(()=>{const{theme:p}=e;if(p===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return p===void 0?g:g===void 0?p:Object.assign({},g,p)}),o=I(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?p:hs({},g,p)}}}),r=kt(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=kt(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=I(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=I(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=I(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:el}),c=I(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const b of g)m[b.name]=Ms(b),(p=b.peers)===null||p===void 0||p.forEach(w=>{w.name in m||(m[w.name]=Ms(w))});return m}),u=I(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=I(()=>{const{value:p}=n,{value:g}=o,m=g&&Object.keys(g).length!==0,b=p==null?void 0:p.name;return b?m?`${b}-${Xs(JSON.stringify(o.value))}`:b:m?Xs(JSON.stringify(o.value)):""});return at(Ao,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:I(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:I(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:I(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:I(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:o,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:n,mergedThemeOverrides:o}},render(){var e,t,n,o;return this.abstract?(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n):v(this.as||this.tag,{class:`${this.mergedClsPrefix||el}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),pV=e=>1-Math.pow(1-e,5);function mV(e){const{from:t,to:n,duration:o,onUpdate:r,onFinish:i}=e,a=performance.now(),s=()=>{const l=performance.now(),c=Math.min(l-a,o),u=t+(n-t)*pV(c/o);if(c===o){i();return}r(u),requestAnimationFrame(s)};s()}const gV={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},vV=xe({name:"NumberAnimation",props:gV,setup(e){const{localeRef:t}=Hi("name"),{duration:n}=e,o=U(e.from),r=I(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let i=!1;const a=f=>{o.value=f},s=()=>{var f;o.value=e.to,i=!1,(f=e.onFinish)===null||f===void 0||f.call(e)},l=(f=e.from,h=e.to)=>{i=!0,o.value=e.from,f!==h&&mV({from:f,to:h,duration:n,onUpdate:a,onFinish:s})},c=I(()=>{var f;const p=kL(o.value,e.precision).toFixed(e.precision).split("."),g=new Intl.NumberFormat(r.value),m=(f=g.formatToParts(.5).find(C=>C.type==="decimal"))===null||f===void 0?void 0:f.value,b=e.showSeparator?g.format(Number(p[0])):p[0],w=p[1];return{integer:b,decimal:w,decimalSeparator:m}});function u(){i||l()}return jt(()=>{Yt(()=>{e.active&&l()})}),Object.assign({formattedValue:c},{play:u})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),bV={name:"Popselect",common:He,peers:{Popover:Xi,InternalSelectMenu:fl}},TS=bV;function yV(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const xV={name:"Popselect",common:xt,peers:{Popover:qa,InternalSelectMenu:fm},self:yV},ym=xV,ES="n-popselect",CV=z("popselect-menu",` + `))]),pV=Object.assign(Object.assign({},Le.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),bl=ye({name:"Checkbox",props:pV,setup(e){const t=Ve($S,null),n=j(null),{mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=j(e.defaultChecked),s=Ue(e,"checked"),l=rn(s,a),c=kt(()=>{if(t){const y=t.valueSetRef.value;return y&&e.value!==void 0?y.has(e.value):!1}else return l.value===e.checkedValue}),u=mr(e,{mergedSize(y){const{size:x}=e;if(x!==void 0)return x;if(t){const{value:k}=t.mergedSizeRef;if(k!==void 0)return k}if(y){const{mergedSize:k}=y;if(k!==void 0)return k.value}return"medium"},mergedDisabled(y){const{disabled:x}=e;if(x!==void 0)return x;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:k},checkedCountRef:P}=t;if(k!==void 0&&P.value>=k&&!c.value)return!0;const{minRef:{value:T}}=t;if(T!==void 0&&P.value<=T&&c.value)return!0}return y?y.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,h=Le("Checkbox","-checkbox",hV,ES,e,o);function p(y){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:x,"onUpdate:checked":k,onUpdateChecked:P}=e,{nTriggerFormInput:T,nTriggerFormChange:$}=u,E=c.value?e.uncheckedValue:e.checkedValue;k&&Re(k,E,y),P&&Re(P,E,y),x&&Re(x,E,y),T(),$(),a.value=E}}function g(y){d.value||p(y)}function m(y){if(!d.value)switch(y.key){case" ":case"Enter":p(y)}}function b(y){switch(y.key){case" ":y.preventDefault()}}const w={focus:()=>{var y;(y=n.value)===null||y===void 0||y.focus()},blur:()=>{var y;(y=n.value)===null||y===void 0||y.blur()}},C=pn("Checkbox",i,o),_=M(()=>{const{value:y}=f,{common:{cubicBezierEaseInOut:x},self:{borderRadius:k,color:P,colorChecked:T,colorDisabled:$,colorTableHeader:E,colorTableHeaderModal:G,colorTableHeaderPopover:B,checkMarkColor:D,checkMarkColorDisabled:L,border:X,borderFocus:V,borderDisabled:ae,borderChecked:ue,boxShadowFocus:ee,textColor:R,textColorDisabled:A,checkMarkColorDisabledChecked:Y,colorDisabledChecked:W,borderDisabledChecked:oe,labelPadding:K,labelLineHeight:le,labelFontWeight:N,[Te("fontSize",y)]:be,[Te("size",y)]:Ie}}=h.value;return{"--n-label-line-height":le,"--n-label-font-weight":N,"--n-size":Ie,"--n-bezier":x,"--n-border-radius":k,"--n-border":X,"--n-border-checked":ue,"--n-border-focus":V,"--n-border-disabled":ae,"--n-border-disabled-checked":oe,"--n-box-shadow-focus":ee,"--n-color":P,"--n-color-checked":T,"--n-color-table":E,"--n-color-table-modal":G,"--n-color-table-popover":B,"--n-color-disabled":$,"--n-color-disabled-checked":W,"--n-text-color":R,"--n-text-color-disabled":A,"--n-check-mark-color":D,"--n-check-mark-color-disabled":L,"--n-check-mark-color-disabled-checked":Y,"--n-font-size":be,"--n-label-padding":K}}),S=r?Pt("checkbox",M(()=>f.value[0]),_,e):void 0;return Object.assign(u,w,{rtlEnabled:C,selfRef:n,mergedClsPrefix:o,mergedDisabled:d,renderedChecked:c,mergedTheme:h,labelId:Zr(),handleClick:g,handleKeyUp:m,handleKeyDown:b,cssVars:r?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:o,indeterminate:r,privateInsideTable:i,cssVars:a,labelId:s,label:l,mergedClsPrefix:c,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=Et(t.default,g=>l||g?v("span",{class:`${c}-checkbox__label`,id:s},l||g):null);return v("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,o&&`${c}-checkbox--disabled`,r&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:o||!u?void 0:0,role:"checkbox","aria-checked":r?"mixed":n,"aria-labelledby":s,style:a,onKeyup:d,onKeydown:f,onClick:h,onMousedown:()=>{$t("selectstart",window,g=>{g.preventDefault()},{once:!0})}},v("div",{class:`${c}-checkbox-box-wrapper`}," ",v("div",{class:`${c}-checkbox-box`},v(Ki,null,{default:()=>this.indeterminate?v("div",{key:"indeterminate",class:`${c}-checkbox-icon`},uV):v("div",{key:"check",class:`${c}-checkbox-icon`},cV)}),v("div",{class:`${c}-checkbox-box__border`}))),p)}}),mV={name:"Code",common:je,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:o,textColor3:r}=e;return{textColor:t,fontSize:n,fontWeightStrong:o,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:r}}},IS=mV;function gV(e){const{fontWeight:t,textColor1:n,textColor2:o,textColorDisabled:r,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:r,fontSize:a,textColor:o,arrowColor:o,arrowColorDisabled:r,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const vV={name:"Collapse",common:je,self:gV},bV=vV;function yV(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const xV={name:"CollapseTransition",common:je,self:yV},CV=xV,wV={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:ol},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(cr("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},OS=ye({name:"ConfigProvider",alias:["App"],props:wV,setup(e){const t=Ve(Eo,null),n=M(()=>{const{theme:p}=e;if(p===null)return;const g=t==null?void 0:t.mergedThemeRef.value;return p===void 0?g:g===void 0?p:Object.assign({},g,p)}),o=M(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const g=t==null?void 0:t.mergedThemeOverridesRef.value;return g===void 0?p:gs({},g,p)}}}),r=kt(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=kt(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=M(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),s=M(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),l=M(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t?t.mergedClsPrefixRef.value:ol}),c=M(()=>{var p;const{rtl:g}=e;if(g===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const b of g)m[b.name]=Ds(b),(p=b.peers)===null||p===void 0||p.forEach(w=>{w.name in m||(m[w.name]=Ds(w))});return m}),u=M(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),d=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=M(()=>{const{value:p}=n,{value:g}=o,m=g&&Object.keys(g).length!==0,b=p==null?void 0:p.name;return b?m?`${b}-${Js(JSON.stringify(o.value))}`:b:m?Js(JSON.stringify(o.value)):""});return at(Eo,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:M(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:M(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:M(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:M(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:o,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:n,mergedThemeOverrides:o}},render(){var e,t,n,o;return this.abstract?(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n):v(this.as||this.tag,{class:`${this.mergedClsPrefix||ol}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),_V=e=>1-Math.pow(1-e,5);function SV(e){const{from:t,to:n,duration:o,onUpdate:r,onFinish:i}=e,a=performance.now(),s=()=>{const l=performance.now(),c=Math.min(l-a,o),u=t+(n-t)*_V(c/o);if(c===o){i();return}r(u),requestAnimationFrame(s)};s()}const kV={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},PV=ye({name:"NumberAnimation",props:kV,setup(e){const{localeRef:t}=Ui("name"),{duration:n}=e,o=j(e.from),r=M(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let i=!1;const a=f=>{o.value=f},s=()=>{var f;o.value=e.to,i=!1,(f=e.onFinish)===null||f===void 0||f.call(e)},l=(f=e.from,h=e.to)=>{i=!0,o.value=e.from,f!==h&&SV({from:f,to:h,duration:n,onUpdate:a,onFinish:s})},c=M(()=>{var f;const p=ML(o.value,e.precision).toFixed(e.precision).split("."),g=new Intl.NumberFormat(r.value),m=(f=g.formatToParts(.5).find(C=>C.type==="decimal"))===null||f===void 0?void 0:f.value,b=e.showSeparator?g.format(Number(p[0])):p[0],w=p[1];return{integer:b,decimal:w,decimalSeparator:m}});function u(){i||l()}return jt(()=>{Yt(()=>{e.active&&l()})}),Object.assign({formattedValue:c},{play:u})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),TV={name:"Popselect",common:je,peers:{Popover:Qi,InternalSelectMenu:ml}},MS=TV;function AV(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const RV={name:"Popselect",common:xt,peers:{Popover:Xa,InternalSelectMenu:ym},self:AV},Pm=RV,zS="n-popselect",EV=z("popselect-menu",` box-shadow: var(--n-menu-box-shadow); -`),xm={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Z0=Jr(xm),wV=xe({name:"PopselectPanel",props:xm,setup(e){const t=Ve(ES),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=st(e),r=Le("Popselect","-pop-select",CV,ym,t.props,n),i=I(()=>Pi(e.options,sS("value","children")));function a(f,h){const{onUpdateValue:p,"onUpdate:value":g,onChange:m}=e;p&&Re(p,f,h),g&&Re(g,f,h),m&&Re(m,f,h)}function s(f){c(f.key)}function l(f){!lo(f,"action")&&!lo(f,"empty")&&!lo(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:h}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let m=!0;e.value.forEach(b=>{if(b===f){m=!1;return}const w=h(b);w&&(p.push(w.key),g.push(w.rawNode))}),m&&(p.push(f),g.push(h(f).rawNode)),a(p,g)}else{const p=h(f);p&&a([f],[p.rawNode])}else if(e.value===f&&e.cancelable)a(null,null);else{const p=h(f);p&&a(f,p.rawNode);const{"onUpdate:show":g,onUpdateShow:m}=t.props;g&&Re(g,!1),m&&Re(m,!1),t.setShow(!1)}Ht(()=>{t.syncPosition()})}ft(Ue(e,"options"),()=>{Ht(()=>{t.syncPosition()})});const u=I(()=>{const{self:{menuBoxShadow:f}}=r.value;return{"--n-menu-box-shadow":f}}),d=o?Pt("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:s,handleMenuMousedown:l,cssVars:o?void 0:u,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Y_,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,n;return((n=(t=this.$slots).header)===null||n===void 0?void 0:n.call(t))||[]},action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),_V=Object.assign(Object.assign(Object.assign(Object.assign({},Le.props),Ha(Aa,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Aa.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),xm),Cm=xe({name:"Popselect",props:_V,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=st(e),n=Le("Popselect","-popselect",void 0,ym,e,t),o=U(null);function r(){var s;(s=o.value)===null||s===void 0||s.syncPosition()}function i(s){var l;(l=o.value)===null||l===void 0||l.setShow(s)}return at(ES,{props:e,mergedThemeRef:n,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:o,mergedTheme:n})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,o,r,i,a)=>{const{$attrs:s}=this;return v(wV,Object.assign({},s,{class:[s.class,n],style:[s.style,...r]},eo(this.$props,Z0),{ref:hw(o),onMouseenter:Es([i,s.onMouseenter]),onMouseleave:Es([a,s.onMouseleave])}),{header:()=>{var l,c;return(c=(l=this.$slots).header)===null||c===void 0?void 0:c.call(l)},action:()=>{var l,c;return(c=(l=this.$slots).action)===null||c===void 0?void 0:c.call(l)},empty:()=>{var l,c;return(c=(l=this.$slots).empty)===null||c===void 0?void 0:c.call(l)}})}};return v(hl,Object.assign({},Ha(this.$props,Z0),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}});function RS(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const SV={name:"Select",common:xt,peers:{InternalSelection:rS,InternalSelectMenu:fm},self:RS},AS=SV,kV={name:"Select",common:He,peers:{InternalSelection:hm,InternalSelectMenu:fl},self:RS},$S=kV,PV=W([z("select",` +`),Tm={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},a1=ei(Tm),$V=ye({name:"PopselectPanel",props:Tm,setup(e){const t=Ve(zS),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=st(e),r=Le("Popselect","-pop-select",EV,Pm,t.props,n),i=M(()=>Ai(e.options,pS("value","children")));function a(f,h){const{onUpdateValue:p,"onUpdate:value":g,onChange:m}=e;p&&Re(p,f,h),g&&Re(g,f,h),m&&Re(m,f,h)}function s(f){c(f.key)}function l(f){!lo(f,"action")&&!lo(f,"empty")&&!lo(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:h}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let m=!0;e.value.forEach(b=>{if(b===f){m=!1;return}const w=h(b);w&&(p.push(w.key),g.push(w.rawNode))}),m&&(p.push(f),g.push(h(f).rawNode)),a(p,g)}else{const p=h(f);p&&a([f],[p.rawNode])}else if(e.value===f&&e.cancelable)a(null,null);else{const p=h(f);p&&a(f,p.rawNode);const{"onUpdate:show":g,onUpdateShow:m}=t.props;g&&Re(g,!1),m&&Re(m,!1),t.setShow(!1)}Ht(()=>{t.syncPosition()})}ut(Ue(e,"options"),()=>{Ht(()=>{t.syncPosition()})});const u=M(()=>{const{self:{menuBoxShadow:f}}=r.value;return{"--n-menu-box-shadow":f}}),d=o?Pt("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:s,handleMenuMousedown:l,cssVars:o?void 0:u,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(oS,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,n;return((n=(t=this.$slots).header)===null||n===void 0?void 0:n.call(t))||[]},action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),IV=Object.assign(Object.assign(Object.assign(Object.assign({},Le.props),Va(Ia,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ia.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Tm),Am=ye({name:"Popselect",props:IV,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=st(e),n=Le("Popselect","-popselect",void 0,Pm,e,t),o=j(null);function r(){var s;(s=o.value)===null||s===void 0||s.syncPosition()}function i(s){var l;(l=o.value)===null||l===void 0||l.setShow(s)}return at(zS,{props:e,mergedThemeRef:n,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:o,mergedTheme:n})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,o,r,i,a)=>{const{$attrs:s}=this;return v($V,Object.assign({},s,{class:[s.class,n],style:[s.style,...r]},eo(this.$props,a1),{ref:xw(o),onMouseenter:$s([i,s.onMouseenter]),onMouseleave:$s([a,s.onMouseleave])}),{header:()=>{var l,c;return(c=(l=this.$slots).header)===null||c===void 0?void 0:c.call(l)},action:()=>{var l,c;return(c=(l=this.$slots).action)===null||c===void 0?void 0:c.call(l)},empty:()=>{var l,c;return(c=(l=this.$slots).empty)===null||c===void 0?void 0:c.call(l)}})}};return v(gl,Object.assign({},Va(this.$props,a1),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}});function FS(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const OV={name:"Select",common:xt,peers:{InternalSelection:dS,InternalSelectMenu:ym},self:FS},DS=OV,MV={name:"Select",common:je,peers:{InternalSelection:xm,InternalSelectMenu:ml},self:FS},LS=MV,zV=q([z("select",` z-index: auto; outline: none; width: 100%; @@ -1712,15 +1712,15 @@ ${t} `),z("select-menu",` margin: 4px 0; box-shadow: var(--n-menu-box-shadow); - `,[Wa({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),TV=Object.assign(Object.assign({},Le.props),{to:Ko.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),Ou=xe({name:"Select",props:TV,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:r}=st(e),i=Le("Select","-select",PV,AS,e,t),a=U(e.defaultValue),s=Ue(e,"value"),l=rn(s,a),c=U(!1),u=U(""),d=_u(e,["items","options"]),f=U([]),h=U([]),p=I(()=>h.value.concat(f.value).concat(d.value)),g=I(()=>{const{filter:Q}=e;if(Q)return Q;const{labelField:ye,valueField:Ae}=e;return(qe,Qe)=>{if(!Qe)return!1;const Je=Qe[ye];if(typeof Je=="string")return Jd(qe,Je);const tt=Qe[Ae];return typeof tt=="string"?Jd(qe,tt):typeof tt=="number"?Jd(qe,String(tt)):!1}}),m=I(()=>{if(e.remote)return d.value;{const{value:Q}=p,{value:ye}=u;return!ye.length||!e.filterable?Q:bj(Q,g.value,ye,e.childrenField)}}),b=I(()=>{const{valueField:Q,childrenField:ye}=e,Ae=sS(Q,ye);return Pi(m.value,Ae)}),w=I(()=>yj(p.value,e.valueField,e.childrenField)),C=U(!1),_=rn(Ue(e,"show"),C),S=U(null),y=U(null),x=U(null),{localeRef:P}=Hi("Select"),k=I(()=>{var Q;return(Q=e.placeholder)!==null&&Q!==void 0?Q:P.value.placeholder}),T=[],R=U(new Map),E=I(()=>{const{fallbackOption:Q}=e;if(Q===void 0){const{labelField:ye,valueField:Ae}=e;return qe=>({[ye]:String(qe),[Ae]:qe})}return Q===!1?!1:ye=>Object.assign(Q(ye),{value:ye})});function q(Q){const ye=e.remote,{value:Ae}=R,{value:qe}=w,{value:Qe}=E,Je=[];return Q.forEach(tt=>{if(qe.has(tt))Je.push(qe.get(tt));else if(ye&&Ae.has(tt))Je.push(Ae.get(tt));else if(Qe){const it=Qe(tt);it&&Je.push(it)}}),Je}const D=I(()=>{if(e.multiple){const{value:Q}=l;return Array.isArray(Q)?q(Q):[]}return null}),B=I(()=>{const{value:Q}=l;return!e.multiple&&!Array.isArray(Q)?Q===null?null:q([Q])[0]||null:null}),M=mr(e),{mergedSizeRef:K,mergedDisabledRef:V,mergedStatusRef:ae}=M;function pe(Q,ye){const{onChange:Ae,"onUpdate:value":qe,onUpdateValue:Qe}=e,{nTriggerFormChange:Je,nTriggerFormInput:tt}=M;Ae&&Re(Ae,Q,ye),Qe&&Re(Qe,Q,ye),qe&&Re(qe,Q,ye),a.value=Q,Je(),tt()}function Z(Q){const{onBlur:ye}=e,{nTriggerFormBlur:Ae}=M;ye&&Re(ye,Q),Ae()}function N(){const{onClear:Q}=e;Q&&Re(Q)}function O(Q){const{onFocus:ye,showOnFocus:Ae}=e,{nTriggerFormFocus:qe}=M;ye&&Re(ye,Q),qe(),Ae&&ce()}function ee(Q){const{onSearch:ye}=e;ye&&Re(ye,Q)}function G(Q){const{onScroll:ye}=e;ye&&Re(ye,Q)}function ne(){var Q;const{remote:ye,multiple:Ae}=e;if(ye){const{value:qe}=R;if(Ae){const{valueField:Qe}=e;(Q=D.value)===null||Q===void 0||Q.forEach(Je=>{qe.set(Je[Qe],Je)})}else{const Qe=B.value;Qe&&qe.set(Qe[e.valueField],Qe)}}}function X(Q){const{onUpdateShow:ye,"onUpdate:show":Ae}=e;ye&&Re(ye,Q),Ae&&Re(Ae,Q),C.value=Q}function ce(){V.value||(X(!0),C.value=!0,e.filterable&&Ne())}function L(){X(!1)}function be(){u.value="",h.value=T}const Oe=U(!1);function je(){e.filterable&&(Oe.value=!0)}function F(){e.filterable&&(Oe.value=!1,_.value||be())}function A(){V.value||(_.value?e.filterable?Ne():L():ce())}function re(Q){var ye,Ae;!((Ae=(ye=x.value)===null||ye===void 0?void 0:ye.selfRef)===null||Ae===void 0)&&Ae.contains(Q.relatedTarget)||(c.value=!1,Z(Q),L())}function we(Q){O(Q),c.value=!0}function oe(){c.value=!0}function ve(Q){var ye;!((ye=S.value)===null||ye===void 0)&&ye.$el.contains(Q.relatedTarget)||(c.value=!1,Z(Q),L())}function ke(){var Q;(Q=S.value)===null||Q===void 0||Q.focus(),L()}function $(Q){var ye;_.value&&(!((ye=S.value)===null||ye===void 0)&&ye.$el.contains($i(Q))||L())}function H(Q){if(!Array.isArray(Q))return[];if(E.value)return Array.from(Q);{const{remote:ye}=e,{value:Ae}=w;if(ye){const{value:qe}=R;return Q.filter(Qe=>Ae.has(Qe)||qe.has(Qe))}else return Q.filter(qe=>Ae.has(qe))}}function te(Q){Ce(Q.rawNode)}function Ce(Q){if(V.value)return;const{tag:ye,remote:Ae,clearFilterAfterSelect:qe,valueField:Qe}=e;if(ye&&!Ae){const{value:Je}=h,tt=Je[0]||null;if(tt){const it=f.value;it.length?it.push(tt):f.value=[tt],h.value=T}}if(Ae&&R.value.set(Q[Qe],Q),e.multiple){const Je=H(l.value),tt=Je.findIndex(it=>it===Q[Qe]);if(~tt){if(Je.splice(tt,1),ye&&!Ae){const it=de(Q[Qe]);~it&&(f.value.splice(it,1),qe&&(u.value=""))}}else Je.push(Q[Qe]),qe&&(u.value="");pe(Je,q(Je))}else{if(ye&&!Ae){const Je=de(Q[Qe]);~Je?f.value=[f.value[Je]]:f.value=T}Me(),L(),pe(Q[Qe],Q)}}function de(Q){return f.value.findIndex(Ae=>Ae[e.valueField]===Q)}function ue(Q){_.value||ce();const{value:ye}=Q.target;u.value=ye;const{tag:Ae,remote:qe}=e;if(ee(ye),Ae&&!qe){if(!ye){h.value=T;return}const{onCreate:Qe}=e,Je=Qe?Qe(ye):{[e.labelField]:ye,[e.valueField]:ye},{valueField:tt,labelField:it}=e;d.value.some(vt=>vt[tt]===Je[tt]||vt[it]===Je[it])||f.value.some(vt=>vt[tt]===Je[tt]||vt[it]===Je[it])?h.value=T:h.value=[Je]}}function ie(Q){Q.stopPropagation();const{multiple:ye}=e;!ye&&e.filterable&&L(),N(),ye?pe([],[]):pe(null,null)}function fe(Q){!lo(Q,"action")&&!lo(Q,"empty")&&!lo(Q,"header")&&Q.preventDefault()}function Fe(Q){G(Q)}function De(Q){var ye,Ae,qe,Qe,Je;if(!e.keyboard){Q.preventDefault();return}switch(Q.key){case" ":if(e.filterable)break;Q.preventDefault();case"Enter":if(!(!((ye=S.value)===null||ye===void 0)&&ye.isComposing)){if(_.value){const tt=(Ae=x.value)===null||Ae===void 0?void 0:Ae.getPendingTmNode();tt?te(tt):e.filterable||(L(),Me())}else if(ce(),e.tag&&Oe.value){const tt=h.value[0];if(tt){const it=tt[e.valueField],{value:vt}=l;e.multiple&&Array.isArray(vt)&&vt.includes(it)||Ce(tt)}}}Q.preventDefault();break;case"ArrowUp":if(Q.preventDefault(),e.loading)return;_.value&&((qe=x.value)===null||qe===void 0||qe.prev());break;case"ArrowDown":if(Q.preventDefault(),e.loading)return;_.value?(Qe=x.value)===null||Qe===void 0||Qe.next():ce();break;case"Escape":_.value&&(p8(Q),L()),(Je=S.value)===null||Je===void 0||Je.focus();break}}function Me(){var Q;(Q=S.value)===null||Q===void 0||Q.focus()}function Ne(){var Q;(Q=S.value)===null||Q===void 0||Q.focusInput()}function et(){var Q;_.value&&((Q=y.value)===null||Q===void 0||Q.syncPosition())}ne(),ft(Ue(e,"options"),ne);const $e={focus:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.focus()},focusInput:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.focusInput()},blur:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.blur()},blurInput:()=>{var Q;(Q=S.value)===null||Q===void 0||Q.blurInput()}},Xe=I(()=>{const{self:{menuBoxShadow:Q}}=i.value;return{"--n-menu-box-shadow":Q}}),gt=r?Pt("select",void 0,Xe,e):void 0;return Object.assign(Object.assign({},$e),{mergedStatus:ae,mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:b,isMounted:Zr(),triggerRef:S,menuRef:x,pattern:u,uncontrolledShow:C,mergedShow:_,adjustedTo:Ko(e),uncontrolledValue:a,mergedValue:l,followerRef:y,localizedPlaceholder:k,selectedOption:B,selectedOptions:D,mergedSize:K,mergedDisabled:V,focused:c,activeWithoutMenuOpen:Oe,inlineThemeDisabled:r,onTriggerInputFocus:je,onTriggerInputBlur:F,handleTriggerOrMenuResize:et,handleMenuFocus:oe,handleMenuBlur:ve,handleMenuTabOut:ke,handleTriggerClick:A,handleToggle:te,handleDeleteOption:Ce,handlePatternInput:ue,handleClear:ie,handleTriggerBlur:re,handleTriggerFocus:we,handleKeydown:De,handleMenuAfterLeave:be,handleMenuClickOutside:$,handleMenuScroll:Fe,handleMenuKeydown:De,handleMenuMousedown:fe,mergedTheme:i,cssVars:r?void 0:Xe,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){return v("div",{class:`${this.mergedClsPrefix}-select`},v(Vp,null,{default:()=>[v(Wp,null,{default:()=>v(oj,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),v(Kp,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ko.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>v(fn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),dn(v(Y_,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var o,r;return[(r=(o=this.$slots).empty)===null||r===void 0?void 0:r.call(o)]},header:()=>{var o,r;return[(r=(o=this.$slots).header)===null||r===void 0?void 0:r.call(o)]},action:()=>{var o,r;return[(r=(o=this.$slots).action)===null||r===void 0?void 0:r.call(o)]}}),this.displayDirective==="show"?[[Mn,this.mergedShow],[Ea,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ea,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),EV={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function IS(e){const{textColor2:t,primaryColor:n,primaryColorHover:o,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},EV),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:r,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:a})}const RV={name:"Pagination",common:xt,peers:{Select:AS,Input:mm,Popselect:ym},self:IS},OS=RV,AV={name:"Pagination",common:He,peers:{Select:$S,Input:go,Popselect:TS},self(e){const{primaryColor:t,opacity3:n}=e,o=Ie(t,{alpha:Number(n)}),r=IS(e);return r.itemBorderActive=`1px solid ${o}`,r.itemBorderDisabled="1px solid #0000",r}},MS=AV,e1=` + `,[Ga({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),FV=Object.assign(Object.assign({},Le.props),{to:Ko.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),Lu=ye({name:"Select",props:FV,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:r}=st(e),i=Le("Select","-select",zV,DS,e,t),a=j(e.defaultValue),s=Ue(e,"value"),l=rn(s,a),c=j(!1),u=j(""),d=Au(e,["items","options"]),f=j([]),h=j([]),p=M(()=>h.value.concat(f.value).concat(d.value)),g=M(()=>{const{filter:J}=e;if(J)return J;const{labelField:xe,valueField:Ee}=e;return(qe,Qe)=>{if(!Qe)return!1;const Je=Qe[xe];if(typeof Je=="string")return of(qe,Je);const tt=Qe[Ee];return typeof tt=="string"?of(qe,tt):typeof tt=="number"?of(qe,String(tt)):!1}}),m=M(()=>{if(e.remote)return d.value;{const{value:J}=p,{value:xe}=u;return!xe.length||!e.filterable?J:Tj(J,g.value,xe,e.childrenField)}}),b=M(()=>{const{valueField:J,childrenField:xe}=e,Ee=pS(J,xe);return Ai(m.value,Ee)}),w=M(()=>Aj(p.value,e.valueField,e.childrenField)),C=j(!1),_=rn(Ue(e,"show"),C),S=j(null),y=j(null),x=j(null),{localeRef:k}=Ui("Select"),P=M(()=>{var J;return(J=e.placeholder)!==null&&J!==void 0?J:k.value.placeholder}),T=[],$=j(new Map),E=M(()=>{const{fallbackOption:J}=e;if(J===void 0){const{labelField:xe,valueField:Ee}=e;return qe=>({[xe]:String(qe),[Ee]:qe})}return J===!1?!1:xe=>Object.assign(J(xe),{value:xe})});function G(J){const xe=e.remote,{value:Ee}=$,{value:qe}=w,{value:Qe}=E,Je=[];return J.forEach(tt=>{if(qe.has(tt))Je.push(qe.get(tt));else if(xe&&Ee.has(tt))Je.push(Ee.get(tt));else if(Qe){const it=Qe(tt);it&&Je.push(it)}}),Je}const B=M(()=>{if(e.multiple){const{value:J}=l;return Array.isArray(J)?G(J):[]}return null}),D=M(()=>{const{value:J}=l;return!e.multiple&&!Array.isArray(J)?J===null?null:G([J])[0]||null:null}),L=mr(e),{mergedSizeRef:X,mergedDisabledRef:V,mergedStatusRef:ae}=L;function ue(J,xe){const{onChange:Ee,"onUpdate:value":qe,onUpdateValue:Qe}=e,{nTriggerFormChange:Je,nTriggerFormInput:tt}=L;Ee&&Re(Ee,J,xe),Qe&&Re(Qe,J,xe),qe&&Re(qe,J,xe),a.value=J,Je(),tt()}function ee(J){const{onBlur:xe}=e,{nTriggerFormBlur:Ee}=L;xe&&Re(xe,J),Ee()}function R(){const{onClear:J}=e;J&&Re(J)}function A(J){const{onFocus:xe,showOnFocus:Ee}=e,{nTriggerFormFocus:qe}=L;xe&&Re(xe,J),qe(),Ee&&le()}function Y(J){const{onSearch:xe}=e;xe&&Re(xe,J)}function W(J){const{onScroll:xe}=e;xe&&Re(xe,J)}function oe(){var J;const{remote:xe,multiple:Ee}=e;if(xe){const{value:qe}=$;if(Ee){const{valueField:Qe}=e;(J=B.value)===null||J===void 0||J.forEach(Je=>{qe.set(Je[Qe],Je)})}else{const Qe=D.value;Qe&&qe.set(Qe[e.valueField],Qe)}}}function K(J){const{onUpdateShow:xe,"onUpdate:show":Ee}=e;xe&&Re(xe,J),Ee&&Re(Ee,J),C.value=J}function le(){V.value||(K(!0),C.value=!0,e.filterable&&He())}function N(){K(!1)}function be(){u.value="",h.value=T}const Ie=j(!1);function Ne(){e.filterable&&(Ie.value=!0)}function F(){e.filterable&&(Ie.value=!1,_.value||be())}function I(){V.value||(_.value?e.filterable?He():N():le())}function re(J){var xe,Ee;!((Ee=(xe=x.value)===null||xe===void 0?void 0:xe.selfRef)===null||Ee===void 0)&&Ee.contains(J.relatedTarget)||(c.value=!1,ee(J),N())}function _e(J){A(J),c.value=!0}function ne(){c.value=!0}function me(J){var xe;!((xe=S.value)===null||xe===void 0)&&xe.$el.contains(J.relatedTarget)||(c.value=!1,ee(J),N())}function we(){var J;(J=S.value)===null||J===void 0||J.focus(),N()}function O(J){var xe;_.value&&(!((xe=S.value)===null||xe===void 0)&&xe.$el.contains(Oi(J))||N())}function H(J){if(!Array.isArray(J))return[];if(E.value)return Array.from(J);{const{remote:xe}=e,{value:Ee}=w;if(xe){const{value:qe}=$;return J.filter(Qe=>Ee.has(Qe)||qe.has(Qe))}else return J.filter(qe=>Ee.has(qe))}}function te(J){Ce(J.rawNode)}function Ce(J){if(V.value)return;const{tag:xe,remote:Ee,clearFilterAfterSelect:qe,valueField:Qe}=e;if(xe&&!Ee){const{value:Je}=h,tt=Je[0]||null;if(tt){const it=f.value;it.length?it.push(tt):f.value=[tt],h.value=T}}if(Ee&&$.value.set(J[Qe],J),e.multiple){const Je=H(l.value),tt=Je.findIndex(it=>it===J[Qe]);if(~tt){if(Je.splice(tt,1),xe&&!Ee){const it=fe(J[Qe]);~it&&(f.value.splice(it,1),qe&&(u.value=""))}}else Je.push(J[Qe]),qe&&(u.value="");ue(Je,G(Je))}else{if(xe&&!Ee){const Je=fe(J[Qe]);~Je?f.value=[f.value[Je]]:f.value=T}Me(),N(),ue(J[Qe],J)}}function fe(J){return f.value.findIndex(Ee=>Ee[e.valueField]===J)}function de(J){_.value||le();const{value:xe}=J.target;u.value=xe;const{tag:Ee,remote:qe}=e;if(Y(xe),Ee&&!qe){if(!xe){h.value=T;return}const{onCreate:Qe}=e,Je=Qe?Qe(xe):{[e.labelField]:xe,[e.valueField]:xe},{valueField:tt,labelField:it}=e;d.value.some(vt=>vt[tt]===Je[tt]||vt[it]===Je[it])||f.value.some(vt=>vt[tt]===Je[tt]||vt[it]===Je[it])?h.value=T:h.value=[Je]}}function ie(J){J.stopPropagation();const{multiple:xe}=e;!xe&&e.filterable&&N(),R(),xe?ue([],[]):ue(null,null)}function he(J){!lo(J,"action")&&!lo(J,"empty")&&!lo(J,"header")&&J.preventDefault()}function Fe(J){W(J)}function De(J){var xe,Ee,qe,Qe,Je;if(!e.keyboard){J.preventDefault();return}switch(J.key){case" ":if(e.filterable)break;J.preventDefault();case"Enter":if(!(!((xe=S.value)===null||xe===void 0)&&xe.isComposing)){if(_.value){const tt=(Ee=x.value)===null||Ee===void 0?void 0:Ee.getPendingTmNode();tt?te(tt):e.filterable||(N(),Me())}else if(le(),e.tag&&Ie.value){const tt=h.value[0];if(tt){const it=tt[e.valueField],{value:vt}=l;e.multiple&&Array.isArray(vt)&&vt.includes(it)||Ce(tt)}}}J.preventDefault();break;case"ArrowUp":if(J.preventDefault(),e.loading)return;_.value&&((qe=x.value)===null||qe===void 0||qe.prev());break;case"ArrowDown":if(J.preventDefault(),e.loading)return;_.value?(Qe=x.value)===null||Qe===void 0||Qe.next():le();break;case"Escape":_.value&&(_8(J),N()),(Je=S.value)===null||Je===void 0||Je.focus();break}}function Me(){var J;(J=S.value)===null||J===void 0||J.focus()}function He(){var J;(J=S.value)===null||J===void 0||J.focusInput()}function et(){var J;_.value&&((J=y.value)===null||J===void 0||J.syncPosition())}oe(),ut(Ue(e,"options"),oe);const $e={focus:()=>{var J;(J=S.value)===null||J===void 0||J.focus()},focusInput:()=>{var J;(J=S.value)===null||J===void 0||J.focusInput()},blur:()=>{var J;(J=S.value)===null||J===void 0||J.blur()},blurInput:()=>{var J;(J=S.value)===null||J===void 0||J.blurInput()}},Xe=M(()=>{const{self:{menuBoxShadow:J}}=i.value;return{"--n-menu-box-shadow":J}}),gt=r?Pt("select",void 0,Xe,e):void 0;return Object.assign(Object.assign({},$e),{mergedStatus:ae,mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:b,isMounted:ti(),triggerRef:S,menuRef:x,pattern:u,uncontrolledShow:C,mergedShow:_,adjustedTo:Ko(e),uncontrolledValue:a,mergedValue:l,followerRef:y,localizedPlaceholder:P,selectedOption:D,selectedOptions:B,mergedSize:X,mergedDisabled:V,focused:c,activeWithoutMenuOpen:Ie,inlineThemeDisabled:r,onTriggerInputFocus:Ne,onTriggerInputBlur:F,handleTriggerOrMenuResize:et,handleMenuFocus:ne,handleMenuBlur:me,handleMenuTabOut:we,handleTriggerClick:I,handleToggle:te,handleDeleteOption:Ce,handlePatternInput:de,handleClear:ie,handleTriggerBlur:re,handleTriggerFocus:_e,handleKeydown:De,handleMenuAfterLeave:be,handleMenuClickOutside:O,handleMenuScroll:Fe,handleMenuKeydown:De,handleMenuMousedown:he,mergedTheme:i,cssVars:r?void 0:Xe,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){return v("div",{class:`${this.mergedClsPrefix}-select`},v(Qp,null,{default:()=>[v(Jp,null,{default:()=>v(fj,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),v(em,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ko.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>v(fn,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),dn(v(oS,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var o,r;return[(r=(o=this.$slots).empty)===null||r===void 0?void 0:r.call(o)]},header:()=>{var o,r;return[(r=(o=this.$slots).header)===null||r===void 0?void 0:r.call(o)]},action:()=>{var o,r;return[(r=(o=this.$slots).action)===null||r===void 0?void 0:r.call(o)]}}),this.displayDirective==="show"?[[Mn,this.mergedShow],[Ea,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Ea,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),DV={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function BS(e){const{textColor2:t,primaryColor:n,primaryColorHover:o,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},DV),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:r,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:a})}const LV={name:"Pagination",common:xt,peers:{Select:DS,Input:wm,Popselect:Pm},self:BS},NS=LV,BV={name:"Pagination",common:je,peers:{Select:LS,Input:go,Popselect:MS},self(e){const{primaryColor:t,opacity3:n}=e,o=Oe(t,{alpha:Number(n)}),r=BS(e);return r.itemBorderActive=`1px solid ${o}`,r.itemBorderDisabled="1px solid #0000",r}},HS=BV,s1=` background: var(--n-item-color-hover); color: var(--n-item-text-color-hover); border: var(--n-item-border-hover); -`,t1=[J("button",` +`,l1=[Z("button",` background: var(--n-button-color-hover); border: var(--n-button-border-hover); color: var(--n-button-icon-color-hover); - `)],$V=z("pagination",` + `)],NV=z("pagination",` display: flex; vertical-align: middle; font-size: var(--n-item-font-size); @@ -1733,11 +1733,11 @@ ${t} display: flex; align-items: center; margin: var(--n-suffix-margin); - `),W("> *:not(:first-child)",` + `),q("> *:not(:first-child)",` margin: var(--n-item-margin); `),z("select",` width: var(--n-select-width); - `),W("&.transition-disabled",[z("pagination-item","transition: none!important;")]),z("pagination-quick-jumper",` + `),q("&.transition-disabled",[z("pagination-item","transition: none!important;")]),z("pagination-quick-jumper",` white-space: nowrap; display: flex; color: var(--n-jumper-text-color); @@ -1769,54 +1769,54 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), fill .3s var(--n-bezier); - `,[J("button",` + `,[Z("button",` background: var(--n-button-color); color: var(--n-button-icon-color); border: var(--n-button-border); padding: 0; `,[z("base-icon",` font-size: var(--n-button-icon-size); - `)]),Et("disabled",[J("hover",e1,t1),W("&:hover",e1,t1),W("&:active",` + `)]),At("disabled",[Z("hover",s1,l1),q("&:hover",s1,l1),q("&:active",` background: var(--n-item-color-pressed); color: var(--n-item-text-color-pressed); border: var(--n-item-border-pressed); - `,[J("button",` + `,[Z("button",` background: var(--n-button-color-pressed); border: var(--n-button-border-pressed); color: var(--n-button-icon-color-pressed); - `)]),J("active",` + `)]),Z("active",` background: var(--n-item-color-active); color: var(--n-item-text-color-active); border: var(--n-item-border-active); - `,[W("&:hover",` + `,[q("&:hover",` background: var(--n-item-color-active-hover); - `)])]),J("disabled",` + `)])]),Z("disabled",` cursor: not-allowed; color: var(--n-item-text-color-disabled); - `,[J("active, button",` + `,[Z("active, button",` background-color: var(--n-item-color-disabled); border: var(--n-item-border-disabled); - `)])]),J("disabled",` + `)])]),Z("disabled",` cursor: not-allowed; `,[z("pagination-quick-jumper",` color: var(--n-jumper-text-color-disabled); - `)]),J("simple",` + `)]),Z("simple",` display: flex; align-items: center; flex-wrap: nowrap; `,[z("pagination-quick-jumper",[z("input",` margin: 0; - `)])])]);function zS(e){var t;if(!e)return 10;const{defaultPageSize:n}=e;if(n!==void 0)return n;const o=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof o=="number"?o:(o==null?void 0:o.value)||10}function IV(e,t,n,o){let r=!1,i=!1,a=1,s=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,c=t;let u=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),c-2),u-=Math.floor(f),u=Math.max(Math.min(u,c-n+3),l+2);let h=!1,p=!1;u>l+2&&(h=!0),d=l+1&&g.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let m=u;m<=d;++m)g.push({type:"page",label:m,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===m});return p?(i=!0,s=d+1,g.push({type:"fast-forward",active:!1,label:void 0,options:o?n1(d+1,c-1):null})):d===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:s,items:g}}function n1(e,t){const n=[];for(let o=e;o<=t;++o)n.push({label:`${o}`,value:o});return n}const OV=Object.assign(Object.assign({},Le.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ko.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),MV=xe({name:"Pagination",props:OV,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Pagination","-pagination",$V,OS,e,n),{localeRef:a}=Hi("Pagination"),s=U(null),l=U(e.defaultPage),c=U(zS(e)),u=rn(Ue(e,"page"),l),d=rn(Ue(e,"pageSize"),c),f=I(()=>{const{itemCount:L}=e;if(L!==void 0)return Math.max(1,Math.ceil(L/d.value));const{pageCount:be}=e;return be!==void 0?Math.max(be,1):1}),h=U("");Yt(()=>{e.simple,h.value=String(u.value)});const p=U(!1),g=U(!1),m=U(!1),b=U(!1),w=()=>{e.disabled||(p.value=!0,B())},C=()=>{e.disabled||(p.value=!1,B())},_=()=>{g.value=!0,B()},S=()=>{g.value=!1,B()},y=L=>{M(L)},x=I(()=>IV(u.value,f.value,e.pageSlot,e.showQuickJumpDropdown));Yt(()=>{x.value.hasFastBackward?x.value.hasFastForward||(p.value=!1,m.value=!1):(g.value=!1,b.value=!1)});const P=I(()=>{const L=a.value.selectionSuffix;return e.pageSizes.map(be=>typeof be=="number"?{label:`${be} / ${L}`,value:be}:be)}),k=I(()=>{var L,be;return((be=(L=t==null?void 0:t.value)===null||L===void 0?void 0:L.Pagination)===null||be===void 0?void 0:be.inputSize)||gb(e.size)}),T=I(()=>{var L,be;return((be=(L=t==null?void 0:t.value)===null||L===void 0?void 0:L.Pagination)===null||be===void 0?void 0:be.selectSize)||gb(e.size)}),R=I(()=>(u.value-1)*d.value),E=I(()=>{const L=u.value*d.value-1,{itemCount:be}=e;return be!==void 0&&L>be-1?be-1:L}),q=I(()=>{const{itemCount:L}=e;return L!==void 0?L:(e.pageCount||1)*d.value}),D=pn("Pagination",r,n);function B(){Ht(()=>{var L;const{value:be}=s;be&&(be.classList.add("transition-disabled"),(L=s.value)===null||L===void 0||L.offsetWidth,be.classList.remove("transition-disabled"))})}function M(L){if(L===u.value)return;const{"onUpdate:page":be,onUpdatePage:Oe,onChange:je,simple:F}=e;be&&Re(be,L),Oe&&Re(Oe,L),je&&Re(je,L),l.value=L,F&&(h.value=String(L))}function K(L){if(L===d.value)return;const{"onUpdate:pageSize":be,onUpdatePageSize:Oe,onPageSizeChange:je}=e;be&&Re(be,L),Oe&&Re(Oe,L),je&&Re(je,L),c.value=L,f.value{u.value,d.value,B()});const X=I(()=>{const{size:L}=e,{self:{buttonBorder:be,buttonBorderHover:Oe,buttonBorderPressed:je,buttonIconColor:F,buttonIconColorHover:A,buttonIconColorPressed:re,itemTextColor:we,itemTextColorHover:oe,itemTextColorPressed:ve,itemTextColorActive:ke,itemTextColorDisabled:$,itemColor:H,itemColorHover:te,itemColorPressed:Ce,itemColorActive:de,itemColorActiveHover:ue,itemColorDisabled:ie,itemBorder:fe,itemBorderHover:Fe,itemBorderPressed:De,itemBorderActive:Me,itemBorderDisabled:Ne,itemBorderRadius:et,jumperTextColor:$e,jumperTextColorDisabled:Xe,buttonColor:gt,buttonColorHover:Q,buttonColorPressed:ye,[Te("itemPadding",L)]:Ae,[Te("itemMargin",L)]:qe,[Te("inputWidth",L)]:Qe,[Te("selectWidth",L)]:Je,[Te("inputMargin",L)]:tt,[Te("selectMargin",L)]:it,[Te("jumperFontSize",L)]:vt,[Te("prefixMargin",L)]:an,[Te("suffixMargin",L)]:Ft,[Te("itemSize",L)]:_e,[Te("buttonIconSize",L)]:Be,[Te("itemFontSize",L)]:Ze,[`${Te("itemMargin",L)}Rtl`]:ht,[`${Te("inputMargin",L)}Rtl`]:bt},common:{cubicBezierEaseInOut:ut}}=i.value;return{"--n-prefix-margin":an,"--n-suffix-margin":Ft,"--n-item-font-size":Ze,"--n-select-width":Je,"--n-select-margin":it,"--n-input-width":Qe,"--n-input-margin":tt,"--n-input-margin-rtl":bt,"--n-item-size":_e,"--n-item-text-color":we,"--n-item-text-color-disabled":$,"--n-item-text-color-hover":oe,"--n-item-text-color-active":ke,"--n-item-text-color-pressed":ve,"--n-item-color":H,"--n-item-color-hover":te,"--n-item-color-disabled":ie,"--n-item-color-active":de,"--n-item-color-active-hover":ue,"--n-item-color-pressed":Ce,"--n-item-border":fe,"--n-item-border-hover":Fe,"--n-item-border-disabled":Ne,"--n-item-border-active":Me,"--n-item-border-pressed":De,"--n-item-padding":Ae,"--n-item-border-radius":et,"--n-bezier":ut,"--n-jumper-font-size":vt,"--n-jumper-text-color":$e,"--n-jumper-text-color-disabled":Xe,"--n-item-margin":qe,"--n-item-margin-rtl":ht,"--n-button-icon-size":Be,"--n-button-icon-color":F,"--n-button-icon-color-hover":A,"--n-button-icon-color-pressed":re,"--n-button-color-hover":Q,"--n-button-color":gt,"--n-button-color-pressed":ye,"--n-button-border":be,"--n-button-border-hover":Oe,"--n-button-border-pressed":je}}),ce=o?Pt("pagination",I(()=>{let L="";const{size:be}=e;return L+=be[0],L}),X,e):void 0;return{rtlEnabled:D,mergedClsPrefix:n,locale:a,selfRef:s,mergedPage:u,pageItems:I(()=>x.value.items),mergedItemCount:q,jumperValue:h,pageSizeOptions:P,mergedPageSize:d,inputSize:k,selectSize:T,mergedTheme:i,mergedPageCount:f,startIndex:R,endIndex:E,showFastForwardMenu:m,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:y,handleFastForwardMouseenter:w,handleFastForwardMouseleave:C,handleFastBackwardMouseenter:_,handleFastBackwardMouseleave:S,handleJumperInput:ne,handleBackwardClick:ae,handleForwardClick:V,handlePageItemClick:G,handleSizePickerChange:N,handleQuickJumperChange:ee,cssVars:o?void 0:X,themeClass:ce==null?void 0:ce.themeClass,onRender:ce==null?void 0:ce.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:o,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:s,showQuickJumper:l,mergedTheme:c,locale:u,inputSize:d,selectSize:f,mergedPageSize:h,pageSizeOptions:p,jumperValue:g,simple:m,prev:b,next:w,prefix:C,suffix:_,label:S,goto:y,handleJumperInput:x,handleSizePickerChange:P,handleBackwardClick:k,handlePageItemClick:T,handleForwardClick:R,handleQuickJumperChange:E,onRender:q}=this;q==null||q();const D=e.prefix||C,B=e.suffix||_,M=b||e.prev,K=w||e.next,V=S||e.label;return v("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:o},D?v("div",{class:`${t}-pagination-prefix`},D({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ae=>{switch(ae){case"pages":return v(rt,null,v("div",{class:[`${t}-pagination-item`,!M&&`${t}-pagination-item--button`,(r<=1||r>i||n)&&`${t}-pagination-item--disabled`],onClick:k},M?M({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(D0,null):v(M0,null)})),m?v(rt,null,v("div",{class:`${t}-pagination-quick-jumper`},v(dr,{value:g,onUpdateValue:x,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:E}))," /"," ",i):a.map((pe,Z)=>{let N,O,ee;const{type:G}=pe;switch(G){case"page":const X=pe.label;V?N=V({type:"page",node:X,active:pe.active}):N=X;break;case"fast-forward":const ce=this.fastForwardActive?v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(z0,null):v(F0,null)}):v(Wt,{clsPrefix:t},{default:()=>v(L0,null)});V?N=V({type:"fast-forward",node:ce,active:this.fastForwardActive||this.showFastForwardMenu}):N=ce,O=this.handleFastForwardMouseenter,ee=this.handleFastForwardMouseleave;break;case"fast-backward":const L=this.fastBackwardActive?v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(F0,null):v(z0,null)}):v(Wt,{clsPrefix:t},{default:()=>v(L0,null)});V?N=V({type:"fast-backward",node:L,active:this.fastBackwardActive||this.showFastBackwardMenu}):N=L,O=this.handleFastBackwardMouseenter,ee=this.handleFastBackwardMouseleave;break}const ne=v("div",{key:Z,class:[`${t}-pagination-item`,pe.active&&`${t}-pagination-item--active`,G!=="page"&&(G==="fast-backward"&&this.showFastBackwardMenu||G==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,G==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{T(pe)},onMouseenter:O,onMouseleave:ee},N);if(G==="page"&&!pe.mayBeFastBackward&&!pe.mayBeFastForward)return ne;{const X=pe.type==="page"?pe.mayBeFastBackward?"fast-backward":"fast-forward":pe.type;return pe.type!=="page"&&!pe.options?ne:v(Cm,{to:this.to,key:X,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:G==="page"?!1:G==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:ce=>{G!=="page"&&(ce?G==="fast-backward"?this.showFastBackwardMenu=ce:this.showFastForwardMenu=ce:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:pe.type!=="page"&&pe.options?pe.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>ne})}}),v("div",{class:[`${t}-pagination-item`,!K&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||n}],onClick:R},K?K({page:r,pageSize:h,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(M0,null):v(D0,null)})));case"size-picker":return!m&&s?v(Ou,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:p,value:h,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:P})):null;case"quick-jumper":return!m&&l?v("div",{class:`${t}-pagination-quick-jumper`},y?y():$n(this.$slots.goto,()=>[u.goto]),v(dr,{value:g,onUpdateValue:x,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:E})):null;default:return null}}),B?v("div",{class:`${t}-pagination-suffix`},B({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),FS={padding:"8px 14px"},zV={name:"Tooltip",common:He,peers:{Popover:Xi},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r}=e;return Object.assign(Object.assign({},FS),{borderRadius:t,boxShadow:n,color:o,textColor:r})}},Mu=zV;function FV(e){const{borderRadius:t,boxShadow2:n,baseColor:o}=e;return Object.assign(Object.assign({},FS),{borderRadius:t,boxShadow:n,color:Ke(o,"rgba(0, 0, 0, .85)"),textColor:o})}const DV={name:"Tooltip",common:xt,peers:{Popover:qa},self:FV},wm=DV,LV={name:"Ellipsis",common:He,peers:{Tooltip:Mu}},DS=LV,BV={name:"Ellipsis",common:xt,peers:{Tooltip:wm}},LS=BV,BS={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},NV={name:"Radio",common:He,self(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},BS),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},NS=NV;function HV(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},BS),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Ie(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const jV={name:"Radio",common:xt,self:HV},_m=jV,UV={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function HS(e){const{primaryColor:t,textColor2:n,dividerColor:o,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:m,opacityDisabled:b}=e;return Object.assign(Object.assign({},UV),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:n,prefixColor:n,optionColorHover:r,optionColorActive:Ie(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const VV={name:"Dropdown",common:xt,peers:{Popover:qa},self:HS},Sm=VV,WV={name:"Dropdown",common:He,peers:{Popover:Xi},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:o}=e,r=HS(e);return r.colorInverted=o,r.optionColorActive=Ie(n,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},km=WV,qV={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function jS(e){const{cardColor:t,modalColor:n,popoverColor:o,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:m,heightSmall:b,opacityDisabled:w,tableColorStriped:C}=e;return Object.assign(Object.assign({},qV),{actionDividerColor:m,lineHeight:f,borderRadius:d,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ke(t,m),tdColorHover:Ke(t,s),tdColorSorting:Ke(t,s),tdColorStriped:Ke(t,C),thColor:Ke(t,a),thColorHover:Ke(Ke(t,a),s),thColorSorting:Ke(Ke(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:u,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:Ke(n,m),tdColorHoverModal:Ke(n,s),tdColorSortingModal:Ke(n,s),tdColorStripedModal:Ke(n,C),thColorModal:Ke(n,a),thColorHoverModal:Ke(Ke(n,a),s),thColorSortingModal:Ke(Ke(n,a),s),tdColorModal:n,borderColorPopover:Ke(o,m),tdColorHoverPopover:Ke(o,s),tdColorSortingPopover:Ke(o,s),tdColorStripedPopover:Ke(o,C),thColorPopover:Ke(o,a),thColorHoverPopover:Ke(Ke(o,a),s),thColorSortingPopover:Ke(Ke(o,a),s),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:b,opacityLoading:w})}const KV={name:"DataTable",common:xt,peers:{Button:Iu,Checkbox:_S,Radio:_m,Pagination:OS,Scrollbar:Gi,Empty:$u,Popover:qa,Ellipsis:LS,Dropdown:Sm},self:jS},GV=KV,XV={name:"DataTable",common:He,peers:{Button:Vn,Checkbox:Ka,Radio:NS,Pagination:MS,Scrollbar:Un,Empty:Ki,Popover:Xi,Ellipsis:DS,Dropdown:km},self(e){const t=jS(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},YV=XV,QV=Object.assign(Object.assign({},Aa),Le.props),zu=xe({name:"Tooltip",props:QV,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=st(e),n=Le("Tooltip","-tooltip",void 0,wm,e,t),o=U(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:n,popoverThemeOverrides:I(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return v(hl,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),US=z("ellipsis",{overflow:"hidden"},[Et("line-clamp",` + `)])])]);function jS(e){var t;if(!e)return 10;const{defaultPageSize:n}=e;if(n!==void 0)return n;const o=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof o=="number"?o:(o==null?void 0:o.value)||10}function HV(e,t,n,o){let r=!1,i=!1,a=1,s=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,c=t;let u=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),c-2),u-=Math.floor(f),u=Math.max(Math.min(u,c-n+3),l+2);let h=!1,p=!1;u>l+2&&(h=!0),d=l+1&&g.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let m=u;m<=d;++m)g.push({type:"page",label:m,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===m});return p?(i=!0,s=d+1,g.push({type:"fast-forward",active:!1,label:void 0,options:o?c1(d+1,c-1):null})):d===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:a,fastForwardTo:s,items:g}}function c1(e,t){const n=[];for(let o=e;o<=t;++o)n.push({label:`${o}`,value:o});return n}const jV=Object.assign(Object.assign({},Le.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ko.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),UV=ye({name:"Pagination",props:jV,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=Le("Pagination","-pagination",NV,NS,e,n),{localeRef:a}=Ui("Pagination"),s=j(null),l=j(e.defaultPage),c=j(jS(e)),u=rn(Ue(e,"page"),l),d=rn(Ue(e,"pageSize"),c),f=M(()=>{const{itemCount:N}=e;if(N!==void 0)return Math.max(1,Math.ceil(N/d.value));const{pageCount:be}=e;return be!==void 0?Math.max(be,1):1}),h=j("");Yt(()=>{e.simple,h.value=String(u.value)});const p=j(!1),g=j(!1),m=j(!1),b=j(!1),w=()=>{e.disabled||(p.value=!0,D())},C=()=>{e.disabled||(p.value=!1,D())},_=()=>{g.value=!0,D()},S=()=>{g.value=!1,D()},y=N=>{L(N)},x=M(()=>HV(u.value,f.value,e.pageSlot,e.showQuickJumpDropdown));Yt(()=>{x.value.hasFastBackward?x.value.hasFastForward||(p.value=!1,m.value=!1):(g.value=!1,b.value=!1)});const k=M(()=>{const N=a.value.selectionSuffix;return e.pageSizes.map(be=>typeof be=="number"?{label:`${be} / ${N}`,value:be}:be)}),P=M(()=>{var N,be;return((be=(N=t==null?void 0:t.value)===null||N===void 0?void 0:N.Pagination)===null||be===void 0?void 0:be.inputSize)||_b(e.size)}),T=M(()=>{var N,be;return((be=(N=t==null?void 0:t.value)===null||N===void 0?void 0:N.Pagination)===null||be===void 0?void 0:be.selectSize)||_b(e.size)}),$=M(()=>(u.value-1)*d.value),E=M(()=>{const N=u.value*d.value-1,{itemCount:be}=e;return be!==void 0&&N>be-1?be-1:N}),G=M(()=>{const{itemCount:N}=e;return N!==void 0?N:(e.pageCount||1)*d.value}),B=pn("Pagination",r,n);function D(){Ht(()=>{var N;const{value:be}=s;be&&(be.classList.add("transition-disabled"),(N=s.value)===null||N===void 0||N.offsetWidth,be.classList.remove("transition-disabled"))})}function L(N){if(N===u.value)return;const{"onUpdate:page":be,onUpdatePage:Ie,onChange:Ne,simple:F}=e;be&&Re(be,N),Ie&&Re(Ie,N),Ne&&Re(Ne,N),l.value=N,F&&(h.value=String(N))}function X(N){if(N===d.value)return;const{"onUpdate:pageSize":be,onUpdatePageSize:Ie,onPageSizeChange:Ne}=e;be&&Re(be,N),Ie&&Re(Ie,N),Ne&&Re(Ne,N),c.value=N,f.value{u.value,d.value,D()});const K=M(()=>{const{size:N}=e,{self:{buttonBorder:be,buttonBorderHover:Ie,buttonBorderPressed:Ne,buttonIconColor:F,buttonIconColorHover:I,buttonIconColorPressed:re,itemTextColor:_e,itemTextColorHover:ne,itemTextColorPressed:me,itemTextColorActive:we,itemTextColorDisabled:O,itemColor:H,itemColorHover:te,itemColorPressed:Ce,itemColorActive:fe,itemColorActiveHover:de,itemColorDisabled:ie,itemBorder:he,itemBorderHover:Fe,itemBorderPressed:De,itemBorderActive:Me,itemBorderDisabled:He,itemBorderRadius:et,jumperTextColor:$e,jumperTextColorDisabled:Xe,buttonColor:gt,buttonColorHover:J,buttonColorPressed:xe,[Te("itemPadding",N)]:Ee,[Te("itemMargin",N)]:qe,[Te("inputWidth",N)]:Qe,[Te("selectWidth",N)]:Je,[Te("inputMargin",N)]:tt,[Te("selectMargin",N)]:it,[Te("jumperFontSize",N)]:vt,[Te("prefixMargin",N)]:an,[Te("suffixMargin",N)]:Ft,[Te("itemSize",N)]:Se,[Te("buttonIconSize",N)]:Be,[Te("itemFontSize",N)]:Ze,[`${Te("itemMargin",N)}Rtl`]:ht,[`${Te("inputMargin",N)}Rtl`]:bt},common:{cubicBezierEaseInOut:dt}}=i.value;return{"--n-prefix-margin":an,"--n-suffix-margin":Ft,"--n-item-font-size":Ze,"--n-select-width":Je,"--n-select-margin":it,"--n-input-width":Qe,"--n-input-margin":tt,"--n-input-margin-rtl":bt,"--n-item-size":Se,"--n-item-text-color":_e,"--n-item-text-color-disabled":O,"--n-item-text-color-hover":ne,"--n-item-text-color-active":we,"--n-item-text-color-pressed":me,"--n-item-color":H,"--n-item-color-hover":te,"--n-item-color-disabled":ie,"--n-item-color-active":fe,"--n-item-color-active-hover":de,"--n-item-color-pressed":Ce,"--n-item-border":he,"--n-item-border-hover":Fe,"--n-item-border-disabled":He,"--n-item-border-active":Me,"--n-item-border-pressed":De,"--n-item-padding":Ee,"--n-item-border-radius":et,"--n-bezier":dt,"--n-jumper-font-size":vt,"--n-jumper-text-color":$e,"--n-jumper-text-color-disabled":Xe,"--n-item-margin":qe,"--n-item-margin-rtl":ht,"--n-button-icon-size":Be,"--n-button-icon-color":F,"--n-button-icon-color-hover":I,"--n-button-icon-color-pressed":re,"--n-button-color-hover":J,"--n-button-color":gt,"--n-button-color-pressed":xe,"--n-button-border":be,"--n-button-border-hover":Ie,"--n-button-border-pressed":Ne}}),le=o?Pt("pagination",M(()=>{let N="";const{size:be}=e;return N+=be[0],N}),K,e):void 0;return{rtlEnabled:B,mergedClsPrefix:n,locale:a,selfRef:s,mergedPage:u,pageItems:M(()=>x.value.items),mergedItemCount:G,jumperValue:h,pageSizeOptions:k,mergedPageSize:d,inputSize:P,selectSize:T,mergedTheme:i,mergedPageCount:f,startIndex:$,endIndex:E,showFastForwardMenu:m,showFastBackwardMenu:b,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:y,handleFastForwardMouseenter:w,handleFastForwardMouseleave:C,handleFastBackwardMouseenter:_,handleFastBackwardMouseleave:S,handleJumperInput:oe,handleBackwardClick:ae,handleForwardClick:V,handlePageItemClick:W,handleSizePickerChange:R,handleQuickJumperChange:Y,cssVars:o?void 0:K,themeClass:le==null?void 0:le.themeClass,onRender:le==null?void 0:le.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:o,mergedPage:r,mergedPageCount:i,pageItems:a,showSizePicker:s,showQuickJumper:l,mergedTheme:c,locale:u,inputSize:d,selectSize:f,mergedPageSize:h,pageSizeOptions:p,jumperValue:g,simple:m,prev:b,next:w,prefix:C,suffix:_,label:S,goto:y,handleJumperInput:x,handleSizePickerChange:k,handleBackwardClick:P,handlePageItemClick:T,handleForwardClick:$,handleQuickJumperChange:E,onRender:G}=this;G==null||G();const B=e.prefix||C,D=e.suffix||_,L=b||e.prev,X=w||e.next,V=S||e.label;return v("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:o},B?v("div",{class:`${t}-pagination-prefix`},B({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ae=>{switch(ae){case"pages":return v(rt,null,v("div",{class:[`${t}-pagination-item`,!L&&`${t}-pagination-item--button`,(r<=1||r>i||n)&&`${t}-pagination-item--disabled`],onClick:P},L?L({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(V0,null):v(H0,null)})),m?v(rt,null,v("div",{class:`${t}-pagination-quick-jumper`},v(dr,{value:g,onUpdateValue:x,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:E}))," /"," ",i):a.map((ue,ee)=>{let R,A,Y;const{type:W}=ue;switch(W){case"page":const K=ue.label;V?R=V({type:"page",node:K,active:ue.active}):R=K;break;case"fast-forward":const le=this.fastForwardActive?v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(j0,null):v(U0,null)}):v(Wt,{clsPrefix:t},{default:()=>v(W0,null)});V?R=V({type:"fast-forward",node:le,active:this.fastForwardActive||this.showFastForwardMenu}):R=le,A=this.handleFastForwardMouseenter,Y=this.handleFastForwardMouseleave;break;case"fast-backward":const N=this.fastBackwardActive?v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(U0,null):v(j0,null)}):v(Wt,{clsPrefix:t},{default:()=>v(W0,null)});V?R=V({type:"fast-backward",node:N,active:this.fastBackwardActive||this.showFastBackwardMenu}):R=N,A=this.handleFastBackwardMouseenter,Y=this.handleFastBackwardMouseleave;break}const oe=v("div",{key:ee,class:[`${t}-pagination-item`,ue.active&&`${t}-pagination-item--active`,W!=="page"&&(W==="fast-backward"&&this.showFastBackwardMenu||W==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,W==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{T(ue)},onMouseenter:A,onMouseleave:Y},R);if(W==="page"&&!ue.mayBeFastBackward&&!ue.mayBeFastForward)return oe;{const K=ue.type==="page"?ue.mayBeFastBackward?"fast-backward":"fast-forward":ue.type;return ue.type!=="page"&&!ue.options?oe:v(Am,{to:this.to,key:K,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:W==="page"?!1:W==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:le=>{W!=="page"&&(le?W==="fast-backward"?this.showFastBackwardMenu=le:this.showFastForwardMenu=le:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ue.type!=="page"&&ue.options?ue.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>oe})}}),v("div",{class:[`${t}-pagination-item`,!X&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||n}],onClick:$},X?X({page:r,pageSize:h,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):v(Wt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(H0,null):v(V0,null)})));case"size-picker":return!m&&s?v(Lu,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:p,value:h,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:k})):null;case"quick-jumper":return!m&&l?v("div",{class:`${t}-pagination-quick-jumper`},y?y():$n(this.$slots.goto,()=>[u.goto]),v(dr,{value:g,onUpdateValue:x,size:d,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:E})):null;default:return null}}),D?v("div",{class:`${t}-pagination-suffix`},D({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),US={padding:"8px 14px"},VV={name:"Tooltip",common:je,peers:{Popover:Qi},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r}=e;return Object.assign(Object.assign({},US),{borderRadius:t,boxShadow:n,color:o,textColor:r})}},Bu=VV;function WV(e){const{borderRadius:t,boxShadow2:n,baseColor:o}=e;return Object.assign(Object.assign({},US),{borderRadius:t,boxShadow:n,color:Ke(o,"rgba(0, 0, 0, .85)"),textColor:o})}const qV={name:"Tooltip",common:xt,peers:{Popover:Xa},self:WV},Rm=qV,KV={name:"Ellipsis",common:je,peers:{Tooltip:Bu}},VS=KV,GV={name:"Ellipsis",common:xt,peers:{Tooltip:Rm}},WS=GV,qS={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},XV={name:"Radio",common:je,self(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},qS),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},KS=XV;function YV(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},qS),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Oe(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}const QV={name:"Radio",common:xt,self:YV},Em=QV,JV={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function GS(e){const{primaryColor:t,textColor2:n,dividerColor:o,hoverColor:r,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:m,opacityDisabled:b}=e;return Object.assign(Object.assign({},JV),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:n,prefixColor:n,optionColorHover:r,optionColorActive:Oe(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const ZV={name:"Dropdown",common:xt,peers:{Popover:Xa},self:GS},$m=ZV,eW={name:"Dropdown",common:je,peers:{Popover:Qi},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:o}=e,r=GS(e);return r.colorInverted=o,r.optionColorActive=Oe(n,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}},Im=eW,tW={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function XS(e){const{cardColor:t,modalColor:n,popoverColor:o,textColor2:r,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:m,heightSmall:b,opacityDisabled:w,tableColorStriped:C}=e;return Object.assign(Object.assign({},tW),{actionDividerColor:m,lineHeight:f,borderRadius:d,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ke(t,m),tdColorHover:Ke(t,s),tdColorSorting:Ke(t,s),tdColorStriped:Ke(t,C),thColor:Ke(t,a),thColorHover:Ke(Ke(t,a),s),thColorSorting:Ke(Ke(t,a),s),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:u,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:Ke(n,m),tdColorHoverModal:Ke(n,s),tdColorSortingModal:Ke(n,s),tdColorStripedModal:Ke(n,C),thColorModal:Ke(n,a),thColorHoverModal:Ke(Ke(n,a),s),thColorSortingModal:Ke(Ke(n,a),s),tdColorModal:n,borderColorPopover:Ke(o,m),tdColorHoverPopover:Ke(o,s),tdColorSortingPopover:Ke(o,s),tdColorStripedPopover:Ke(o,C),thColorPopover:Ke(o,a),thColorHoverPopover:Ke(Ke(o,a),s),thColorSortingPopover:Ke(Ke(o,a),s),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:b,opacityLoading:w})}const nW={name:"DataTable",common:xt,peers:{Button:Du,Checkbox:ES,Radio:Em,Pagination:NS,Scrollbar:Yi,Empty:Fu,Popover:Xa,Ellipsis:WS,Dropdown:$m},self:XS},oW=nW,rW={name:"DataTable",common:je,peers:{Button:Vn,Checkbox:Ya,Radio:KS,Pagination:HS,Scrollbar:Un,Empty:Xi,Popover:Qi,Ellipsis:VS,Dropdown:Im},self(e){const t=XS(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},iW=rW,aW=Object.assign(Object.assign({},Ia),Le.props),Nu=ye({name:"Tooltip",props:aW,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=st(e),n=Le("Tooltip","-tooltip",void 0,Rm,e,t),o=j(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:n,popoverThemeOverrides:M(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return v(gl,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),YS=z("ellipsis",{overflow:"hidden"},[At("line-clamp",` white-space: nowrap; display: inline-block; vertical-align: bottom; max-width: 100%; - `),J("line-clamp",` + `),Z("line-clamp",` display: -webkit-inline-box; -webkit-box-orient: vertical; - `),J("cursor-pointer",` + `),Z("cursor-pointer",` cursor: pointer; - `)]);function Fh(e){return`${e}-ellipsis--line-clamp`}function Dh(e,t){return`${e}-ellipsis--cursor-${t}`}const VS=Object.assign(Object.assign({},Le.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Pm=xe({name:"Ellipsis",inheritAttrs:!1,props:VS,setup(e,{slots:t,attrs:n}){const o=z_(),r=Le("Ellipsis","-ellipsis",US,LS,e,o),i=U(null),a=U(null),s=U(null),l=U(!1),c=I(()=>{const{lineClamp:m}=e,{value:b}=l;return m!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":m}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function u(){let m=!1;const{value:b}=l;if(b)return!0;const{value:w}=i;if(w){const{lineClamp:C}=e;if(h(w),C!==void 0)m=w.scrollHeight<=w.offsetHeight;else{const{value:_}=a;_&&(m=_.getBoundingClientRect().width<=w.getBoundingClientRect().width)}p(w,m)}return m}const d=I(()=>e.expandTrigger==="click"?()=>{var m;const{value:b}=l;b&&((m=s.value)===null||m===void 0||m.setShow(!1)),l.value=!b}:void 0);Xc(()=>{var m;e.tooltip&&((m=s.value)===null||m===void 0||m.setShow(!1))});const f=()=>v("span",Object.assign({},Ln(n,{class:[`${o.value}-ellipsis`,e.lineClamp!==void 0?Fh(o.value):void 0,e.expandTrigger==="click"?Dh(o.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:v("span",{ref:"triggerInnerRef"},t));function h(m){if(!m)return;const b=c.value,w=Fh(o.value);e.lineClamp!==void 0?g(m,w,"add"):g(m,w,"remove");for(const C in b)m.style[C]!==b[C]&&(m.style[C]=b[C])}function p(m,b){const w=Dh(o.value,"pointer");e.expandTrigger==="click"&&!b?g(m,w,"add"):g(m,w,"remove")}function g(m,b,w){w==="add"?m.classList.contains(b)||m.classList.add(b):m.classList.contains(b)&&m.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:s,handleClick:d,renderTrigger:f,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:o}=this;if(t){const{mergedTheme:r}=this;return v(zu,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:n,default:(e=o.tooltip)!==null&&e!==void 0?e:o.default})}else return n()}}),JV=xe({name:"PerformantEllipsis",props:VS,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){const o=U(!1),r=z_();return ei("-ellipsis",US,r),{mouseEntered:o,renderTrigger:()=>{const{lineClamp:a}=e,s=r.value;return v("span",Object.assign({},Ln(t,{class:[`${s}-ellipsis`,a!==void 0?Fh(s):void 0,e.expandTrigger==="click"?Dh(s,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{o.value=!0}}),a?n:v("span",null,n))}}},render(){return this.mouseEntered?v(Pm,Ln({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),ZV=Object.assign(Object.assign({},Le.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Mo="n-data-table",eW=xe({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),tW=xe({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=st(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=Ve(Mo),r=I(()=>n.value.find(l=>l.columnKey===e.column.key)),i=I(()=>r.value!==void 0),a=I(()=>{const{value:l}=r;return l&&i.value?l.order:!1}),s=I(()=>{var l,c;return((c=(l=t==null?void 0:t.value)===null||l===void 0?void 0:l.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:o,active:i,mergedSortOrder:a,mergedRenderSorter:s}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:o}=this.column;return e?v(eW,{render:e,order:t}):v("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},o?o({order:t}):v(Wt,{clsPrefix:n},{default:()=>v(kN,null)}))}}),WS={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},qS="n-radio-group";function KS(e){const t=Ve(qS,null),n=mr(e,{mergedSize(w){const{size:C}=e;if(C!==void 0)return C;if(t){const{mergedSizeRef:{value:_}}=t;if(_!==void 0)return _}return w?w.mergedSize.value:"medium"},mergedDisabled(w){return!!(e.disabled||t!=null&&t.disabledRef.value||w!=null&&w.disabled.value)}}),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=U(null),a=U(null),s=U(e.defaultChecked),l=Ue(e,"checked"),c=rn(l,s),u=kt(()=>t?t.valueRef.value===e.value:c.value),d=kt(()=>{const{name:w}=e;if(w!==void 0)return w;if(t)return t.nameRef.value}),f=U(!1);function h(){if(t){const{doUpdateValue:w}=t,{value:C}=e;Re(w,C)}else{const{onUpdateChecked:w,"onUpdate:checked":C}=e,{nTriggerFormInput:_,nTriggerFormChange:S}=n;w&&Re(w,!0),C&&Re(C,!0),_(),S(),s.value=!0}}function p(){r.value||u.value||h()}function g(){p(),i.value&&(i.value.checked=u.value)}function m(){f.value=!1}function b(){f.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:st(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:d,mergedDisabled:r,renderSafeChecked:u,focus:f,mergedSize:o,handleRadioInputChange:g,handleRadioInputBlur:m,handleRadioInputFocus:b}}const nW=z("radio",` + `)]);function jh(e){return`${e}-ellipsis--line-clamp`}function Uh(e,t){return`${e}-ellipsis--cursor-${t}`}const QS=Object.assign(Object.assign({},Le.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Om=ye({name:"Ellipsis",inheritAttrs:!1,props:QS,setup(e,{slots:t,attrs:n}){const o=j_(),r=Le("Ellipsis","-ellipsis",YS,WS,e,o),i=j(null),a=j(null),s=j(null),l=j(!1),c=M(()=>{const{lineClamp:m}=e,{value:b}=l;return m!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":m}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function u(){let m=!1;const{value:b}=l;if(b)return!0;const{value:w}=i;if(w){const{lineClamp:C}=e;if(h(w),C!==void 0)m=w.scrollHeight<=w.offsetHeight;else{const{value:_}=a;_&&(m=_.getBoundingClientRect().width<=w.getBoundingClientRect().width)}p(w,m)}return m}const d=M(()=>e.expandTrigger==="click"?()=>{var m;const{value:b}=l;b&&((m=s.value)===null||m===void 0||m.setShow(!1)),l.value=!b}:void 0);eu(()=>{var m;e.tooltip&&((m=s.value)===null||m===void 0||m.setShow(!1))});const f=()=>v("span",Object.assign({},Ln(n,{class:[`${o.value}-ellipsis`,e.lineClamp!==void 0?jh(o.value):void 0,e.expandTrigger==="click"?Uh(o.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:v("span",{ref:"triggerInnerRef"},t));function h(m){if(!m)return;const b=c.value,w=jh(o.value);e.lineClamp!==void 0?g(m,w,"add"):g(m,w,"remove");for(const C in b)m.style[C]!==b[C]&&(m.style[C]=b[C])}function p(m,b){const w=Uh(o.value,"pointer");e.expandTrigger==="click"&&!b?g(m,w,"add"):g(m,w,"remove")}function g(m,b,w){w==="add"?m.classList.contains(b)||m.classList.add(b):m.classList.contains(b)&&m.classList.remove(b)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:a,tooltipRef:s,handleClick:d,renderTrigger:f,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:o}=this;if(t){const{mergedTheme:r}=this;return v(Nu,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:n,default:(e=o.tooltip)!==null&&e!==void 0?e:o.default})}else return n()}}),sW=ye({name:"PerformantEllipsis",props:QS,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){const o=j(!1),r=j_();return ni("-ellipsis",YS,r),{mouseEntered:o,renderTrigger:()=>{const{lineClamp:a}=e,s=r.value;return v("span",Object.assign({},Ln(t,{class:[`${s}-ellipsis`,a!==void 0?jh(s):void 0,e.expandTrigger==="click"?Uh(s,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{o.value=!0}}),a?n:v("span",null,n))}}},render(){return this.mouseEntered?v(Om,Ln({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),lW=Object.assign(Object.assign({},Le.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Mo="n-data-table",cW=ye({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),uW=ye({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=st(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=Ve(Mo),r=M(()=>n.value.find(l=>l.columnKey===e.column.key)),i=M(()=>r.value!==void 0),a=M(()=>{const{value:l}=r;return l&&i.value?l.order:!1}),s=M(()=>{var l,c;return((c=(l=t==null?void 0:t.value)===null||l===void 0?void 0:l.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:o,active:i,mergedSortOrder:a,mergedRenderSorter:s}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:o}=this.column;return e?v(cW,{render:e,order:t}):v("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},o?o({order:t}):v(Wt,{clsPrefix:n},{default:()=>v(MN,null)}))}}),JS={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},ZS="n-radio-group";function e2(e){const t=Ve(ZS,null),n=mr(e,{mergedSize(w){const{size:C}=e;if(C!==void 0)return C;if(t){const{mergedSizeRef:{value:_}}=t;if(_!==void 0)return _}return w?w.mergedSize.value:"medium"},mergedDisabled(w){return!!(e.disabled||t!=null&&t.disabledRef.value||w!=null&&w.disabled.value)}}),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=j(null),a=j(null),s=j(e.defaultChecked),l=Ue(e,"checked"),c=rn(l,s),u=kt(()=>t?t.valueRef.value===e.value:c.value),d=kt(()=>{const{name:w}=e;if(w!==void 0)return w;if(t)return t.nameRef.value}),f=j(!1);function h(){if(t){const{doUpdateValue:w}=t,{value:C}=e;Re(w,C)}else{const{onUpdateChecked:w,"onUpdate:checked":C}=e,{nTriggerFormInput:_,nTriggerFormChange:S}=n;w&&Re(w,!0),C&&Re(C,!0),_(),S(),s.value=!0}}function p(){r.value||u.value||h()}function g(){p(),i.value&&(i.value.checked=u.value)}function m(){f.value=!1}function b(){f.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:st(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:d,mergedDisabled:r,renderSafeChecked:u,focus:f,mergedSize:o,handleRadioInputChange:g,handleRadioInputBlur:m,handleRadioInputFocus:b}}const dW=z("radio",` line-height: var(--n-label-line-height); outline: none; position: relative; @@ -1827,9 +1827,9 @@ ${t} flex-wrap: nowrap; font-size: var(--n-font-size); word-break: break-word; -`,[J("checked",[j("dot",` +`,[Z("checked",[U("dot",` background-color: var(--n-color-active); - `)]),j("dot-wrapper",` + `)]),U("dot-wrapper",` position: relative; flex-shrink: 0; flex-grow: 0; @@ -1845,7 +1845,7 @@ ${t} opacity: 0; z-index: 1; cursor: pointer; - `),j("dot",` + `),U("dot",` position: absolute; top: 50%; left: 0; @@ -1858,7 +1858,7 @@ ${t} transition: background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); - `,[W("&::before",` + `,[q("&::before",` content: ""; opacity: 0; position: absolute; @@ -1873,27 +1873,27 @@ ${t} opacity .3s var(--n-bezier), background-color .3s var(--n-bezier), transform .3s var(--n-bezier); - `),J("checked",{boxShadow:"var(--n-box-shadow-active)"},[W("&::before",` + `),Z("checked",{boxShadow:"var(--n-box-shadow-active)"},[q("&::before",` opacity: 1; transform: scale(1); - `)])]),j("label",` + `)])]),U("label",` color: var(--n-text-color); padding: var(--n-label-padding); font-weight: var(--n-label-font-weight); display: inline-block; transition: color .3s var(--n-bezier); - `),Et("disabled",` + `),At("disabled",` cursor: pointer; - `,[W("&:hover",[j("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),J("focus",[W("&:not(:active)",[j("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),J("disabled",` + `,[q("&:hover",[U("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Z("focus",[q("&:not(:active)",[U("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Z("disabled",` cursor: not-allowed; - `,[j("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[W("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),J("checked",` + `,[U("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[q("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Z("checked",` opacity: 1; - `)]),j("label",{color:"var(--n-text-color-disabled)"}),z("radio-input",` + `)]),U("label",{color:"var(--n-text-color-disabled)"}),z("radio-input",` cursor: not-allowed; - `)])]),oW=Object.assign(Object.assign({},Le.props),WS),GS=xe({name:"Radio",props:oW,setup(e){const t=KS(e),n=Le("Radio","-radio",nW,_m,e,t.mergedClsPrefix),o=I(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:g,color:m,colorDisabled:b,colorActive:w,textColor:C,textColorDisabled:_,dotColorActive:S,dotColorDisabled:y,labelPadding:x,labelLineHeight:P,labelFontWeight:k,[Te("fontSize",c)]:T,[Te("radioSize",c)]:R}}=n.value;return{"--n-bezier":u,"--n-label-line-height":P,"--n-label-font-weight":k,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":m,"--n-color-active":w,"--n-color-disabled":b,"--n-dot-color-active":S,"--n-dot-color-disabled":y,"--n-font-size":T,"--n-radio-size":R,"--n-text-color":C,"--n-text-color-disabled":_,"--n-label-padding":x}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=st(e),s=pn("Radio",a,i),l=r?Pt("radio",I(()=>t.mergedSize.value[0]),o,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:r?void 0:o,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:o}=this;return n==null||n(),v("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},v("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${t}-radio__dot-wrapper`}," ",v("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),At(e.default,r=>!r&&!o?null:v("div",{ref:"labelRef",class:`${t}-radio__label`},r||o)))}}),rW=z("radio-group",` + `)])]),fW=Object.assign(Object.assign({},Le.props),JS),t2=ye({name:"Radio",props:fW,setup(e){const t=e2(e),n=Le("Radio","-radio",dW,Em,e,t.mergedClsPrefix),o=M(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:d,boxShadowActive:f,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:g,color:m,colorDisabled:b,colorActive:w,textColor:C,textColorDisabled:_,dotColorActive:S,dotColorDisabled:y,labelPadding:x,labelLineHeight:k,labelFontWeight:P,[Te("fontSize",c)]:T,[Te("radioSize",c)]:$}}=n.value;return{"--n-bezier":u,"--n-label-line-height":k,"--n-label-font-weight":P,"--n-box-shadow":d,"--n-box-shadow-active":f,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":m,"--n-color-active":w,"--n-color-disabled":b,"--n-dot-color-active":S,"--n-dot-color-disabled":y,"--n-font-size":T,"--n-radio-size":$,"--n-text-color":C,"--n-text-color-disabled":_,"--n-label-padding":x}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:a}=st(e),s=pn("Radio",a,i),l=r?Pt("radio",M(()=>t.mergedSize.value[0]),o,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:r?void 0:o,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:o}=this;return n==null||n(),v("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},v("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${t}-radio__dot-wrapper`}," ",v("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Et(e.default,r=>!r&&!o?null:v("div",{ref:"labelRef",class:`${t}-radio__label`},r||o)))}}),hW=z("radio-group",` display: inline-block; font-size: var(--n-font-size); -`,[j("splitor",` +`,[U("splitor",` display: inline-block; vertical-align: bottom; width: 1px; @@ -1901,11 +1901,11 @@ ${t} background-color .3s var(--n-bezier), opacity .3s var(--n-bezier); background: var(--n-button-border-color); - `,[J("checked",{backgroundColor:"var(--n-button-border-color-active)"}),J("disabled",{opacity:"var(--n-opacity-disabled)"})]),J("button-group",` + `,[Z("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Z("disabled",{opacity:"var(--n-opacity-disabled)"})]),Z("button-group",` white-space: nowrap; height: var(--n-height); line-height: var(--n-height); - `,[z("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),j("splitor",{height:"var(--n-height)"})]),z("radio-button",` + `,[z("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),U("splitor",{height:"var(--n-height)"})]),z("radio-button",` vertical-align: bottom; outline: none; position: relative; @@ -1936,7 +1936,7 @@ ${t} bottom: 0; opacity: 0; z-index: 1; - `),j("state-border",` + `),U("state-border",` z-index: 1; pointer-events: none; position: absolute; @@ -1946,34 +1946,34 @@ ${t} bottom: -1px; right: -1px; top: -1px; - `),W("&:first-child",` + `),q("&:first-child",` border-top-left-radius: var(--n-button-border-radius); border-bottom-left-radius: var(--n-button-border-radius); border-left: 1px solid var(--n-button-border-color); - `,[j("state-border",` + `,[U("state-border",` border-top-left-radius: var(--n-button-border-radius); border-bottom-left-radius: var(--n-button-border-radius); - `)]),W("&:last-child",` + `)]),q("&:last-child",` border-top-right-radius: var(--n-button-border-radius); border-bottom-right-radius: var(--n-button-border-radius); border-right: 1px solid var(--n-button-border-color); - `,[j("state-border",` + `,[U("state-border",` border-top-right-radius: var(--n-button-border-radius); border-bottom-right-radius: var(--n-button-border-radius); - `)]),Et("disabled",` + `)]),At("disabled",` cursor: pointer; - `,[W("&:hover",[j("state-border",` + `,[q("&:hover",[U("state-border",` transition: box-shadow .3s var(--n-bezier); box-shadow: var(--n-button-box-shadow-hover); - `),Et("checked",{color:"var(--n-button-text-color-hover)"})]),J("focus",[W("&:not(:active)",[j("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),J("checked",` + `),At("checked",{color:"var(--n-button-text-color-hover)"})]),Z("focus",[q("&:not(:active)",[U("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Z("checked",` background: var(--n-button-color-active); color: var(--n-button-text-color-active); border-color: var(--n-button-border-color-active); - `),J("disabled",` + `),Z("disabled",` cursor: not-allowed; opacity: var(--n-opacity-disabled); - `)])]);function iW(e,t,n){var o;const r=[];let i=!1;for(let a=0;a{const{value:S}=n,{common:{cubicBezierEaseInOut:y},self:{buttonBorderColor:x,buttonBorderColorActive:P,buttonBorderRadius:k,buttonBoxShadow:T,buttonBoxShadowFocus:R,buttonBoxShadowHover:E,buttonColor:q,buttonColorActive:D,buttonTextColor:B,buttonTextColorActive:M,buttonTextColorHover:K,opacityDisabled:V,[Te("buttonHeight",S)]:ae,[Te("fontSize",S)]:pe}}=d.value;return{"--n-font-size":pe,"--n-bezier":y,"--n-button-border-color":x,"--n-button-border-color-active":P,"--n-button-border-radius":k,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":R,"--n-button-box-shadow-hover":E,"--n-button-color":q,"--n-button-color-active":D,"--n-button-text-color":B,"--n-button-text-color-hover":K,"--n-button-text-color-active":M,"--n-height":ae,"--n-opacity-disabled":V}}),_=c?Pt("radio-group",I(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:w,mergedClsPrefix:l,mergedValue:p,handleFocusout:b,handleFocusin:m,cssVars:c?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:o,handleFocusout:r}=this,{children:i,isButtonGroup:a}=iW(Ta(fw(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{onFocusin:o,onFocusout:r,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),sW=xe({name:"RadioButton",props:WS,setup:KS,render(){const{mergedClsPrefix:e}=this;return v("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},v("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${e}-radio-button__state-border`}),At(this.$slots.default,t=>!t&&!this.label?null:v("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),YS=40,QS=40;function o1(e){if(e.type==="selection")return e.width===void 0?YS:bn(e.width);if(e.type==="expand")return e.width===void 0?QS:bn(e.width);if(!("children"in e))return typeof e.width=="string"?bn(e.width):e.width}function lW(e){var t,n;if(e.type==="selection")return qt((t=e.width)!==null&&t!==void 0?t:YS);if(e.type==="expand")return qt((n=e.width)!==null&&n!==void 0?n:QS);if(!("children"in e))return qt(e.width)}function _o(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function r1(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function cW(e){return e==="ascend"?1:e==="descend"?-1:0}function uW(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:Number.parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function dW(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=lW(e),{minWidth:o,maxWidth:r}=e;return{width:n,minWidth:qt(o)||n,maxWidth:qt(r)}}function fW(e,t,n){return typeof n=="function"?n(e,t):n||""}function tf(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function nf(e){return"children"in e?!1:!!e.sorter}function JS(e){return"children"in e&&e.children.length?!1:!!e.resizable}function i1(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function a1(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function hW(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:a1(!1)}:Object.assign(Object.assign({},t),{order:a1(t.order)})}function ZS(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}function pW(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function mW(e,t){const n=e.filter(i=>i.type!=="expand"&&i.type!=="selection"),o=n.map(i=>i.title).join(","),r=t.map(i=>n.map(a=>pW(i[a.key])).join(","));return[o,...r].join(` -`)}const gW=xe({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("DataTable",n,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Ve(Mo),s=U(e.value),l=I(()=>{const{value:p}=s;return Array.isArray(p)?p:null}),c=I(()=>{const{value:p}=s;return tf(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function u(p){e.onChange(p)}function d(p){e.multiple&&Array.isArray(p)?s.value=p:tf(e.column)&&!Array.isArray(p)?s.value=[p]:s.value=p}function f(){u(s.value),e.onConfirm()}function h(){e.multiple||tf(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:o,mergedTheme:i,locale:a,checkboxGroupValue:l,radioGroupValue:c,handleChange:d,handleConfirmClick:f,handleClearClick:h}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return v("div",{class:[`${n}-data-table-filter-menu`,this.rtlEnabled&&`${n}-data-table-filter-menu--rtl`]},v(Oo,null,{default:()=>{const{checkboxGroupValue:o,handleChange:r}=this;return this.multiple?v(oV,{value:o,class:`${n}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>v(ml,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):v(XS,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>v(GS,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),v("div",{class:`${n}-data-table-filter-menu__action`},v(zt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),v(zt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),vW=xe({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});function bW(e,t,n){const o=Object.assign({},e);return o[t]=n,o}const yW=xe({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=st(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:s,doUpdateFilters:l,filterIconPopoverPropsRef:c}=Ve(Mo),u=U(!1),d=r,f=I(()=>e.column.filterMultiple!==!1),h=I(()=>{const C=d.value[e.column.key];if(C===void 0){const{value:_}=f;return _?[]:null}return C}),p=I(()=>{const{value:C}=h;return Array.isArray(C)?C.length>0:C!==null}),g=I(()=>{var C,_;return((_=(C=t==null?void 0:t.value)===null||C===void 0?void 0:C.DataTable)===null||_===void 0?void 0:_.renderFilter)||e.column.renderFilter});function m(C){const _=bW(d.value,e.column.key,C);l(_,e.column),a.value==="first"&&s(1)}function b(){u.value=!1}function w(){u.value=!1}return{mergedTheme:n,mergedClsPrefix:o,active:p,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:m,handleFilterMenuConfirm:w,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n,filterIconPopoverProps:o}=this;return v(hl,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},o,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return v(vW,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return v("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):v(Wt,{clsPrefix:t},{default:()=>v($N,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):v(gW,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),xW=xe({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ve(Mo),n=U(!1);let o=0;function r(l){return l.clientX}function i(l){var c;l.preventDefault();const u=n.value;o=r(l),n.value=!0,u||($t("mousemove",window,a),$t("mouseup",window,s),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(l){var c;(c=e.onResize)===null||c===void 0||c.call(e,r(l)-o)}function s(){var l;n.value=!1,(l=e.onResizeEnd)===null||l===void 0||l.call(e),Tt("mousemove",window,a),Tt("mouseup",window,s)}return on(()=>{Tt("mousemove",window,a),Tt("mouseup",window,s)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return v("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),e2=xe({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return v("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function t2(e){const{textColorBase:t,opacity1:n,opacity2:o,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:o,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const CW={name:"Icon",common:xt,self:t2},wW=CW,_W={name:"Icon",common:He,self:t2},SW=_W,kW=z("icon",` + `)])]);function pW(e,t,n){var o;const r=[];let i=!1;for(let a=0;a{const{value:S}=n,{common:{cubicBezierEaseInOut:y},self:{buttonBorderColor:x,buttonBorderColorActive:k,buttonBorderRadius:P,buttonBoxShadow:T,buttonBoxShadowFocus:$,buttonBoxShadowHover:E,buttonColor:G,buttonColorActive:B,buttonTextColor:D,buttonTextColorActive:L,buttonTextColorHover:X,opacityDisabled:V,[Te("buttonHeight",S)]:ae,[Te("fontSize",S)]:ue}}=d.value;return{"--n-font-size":ue,"--n-bezier":y,"--n-button-border-color":x,"--n-button-border-color-active":k,"--n-button-border-radius":P,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":$,"--n-button-box-shadow-hover":E,"--n-button-color":G,"--n-button-color-active":B,"--n-button-text-color":D,"--n-button-text-color-hover":X,"--n-button-text-color-active":L,"--n-height":ae,"--n-opacity-disabled":V}}),_=c?Pt("radio-group",M(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:w,mergedClsPrefix:l,mergedValue:p,handleFocusout:b,handleFocusin:m,cssVars:c?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:o,handleFocusout:r}=this,{children:i,isButtonGroup:a}=pW(Ra(yw(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{onFocusin:o,onFocusout:r,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),gW=ye({name:"RadioButton",props:JS,setup:e2,render(){const{mergedClsPrefix:e}=this;return v("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},v("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),v("div",{class:`${e}-radio-button__state-border`}),Et(this.$slots.default,t=>!t&&!this.label?null:v("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),o2=40,r2=40;function u1(e){if(e.type==="selection")return e.width===void 0?o2:bn(e.width);if(e.type==="expand")return e.width===void 0?r2:bn(e.width);if(!("children"in e))return typeof e.width=="string"?bn(e.width):e.width}function vW(e){var t,n;if(e.type==="selection")return qt((t=e.width)!==null&&t!==void 0?t:o2);if(e.type==="expand")return qt((n=e.width)!==null&&n!==void 0?n:r2);if(!("children"in e))return qt(e.width)}function _o(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function d1(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function bW(e){return e==="ascend"?1:e==="descend"?-1:0}function yW(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:Number.parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function xW(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=vW(e),{minWidth:o,maxWidth:r}=e;return{width:n,minWidth:qt(o)||n,maxWidth:qt(r)}}function CW(e,t,n){return typeof n=="function"?n(e,t):n||""}function sf(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function lf(e){return"children"in e?!1:!!e.sorter}function i2(e){return"children"in e&&e.children.length?!1:!!e.resizable}function f1(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function h1(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wW(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:h1(!1)}:Object.assign(Object.assign({},t),{order:h1(t.order)})}function a2(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}function _W(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function SW(e,t){const n=e.filter(i=>i.type!=="expand"&&i.type!=="selection"),o=n.map(i=>i.title).join(","),r=t.map(i=>n.map(a=>_W(i[a.key])).join(","));return[o,...r].join(` +`)}const kW=ye({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=pn("DataTable",n,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:a}=Ve(Mo),s=j(e.value),l=M(()=>{const{value:p}=s;return Array.isArray(p)?p:null}),c=M(()=>{const{value:p}=s;return sf(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function u(p){e.onChange(p)}function d(p){e.multiple&&Array.isArray(p)?s.value=p:sf(e.column)&&!Array.isArray(p)?s.value=[p]:s.value=p}function f(){u(s.value),e.onConfirm()}function h(){e.multiple||sf(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:o,mergedTheme:i,locale:a,checkboxGroupValue:l,radioGroupValue:c,handleChange:d,handleConfirmClick:f,handleClearClick:h}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return v("div",{class:[`${n}-data-table-filter-menu`,this.rtlEnabled&&`${n}-data-table-filter-menu--rtl`]},v(Oo,null,{default:()=>{const{checkboxGroupValue:o,handleChange:r}=this;return this.multiple?v(fV,{value:o,class:`${n}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>v(bl,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):v(n2,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>v(t2,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),v("div",{class:`${n}-data-table-filter-menu__action`},v(zt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),v(zt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),PW=ye({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});function TW(e,t,n){const o=Object.assign({},e);return o[t]=n,o}const AW=ye({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=st(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:s,doUpdateFilters:l,filterIconPopoverPropsRef:c}=Ve(Mo),u=j(!1),d=r,f=M(()=>e.column.filterMultiple!==!1),h=M(()=>{const C=d.value[e.column.key];if(C===void 0){const{value:_}=f;return _?[]:null}return C}),p=M(()=>{const{value:C}=h;return Array.isArray(C)?C.length>0:C!==null}),g=M(()=>{var C,_;return((_=(C=t==null?void 0:t.value)===null||C===void 0?void 0:C.DataTable)===null||_===void 0?void 0:_.renderFilter)||e.column.renderFilter});function m(C){const _=TW(d.value,e.column.key,C);l(_,e.column),a.value==="first"&&s(1)}function b(){u.value=!1}function w(){u.value=!1}return{mergedTheme:n,mergedClsPrefix:o,active:p,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:m,handleFilterMenuConfirm:w,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n,filterIconPopoverProps:o}=this;return v(gl,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},o,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return v(PW,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return v("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):v(Wt,{clsPrefix:t},{default:()=>v(NN,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):v(kW,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),RW=ye({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Ve(Mo),n=j(!1);let o=0;function r(l){return l.clientX}function i(l){var c;l.preventDefault();const u=n.value;o=r(l),n.value=!0,u||($t("mousemove",window,a),$t("mouseup",window,s),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(l){var c;(c=e.onResize)===null||c===void 0||c.call(e,r(l)-o)}function s(){var l;n.value=!1,(l=e.onResizeEnd)===null||l===void 0||l.call(e),Tt("mousemove",window,a),Tt("mouseup",window,s)}return on(()=>{Tt("mousemove",window,a),Tt("mouseup",window,s)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return v("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),s2=ye({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return v("div",{class:`${this.clsPrefix}-dropdown-divider`})}});function l2(e){const{textColorBase:t,opacity1:n,opacity2:o,opacity3:r,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:o,opacity3Depth:r,opacity4Depth:i,opacity5Depth:a}}const EW={name:"Icon",common:xt,self:l2},$W=EW,IW={name:"Icon",common:je,self:l2},OW=IW,MW=z("icon",` height: 1em; width: 1em; line-height: 1em; @@ -1982,7 +1982,7 @@ ${t} position: relative; fill: currentColor; transform: translateZ(0); -`,[J("color-transition",{transition:"color .3s var(--n-bezier)"}),J("depth",{color:"var(--n-color)"},[W("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),W("svg",{height:"1em",width:"1em"})]),PW=Object.assign(Object.assign({},Le.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Xo=xe({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:PW,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Icon","-icon",kW,wW,e,t),r=I(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=o.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:u}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=n?Pt("icon",I(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:I(()=>{const{size:a,color:s}=e;return{fontSize:qt(a),color:s}}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:o,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&cr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),v("i",Ln(this.$attrs,{role:"img",class:[`${o}-icon`,a,{[`${o}-icon--depth`]:n,[`${o}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?v(r):this.$slots)}}),Tm="n-dropdown-menu",Fu="n-dropdown",s1="n-dropdown-option";function Lh(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function TW(e){return e.type==="group"}function n2(e){return e.type==="divider"}function EW(e){return e.type==="render"}const o2=xe({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ve(Fu),{hoverKeyRef:n,keyboardKeyRef:o,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:u,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:p,menuPropsRef:g}=t,m=Ve(s1,null),b=Ve(Tm),w=Ve(ja),C=I(()=>e.tmNode.rawNode),_=I(()=>{const{value:K}=f;return Lh(e.tmNode.rawNode,K)}),S=I(()=>{const{disabled:K}=e.tmNode;return K}),y=I(()=>{if(!_.value)return!1;const{key:K,disabled:V}=e.tmNode;if(V)return!1;const{value:ae}=n,{value:pe}=o,{value:Z}=r,{value:N}=i;return ae!==null?N.includes(K):pe!==null?N.includes(K)&&N[N.length-1]!==K:Z!==null?N.includes(K):!1}),x=I(()=>o.value===null&&!s.value),P=m8(y,300,x),k=I(()=>!!(m!=null&&m.enteringSubmenuRef.value)),T=U(!1);at(s1,{enteringSubmenuRef:T});function R(){T.value=!0}function E(){T.value=!1}function q(){const{parentKey:K,tmNode:V}=e;V.disabled||l.value&&(r.value=K,o.value=null,n.value=V.key)}function D(){const{tmNode:K}=e;K.disabled||l.value&&n.value!==K.key&&q()}function B(K){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:V}=K;V&&!lo({target:V},"dropdownOption")&&!lo({target:V},"scrollbarRail")&&(n.value=null)}function M(){const{value:K}=_,{tmNode:V}=e;l.value&&!K&&!V.disabled&&(t.doSelect(V.key,V.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:c,renderIcon:u,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:w,animated:s,mergedShowSubmenu:I(()=>P.value&&!k.value),rawNode:C,hasSubmenu:_,pending:kt(()=>{const{value:K}=i,{key:V}=e.tmNode;return K.includes(V)}),childActive:kt(()=>{const{value:K}=a,{key:V}=e.tmNode,ae=K.findIndex(pe=>V===pe);return ae===-1?!1:ae{const{value:K}=a,{key:V}=e.tmNode,ae=K.findIndex(pe=>V===pe);return ae===-1?!1:ae===K.length-1}),mergedDisabled:S,renderOption:h,nodeProps:p,handleClick:M,handleMouseMove:D,handleMouseEnter:q,handleMouseLeave:B,handleSubmenuBeforeEnter:R,handleSubmenuAfterEnter:E}},render(){var e,t;const{animated:n,rawNode:o,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:u,nodeProps:d,props:f,scrollable:h}=this;let p=null;if(r){const w=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);p=v(r2,Object.assign({},w,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=d==null?void 0:d(o),b=v("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),v("div",Ln(g,f),[v("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Vt(o.icon)]),v("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(o):Vt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),v("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?v(Xo,null,{default:()=>v(um,null)}):null)]),this.hasSubmenu?v(Vp,null,{default:()=>[v(Wp,null,{default:()=>v("div",{class:`${i}-dropdown-offset-container`},v(Kp,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>v("div",{class:`${i}-dropdown-menu-wrapper`},n?v(fn,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return u?u({node:b,option:o}):b}}),RW=xe({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ve(Tm),{renderLabelRef:n,labelFieldRef:o,nodePropsRef:r,renderOptionRef:i}=Ve(Fu);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:o,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=v("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(s)),v("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},v("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Vt(s.icon)),v("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Vt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),v("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),AW=xe({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:o}=e;return v(rt,null,v(RW,{clsPrefix:n,tmNode:e,key:e.key}),o==null?void 0:o.map(r=>{const{rawNode:i}=r;return i.show===!1?null:n2(i)?v(e2,{clsPrefix:n,key:r.key}):r.isGroup?(cr("dropdown","`group` node is not allowed to be put in `group` node."),null):v(o2,{clsPrefix:n,tmNode:r,parentKey:t,key:r.key})}))}}),$W=xe({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return v("div",t,[e==null?void 0:e()])}}),r2=xe({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Ve(Fu);at(Tm,{showIconRef:I(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:s}=i;return r?r(s):s.icon})}),hasSubmenuRef:I(()=>{const{value:r}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>Lh(l,r));const{rawNode:s}=i;return Lh(s,r)})})});const o=U(null);return at(sl,null),at(ll,null),at(ja,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,o=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:EW(i)?v($W,{tmNode:r,key:r.key}):n2(i)?v(e2,{clsPrefix:t,key:r.key}):TW(i)?v(AW,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):v(o2,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:n})});return v("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?v(G_,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?Z_({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),IW=z("dropdown-menu",` +`,[Z("color-transition",{transition:"color .3s var(--n-bezier)"}),Z("depth",{color:"var(--n-color)"},[q("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),q("svg",{height:"1em",width:"1em"})]),zW=Object.assign(Object.assign({},Le.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Xo=ye({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:zW,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Icon","-icon",MW,$W,e,t),r=M(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=o.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:u}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=n?Pt("icon",M(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:M(()=>{const{size:a,color:s}=e;return{fontSize:qt(a),color:s}}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:o,component:r,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&cr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),v("i",Ln(this.$attrs,{role:"img",class:[`${o}-icon`,a,{[`${o}-icon--depth`]:n,[`${o}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?v(r):this.$slots)}}),Mm="n-dropdown-menu",Hu="n-dropdown",p1="n-dropdown-option";function Vh(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function FW(e){return e.type==="group"}function c2(e){return e.type==="divider"}function DW(e){return e.type==="render"}const u2=ye({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ve(Hu),{hoverKeyRef:n,keyboardKeyRef:o,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:u,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:p,menuPropsRef:g}=t,m=Ve(p1,null),b=Ve(Mm),w=Ve(Wa),C=M(()=>e.tmNode.rawNode),_=M(()=>{const{value:X}=f;return Vh(e.tmNode.rawNode,X)}),S=M(()=>{const{disabled:X}=e.tmNode;return X}),y=M(()=>{if(!_.value)return!1;const{key:X,disabled:V}=e.tmNode;if(V)return!1;const{value:ae}=n,{value:ue}=o,{value:ee}=r,{value:R}=i;return ae!==null?R.includes(X):ue!==null?R.includes(X)&&R[R.length-1]!==X:ee!==null?R.includes(X):!1}),x=M(()=>o.value===null&&!s.value),k=S8(y,300,x),P=M(()=>!!(m!=null&&m.enteringSubmenuRef.value)),T=j(!1);at(p1,{enteringSubmenuRef:T});function $(){T.value=!0}function E(){T.value=!1}function G(){const{parentKey:X,tmNode:V}=e;V.disabled||l.value&&(r.value=X,o.value=null,n.value=V.key)}function B(){const{tmNode:X}=e;X.disabled||l.value&&n.value!==X.key&&G()}function D(X){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:V}=X;V&&!lo({target:V},"dropdownOption")&&!lo({target:V},"scrollbarRail")&&(n.value=null)}function L(){const{value:X}=_,{tmNode:V}=e;l.value&&!X&&!V.disabled&&(t.doSelect(V.key,V.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:c,renderIcon:u,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:w,animated:s,mergedShowSubmenu:M(()=>k.value&&!P.value),rawNode:C,hasSubmenu:_,pending:kt(()=>{const{value:X}=i,{key:V}=e.tmNode;return X.includes(V)}),childActive:kt(()=>{const{value:X}=a,{key:V}=e.tmNode,ae=X.findIndex(ue=>V===ue);return ae===-1?!1:ae{const{value:X}=a,{key:V}=e.tmNode,ae=X.findIndex(ue=>V===ue);return ae===-1?!1:ae===X.length-1}),mergedDisabled:S,renderOption:h,nodeProps:p,handleClick:L,handleMouseMove:B,handleMouseEnter:G,handleMouseLeave:D,handleSubmenuBeforeEnter:$,handleSubmenuAfterEnter:E}},render(){var e,t;const{animated:n,rawNode:o,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:u,nodeProps:d,props:f,scrollable:h}=this;let p=null;if(r){const w=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);p=v(d2,Object.assign({},w,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=d==null?void 0:d(o),b=v("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),v("div",Ln(g,f),[v("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Vt(o.icon)]),v("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(o):Vt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),v("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?v(Xo,null,{default:()=>v(vm,null)}):null)]),this.hasSubmenu?v(Qp,null,{default:()=>[v(Jp,null,{default:()=>v("div",{class:`${i}-dropdown-offset-container`},v(em,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>v("div",{class:`${i}-dropdown-menu-wrapper`},n?v(fn,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return u?u({node:b,option:o}):b}}),LW=ye({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ve(Mm),{renderLabelRef:n,labelFieldRef:o,nodePropsRef:r,renderOptionRef:i}=Ve(Hu);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:o,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=v("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(s)),v("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},v("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Vt(s.icon)),v("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Vt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),v("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),BW=ye({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:o}=e;return v(rt,null,v(LW,{clsPrefix:n,tmNode:e,key:e.key}),o==null?void 0:o.map(r=>{const{rawNode:i}=r;return i.show===!1?null:c2(i)?v(s2,{clsPrefix:n,key:r.key}):r.isGroup?(cr("dropdown","`group` node is not allowed to be put in `group` node."),null):v(u2,{clsPrefix:n,tmNode:r,parentKey:t,key:r.key})}))}}),NW=ye({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return v("div",t,[e==null?void 0:e()])}}),d2=ye({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Ve(Hu);at(Mm,{showIconRef:M(()=>{const r=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>r?r(l):l.icon);const{rawNode:s}=i;return r?r(s):s.icon})}),hasSubmenuRef:M(()=>{const{value:r}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>Vh(l,r));const{rawNode:s}=i;return Vh(s,r)})})});const o=j(null);return at(ul,null),at(dl,null),at(Wa,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,o=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:DW(i)?v(NW,{tmNode:r,key:r.key}):c2(i)?v(s2,{clsPrefix:t,key:r.key}):FW(i)?v(BW,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):v(u2,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:n})});return v("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?v(tS,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?aS({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),HW=z("dropdown-menu",` transform-origin: var(--v-transform-origin); background-color: var(--n-color); border-radius: var(--n-border-radius); @@ -1991,13 +1991,13 @@ ${t} transition: background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier); -`,[Wa(),z("dropdown-option",` +`,[Ga(),z("dropdown-option",` position: relative; - `,[W("a",` + `,[q("a",` text-decoration: none; color: inherit; outline: none; - `,[W("&::before",` + `,[q("&::before",` content: ""; position: absolute; left: 0; @@ -2013,7 +2013,7 @@ ${t} font-size: var(--n-font-size); color: var(--n-option-text-color); transition: color .3s var(--n-bezier); - `,[W("&::before",` + `,[q("&::before",` content: ""; position: absolute; top: 0; @@ -2022,29 +2022,29 @@ ${t} right: 4px; transition: background-color .3s var(--n-bezier); border-radius: var(--n-border-radius); - `),Et("disabled",[J("pending",` + `),At("disabled",[Z("pending",` color: var(--n-option-text-color-hover); - `,[j("prefix, suffix",` + `,[U("prefix, suffix",` color: var(--n-option-text-color-hover); - `),W("&::before","background-color: var(--n-option-color-hover);")]),J("active",` + `),q("&::before","background-color: var(--n-option-color-hover);")]),Z("active",` color: var(--n-option-text-color-active); - `,[j("prefix, suffix",` + `,[U("prefix, suffix",` color: var(--n-option-text-color-active); - `),W("&::before","background-color: var(--n-option-color-active);")]),J("child-active",` + `),q("&::before","background-color: var(--n-option-color-active);")]),Z("child-active",` color: var(--n-option-text-color-child-active); - `,[j("prefix, suffix",` + `,[U("prefix, suffix",` color: var(--n-option-text-color-child-active); - `)])]),J("disabled",` + `)])]),Z("disabled",` cursor: not-allowed; opacity: var(--n-option-opacity-disabled); - `),J("group",` + `),Z("group",` font-size: calc(var(--n-font-size) - 1px); color: var(--n-group-header-text-color); - `,[j("prefix",` + `,[U("prefix",` width: calc(var(--n-option-prefix-width) / 2); - `,[J("show-icon",` + `,[Z("show-icon",` width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),j("prefix",` + `)])]),U("prefix",` width: var(--n-option-prefix-width); display: flex; justify-content: center; @@ -2052,15 +2052,15 @@ ${t} color: var(--n-prefix-color); transition: color .3s var(--n-bezier); z-index: 1; - `,[J("show-icon",` + `,[Z("show-icon",` width: var(--n-option-icon-prefix-width); `),z("icon",` font-size: var(--n-option-icon-size); - `)]),j("label",` + `)]),U("label",` white-space: nowrap; flex: 1; z-index: 1; - `),j("suffix",` + `),U("suffix",` box-sizing: border-box; flex-grow: 0; flex-shrink: 0; @@ -2072,7 +2072,7 @@ ${t} transition: color .3s var(--n-bezier); color: var(--n-suffix-color); z-index: 1; - `,[J("has-submenu",` + `,[Z("has-submenu",` width: var(--n-option-icon-suffix-width); `),z("icon",` font-size: var(--n-option-icon-size); @@ -2091,14 +2091,14 @@ ${t} `),z("dropdown-menu-wrapper",` transform-origin: var(--v-transform-origin); width: fit-content; - `),W(">",[z("scrollbar",` + `),q(">",[z("scrollbar",` height: inherit; max-height: inherit; - `)]),Et("scrollable",` + `)]),At("scrollable",` padding: var(--n-padding); - `),J("scrollable",[j("content",` + `),Z("scrollable",[U("content",` padding: var(--n-padding); - `)])]),OW={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},MW=Object.keys(Aa),zW=Object.assign(Object.assign(Object.assign({},Aa),OW),Le.props),Em=xe({name:"Dropdown",inheritAttrs:!1,props:zW,setup(e){const t=U(!1),n=rn(Ue(e,"show"),t),o=I(()=>{const{keyField:E,childrenField:q}=e;return Pi(e.options,{getKey(D){return D[E]},getDisabled(D){return D.disabled===!0},getIgnored(D){return D.type==="divider"||D.type==="render"},getChildren(D){return D[q]}})}),r=I(()=>o.value.treeNodes),i=U(null),a=U(null),s=U(null),l=I(()=>{var E,q,D;return(D=(q=(E=i.value)!==null&&E!==void 0?E:a.value)!==null&&q!==void 0?q:s.value)!==null&&D!==void 0?D:null}),c=I(()=>o.value.getPath(l.value).keyPath),u=I(()=>o.value.getPath(e.value).keyPath),d=kt(()=>e.keyboard&&n.value);T8({keydown:{ArrowUp:{prevent:!0,handler:S},ArrowRight:{prevent:!0,handler:_},ArrowDown:{prevent:!0,handler:y},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:x},Escape:w}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=st(e),p=Le("Dropdown","-dropdown",IW,Sm,e,f);at(Fu,{labelFieldRef:Ue(e,"labelField"),childrenFieldRef:Ue(e,"childrenField"),renderLabelRef:Ue(e,"renderLabel"),renderIconRef:Ue(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:Ue(e,"animated"),mergedShowRef:n,nodePropsRef:Ue(e,"nodeProps"),renderOptionRef:Ue(e,"renderOption"),menuPropsRef:Ue(e,"menuProps"),doSelect:g,doUpdateShow:m}),ft(n,E=>{!e.animated&&!E&&b()});function g(E,q){const{onSelect:D}=e;D&&Re(D,E,q)}function m(E){const{"onUpdate:show":q,onUpdateShow:D}=e;q&&Re(q,E),D&&Re(D,E),t.value=E}function b(){i.value=null,a.value=null,s.value=null}function w(){m(!1)}function C(){k("left")}function _(){k("right")}function S(){k("up")}function y(){k("down")}function x(){const E=P();E!=null&&E.isLeaf&&n.value&&(g(E.key,E.rawNode),m(!1))}function P(){var E;const{value:q}=o,{value:D}=l;return!q||D===null?null:(E=q.getNode(D))!==null&&E!==void 0?E:null}function k(E){const{value:q}=l,{value:{getFirstAvailableNode:D}}=o;let B=null;if(q===null){const M=D();M!==null&&(B=M.key)}else{const M=P();if(M){let K;switch(E){case"down":K=M.getNext();break;case"up":K=M.getPrev();break;case"right":K=M.getChild();break;case"left":K=M.getParent();break}K&&(B=K.key)}}B!==null&&(i.value=null,a.value=B)}const T=I(()=>{const{size:E,inverted:q}=e,{common:{cubicBezierEaseInOut:D},self:B}=p.value,{padding:M,dividerColor:K,borderRadius:V,optionOpacityDisabled:ae,[Te("optionIconSuffixWidth",E)]:pe,[Te("optionSuffixWidth",E)]:Z,[Te("optionIconPrefixWidth",E)]:N,[Te("optionPrefixWidth",E)]:O,[Te("fontSize",E)]:ee,[Te("optionHeight",E)]:G,[Te("optionIconSize",E)]:ne}=B,X={"--n-bezier":D,"--n-font-size":ee,"--n-padding":M,"--n-border-radius":V,"--n-option-height":G,"--n-option-prefix-width":O,"--n-option-icon-prefix-width":N,"--n-option-suffix-width":Z,"--n-option-icon-suffix-width":pe,"--n-option-icon-size":ne,"--n-divider-color":K,"--n-option-opacity-disabled":ae};return q?(X["--n-color"]=B.colorInverted,X["--n-option-color-hover"]=B.optionColorHoverInverted,X["--n-option-color-active"]=B.optionColorActiveInverted,X["--n-option-text-color"]=B.optionTextColorInverted,X["--n-option-text-color-hover"]=B.optionTextColorHoverInverted,X["--n-option-text-color-active"]=B.optionTextColorActiveInverted,X["--n-option-text-color-child-active"]=B.optionTextColorChildActiveInverted,X["--n-prefix-color"]=B.prefixColorInverted,X["--n-suffix-color"]=B.suffixColorInverted,X["--n-group-header-text-color"]=B.groupHeaderTextColorInverted):(X["--n-color"]=B.color,X["--n-option-color-hover"]=B.optionColorHover,X["--n-option-color-active"]=B.optionColorActive,X["--n-option-text-color"]=B.optionTextColor,X["--n-option-text-color-hover"]=B.optionTextColorHover,X["--n-option-text-color-active"]=B.optionTextColorActive,X["--n-option-text-color-child-active"]=B.optionTextColorChildActive,X["--n-prefix-color"]=B.prefixColor,X["--n-suffix-color"]=B.suffixColor,X["--n-group-header-text-color"]=B.groupHeaderTextColor),X}),R=h?Pt("dropdown",I(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:f,mergedTheme:p,tmNodes:r,mergedShow:n,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:m,cssVars:h?void 0:T,themeClass:R==null?void 0:R.themeClass,onRender:R==null?void 0:R.onRender}},render(){const e=(o,r,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:u}=this;(l=this.onRender)===null||l===void 0||l.call(this);const d=(u==null?void 0:u(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:hw(r),class:[o,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return v(r2,Ln(this.$attrs,f,d))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return v(hl,Object.assign({},eo(this.$props,MW),n),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}}),i2="_n_all__",a2="_n_none__";function FW(e,t,n,o){return e?r=>{for(const i of e)switch(r){case i2:n(!0);return;case a2:o(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function DW(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:i2};case"none":return{label:t.uncheckTableAll,key:a2};default:return n}}):[]}const LW=xe({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:o,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Ve(Mo),s=I(()=>FW(o.value,r,i,a)),l=I(()=>DW(o.value,n.value));return()=>{var c,u,d,f;const{clsPrefix:h}=e;return v(Em,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(f=(d=t.themeOverrides)===null||d===void 0?void 0:d.peers)===null||f===void 0?void 0:f.Dropdown,options:l.value,onSelect:s.value},{default:()=>v(Wt,{clsPrefix:h,class:`${h}-data-table-check-extra`},{default:()=>v(B_,null)})})}}});function of(e){return typeof e.title=="function"?e.title(e):e.title}const s2=xe({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:s,colsRef:l,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:d,componentId:f,mergedTableLayoutRef:h,headerCheckboxDisabledRef:p,onUnstableColumnResize:g,doUpdateResizableWidth:m,handleTableHeaderScroll:b,deriveNextSorter:w,doUncheckAll:C,doCheckAll:_}=Ve(Mo),S=U({});function y(E){const q=S.value[E];return q==null?void 0:q.getBoundingClientRect().width}function x(){i.value?C():_()}function P(E,q){if(lo(E,"dataTableFilter")||lo(E,"dataTableResizable")||!nf(q))return;const D=d.value.find(M=>M.columnKey===q.key)||null,B=hW(q,D);w(B)}const k=new Map;function T(E){k.set(E.key,y(E.key))}function R(E,q){const D=k.get(E.key);if(D===void 0)return;const B=D+q,M=uW(B,E.minWidth,E.maxWidth);g(B,M,E,y),m(E,M)}return{cellElsRef:S,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:s,cols:l,mergedTheme:c,checkOptions:u,mergedTableLayout:h,headerCheckboxDisabled:p,handleCheckboxUpdateChecked:x,handleColHeaderClick:P,handleTableHeaderScroll:b,handleColumnResizeStart:T,handleColumnResize:R}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:s,cols:l,mergedTheme:c,checkOptions:u,componentId:d,discrete:f,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:g,handleColHeaderClick:m,handleCheckboxUpdateChecked:b,handleColumnResizeStart:w,handleColumnResize:C}=this,_=v("thead",{class:`${t}-data-table-thead`,"data-n-id":d},s.map(x=>v("tr",{class:`${t}-data-table-tr`},x.map(({column:P,colSpan:k,rowSpan:T,isLast:R})=>{var E,q;const D=_o(P),{ellipsis:B}=P,M=()=>P.type==="selection"?P.multiple!==!1?v(rt,null,v(ml,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:b}),u?v(LW,{clsPrefix:t}):null):null:v(rt,null,v("div",{class:`${t}-data-table-th__title-wrapper`},v("div",{class:`${t}-data-table-th__title`},B===!0||B&&!B.tooltip?v("div",{class:`${t}-data-table-th__ellipsis`},of(P)):B&&typeof B=="object"?v(Pm,Object.assign({},B,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>of(P)}):of(P)),nf(P)?v(tW,{column:P}):null),i1(P)?v(yW,{column:P,options:P.filterOptions}):null,JS(P)?v(xW,{onResizeStart:()=>{w(P)},onResize:ae=>{C(P,ae)}}):null),K=D in n,V=D in o;return v("th",{ref:ae=>e[D]=ae,key:D,style:{textAlign:P.titleAlign||P.align,left:zn((E=n[D])===null||E===void 0?void 0:E.start),right:zn((q=o[D])===null||q===void 0?void 0:q.start)},colspan:k,rowspan:T,"data-col-key":D,class:[`${t}-data-table-th`,(K||V)&&`${t}-data-table-th--fixed-${K?"left":"right"}`,{[`${t}-data-table-th--sorting`]:ZS(P,g),[`${t}-data-table-th--filterable`]:i1(P),[`${t}-data-table-th--sortable`]:nf(P),[`${t}-data-table-th--selection`]:P.type==="selection",[`${t}-data-table-th--last`]:R},P.className],onClick:P.type!=="selection"&&P.type!=="expand"&&!("children"in P)?ae=>{m(ae,P)}:void 0},M())}))));if(!f)return _;const{handleTableHeaderScroll:S,scrollX:y}=this;return v("div",{class:`${t}-data-table-base-table-header`,onScroll:S},v("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:qt(y),tableLayout:h}},v("colgroup",null,l.map(x=>v("col",{key:x.key,style:x.style}))),_))}}),BW=xe({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:n,row:o,renderCell:r}=this;let i;const{render:a,key:s,ellipsis:l}=n;if(a&&!t?i=a(o,this.index):t?i=(e=o[s])===null||e===void 0?void 0:e.value:i=r?r(kh(o,s),o,n):kh(o,s),l)if(typeof l=="object"){const{mergedTheme:c}=this;return n.ellipsisComponent==="performant-ellipsis"?v(JV,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):v(Pm,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return v("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),l1=xe({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return v("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},v(Wi,null,{default:()=>this.loading?v(ti,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded}):v(Wt,{clsPrefix:e,key:"base-icon"},{default:()=>v(um,null)})}))}}),NW=xe({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Ve(Mo);return()=>{const{rowKey:o}=e;return v(ml,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}}),HW=xe({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Ve(Mo);return()=>{const{rowKey:o}=e;return v(GS,{name:n,disabled:e.disabled,checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}});function jW(e,t){const n=[];function o(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),o(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{n.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&o(i,r.index)}),n}const UW=xe({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:o,onMouseleave:r}=this;return v("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:r},v("colgroup",null,n.map(i=>v("col",{key:i.key,style:i.style}))),v("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),VW=xe({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:s,paginatedDataRef:l,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:h,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:w,hoverKeyRef:C,summaryRef:_,mergedSortStateRef:S,virtualScrollRef:y,componentId:x,mergedTableLayoutRef:P,childTriggerColIndexRef:k,indentRef:T,rowPropsRef:R,maxHeightRef:E,stripedRef:q,loadingRef:D,onLoadRef:B,loadingKeySetRef:M,expandableRef:K,stickyExpandedRowsRef:V,renderExpandIconRef:ae,summaryPlacementRef:pe,treeMateRef:Z,scrollbarPropsRef:N,setHeaderScrollLeft:O,doUpdateExpandedRowKeys:ee,handleTableBodyScroll:G,doCheck:ne,doUncheck:X,renderCell:ce}=Ve(Mo),L=U(null),be=U(null),Oe=U(null),je=kt(()=>l.value.length===0),F=kt(()=>e.showHeader||!je.value),A=kt(()=>e.showHeader||je.value);let re="";const we=I(()=>new Set(o.value));function oe(Me){var Ne;return(Ne=Z.value.getNode(Me))===null||Ne===void 0?void 0:Ne.rawNode}function ve(Me,Ne,et){const $e=oe(Me.key);if(!$e){cr("data-table",`fail to get row data with key ${Me.key}`);return}if(et){const Xe=l.value.findIndex(gt=>gt.key===re);if(Xe!==-1){const gt=l.value.findIndex(qe=>qe.key===Me.key),Q=Math.min(Xe,gt),ye=Math.max(Xe,gt),Ae=[];l.value.slice(Q,ye+1).forEach(qe=>{qe.disabled||Ae.push(qe.key)}),Ne?ne(Ae,!1,$e):X(Ae,$e),re=Me.key;return}}Ne?ne(Me.key,!1,$e):X(Me.key,$e),re=Me.key}function ke(Me){const Ne=oe(Me.key);if(!Ne){cr("data-table",`fail to get row data with key ${Me.key}`);return}ne(Me.key,!0,Ne)}function $(){if(!F.value){const{value:Ne}=Oe;return Ne||null}if(y.value)return Ce();const{value:Me}=L;return Me?Me.containerRef:null}function H(Me,Ne){var et;if(M.value.has(Me))return;const{value:$e}=o,Xe=$e.indexOf(Me),gt=Array.from($e);~Xe?(gt.splice(Xe,1),ee(gt)):Ne&&!Ne.isLeaf&&!Ne.shallowLoaded?(M.value.add(Me),(et=B.value)===null||et===void 0||et.call(B,Ne.rawNode).then(()=>{const{value:Q}=o,ye=Array.from(Q);~ye.indexOf(Me)||ye.push(Me),ee(ye)}).finally(()=>{M.value.delete(Me)})):(gt.push(Me),ee(gt))}function te(){C.value=null}function Ce(){const{value:Me}=be;return(Me==null?void 0:Me.listElRef)||null}function de(){const{value:Me}=be;return(Me==null?void 0:Me.itemsElRef)||null}function ue(Me){var Ne;G(Me),(Ne=L.value)===null||Ne===void 0||Ne.sync()}function ie(Me){var Ne;const{onResize:et}=e;et&&et(Me),(Ne=L.value)===null||Ne===void 0||Ne.sync()}const fe={getScrollContainer:$,scrollTo(Me,Ne){var et,$e;y.value?(et=be.value)===null||et===void 0||et.scrollTo(Me,Ne):($e=L.value)===null||$e===void 0||$e.scrollTo(Me,Ne)}},Fe=W([({props:Me})=>{const Ne=$e=>$e===null?null:W(`[data-n-id="${Me.componentId}"] [data-col-key="${$e}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),et=$e=>$e===null?null:W(`[data-n-id="${Me.componentId}"] [data-col-key="${$e}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return W([Ne(Me.leftActiveFixedColKey),et(Me.rightActiveFixedColKey),Me.leftActiveFixedChildrenColKeys.map($e=>Ne($e)),Me.rightActiveFixedChildrenColKeys.map($e=>et($e))])}]);let De=!1;return Yt(()=>{const{value:Me}=p,{value:Ne}=g,{value:et}=m,{value:$e}=b;if(!De&&Me===null&&et===null)return;const Xe={leftActiveFixedColKey:Me,leftActiveFixedChildrenColKeys:Ne,rightActiveFixedColKey:et,rightActiveFixedChildrenColKeys:$e,componentId:x};Fe.mount({id:`n-${x}`,force:!0,props:Xe,anchorMetaName:Ra}),De=!0}),Oa(()=>{Fe.unmount({id:`n-${x}`})}),Object.assign({bodyWidth:n,summaryPlacement:pe,dataTableSlots:t,componentId:x,scrollbarInstRef:L,virtualListRef:be,emptyElRef:Oe,summary:_,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:s,loading:D,bodyShowHeaderOnly:A,shouldDisplaySomeTablePart:F,empty:je,paginatedDataAndInfo:I(()=>{const{value:Me}=q;let Ne=!1;return{data:l.value.map(Me?($e,Xe)=>($e.isLeaf||(Ne=!0),{tmNode:$e,key:$e.key,striped:Xe%2===1,index:Xe}):($e,Xe)=>($e.isLeaf||(Ne=!0),{tmNode:$e,key:$e.key,striped:!1,index:Xe})),hasChildren:Ne}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:d,currentPage:f,rowClassName:h,renderExpand:w,mergedExpandedRowKeySet:we,hoverKey:C,mergedSortState:S,virtualScroll:y,mergedTableLayout:P,childTriggerColIndex:k,indent:T,rowProps:R,maxHeight:E,loadingKeySet:M,expandable:K,stickyExpandedRows:V,renderExpandIcon:ae,scrollbarProps:N,setHeaderScrollLeft:O,handleVirtualListScroll:ue,handleVirtualListResize:ie,handleMouseleaveTable:te,virtualListContainer:Ce,virtualListContent:de,handleTableBodyScroll:G,handleCheckboxUpdateChecked:ve,handleRadioUpdateChecked:ke,handleUpdateExpanded:H,renderCell:ce},fe)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:o,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:s,onResize:l,setHeaderScrollLeft:c}=this,u=t!==void 0||r!==void 0||a,d=!u&&i==="auto",f=t!==void 0||d,h={minWidth:qt(t)||"100%"};t&&(h.width="100%");const p=v(Oo,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||d,class:`${n}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:l}),{default:()=>{const g={},m={},{cols:b,paginatedDataAndInfo:w,mergedTheme:C,fixedColumnLeftMap:_,fixedColumnRightMap:S,currentPage:y,rowClassName:x,mergedSortState:P,mergedExpandedRowKeySet:k,stickyExpandedRows:T,componentId:R,childTriggerColIndex:E,expandable:q,rowProps:D,handleMouseleaveTable:B,renderExpand:M,summary:K,handleCheckboxUpdateChecked:V,handleRadioUpdateChecked:ae,handleUpdateExpanded:pe}=this,{length:Z}=b;let N;const{data:O,hasChildren:ee}=w,G=ee?jW(O,k):O;if(K){const F=K(this.rawPaginatedData);if(Array.isArray(F)){const A=F.map((re,we)=>({isSummaryRow:!0,key:`__n_summary__${we}`,tmNode:{rawNode:re,disabled:!0},index:-1}));N=this.summaryPlacement==="top"?[...A,...G]:[...G,...A]}else{const A={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:F,disabled:!0},index:-1};N=this.summaryPlacement==="top"?[A,...G]:[...G,A]}}else N=G;const ne=ee?{width:zn(this.indent)}:void 0,X=[];N.forEach(F=>{M&&k.has(F.key)&&(!q||q(F.tmNode.rawNode))?X.push(F,{isExpandedRow:!0,key:`${F.key}-expand`,tmNode:F.tmNode,index:F.index}):X.push(F)});const{length:ce}=X,L={};O.forEach(({tmNode:F},A)=>{L[A]=F.key});const be=T?this.bodyWidth:null,Oe=be===null?void 0:`${be}px`,je=(F,A,re)=>{const{index:we}=F;if("isExpandedRow"in F){const{tmNode:{key:ie,rawNode:fe}}=F;return v("tr",{class:`${n}-data-table-tr ${n}-data-table-tr--expanded`,key:`${ie}__expand`},v("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,A+1===ce&&`${n}-data-table-td--last-row`],colspan:Z},T?v("div",{class:`${n}-data-table-expand`,style:{width:Oe}},M(fe,we)):M(fe,we)))}const oe="isSummaryRow"in F,ve=!oe&&F.striped,{tmNode:ke,key:$}=F,{rawNode:H}=ke,te=k.has($),Ce=D?D(H,we):void 0,de=typeof x=="string"?x:fW(H,we,x);return v("tr",Object.assign({onMouseenter:()=>{this.hoverKey=$},key:$,class:[`${n}-data-table-tr`,oe&&`${n}-data-table-tr--summary`,ve&&`${n}-data-table-tr--striped`,te&&`${n}-data-table-tr--expanded`,de]},Ce),b.map((ie,fe)=>{var Fe,De,Me,Ne,et;if(A in g){const Ft=g[A],_e=Ft.indexOf(fe);if(~_e)return Ft.splice(_e,1),null}const{column:$e}=ie,Xe=_o(ie),{rowSpan:gt,colSpan:Q}=$e,ye=oe?((Fe=F.tmNode.rawNode[Xe])===null||Fe===void 0?void 0:Fe.colSpan)||1:Q?Q(H,we):1,Ae=oe?((De=F.tmNode.rawNode[Xe])===null||De===void 0?void 0:De.rowSpan)||1:gt?gt(H,we):1,qe=fe+ye===Z,Qe=A+Ae===ce,Je=Ae>1;if(Je&&(m[A]={[fe]:[]}),ye>1||Je)for(let Ft=A;Ft{pe($,F.tmNode)}})]:null,$e.type==="selection"?oe?null:$e.multiple===!1?v(HW,{key:y,rowKey:$,disabled:F.tmNode.disabled,onUpdateChecked:()=>{ae(F.tmNode)}}):v(NW,{key:y,rowKey:$,disabled:F.tmNode.disabled,onUpdateChecked:(Ft,_e)=>{V(F.tmNode,Ft,_e.shiftKey)}}):$e.type==="expand"?oe?null:!$e.expandable||!((et=$e.expandable)===null||et===void 0)&&et.call($e,H)?v(l1,{clsPrefix:n,expanded:te,renderExpandIcon:this.renderExpandIcon,onClick:()=>{pe($,null)}}):null:v(BW,{clsPrefix:n,index:we,row:H,column:$e,isSummary:oe,mergedTheme:C,renderCell:this.renderCell}))}))};return o?v(Dw,{ref:"virtualListRef",items:X,itemSize:28,visibleItemsTag:UW,visibleItemsProps:{clsPrefix:n,id:R,cols:b,onMouseleave:B},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!0},{default:({item:F,index:A})=>je(F,A,!0)}):v("table",{class:`${n}-data-table-table`,onMouseleave:B,style:{tableLayout:this.mergedTableLayout}},v("colgroup",null,b.map(F=>v("col",{key:F.key,style:F.style}))),this.showHeader?v(s2,{discrete:!1}):null,this.empty?null:v("tbody",{"data-n-id":R,class:`${n}-data-table-tbody`},X.map((F,A)=>je(F,A,!1))))}});if(this.empty){const g=()=>v("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},$n(this.dataTableSlots.empty,()=>[v(W_,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?v(rt,null,p,g()):v(ur,{onResize:this.onResize},{default:g})}return p}}),WW=xe({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,syncScrollState:s}=Ve(Mo),l=U(null),c=U(null),u=U(null),d=U(!(n.value.length||t.value.length)),f=I(()=>({maxHeight:qt(r.value),minHeight:qt(i.value)}));function h(b){o.value=b.contentRect.width,s(),d.value||(d.value=!0)}function p(){const{value:b}=l;return b?b.$el:null}function g(){const{value:b}=c;return b?b.getScrollContainer():null}const m={getBodyElement:g,getHeaderElement:p,scrollTo(b,w){var C;(C=c.value)===null||C===void 0||C.scrollTo(b,w)}};return Yt(()=>{const{value:b}=u;if(!b)return;const w=`${e.value}-data-table-base-table--transition-disabled`;d.value?setTimeout(()=>{b.classList.remove(w)},0):b.classList.add(w)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:u,headerInstRef:l,bodyInstRef:c,bodyStyle:f,flexHeight:a,handleBodyResize:h},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,o=t===void 0&&!n;return v("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:v(s2,{ref:"headerInstRef"}),v(VW,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:o,flexHeight:n,onResize:this.handleBodyResize}))}});function qW(e,t){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:r}=t,i=U(e.defaultCheckedRowKeys),a=I(()=>{var S;const{checkedRowKeys:y}=e,x=y===void 0?i.value:y;return((S=r.value)===null||S===void 0?void 0:S.multiple)===!1?{checkedKeys:x.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(x,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),s=I(()=>a.value.checkedKeys),l=I(()=>a.value.indeterminateKeys),c=I(()=>new Set(s.value)),u=I(()=>new Set(l.value)),d=I(()=>{const{value:S}=c;return n.value.reduce((y,x)=>{const{key:P,disabled:k}=x;return y+(!k&&S.has(P)?1:0)},0)}),f=I(()=>n.value.filter(S=>S.disabled).length),h=I(()=>{const{length:S}=n.value,{value:y}=u;return d.value>0&&d.valuey.has(x.key))}),p=I(()=>{const{length:S}=n.value;return d.value!==0&&d.value===S-f.value}),g=I(()=>n.value.length===0);function m(S,y,x){const{"onUpdate:checkedRowKeys":P,onUpdateCheckedRowKeys:k,onCheckedRowKeysChange:T}=e,R=[],{value:{getNode:E}}=o;S.forEach(q=>{var D;const B=(D=E(q))===null||D===void 0?void 0:D.rawNode;R.push(B)}),P&&Re(P,S,R,{row:y,action:x}),k&&Re(k,S,R,{row:y,action:x}),T&&Re(T,S,R,{row:y,action:x}),i.value=S}function b(S,y=!1,x){if(!e.loading){if(y){m(Array.isArray(S)?S.slice(0,1):[S],x,"check");return}m(o.value.check(S,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,x,"check")}}function w(S,y){e.loading||m(o.value.uncheck(S,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,y,"uncheck")}function C(S=!1){const{value:y}=r;if(!y||e.loading)return;const x=[];(S?o.value.treeNodes:n.value).forEach(P=>{P.disabled||x.push(P.key)}),m(o.value.check(x,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function _(S=!1){const{value:y}=r;if(!y||e.loading)return;const x=[];(S?o.value.treeNodes:n.value).forEach(P=>{P.disabled||x.push(P.key)}),m(o.value.uncheck(x,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:s,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:h,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:_,doCheck:b,doUncheck:w}}function Ul(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function KW(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?GW(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function GW(e){return(t,n)=>{const o=t[e],r=n[e];return o==null?r==null?0:-1:r==null?1:typeof o=="number"&&typeof r=="number"?o-r:typeof o=="string"&&typeof r=="string"?o.localeCompare(r):0}}function XW(e,{dataRelatedColsRef:t,filteredDataRef:n}){const o=[];t.value.forEach(h=>{var p;h.sorter!==void 0&&f(o,{columnKey:h.key,sorter:h.sorter,order:(p=h.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=U(o),i=I(()=>{const h=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=h.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(h.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=I(()=>{const h=i.value.slice().sort((p,g)=>{const m=Ul(p.sorter)||0;return(Ul(g.sorter)||0)-m});return h.length?n.value.slice().sort((g,m)=>{let b=0;return h.some(w=>{const{columnKey:C,sorter:_,order:S}=w,y=KW(_,C);return y&&S&&(b=y(g.rawNode,m.rawNode),b!==0)?(b=b*cW(S),!0):!1}),b}):n.value});function s(h){let p=i.value.slice();return h&&Ul(h.sorter)!==!1?(p=p.filter(g=>Ul(g.sorter)!==!1),f(p,h),p):h||null}function l(h){const p=s(h);c(p)}function c(h){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:m}=e;p&&Re(p,h),g&&Re(g,h),m&&Re(m,h),r.value=h}function u(h,p="ascend"){if(!h)d();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===h);if(!(g!=null&&g.sorter))return;const m=g.sorter;l({columnKey:h,sorter:m,order:p})}}function d(){c(null)}function f(h,p){const g=h.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);g!==void 0&&g>=0?h[g]=p:h.push(p)}return{clearSorter:d,sort:u,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:l}}function YW(e,{dataRelatedColsRef:t}){const n=I(()=>{const Z=N=>{for(let O=0;O{const{childrenKey:Z}=e;return Pi(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:N=>N[Z],getDisabled:N=>{var O,ee;return!!(!((ee=(O=n.value)===null||O===void 0?void 0:O.disabled)===null||ee===void 0)&&ee.call(O,N))}})}),r=kt(()=>{const{columns:Z}=e,{length:N}=Z;let O=null;for(let ee=0;ee{const Z=t.value.filter(ee=>ee.filterOptionValues!==void 0||ee.filterOptionValue!==void 0),N={};return Z.forEach(ee=>{var G;ee.type==="selection"||ee.type==="expand"||(ee.filterOptionValues===void 0?N[ee.key]=(G=ee.filterOptionValue)!==null&&G!==void 0?G:null:N[ee.key]=ee.filterOptionValues)}),Object.assign(r1(i.value),N)}),u=I(()=>{const Z=c.value,{columns:N}=e;function O(ne){return(X,ce)=>!!~String(ce[ne]).indexOf(String(X))}const{value:{treeNodes:ee}}=o,G=[];return N.forEach(ne=>{ne.type==="selection"||ne.type==="expand"||"children"in ne||G.push([ne.key,ne])}),ee?ee.filter(ne=>{const{rawNode:X}=ne;for(const[ce,L]of G){let be=Z[ce];if(be==null||(Array.isArray(be)||(be=[be]),!be.length))continue;const Oe=L.filter==="default"?O(ce):L.filter;if(L&&typeof Oe=="function")if(L.filterMode==="and"){if(be.some(je=>!Oe(je,X)))return!1}else{if(be.some(je=>Oe(je,X)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:g}=XW(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(Z=>{var N;if(Z.filter){const O=Z.defaultFilterOptionValues;Z.filterMultiple?i.value[Z.key]=O||[]:O!==void 0?i.value[Z.key]=O===null?[]:O:i.value[Z.key]=(N=Z.defaultFilterOptionValue)!==null&&N!==void 0?N:null}});const m=I(()=>{const{pagination:Z}=e;if(Z!==!1)return Z.page}),b=I(()=>{const{pagination:Z}=e;if(Z!==!1)return Z.pageSize}),w=rn(m,s),C=rn(b,l),_=kt(()=>{const Z=w.value;return e.remote?Z:Math.max(1,Math.min(Math.ceil(u.value.length/C.value),Z))}),S=I(()=>{const{pagination:Z}=e;if(Z){const{pageCount:N}=Z;if(N!==void 0)return N}}),y=I(()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return d.value;const Z=C.value,N=(_.value-1)*Z;return d.value.slice(N,N+Z)}),x=I(()=>y.value.map(Z=>Z.rawNode));function P(Z){const{pagination:N}=e;if(N){const{onChange:O,"onUpdate:page":ee,onUpdatePage:G}=N;O&&Re(O,Z),G&&Re(G,Z),ee&&Re(ee,Z),E(Z)}}function k(Z){const{pagination:N}=e;if(N){const{onPageSizeChange:O,"onUpdate:pageSize":ee,onUpdatePageSize:G}=N;O&&Re(O,Z),G&&Re(G,Z),ee&&Re(ee,Z),q(Z)}}const T=I(()=>{if(e.remote){const{pagination:Z}=e;if(Z){const{itemCount:N}=Z;if(N!==void 0)return N}return}return u.value.length}),R=I(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":P,"onUpdate:pageSize":k,page:_.value,pageSize:C.value,pageCount:T.value===void 0?S.value:void 0,itemCount:T.value}));function E(Z){const{"onUpdate:page":N,onPageChange:O,onUpdatePage:ee}=e;ee&&Re(ee,Z),N&&Re(N,Z),O&&Re(O,Z),s.value=Z}function q(Z){const{"onUpdate:pageSize":N,onPageSizeChange:O,onUpdatePageSize:ee}=e;O&&Re(O,Z),ee&&Re(ee,Z),N&&Re(N,Z),l.value=Z}function D(Z,N){const{onUpdateFilters:O,"onUpdate:filters":ee,onFiltersChange:G}=e;O&&Re(O,Z,N),ee&&Re(ee,Z,N),G&&Re(G,Z,N),i.value=Z}function B(Z,N,O,ee){var G;(G=e.onUnstableColumnResize)===null||G===void 0||G.call(e,Z,N,O,ee)}function M(Z){E(Z)}function K(){V()}function V(){ae({})}function ae(Z){pe(Z)}function pe(Z){Z?Z&&(i.value=r1(Z)):i.value={}}return{treeMateRef:o,mergedCurrentPageRef:_,mergedPaginationRef:R,paginatedDataRef:y,rawPaginatedDataRef:x,mergedFilterStateRef:c,mergedSortStateRef:h,hoverKeyRef:U(null),selectionColumnRef:n,childTriggerColIndexRef:r,doUpdateFilters:D,deriveNextSorter:f,doUpdatePageSize:q,doUpdatePage:E,onUnstableColumnResize:B,filter:pe,filters:ae,clearFilter:K,clearFilters:V,clearSorter:g,page:M,sort:p}}function QW(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:o}){let r=0;const i=U(),a=U(null),s=U([]),l=U(null),c=U([]),u=I(()=>qt(e.scrollX)),d=I(()=>e.columns.filter(k=>k.fixed==="left")),f=I(()=>e.columns.filter(k=>k.fixed==="right")),h=I(()=>{const k={};let T=0;function R(E){E.forEach(q=>{const D={start:T,end:0};k[_o(q)]=D,"children"in q?(R(q.children),D.end=T):(T+=o1(q)||0,D.end=T)})}return R(d.value),k}),p=I(()=>{const k={};let T=0;function R(E){for(let q=E.length-1;q>=0;--q){const D=E[q],B={start:T,end:0};k[_o(D)]=B,"children"in D?(R(D.children),B.end=T):(T+=o1(D)||0,B.end=T)}}return R(f.value),k});function g(){var k,T;const{value:R}=d;let E=0;const{value:q}=h;let D=null;for(let B=0;B(((k=q[M])===null||k===void 0?void 0:k.start)||0)-E)D=M,E=((T=q[M])===null||T===void 0?void 0:T.end)||0;else break}a.value=D}function m(){s.value=[];let k=e.columns.find(T=>_o(T)===a.value);for(;k&&"children"in k;){const T=k.children.length;if(T===0)break;const R=k.children[T-1];s.value.push(_o(R)),k=R}}function b(){var k,T;const{value:R}=f,E=Number(e.scrollX),{value:q}=o;if(q===null)return;let D=0,B=null;const{value:M}=p;for(let K=R.length-1;K>=0;--K){const V=_o(R[K]);if(Math.round(r+(((k=M[V])===null||k===void 0?void 0:k.start)||0)+q-D)_o(T)===l.value);for(;k&&"children"in k&&k.children.length;){const T=k.children[0];c.value.push(_o(T)),k=T}}function C(){const k=t.value?t.value.getHeaderElement():null,T=t.value?t.value.getBodyElement():null;return{header:k,body:T}}function _(){const{body:k}=C();k&&(k.scrollTop=0)}function S(){i.value!=="body"?Tc(x):i.value=void 0}function y(k){var T;(T=e.onScroll)===null||T===void 0||T.call(e,k),i.value!=="head"?Tc(x):i.value=void 0}function x(){const{header:k,body:T}=C();if(!T)return;const{value:R}=o;if(R!==null){if(e.maxHeight||e.flexHeight){if(!k)return;const E=r-k.scrollLeft;i.value=E!==0?"head":"body",i.value==="head"?(r=k.scrollLeft,T.scrollLeft=r):(r=T.scrollLeft,k.scrollLeft=r)}else r=T.scrollLeft;g(),m(),b(),w()}}function P(k){const{header:T}=C();T&&(T.scrollLeft=k,x())}return ft(n,()=>{_()}),{styleScrollXRef:u,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,leftFixedColumnsRef:d,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:s,rightActiveFixedColKeyRef:l,rightActiveFixedChildrenColKeysRef:c,syncScrollState:x,handleTableBodyScroll:y,handleTableHeaderScroll:S,setHeaderScrollLeft:P}}function JW(){const e=U({});function t(r){return e.value[r]}function n(r,i){JS(r)&&"key"in r&&(e.value[r.key]=i)}function o(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:o}}function ZW(e,t){const n=[],o=[],r=[],i=new WeakMap;let a=-1,s=0,l=!1;function c(f,h){h>a&&(n[h]=[],a=h);for(const p of f)if("children"in p)c(p.children,h+1);else{const g="key"in p?p.key:void 0;o.push({key:_o(p),style:dW(p,g!==void 0?qt(t(g)):void 0),column:p}),s+=1,l||(l=!!p.ellipsis),r.push(p)}}c(e,0);let u=0;function d(f,h){let p=0;f.forEach(g=>{var m;if("children"in g){const b=u,w={column:g,colSpan:0,rowSpan:1,isLast:!1};d(g.children,h+1),g.children.forEach(C=>{var _,S;w.colSpan+=(S=(_=i.get(C))===null||_===void 0?void 0:_.colSpan)!==null&&S!==void 0?S:0}),b+w.colSpan===s&&(w.isLast=!0),i.set(g,w),n[h].push(w)}else{if(u1&&(p=u+b);const w=u+b===s,C={column:g,colSpan:b,rowSpan:a-h+1,isLast:w};i.set(g,C),n[h].push(C),u+=1}})}return d(e,0),{hasEllipsis:l,rows:n,cols:o,dataRelatedCols:r}}function eq(e,t){const n=I(()=>ZW(e.columns,t));return{rowsRef:I(()=>n.value.rows),colsRef:I(()=>n.value.cols),hasEllipsisRef:I(()=>n.value.hasEllipsis),dataRelatedColsRef:I(()=>n.value.dataRelatedCols)}}function tq(e,t){const n=kt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),o=kt(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),r=U(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var d;!((d=o.value)===null||d===void 0)&&d.call(o,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Ue(e,"expandedRowKeys"),a=Ue(e,"stickyExpandedRows"),s=rn(i,r);function l(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":d}=e;u&&Re(u,c),d&&Re(d,c),r.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:s,renderExpandRef:n,expandableRef:o,doUpdateExpandedRowKeys:l}}const c1=oq(),nq=W([z("data-table",` + `)])]),jW={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},UW=Object.keys(Ia),VW=Object.assign(Object.assign(Object.assign({},Ia),jW),Le.props),zm=ye({name:"Dropdown",inheritAttrs:!1,props:VW,setup(e){const t=j(!1),n=rn(Ue(e,"show"),t),o=M(()=>{const{keyField:E,childrenField:G}=e;return Ai(e.options,{getKey(B){return B[E]},getDisabled(B){return B.disabled===!0},getIgnored(B){return B.type==="divider"||B.type==="render"},getChildren(B){return B[G]}})}),r=M(()=>o.value.treeNodes),i=j(null),a=j(null),s=j(null),l=M(()=>{var E,G,B;return(B=(G=(E=i.value)!==null&&E!==void 0?E:a.value)!==null&&G!==void 0?G:s.value)!==null&&B!==void 0?B:null}),c=M(()=>o.value.getPath(l.value).keyPath),u=M(()=>o.value.getPath(e.value).keyPath),d=kt(()=>e.keyboard&&n.value);F8({keydown:{ArrowUp:{prevent:!0,handler:S},ArrowRight:{prevent:!0,handler:_},ArrowDown:{prevent:!0,handler:y},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:x},Escape:w}},d);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=st(e),p=Le("Dropdown","-dropdown",HW,$m,e,f);at(Hu,{labelFieldRef:Ue(e,"labelField"),childrenFieldRef:Ue(e,"childrenField"),renderLabelRef:Ue(e,"renderLabel"),renderIconRef:Ue(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:Ue(e,"animated"),mergedShowRef:n,nodePropsRef:Ue(e,"nodeProps"),renderOptionRef:Ue(e,"renderOption"),menuPropsRef:Ue(e,"menuProps"),doSelect:g,doUpdateShow:m}),ut(n,E=>{!e.animated&&!E&&b()});function g(E,G){const{onSelect:B}=e;B&&Re(B,E,G)}function m(E){const{"onUpdate:show":G,onUpdateShow:B}=e;G&&Re(G,E),B&&Re(B,E),t.value=E}function b(){i.value=null,a.value=null,s.value=null}function w(){m(!1)}function C(){P("left")}function _(){P("right")}function S(){P("up")}function y(){P("down")}function x(){const E=k();E!=null&&E.isLeaf&&n.value&&(g(E.key,E.rawNode),m(!1))}function k(){var E;const{value:G}=o,{value:B}=l;return!G||B===null?null:(E=G.getNode(B))!==null&&E!==void 0?E:null}function P(E){const{value:G}=l,{value:{getFirstAvailableNode:B}}=o;let D=null;if(G===null){const L=B();L!==null&&(D=L.key)}else{const L=k();if(L){let X;switch(E){case"down":X=L.getNext();break;case"up":X=L.getPrev();break;case"right":X=L.getChild();break;case"left":X=L.getParent();break}X&&(D=X.key)}}D!==null&&(i.value=null,a.value=D)}const T=M(()=>{const{size:E,inverted:G}=e,{common:{cubicBezierEaseInOut:B},self:D}=p.value,{padding:L,dividerColor:X,borderRadius:V,optionOpacityDisabled:ae,[Te("optionIconSuffixWidth",E)]:ue,[Te("optionSuffixWidth",E)]:ee,[Te("optionIconPrefixWidth",E)]:R,[Te("optionPrefixWidth",E)]:A,[Te("fontSize",E)]:Y,[Te("optionHeight",E)]:W,[Te("optionIconSize",E)]:oe}=D,K={"--n-bezier":B,"--n-font-size":Y,"--n-padding":L,"--n-border-radius":V,"--n-option-height":W,"--n-option-prefix-width":A,"--n-option-icon-prefix-width":R,"--n-option-suffix-width":ee,"--n-option-icon-suffix-width":ue,"--n-option-icon-size":oe,"--n-divider-color":X,"--n-option-opacity-disabled":ae};return G?(K["--n-color"]=D.colorInverted,K["--n-option-color-hover"]=D.optionColorHoverInverted,K["--n-option-color-active"]=D.optionColorActiveInverted,K["--n-option-text-color"]=D.optionTextColorInverted,K["--n-option-text-color-hover"]=D.optionTextColorHoverInverted,K["--n-option-text-color-active"]=D.optionTextColorActiveInverted,K["--n-option-text-color-child-active"]=D.optionTextColorChildActiveInverted,K["--n-prefix-color"]=D.prefixColorInverted,K["--n-suffix-color"]=D.suffixColorInverted,K["--n-group-header-text-color"]=D.groupHeaderTextColorInverted):(K["--n-color"]=D.color,K["--n-option-color-hover"]=D.optionColorHover,K["--n-option-color-active"]=D.optionColorActive,K["--n-option-text-color"]=D.optionTextColor,K["--n-option-text-color-hover"]=D.optionTextColorHover,K["--n-option-text-color-active"]=D.optionTextColorActive,K["--n-option-text-color-child-active"]=D.optionTextColorChildActive,K["--n-prefix-color"]=D.prefixColor,K["--n-suffix-color"]=D.suffixColor,K["--n-group-header-text-color"]=D.groupHeaderTextColor),K}),$=h?Pt("dropdown",M(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:f,mergedTheme:p,tmNodes:r,mergedShow:n,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:m,cssVars:h?void 0:T,themeClass:$==null?void 0:$.themeClass,onRender:$==null?void 0:$.onRender}},render(){const e=(o,r,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:u}=this;(l=this.onRender)===null||l===void 0||l.call(this);const d=(u==null?void 0:u(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:xw(r),class:[o,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return v(d2,Ln(this.$attrs,f,d))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return v(gl,Object.assign({},eo(this.$props,UW),n),{trigger:()=>{var o,r;return(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o)}})}}),f2="_n_all__",h2="_n_none__";function WW(e,t,n,o){return e?r=>{for(const i of e)switch(r){case f2:n(!0);return;case h2:o(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function qW(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:f2};case"none":return{label:t.uncheckTableAll,key:h2};default:return n}}):[]}const KW=ye({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:o,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:a}=Ve(Mo),s=M(()=>WW(o.value,r,i,a)),l=M(()=>qW(o.value,n.value));return()=>{var c,u,d,f;const{clsPrefix:h}=e;return v(zm,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(f=(d=t.themeOverrides)===null||d===void 0?void 0:d.peers)===null||f===void 0?void 0:f.Dropdown,options:l.value,onSelect:s.value},{default:()=>v(Wt,{clsPrefix:h,class:`${h}-data-table-check-extra`},{default:()=>v(q_,null)})})}}});function cf(e){return typeof e.title=="function"?e.title(e):e.title}const p2=ye({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:s,colsRef:l,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:d,componentId:f,mergedTableLayoutRef:h,headerCheckboxDisabledRef:p,onUnstableColumnResize:g,doUpdateResizableWidth:m,handleTableHeaderScroll:b,deriveNextSorter:w,doUncheckAll:C,doCheckAll:_}=Ve(Mo),S=j({});function y(E){const G=S.value[E];return G==null?void 0:G.getBoundingClientRect().width}function x(){i.value?C():_()}function k(E,G){if(lo(E,"dataTableFilter")||lo(E,"dataTableResizable")||!lf(G))return;const B=d.value.find(L=>L.columnKey===G.key)||null,D=wW(G,B);w(D)}const P=new Map;function T(E){P.set(E.key,y(E.key))}function $(E,G){const B=P.get(E.key);if(B===void 0)return;const D=B+G,L=yW(D,E.minWidth,E.maxWidth);g(D,L,E,y),m(E,L)}return{cellElsRef:S,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:s,cols:l,mergedTheme:c,checkOptions:u,mergedTableLayout:h,headerCheckboxDisabled:p,handleCheckboxUpdateChecked:x,handleColHeaderClick:k,handleTableHeaderScroll:b,handleColumnResizeStart:T,handleColumnResize:$}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:a,rows:s,cols:l,mergedTheme:c,checkOptions:u,componentId:d,discrete:f,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:g,handleColHeaderClick:m,handleCheckboxUpdateChecked:b,handleColumnResizeStart:w,handleColumnResize:C}=this,_=v("thead",{class:`${t}-data-table-thead`,"data-n-id":d},s.map(x=>v("tr",{class:`${t}-data-table-tr`},x.map(({column:k,colSpan:P,rowSpan:T,isLast:$})=>{var E,G;const B=_o(k),{ellipsis:D}=k,L=()=>k.type==="selection"?k.multiple!==!1?v(rt,null,v(bl,{key:r,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:b}),u?v(KW,{clsPrefix:t}):null):null:v(rt,null,v("div",{class:`${t}-data-table-th__title-wrapper`},v("div",{class:`${t}-data-table-th__title`},D===!0||D&&!D.tooltip?v("div",{class:`${t}-data-table-th__ellipsis`},cf(k)):D&&typeof D=="object"?v(Om,Object.assign({},D,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>cf(k)}):cf(k)),lf(k)?v(uW,{column:k}):null),f1(k)?v(AW,{column:k,options:k.filterOptions}):null,i2(k)?v(RW,{onResizeStart:()=>{w(k)},onResize:ae=>{C(k,ae)}}):null),X=B in n,V=B in o;return v("th",{ref:ae=>e[B]=ae,key:B,style:{textAlign:k.titleAlign||k.align,left:zn((E=n[B])===null||E===void 0?void 0:E.start),right:zn((G=o[B])===null||G===void 0?void 0:G.start)},colspan:P,rowspan:T,"data-col-key":B,class:[`${t}-data-table-th`,(X||V)&&`${t}-data-table-th--fixed-${X?"left":"right"}`,{[`${t}-data-table-th--sorting`]:a2(k,g),[`${t}-data-table-th--filterable`]:f1(k),[`${t}-data-table-th--sortable`]:lf(k),[`${t}-data-table-th--selection`]:k.type==="selection",[`${t}-data-table-th--last`]:$},k.className],onClick:k.type!=="selection"&&k.type!=="expand"&&!("children"in k)?ae=>{m(ae,k)}:void 0},L())}))));if(!f)return _;const{handleTableHeaderScroll:S,scrollX:y}=this;return v("div",{class:`${t}-data-table-base-table-header`,onScroll:S},v("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:qt(y),tableLayout:h}},v("colgroup",null,l.map(x=>v("col",{key:x.key,style:x.style}))),_))}}),GW=ye({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:n,row:o,renderCell:r}=this;let i;const{render:a,key:s,ellipsis:l}=n;if(a&&!t?i=a(o,this.index):t?i=(e=o[s])===null||e===void 0?void 0:e.value:i=r?r($h(o,s),o,n):$h(o,s),l)if(typeof l=="object"){const{mergedTheme:c}=this;return n.ellipsisComponent==="performant-ellipsis"?v(sW,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):v(Om,Object.assign({},l,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return v("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),m1=ye({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return v("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},v(Ki,null,{default:()=>this.loading?v(oi,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded}):v(Wt,{clsPrefix:e,key:"base-icon"},{default:()=>v(vm,null)})}))}}),XW=ye({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Ve(Mo);return()=>{const{rowKey:o}=e;return v(bl,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}}),YW=ye({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Ve(Mo);return()=>{const{rowKey:o}=e;return v(t2,{name:n,disabled:e.disabled,checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}});function QW(e,t){const n=[];function o(r,i){r.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),o(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(r=>{n.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&o(i,r.index)}),n}const JW=ye({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:o,onMouseleave:r}=this;return v("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:r},v("colgroup",null,n.map(i=>v("col",{key:i.key,style:i.style}))),v("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),ZW=ye({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:a,colsRef:s,paginatedDataRef:l,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:h,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:w,hoverKeyRef:C,summaryRef:_,mergedSortStateRef:S,virtualScrollRef:y,componentId:x,mergedTableLayoutRef:k,childTriggerColIndexRef:P,indentRef:T,rowPropsRef:$,maxHeightRef:E,stripedRef:G,loadingRef:B,onLoadRef:D,loadingKeySetRef:L,expandableRef:X,stickyExpandedRowsRef:V,renderExpandIconRef:ae,summaryPlacementRef:ue,treeMateRef:ee,scrollbarPropsRef:R,setHeaderScrollLeft:A,doUpdateExpandedRowKeys:Y,handleTableBodyScroll:W,doCheck:oe,doUncheck:K,renderCell:le}=Ve(Mo),N=j(null),be=j(null),Ie=j(null),Ne=kt(()=>l.value.length===0),F=kt(()=>e.showHeader||!Ne.value),I=kt(()=>e.showHeader||Ne.value);let re="";const _e=M(()=>new Set(o.value));function ne(Me){var He;return(He=ee.value.getNode(Me))===null||He===void 0?void 0:He.rawNode}function me(Me,He,et){const $e=ne(Me.key);if(!$e){cr("data-table",`fail to get row data with key ${Me.key}`);return}if(et){const Xe=l.value.findIndex(gt=>gt.key===re);if(Xe!==-1){const gt=l.value.findIndex(qe=>qe.key===Me.key),J=Math.min(Xe,gt),xe=Math.max(Xe,gt),Ee=[];l.value.slice(J,xe+1).forEach(qe=>{qe.disabled||Ee.push(qe.key)}),He?oe(Ee,!1,$e):K(Ee,$e),re=Me.key;return}}He?oe(Me.key,!1,$e):K(Me.key,$e),re=Me.key}function we(Me){const He=ne(Me.key);if(!He){cr("data-table",`fail to get row data with key ${Me.key}`);return}oe(Me.key,!0,He)}function O(){if(!F.value){const{value:He}=Ie;return He||null}if(y.value)return Ce();const{value:Me}=N;return Me?Me.containerRef:null}function H(Me,He){var et;if(L.value.has(Me))return;const{value:$e}=o,Xe=$e.indexOf(Me),gt=Array.from($e);~Xe?(gt.splice(Xe,1),Y(gt)):He&&!He.isLeaf&&!He.shallowLoaded?(L.value.add(Me),(et=D.value)===null||et===void 0||et.call(D,He.rawNode).then(()=>{const{value:J}=o,xe=Array.from(J);~xe.indexOf(Me)||xe.push(Me),Y(xe)}).finally(()=>{L.value.delete(Me)})):(gt.push(Me),Y(gt))}function te(){C.value=null}function Ce(){const{value:Me}=be;return(Me==null?void 0:Me.listElRef)||null}function fe(){const{value:Me}=be;return(Me==null?void 0:Me.itemsElRef)||null}function de(Me){var He;W(Me),(He=N.value)===null||He===void 0||He.sync()}function ie(Me){var He;const{onResize:et}=e;et&&et(Me),(He=N.value)===null||He===void 0||He.sync()}const he={getScrollContainer:O,scrollTo(Me,He){var et,$e;y.value?(et=be.value)===null||et===void 0||et.scrollTo(Me,He):($e=N.value)===null||$e===void 0||$e.scrollTo(Me,He)}},Fe=q([({props:Me})=>{const He=$e=>$e===null?null:q(`[data-n-id="${Me.componentId}"] [data-col-key="${$e}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),et=$e=>$e===null?null:q(`[data-n-id="${Me.componentId}"] [data-col-key="${$e}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return q([He(Me.leftActiveFixedColKey),et(Me.rightActiveFixedColKey),Me.leftActiveFixedChildrenColKeys.map($e=>He($e)),Me.rightActiveFixedChildrenColKeys.map($e=>et($e))])}]);let De=!1;return Yt(()=>{const{value:Me}=p,{value:He}=g,{value:et}=m,{value:$e}=b;if(!De&&Me===null&&et===null)return;const Xe={leftActiveFixedColKey:Me,leftActiveFixedChildrenColKeys:He,rightActiveFixedColKey:et,rightActiveFixedChildrenColKeys:$e,componentId:x};Fe.mount({id:`n-${x}`,force:!0,props:Xe,anchorMetaName:$a}),De=!0}),Fa(()=>{Fe.unmount({id:`n-${x}`})}),Object.assign({bodyWidth:n,summaryPlacement:ue,dataTableSlots:t,componentId:x,scrollbarInstRef:N,virtualListRef:be,emptyElRef:Ie,summary:_,mergedClsPrefix:r,mergedTheme:i,scrollX:a,cols:s,loading:B,bodyShowHeaderOnly:I,shouldDisplaySomeTablePart:F,empty:Ne,paginatedDataAndInfo:M(()=>{const{value:Me}=G;let He=!1;return{data:l.value.map(Me?($e,Xe)=>($e.isLeaf||(He=!0),{tmNode:$e,key:$e.key,striped:Xe%2===1,index:Xe}):($e,Xe)=>($e.isLeaf||(He=!0),{tmNode:$e,key:$e.key,striped:!1,index:Xe})),hasChildren:He}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:d,currentPage:f,rowClassName:h,renderExpand:w,mergedExpandedRowKeySet:_e,hoverKey:C,mergedSortState:S,virtualScroll:y,mergedTableLayout:k,childTriggerColIndex:P,indent:T,rowProps:$,maxHeight:E,loadingKeySet:L,expandable:X,stickyExpandedRows:V,renderExpandIcon:ae,scrollbarProps:R,setHeaderScrollLeft:A,handleVirtualListScroll:de,handleVirtualListResize:ie,handleMouseleaveTable:te,virtualListContainer:Ce,virtualListContent:fe,handleTableBodyScroll:W,handleCheckboxUpdateChecked:me,handleRadioUpdateChecked:we,handleUpdateExpanded:H,renderCell:le},he)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:o,maxHeight:r,mergedTableLayout:i,flexHeight:a,loadingKeySet:s,onResize:l,setHeaderScrollLeft:c}=this,u=t!==void 0||r!==void 0||a,d=!u&&i==="auto",f=t!==void 0||d,h={minWidth:qt(t)||"100%"};t&&(h.width="100%");const p=v(Oo,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||d,class:`${n}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:l}),{default:()=>{const g={},m={},{cols:b,paginatedDataAndInfo:w,mergedTheme:C,fixedColumnLeftMap:_,fixedColumnRightMap:S,currentPage:y,rowClassName:x,mergedSortState:k,mergedExpandedRowKeySet:P,stickyExpandedRows:T,componentId:$,childTriggerColIndex:E,expandable:G,rowProps:B,handleMouseleaveTable:D,renderExpand:L,summary:X,handleCheckboxUpdateChecked:V,handleRadioUpdateChecked:ae,handleUpdateExpanded:ue}=this,{length:ee}=b;let R;const{data:A,hasChildren:Y}=w,W=Y?QW(A,P):A;if(X){const F=X(this.rawPaginatedData);if(Array.isArray(F)){const I=F.map((re,_e)=>({isSummaryRow:!0,key:`__n_summary__${_e}`,tmNode:{rawNode:re,disabled:!0},index:-1}));R=this.summaryPlacement==="top"?[...I,...W]:[...W,...I]}else{const I={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:F,disabled:!0},index:-1};R=this.summaryPlacement==="top"?[I,...W]:[...W,I]}}else R=W;const oe=Y?{width:zn(this.indent)}:void 0,K=[];R.forEach(F=>{L&&P.has(F.key)&&(!G||G(F.tmNode.rawNode))?K.push(F,{isExpandedRow:!0,key:`${F.key}-expand`,tmNode:F.tmNode,index:F.index}):K.push(F)});const{length:le}=K,N={};A.forEach(({tmNode:F},I)=>{N[I]=F.key});const be=T?this.bodyWidth:null,Ie=be===null?void 0:`${be}px`,Ne=(F,I,re)=>{const{index:_e}=F;if("isExpandedRow"in F){const{tmNode:{key:ie,rawNode:he}}=F;return v("tr",{class:`${n}-data-table-tr ${n}-data-table-tr--expanded`,key:`${ie}__expand`},v("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,I+1===le&&`${n}-data-table-td--last-row`],colspan:ee},T?v("div",{class:`${n}-data-table-expand`,style:{width:Ie}},L(he,_e)):L(he,_e)))}const ne="isSummaryRow"in F,me=!ne&&F.striped,{tmNode:we,key:O}=F,{rawNode:H}=we,te=P.has(O),Ce=B?B(H,_e):void 0,fe=typeof x=="string"?x:CW(H,_e,x);return v("tr",Object.assign({onMouseenter:()=>{this.hoverKey=O},key:O,class:[`${n}-data-table-tr`,ne&&`${n}-data-table-tr--summary`,me&&`${n}-data-table-tr--striped`,te&&`${n}-data-table-tr--expanded`,fe]},Ce),b.map((ie,he)=>{var Fe,De,Me,He,et;if(I in g){const Ft=g[I],Se=Ft.indexOf(he);if(~Se)return Ft.splice(Se,1),null}const{column:$e}=ie,Xe=_o(ie),{rowSpan:gt,colSpan:J}=$e,xe=ne?((Fe=F.tmNode.rawNode[Xe])===null||Fe===void 0?void 0:Fe.colSpan)||1:J?J(H,_e):1,Ee=ne?((De=F.tmNode.rawNode[Xe])===null||De===void 0?void 0:De.rowSpan)||1:gt?gt(H,_e):1,qe=he+xe===ee,Qe=I+Ee===le,Je=Ee>1;if(Je&&(m[I]={[he]:[]}),xe>1||Je)for(let Ft=I;Ft{ue(O,F.tmNode)}})]:null,$e.type==="selection"?ne?null:$e.multiple===!1?v(YW,{key:y,rowKey:O,disabled:F.tmNode.disabled,onUpdateChecked:()=>{ae(F.tmNode)}}):v(XW,{key:y,rowKey:O,disabled:F.tmNode.disabled,onUpdateChecked:(Ft,Se)=>{V(F.tmNode,Ft,Se.shiftKey)}}):$e.type==="expand"?ne?null:!$e.expandable||!((et=$e.expandable)===null||et===void 0)&&et.call($e,H)?v(m1,{clsPrefix:n,expanded:te,renderExpandIcon:this.renderExpandIcon,onClick:()=>{ue(O,null)}}):null:v(GW,{clsPrefix:n,index:_e,row:H,column:$e,isSummary:ne,mergedTheme:C,renderCell:this.renderCell}))}))};return o?v(Vw,{ref:"virtualListRef",items:K,itemSize:28,visibleItemsTag:JW,visibleItemsProps:{clsPrefix:n,id:$,cols:b,onMouseleave:D},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!0},{default:({item:F,index:I})=>Ne(F,I,!0)}):v("table",{class:`${n}-data-table-table`,onMouseleave:D,style:{tableLayout:this.mergedTableLayout}},v("colgroup",null,b.map(F=>v("col",{key:F.key,style:F.style}))),this.showHeader?v(p2,{discrete:!1}):null,this.empty?null:v("tbody",{"data-n-id":$,class:`${n}-data-table-tbody`},K.map((F,I)=>Ne(F,I,!1))))}});if(this.empty){const g=()=>v("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},$n(this.dataTableSlots.empty,()=>[v(J_,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?v(rt,null,p,g()):v(ur,{onResize:this.onResize},{default:g})}return p}}),eq=ye({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:r,minHeightRef:i,flexHeightRef:a,syncScrollState:s}=Ve(Mo),l=j(null),c=j(null),u=j(null),d=j(!(n.value.length||t.value.length)),f=M(()=>({maxHeight:qt(r.value),minHeight:qt(i.value)}));function h(b){o.value=b.contentRect.width,s(),d.value||(d.value=!0)}function p(){const{value:b}=l;return b?b.$el:null}function g(){const{value:b}=c;return b?b.getScrollContainer():null}const m={getBodyElement:g,getHeaderElement:p,scrollTo(b,w){var C;(C=c.value)===null||C===void 0||C.scrollTo(b,w)}};return Yt(()=>{const{value:b}=u;if(!b)return;const w=`${e.value}-data-table-base-table--transition-disabled`;d.value?setTimeout(()=>{b.classList.remove(w)},0):b.classList.add(w)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:u,headerInstRef:l,bodyInstRef:c,bodyStyle:f,flexHeight:a,handleBodyResize:h},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,o=t===void 0&&!n;return v("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:v(p2,{ref:"headerInstRef"}),v(ZW,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:o,flexHeight:n,onResize:this.handleBodyResize}))}});function tq(e,t){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:r}=t,i=j(e.defaultCheckedRowKeys),a=M(()=>{var S;const{checkedRowKeys:y}=e,x=y===void 0?i.value:y;return((S=r.value)===null||S===void 0?void 0:S.multiple)===!1?{checkedKeys:x.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(x,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),s=M(()=>a.value.checkedKeys),l=M(()=>a.value.indeterminateKeys),c=M(()=>new Set(s.value)),u=M(()=>new Set(l.value)),d=M(()=>{const{value:S}=c;return n.value.reduce((y,x)=>{const{key:k,disabled:P}=x;return y+(!P&&S.has(k)?1:0)},0)}),f=M(()=>n.value.filter(S=>S.disabled).length),h=M(()=>{const{length:S}=n.value,{value:y}=u;return d.value>0&&d.valuey.has(x.key))}),p=M(()=>{const{length:S}=n.value;return d.value!==0&&d.value===S-f.value}),g=M(()=>n.value.length===0);function m(S,y,x){const{"onUpdate:checkedRowKeys":k,onUpdateCheckedRowKeys:P,onCheckedRowKeysChange:T}=e,$=[],{value:{getNode:E}}=o;S.forEach(G=>{var B;const D=(B=E(G))===null||B===void 0?void 0:B.rawNode;$.push(D)}),k&&Re(k,S,$,{row:y,action:x}),P&&Re(P,S,$,{row:y,action:x}),T&&Re(T,S,$,{row:y,action:x}),i.value=S}function b(S,y=!1,x){if(!e.loading){if(y){m(Array.isArray(S)?S.slice(0,1):[S],x,"check");return}m(o.value.check(S,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,x,"check")}}function w(S,y){e.loading||m(o.value.uncheck(S,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,y,"uncheck")}function C(S=!1){const{value:y}=r;if(!y||e.loading)return;const x=[];(S?o.value.treeNodes:n.value).forEach(k=>{k.disabled||x.push(k.key)}),m(o.value.check(x,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function _(S=!1){const{value:y}=r;if(!y||e.loading)return;const x=[];(S?o.value.treeNodes:n.value).forEach(k=>{k.disabled||x.push(k.key)}),m(o.value.uncheck(x,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:s,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:h,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:_,doCheck:b,doUncheck:w}}function Kl(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function nq(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?oq(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function oq(e){return(t,n)=>{const o=t[e],r=n[e];return o==null?r==null?0:-1:r==null?1:typeof o=="number"&&typeof r=="number"?o-r:typeof o=="string"&&typeof r=="string"?o.localeCompare(r):0}}function rq(e,{dataRelatedColsRef:t,filteredDataRef:n}){const o=[];t.value.forEach(h=>{var p;h.sorter!==void 0&&f(o,{columnKey:h.key,sorter:h.sorter,order:(p=h.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=j(o),i=M(()=>{const h=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=h.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(h.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),a=M(()=>{const h=i.value.slice().sort((p,g)=>{const m=Kl(p.sorter)||0;return(Kl(g.sorter)||0)-m});return h.length?n.value.slice().sort((g,m)=>{let b=0;return h.some(w=>{const{columnKey:C,sorter:_,order:S}=w,y=nq(_,C);return y&&S&&(b=y(g.rawNode,m.rawNode),b!==0)?(b=b*bW(S),!0):!1}),b}):n.value});function s(h){let p=i.value.slice();return h&&Kl(h.sorter)!==!1?(p=p.filter(g=>Kl(g.sorter)!==!1),f(p,h),p):h||null}function l(h){const p=s(h);c(p)}function c(h){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:m}=e;p&&Re(p,h),g&&Re(g,h),m&&Re(m,h),r.value=h}function u(h,p="ascend"){if(!h)d();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===h);if(!(g!=null&&g.sorter))return;const m=g.sorter;l({columnKey:h,sorter:m,order:p})}}function d(){c(null)}function f(h,p){const g=h.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);g!==void 0&&g>=0?h[g]=p:h.push(p)}return{clearSorter:d,sort:u,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:l}}function iq(e,{dataRelatedColsRef:t}){const n=M(()=>{const ee=R=>{for(let A=0;A{const{childrenKey:ee}=e;return Ai(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:R=>R[ee],getDisabled:R=>{var A,Y;return!!(!((Y=(A=n.value)===null||A===void 0?void 0:A.disabled)===null||Y===void 0)&&Y.call(A,R))}})}),r=kt(()=>{const{columns:ee}=e,{length:R}=ee;let A=null;for(let Y=0;Y{const ee=t.value.filter(Y=>Y.filterOptionValues!==void 0||Y.filterOptionValue!==void 0),R={};return ee.forEach(Y=>{var W;Y.type==="selection"||Y.type==="expand"||(Y.filterOptionValues===void 0?R[Y.key]=(W=Y.filterOptionValue)!==null&&W!==void 0?W:null:R[Y.key]=Y.filterOptionValues)}),Object.assign(d1(i.value),R)}),u=M(()=>{const ee=c.value,{columns:R}=e;function A(oe){return(K,le)=>!!~String(le[oe]).indexOf(String(K))}const{value:{treeNodes:Y}}=o,W=[];return R.forEach(oe=>{oe.type==="selection"||oe.type==="expand"||"children"in oe||W.push([oe.key,oe])}),Y?Y.filter(oe=>{const{rawNode:K}=oe;for(const[le,N]of W){let be=ee[le];if(be==null||(Array.isArray(be)||(be=[be]),!be.length))continue;const Ie=N.filter==="default"?A(le):N.filter;if(N&&typeof Ie=="function")if(N.filterMode==="and"){if(be.some(Ne=>!Ie(Ne,K)))return!1}else{if(be.some(Ne=>Ie(Ne,K)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:g}=rq(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(ee=>{var R;if(ee.filter){const A=ee.defaultFilterOptionValues;ee.filterMultiple?i.value[ee.key]=A||[]:A!==void 0?i.value[ee.key]=A===null?[]:A:i.value[ee.key]=(R=ee.defaultFilterOptionValue)!==null&&R!==void 0?R:null}});const m=M(()=>{const{pagination:ee}=e;if(ee!==!1)return ee.page}),b=M(()=>{const{pagination:ee}=e;if(ee!==!1)return ee.pageSize}),w=rn(m,s),C=rn(b,l),_=kt(()=>{const ee=w.value;return e.remote?ee:Math.max(1,Math.min(Math.ceil(u.value.length/C.value),ee))}),S=M(()=>{const{pagination:ee}=e;if(ee){const{pageCount:R}=ee;if(R!==void 0)return R}}),y=M(()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return d.value;const ee=C.value,R=(_.value-1)*ee;return d.value.slice(R,R+ee)}),x=M(()=>y.value.map(ee=>ee.rawNode));function k(ee){const{pagination:R}=e;if(R){const{onChange:A,"onUpdate:page":Y,onUpdatePage:W}=R;A&&Re(A,ee),W&&Re(W,ee),Y&&Re(Y,ee),E(ee)}}function P(ee){const{pagination:R}=e;if(R){const{onPageSizeChange:A,"onUpdate:pageSize":Y,onUpdatePageSize:W}=R;A&&Re(A,ee),W&&Re(W,ee),Y&&Re(Y,ee),G(ee)}}const T=M(()=>{if(e.remote){const{pagination:ee}=e;if(ee){const{itemCount:R}=ee;if(R!==void 0)return R}return}return u.value.length}),$=M(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":k,"onUpdate:pageSize":P,page:_.value,pageSize:C.value,pageCount:T.value===void 0?S.value:void 0,itemCount:T.value}));function E(ee){const{"onUpdate:page":R,onPageChange:A,onUpdatePage:Y}=e;Y&&Re(Y,ee),R&&Re(R,ee),A&&Re(A,ee),s.value=ee}function G(ee){const{"onUpdate:pageSize":R,onPageSizeChange:A,onUpdatePageSize:Y}=e;A&&Re(A,ee),Y&&Re(Y,ee),R&&Re(R,ee),l.value=ee}function B(ee,R){const{onUpdateFilters:A,"onUpdate:filters":Y,onFiltersChange:W}=e;A&&Re(A,ee,R),Y&&Re(Y,ee,R),W&&Re(W,ee,R),i.value=ee}function D(ee,R,A,Y){var W;(W=e.onUnstableColumnResize)===null||W===void 0||W.call(e,ee,R,A,Y)}function L(ee){E(ee)}function X(){V()}function V(){ae({})}function ae(ee){ue(ee)}function ue(ee){ee?ee&&(i.value=d1(ee)):i.value={}}return{treeMateRef:o,mergedCurrentPageRef:_,mergedPaginationRef:$,paginatedDataRef:y,rawPaginatedDataRef:x,mergedFilterStateRef:c,mergedSortStateRef:h,hoverKeyRef:j(null),selectionColumnRef:n,childTriggerColIndexRef:r,doUpdateFilters:B,deriveNextSorter:f,doUpdatePageSize:G,doUpdatePage:E,onUnstableColumnResize:D,filter:ue,filters:ae,clearFilter:X,clearFilters:V,clearSorter:g,page:L,sort:p}}function aq(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:o}){let r=0;const i=j(),a=j(null),s=j([]),l=j(null),c=j([]),u=M(()=>qt(e.scrollX)),d=M(()=>e.columns.filter(P=>P.fixed==="left")),f=M(()=>e.columns.filter(P=>P.fixed==="right")),h=M(()=>{const P={};let T=0;function $(E){E.forEach(G=>{const B={start:T,end:0};P[_o(G)]=B,"children"in G?($(G.children),B.end=T):(T+=u1(G)||0,B.end=T)})}return $(d.value),P}),p=M(()=>{const P={};let T=0;function $(E){for(let G=E.length-1;G>=0;--G){const B=E[G],D={start:T,end:0};P[_o(B)]=D,"children"in B?($(B.children),D.end=T):(T+=u1(B)||0,D.end=T)}}return $(f.value),P});function g(){var P,T;const{value:$}=d;let E=0;const{value:G}=h;let B=null;for(let D=0;D<$.length;++D){const L=_o($[D]);if(r>(((P=G[L])===null||P===void 0?void 0:P.start)||0)-E)B=L,E=((T=G[L])===null||T===void 0?void 0:T.end)||0;else break}a.value=B}function m(){s.value=[];let P=e.columns.find(T=>_o(T)===a.value);for(;P&&"children"in P;){const T=P.children.length;if(T===0)break;const $=P.children[T-1];s.value.push(_o($)),P=$}}function b(){var P,T;const{value:$}=f,E=Number(e.scrollX),{value:G}=o;if(G===null)return;let B=0,D=null;const{value:L}=p;for(let X=$.length-1;X>=0;--X){const V=_o($[X]);if(Math.round(r+(((P=L[V])===null||P===void 0?void 0:P.start)||0)+G-B)_o(T)===l.value);for(;P&&"children"in P&&P.children.length;){const T=P.children[0];c.value.push(_o(T)),P=T}}function C(){const P=t.value?t.value.getHeaderElement():null,T=t.value?t.value.getBodyElement():null;return{header:P,body:T}}function _(){const{body:P}=C();P&&(P.scrollTop=0)}function S(){i.value!=="body"?Ic(x):i.value=void 0}function y(P){var T;(T=e.onScroll)===null||T===void 0||T.call(e,P),i.value!=="head"?Ic(x):i.value=void 0}function x(){const{header:P,body:T}=C();if(!T)return;const{value:$}=o;if($!==null){if(e.maxHeight||e.flexHeight){if(!P)return;const E=r-P.scrollLeft;i.value=E!==0?"head":"body",i.value==="head"?(r=P.scrollLeft,T.scrollLeft=r):(r=T.scrollLeft,P.scrollLeft=r)}else r=T.scrollLeft;g(),m(),b(),w()}}function k(P){const{header:T}=C();T&&(T.scrollLeft=P,x())}return ut(n,()=>{_()}),{styleScrollXRef:u,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,leftFixedColumnsRef:d,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:s,rightActiveFixedColKeyRef:l,rightActiveFixedChildrenColKeysRef:c,syncScrollState:x,handleTableBodyScroll:y,handleTableHeaderScroll:S,setHeaderScrollLeft:k}}function sq(){const e=j({});function t(r){return e.value[r]}function n(r,i){i2(r)&&"key"in r&&(e.value[r.key]=i)}function o(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:o}}function lq(e,t){const n=[],o=[],r=[],i=new WeakMap;let a=-1,s=0,l=!1;function c(f,h){h>a&&(n[h]=[],a=h);for(const p of f)if("children"in p)c(p.children,h+1);else{const g="key"in p?p.key:void 0;o.push({key:_o(p),style:xW(p,g!==void 0?qt(t(g)):void 0),column:p}),s+=1,l||(l=!!p.ellipsis),r.push(p)}}c(e,0);let u=0;function d(f,h){let p=0;f.forEach(g=>{var m;if("children"in g){const b=u,w={column:g,colSpan:0,rowSpan:1,isLast:!1};d(g.children,h+1),g.children.forEach(C=>{var _,S;w.colSpan+=(S=(_=i.get(C))===null||_===void 0?void 0:_.colSpan)!==null&&S!==void 0?S:0}),b+w.colSpan===s&&(w.isLast=!0),i.set(g,w),n[h].push(w)}else{if(u1&&(p=u+b);const w=u+b===s,C={column:g,colSpan:b,rowSpan:a-h+1,isLast:w};i.set(g,C),n[h].push(C),u+=1}})}return d(e,0),{hasEllipsis:l,rows:n,cols:o,dataRelatedCols:r}}function cq(e,t){const n=M(()=>lq(e.columns,t));return{rowsRef:M(()=>n.value.rows),colsRef:M(()=>n.value.cols),hasEllipsisRef:M(()=>n.value.hasEllipsis),dataRelatedColsRef:M(()=>n.value.dataRelatedCols)}}function uq(e,t){const n=kt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),o=kt(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),r=j(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var d;!((d=o.value)===null||d===void 0)&&d.call(o,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Ue(e,"expandedRowKeys"),a=Ue(e,"stickyExpandedRows"),s=rn(i,r);function l(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":d}=e;u&&Re(u,c),d&&Re(d,c),r.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:s,renderExpandRef:n,expandableRef:o,doUpdateExpandedRowKeys:l}}const g1=fq(),dq=q([z("data-table",` width: 100%; font-size: var(--n-font-size); display: flex; @@ -2115,11 +2115,11 @@ ${t} flex-grow: 1; display: flex; flex-direction: column; - `),J("flex-height",[W(">",[z("data-table-wrapper",[W(">",[z("data-table-base-table",` + `),Z("flex-height",[q(">",[z("data-table-wrapper",[q(">",[z("data-table-base-table",` display: flex; flex-direction: column; flex-grow: 1; - `,[W(">",[z("data-table-base-table-body","flex-basis: 0;",[W("&:last-child","flex-grow: 1;")])])])])])])]),W(">",[z("data-table-loading-wrapper",` + `,[q(">",[z("data-table-base-table-body","flex-basis: 0;",[q("&:last-child","flex-grow: 1;")])])])])])])]),q(">",[z("data-table-loading-wrapper",` color: var(--n-loading-color); font-size: var(--n-loading-size); position: absolute; @@ -2130,7 +2130,7 @@ ${t} display: flex; align-items: center; justify-content: center; - `,[Wa({originalTransform:"translateX(-50%) translateY(-50%)"})])]),z("data-table-expand-placeholder",` + `,[Ga({originalTransform:"translateX(-50%) translateY(-50%)"})])]),z("data-table-expand-placeholder",` margin-right: 8px; display: inline-block; width: 16px; @@ -2149,7 +2149,7 @@ ${t} height: 16px; color: var(--n-td-text-color); transition: color .3s var(--n-bezier); - `,[J("expanded",[z("icon","transform: rotate(90deg);",[Kn({originalTransform:"rotate(90deg)"})]),z("base-icon","transform: rotate(90deg);",[Kn({originalTransform:"rotate(90deg)"})])]),z("base-loading",` + `,[Z("expanded",[z("icon","transform: rotate(90deg);",[Kn({originalTransform:"rotate(90deg)"})]),z("base-icon","transform: rotate(90deg);",[Kn({originalTransform:"rotate(90deg)"})])]),z("base-loading",` color: var(--n-loading-color); transition: color .3s var(--n-bezier); position: absolute; @@ -2183,7 +2183,7 @@ ${t} margin: calc(var(--n-th-padding) * -1); padding: var(--n-th-padding); box-sizing: border-box; - `),J("striped","background-color: var(--n-merged-td-color-striped);",[z("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Et("summary",[W("&:hover","background-color: var(--n-merged-td-color-hover);",[W(">",[z("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),z("data-table-th",` + `),Z("striped","background-color: var(--n-merged-td-color-striped);",[z("data-table-td","background-color: var(--n-merged-td-color-striped);")]),At("summary",[q("&:hover","background-color: var(--n-merged-td-color-hover);",[q(">",[z("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),z("data-table-th",` padding: var(--n-th-padding); position: relative; text-align: start; @@ -2197,39 +2197,39 @@ ${t} color .3s var(--n-bezier), background-color .3s var(--n-bezier); font-weight: var(--n-th-font-weight); - `,[J("filterable",` + `,[Z("filterable",` padding-right: 36px; - `,[J("sortable",` + `,[Z("sortable",` padding-right: calc(var(--n-th-padding) + 36px); - `)]),c1,J("selection",` + `)]),g1,Z("selection",` padding: 0; text-align: center; line-height: 0; z-index: 3; - `),j("title-wrapper",` + `),U("title-wrapper",` display: flex; align-items: center; flex-wrap: nowrap; max-width: 100%; - `,[j("title",` + `,[U("title",` flex: 1; min-width: 0; - `)]),j("ellipsis",` + `)]),U("ellipsis",` display: inline-block; vertical-align: bottom; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100%; - `),J("hover",` + `),Z("hover",` background-color: var(--n-merged-th-color-hover); - `),J("sorting",` + `),Z("sorting",` background-color: var(--n-merged-th-color-sorting); - `),J("sortable",` + `),Z("sortable",` cursor: pointer; - `,[j("ellipsis",` + `,[U("ellipsis",` max-width: calc(100% - 18px); - `),W("&:hover",` + `),q("&:hover",` background-color: var(--n-merged-th-color-hover); `)]),z("data-table-sorter",` height: var(--n-sorter-size); @@ -2242,11 +2242,11 @@ ${t} vertical-align: -0.2em; color: var(--n-th-icon-color); transition: color .3s var(--n-bezier); - `,[z("base-icon","transition: transform .3s var(--n-bezier)"),J("desc",[z("base-icon",` + `,[z("base-icon","transition: transform .3s var(--n-bezier)"),Z("desc",[z("base-icon",` transform: rotate(0deg); - `)]),J("asc",[z("base-icon",` + `)]),Z("asc",[z("base-icon",` transform: rotate(-180deg); - `)]),J("asc, desc",` + `)]),Z("asc, desc",` color: var(--n-th-icon-color-active); `)]),z("data-table-resize-button",` width: var(--n-resizable-container-size); @@ -2256,7 +2256,7 @@ ${t} bottom: 0; cursor: col-resize; user-select: none; - `,[W("&::after",` + `,[q("&::after",` width: var(--n-resizable-size); height: 50%; position: absolute; @@ -2268,9 +2268,9 @@ ${t} transition: background-color .3s var(--n-bezier); z-index: 1; content: ''; - `),J("active",[W("&::after",` + `),Z("active",[q("&::after",` background-color: var(--n-th-icon-color-active); - `)]),W("&:hover::after",` + `)]),q("&:hover::after",` background-color: var(--n-th-icon-color-active); `)]),z("data-table-filter",` position: absolute; @@ -2288,11 +2288,11 @@ ${t} color .3s var(--n-bezier); font-size: var(--n-filter-size); color: var(--n-th-icon-color); - `,[W("&:hover",` + `,[q("&:hover",` background-color: var(--n-th-button-color-hover); - `),J("show",` + `),Z("show",` background-color: var(--n-th-button-color-hover); - `),J("active",` + `),Z("active",` background-color: var(--n-th-button-color-hover); color: var(--n-th-icon-color-active); `)])]),z("data-table-td",` @@ -2308,21 +2308,21 @@ ${t} background-color .3s var(--n-bezier), border-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[J("expand",[z("data-table-expand-trigger",` + `,[Z("expand",[z("data-table-expand-trigger",` margin-right: 0; - `)]),J("last-row",` + `)]),Z("last-row",` border-bottom: 0 solid var(--n-merged-border-color); - `,[W("&::after",` + `,[q("&::after",` bottom: 0 !important; - `),W("&::before",` + `),q("&::before",` bottom: 0 !important; - `)]),J("summary",` + `)]),Z("summary",` background-color: var(--n-merged-th-color); - `),J("hover",` + `),Z("hover",` background-color: var(--n-merged-td-color-hover); - `),J("sorting",` + `),Z("sorting",` background-color: var(--n-merged-td-color-sorting); - `),j("ellipsis",` + `),U("ellipsis",` display: inline-block; text-overflow: ellipsis; overflow: hidden; @@ -2330,11 +2330,11 @@ ${t} max-width: 100%; vertical-align: bottom; max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); - `),J("selection, expand",` + `),Z("selection, expand",` text-align: center; padding: 0; line-height: 0; - `),c1]),z("data-table-empty",` + `),g1]),z("data-table-empty",` box-sizing: border-box; padding: var(--n-empty-padding); flex-grow: 1; @@ -2344,9 +2344,9 @@ ${t} align-items: center; justify-content: center; transition: opacity .3s var(--n-bezier); - `,[J("hide",` + `,[Z("hide",` opacity: 0; - `)]),j("pagination",` + `)]),U("pagination",` margin: var(--n-pagination-margin); display: flex; justify-content: flex-end; @@ -2357,27 +2357,27 @@ ${t} border-top-left-radius: var(--n-border-radius); border-top-right-radius: var(--n-border-radius); line-height: var(--n-line-height); - `),J("loading",[z("data-table-wrapper",` + `),Z("loading",[z("data-table-wrapper",` opacity: var(--n-opacity-loading); pointer-events: none; - `)]),J("single-column",[z("data-table-td",` + `)]),Z("single-column",[z("data-table-td",` border-bottom: 0 solid var(--n-merged-border-color); - `,[W("&::after, &::before",` + `,[q("&::after, &::before",` bottom: 0 !important; - `)])]),Et("single-line",[z("data-table-th",` + `)])]),At("single-line",[z("data-table-th",` border-right: 1px solid var(--n-merged-border-color); - `,[J("last",` + `,[Z("last",` border-right: 0 solid var(--n-merged-border-color); `)]),z("data-table-td",` border-right: 1px solid var(--n-merged-border-color); - `,[J("last-col",` + `,[Z("last-col",` border-right: 0 solid var(--n-merged-border-color); - `)])]),J("bordered",[z("data-table-wrapper",` + `)])]),Z("bordered",[z("data-table-wrapper",` border: 1px solid var(--n-merged-border-color); border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); overflow: hidden; - `)]),z("data-table-base-table",[J("transition-disabled",[z("data-table-th",[W("&::after, &::before","transition: none;")]),z("data-table-td",[W("&::after, &::before","transition: none;")])])]),J("bottom-bordered",[z("data-table-td",[J("last-row",` + `)]),z("data-table-base-table",[Z("transition-disabled",[z("data-table-th",[q("&::after, &::before","transition: none;")]),z("data-table-td",[q("&::after, &::before","transition: none;")])])]),Z("bottom-bordered",[z("data-table-td",[Z("last-row",` border-bottom: 1px solid var(--n-merged-border-color); `)])]),z("data-table-table",` font-variant-numeric: tabular-nums; @@ -2395,7 +2395,7 @@ ${t} flex-shrink: 0; transition: border-color .3s var(--n-bezier); scrollbar-width: none; - `,[W("&::-webkit-scrollbar",` + `,[q("&::-webkit-scrollbar",` width: 0; height: 0; `)]),z("data-table-check-extra",` @@ -2409,7 +2409,7 @@ ${t} z-index: 1; `)]),z("data-table-filter-menu",[z("scrollbar",` max-height: 240px; - `),j("group",` + `),U("group",` display: flex; flex-direction: column; padding: 12px 12px 0 12px; @@ -2419,19 +2419,19 @@ ${t} `),z("radio",` margin-bottom: 12px; margin-right: 0; - `)]),j("action",` + `)]),U("action",` padding: var(--n-action-padding); display: flex; flex-wrap: nowrap; justify-content: space-evenly; border-top: 1px solid var(--n-action-divider-color); - `,[z("button",[W("&:not(:last-child)",` + `,[z("button",[q("&:not(:last-child)",` margin: var(--n-action-button-margin); - `),W("&:last-child",` + `),q("&:last-child",` margin-right: 0; `)])]),z("divider",` margin: 0 !important; - `)]),al(z("data-table",` + `)]),cl(z("data-table",` --n-merged-th-color: var(--n-th-color-modal); --n-merged-td-color: var(--n-td-color-modal); --n-merged-border-color: var(--n-border-color-modal); @@ -2440,7 +2440,7 @@ ${t} --n-merged-th-color-sorting: var(--n-th-color-hover-modal); --n-merged-td-color-sorting: var(--n-td-color-hover-modal); --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),wu(z("data-table",` + `)),Tu(z("data-table",` --n-merged-th-color: var(--n-th-color-popover); --n-merged-td-color: var(--n-td-color-popover); --n-merged-border-color: var(--n-border-color-popover); @@ -2449,11 +2449,11 @@ ${t} --n-merged-th-color-sorting: var(--n-th-color-hover-popover); --n-merged-td-color-sorting: var(--n-td-color-hover-popover); --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function oq(){return[J("fixed-left",` + `))]);function fq(){return[Z("fixed-left",` left: 0; position: sticky; z-index: 2; - `,[W("&::after",` + `,[q("&::after",` pointer-events: none; content: ""; width: 36px; @@ -2463,11 +2463,11 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); right: -36px; - `)]),J("fixed-right",` + `)]),Z("fixed-right",` right: 0; position: sticky; z-index: 1; - `,[W("&::before",` + `,[q("&::before",` pointer-events: none; content: ""; width: 36px; @@ -2477,7 +2477,7 @@ ${t} bottom: -1px; transition: box-shadow .2s var(--n-bezier); left: -36px; - `)])]}const Du=xe({name:"DataTable",alias:["AdvancedTable"],props:ZV,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=pn("DataTable",i,o),s=I(()=>{const{bottomBordered:Q}=e;return n.value?!1:Q!==void 0?Q:!0}),l=Le("DataTable","-data-table",nq,GV,e,o),c=U(null),u=U(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=JW(),{rowsRef:p,colsRef:g,dataRelatedColsRef:m,hasEllipsisRef:b}=eq(e,d),{treeMateRef:w,mergedCurrentPageRef:C,paginatedDataRef:_,rawPaginatedDataRef:S,selectionColumnRef:y,hoverKeyRef:x,mergedPaginationRef:P,mergedFilterStateRef:k,mergedSortStateRef:T,childTriggerColIndexRef:R,doUpdatePage:E,doUpdateFilters:q,onUnstableColumnResize:D,deriveNextSorter:B,filter:M,filters:K,clearFilter:V,clearFilters:ae,clearSorter:pe,page:Z,sort:N}=YW(e,{dataRelatedColsRef:m}),O=Q=>{const{fileName:ye="data.csv",keepOriginalData:Ae=!1}=Q||{},qe=Ae?e.data:S.value,Qe=mW(e.columns,qe),Je=new Blob([Qe],{type:"text/csv;charset=utf-8"}),tt=URL.createObjectURL(Je);wO(tt,ye.endsWith(".csv")?ye:`${ye}.csv`),URL.revokeObjectURL(tt)},{doCheckAll:ee,doUncheckAll:G,doCheck:ne,doUncheck:X,headerCheckboxDisabledRef:ce,someRowsCheckedRef:L,allRowsCheckedRef:be,mergedCheckedRowKeySetRef:Oe,mergedInderminateRowKeySetRef:je}=qW(e,{selectionColumnRef:y,treeMateRef:w,paginatedDataRef:_}),{stickyExpandedRowsRef:F,mergedExpandedRowKeysRef:A,renderExpandRef:re,expandableRef:we,doUpdateExpandedRowKeys:oe}=tq(e,w),{handleTableBodyScroll:ve,handleTableHeaderScroll:ke,syncScrollState:$,setHeaderScrollLeft:H,leftActiveFixedColKeyRef:te,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ie,rightFixedColumnsRef:fe,fixedColumnLeftMapRef:Fe,fixedColumnRightMapRef:De}=QW(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:C}),{localeRef:Me}=Hi("DataTable"),Ne=I(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);at(Mo,{props:e,treeMateRef:w,renderExpandIconRef:Ue(e,"renderExpandIcon"),loadingKeySetRef:U(new Set),slots:t,indentRef:Ue(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:c,componentId:Qr(),hoverKeyRef:x,mergedClsPrefixRef:o,mergedThemeRef:l,scrollXRef:I(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:_,leftActiveFixedColKeyRef:te,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:de,rightActiveFixedChildrenColKeysRef:ue,leftFixedColumnsRef:ie,rightFixedColumnsRef:fe,fixedColumnLeftMapRef:Fe,fixedColumnRightMapRef:De,mergedCurrentPageRef:C,someRowsCheckedRef:L,allRowsCheckedRef:be,mergedSortStateRef:T,mergedFilterStateRef:k,loadingRef:Ue(e,"loading"),rowClassNameRef:Ue(e,"rowClassName"),mergedCheckedRowKeySetRef:Oe,mergedExpandedRowKeysRef:A,mergedInderminateRowKeySetRef:je,localeRef:Me,expandableRef:we,stickyExpandedRowsRef:F,rowKeyRef:Ue(e,"rowKey"),renderExpandRef:re,summaryRef:Ue(e,"summary"),virtualScrollRef:Ue(e,"virtualScroll"),rowPropsRef:Ue(e,"rowProps"),stripedRef:Ue(e,"striped"),checkOptionsRef:I(()=>{const{value:Q}=y;return Q==null?void 0:Q.options}),rawPaginatedDataRef:S,filterMenuCssVarsRef:I(()=>{const{self:{actionDividerColor:Q,actionPadding:ye,actionButtonMargin:Ae}}=l.value;return{"--n-action-padding":ye,"--n-action-button-margin":Ae,"--n-action-divider-color":Q}}),onLoadRef:Ue(e,"onLoad"),mergedTableLayoutRef:Ne,maxHeightRef:Ue(e,"maxHeight"),minHeightRef:Ue(e,"minHeight"),flexHeightRef:Ue(e,"flexHeight"),headerCheckboxDisabledRef:ce,paginationBehaviorOnFilterRef:Ue(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Ue(e,"summaryPlacement"),filterIconPopoverPropsRef:Ue(e,"filterIconPopoverProps"),scrollbarPropsRef:Ue(e,"scrollbarProps"),syncScrollState:$,doUpdatePage:E,doUpdateFilters:q,getResizableWidth:d,onUnstableColumnResize:D,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:B,doCheck:ne,doUncheck:X,doCheckAll:ee,doUncheckAll:G,doUpdateExpandedRowKeys:oe,handleTableHeaderScroll:ke,handleTableBodyScroll:ve,setHeaderScrollLeft:H,renderCell:Ue(e,"renderCell")});const et={filter:M,filters:K,clearFilters:ae,clearSorter:pe,page:Z,sort:N,clearFilter:V,downloadCsv:O,scrollTo:(Q,ye)=>{var Ae;(Ae=u.value)===null||Ae===void 0||Ae.scrollTo(Q,ye)}},$e=I(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:ye},self:{borderColor:Ae,tdColorHover:qe,tdColorSorting:Qe,tdColorSortingModal:Je,tdColorSortingPopover:tt,thColorSorting:it,thColorSortingModal:vt,thColorSortingPopover:an,thColor:Ft,thColorHover:_e,tdColor:Be,tdTextColor:Ze,thTextColor:ht,thFontWeight:bt,thButtonColorHover:ut,thIconColor:Rt,thIconColorActive:le,filterSize:Ee,borderRadius:ot,lineHeight:Bt,tdColorModal:Kt,thColorModal:Dt,borderColorModal:yo,thColorHoverModal:xo,tdColorHoverModal:Co,borderColorPopover:Jo,thColorPopover:Zo,tdColorPopover:oi,tdColorHoverPopover:Qa,thColorHoverPopover:Ja,paginationMargin:Za,emptyPadding:es,boxShadowAfter:yr,boxShadowBefore:xr,sorterSize:ed,resizableContainerSize:td,resizableSize:nd,loadingColor:od,loadingSize:rd,opacityLoading:id,tdColorStriped:ad,tdColorStripedModal:sd,tdColorStripedPopover:ld,[Te("fontSize",Q)]:cd,[Te("thPadding",Q)]:ud,[Te("tdPadding",Q)]:dd}}=l.value;return{"--n-font-size":cd,"--n-th-padding":ud,"--n-td-padding":dd,"--n-bezier":ye,"--n-border-radius":ot,"--n-line-height":Bt,"--n-border-color":Ae,"--n-border-color-modal":yo,"--n-border-color-popover":Jo,"--n-th-color":Ft,"--n-th-color-hover":_e,"--n-th-color-modal":Dt,"--n-th-color-hover-modal":xo,"--n-th-color-popover":Zo,"--n-th-color-hover-popover":Ja,"--n-td-color":Be,"--n-td-color-hover":qe,"--n-td-color-modal":Kt,"--n-td-color-hover-modal":Co,"--n-td-color-popover":oi,"--n-td-color-hover-popover":Qa,"--n-th-text-color":ht,"--n-td-text-color":Ze,"--n-th-font-weight":bt,"--n-th-button-color-hover":ut,"--n-th-icon-color":Rt,"--n-th-icon-color-active":le,"--n-filter-size":Ee,"--n-pagination-margin":Za,"--n-empty-padding":es,"--n-box-shadow-before":xr,"--n-box-shadow-after":yr,"--n-sorter-size":ed,"--n-resizable-container-size":td,"--n-resizable-size":nd,"--n-loading-size":rd,"--n-loading-color":od,"--n-opacity-loading":id,"--n-td-color-striped":ad,"--n-td-color-striped-modal":sd,"--n-td-color-striped-popover":ld,"n-td-color-sorting":Qe,"n-td-color-sorting-modal":Je,"n-td-color-sorting-popover":tt,"n-th-color-sorting":it,"n-th-color-sorting-modal":vt,"n-th-color-sorting-popover":an}}),Xe=r?Pt("data-table",I(()=>e.size[0]),$e,e):void 0,gt=I(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Q=P.value,{pageCount:ye}=Q;return ye!==void 0?ye>1:Q.itemCount&&Q.pageSize&&Q.itemCount>Q.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:o,rtlEnabled:a,mergedTheme:l,paginatedData:_,mergedBordered:n,mergedBottomBordered:s,mergedPagination:P,mergedShowPagination:gt,cssVars:r?void 0:$e,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender},et)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:o,spinProps:r}=this;return n==null||n(),v("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},v("div",{class:`${e}-data-table-wrapper`},v(WW,{ref:"mainTableInstRef"})),this.mergedShowPagination?v("div",{class:`${e}-data-table__pagination`},v(MV,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,v(fn,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?v("div",{class:`${e}-data-table-loading-wrapper`},$n(o.loading,()=>[v(ti,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),rq={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function iq(e){const{popoverColor:t,textColor2:n,primaryColor:o,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},rq),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:n,itemTextColorActive:o,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})}const aq={name:"TimePicker",common:He,peers:{Scrollbar:Un,Button:Vn,Input:go},self:iq},l2=aq,sq={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function lq(e){const{hoverColor:t,fontSize:n,textColor2:o,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:h,fontWeightStrong:p}=e;return Object.assign(Object.assign({},sq),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:o,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Ie(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const cq={name:"DatePicker",common:He,peers:{Input:go,Button:Vn,TimePicker:l2,Scrollbar:Un},self(e){const{popoverColor:t,hoverColor:n,primaryColor:o}=e,r=lq(e);return r.itemColorDisabled=Ke(t,n),r.itemColorIncluded=Ie(o,{alpha:.15}),r.itemColorHover=Ke(t,n),r}},uq=cq,dq={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function fq(e){const{tableHeaderColor:t,textColor2:n,textColor1:o,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},dq),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:o,thColor:Ke(r,t),thColorModal:Ke(i,t),thColorPopover:Ke(a,t),thTextColor:o,thFontWeight:c,tdTextColor:n,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ke(r,s),borderColorModal:Ke(i,s),borderColorPopover:Ke(a,s),borderRadius:l})}const hq={name:"Descriptions",common:He,self:fq},pq=hq,mq={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function c2(e){const{textColor1:t,textColor2:n,modalColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:u,warningColor:d,errorColor:f,primaryColor:h,dividerColor:p,borderRadius:g,fontWeightStrong:m,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},mq),{fontSize:w,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:o,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:h,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:g,titleFontWeight:m})}const gq={name:"Dialog",common:xt,peers:{Button:Iu},self:c2},u2=gq,vq={name:"Dialog",common:He,peers:{Button:Vn},self:c2},d2=vq,Lu={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},f2=Jr(Lu),bq=W([z("dialog",` + `)])]}const ju=ye({name:"DataTable",alias:["AdvancedTable"],props:lW,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:i}=st(e),a=pn("DataTable",i,o),s=M(()=>{const{bottomBordered:J}=e;return n.value?!1:J!==void 0?J:!0}),l=Le("DataTable","-data-table",dq,oW,e,o),c=j(null),u=j(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=sq(),{rowsRef:p,colsRef:g,dataRelatedColsRef:m,hasEllipsisRef:b}=cq(e,d),{treeMateRef:w,mergedCurrentPageRef:C,paginatedDataRef:_,rawPaginatedDataRef:S,selectionColumnRef:y,hoverKeyRef:x,mergedPaginationRef:k,mergedFilterStateRef:P,mergedSortStateRef:T,childTriggerColIndexRef:$,doUpdatePage:E,doUpdateFilters:G,onUnstableColumnResize:B,deriveNextSorter:D,filter:L,filters:X,clearFilter:V,clearFilters:ae,clearSorter:ue,page:ee,sort:R}=iq(e,{dataRelatedColsRef:m}),A=J=>{const{fileName:xe="data.csv",keepOriginalData:Ee=!1}=J||{},qe=Ee?e.data:S.value,Qe=SW(e.columns,qe),Je=new Blob([Qe],{type:"text/csv;charset=utf-8"}),tt=URL.createObjectURL(Je);$O(tt,xe.endsWith(".csv")?xe:`${xe}.csv`),URL.revokeObjectURL(tt)},{doCheckAll:Y,doUncheckAll:W,doCheck:oe,doUncheck:K,headerCheckboxDisabledRef:le,someRowsCheckedRef:N,allRowsCheckedRef:be,mergedCheckedRowKeySetRef:Ie,mergedInderminateRowKeySetRef:Ne}=tq(e,{selectionColumnRef:y,treeMateRef:w,paginatedDataRef:_}),{stickyExpandedRowsRef:F,mergedExpandedRowKeysRef:I,renderExpandRef:re,expandableRef:_e,doUpdateExpandedRowKeys:ne}=uq(e,w),{handleTableBodyScroll:me,handleTableHeaderScroll:we,syncScrollState:O,setHeaderScrollLeft:H,leftActiveFixedColKeyRef:te,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:ie,rightFixedColumnsRef:he,fixedColumnLeftMapRef:Fe,fixedColumnRightMapRef:De}=aq(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:C}),{localeRef:Me}=Ui("DataTable"),He=M(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);at(Mo,{props:e,treeMateRef:w,renderExpandIconRef:Ue(e,"renderExpandIcon"),loadingKeySetRef:j(new Set),slots:t,indentRef:Ue(e,"indent"),childTriggerColIndexRef:$,bodyWidthRef:c,componentId:Zr(),hoverKeyRef:x,mergedClsPrefixRef:o,mergedThemeRef:l,scrollXRef:M(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:_,leftActiveFixedColKeyRef:te,leftActiveFixedChildrenColKeysRef:Ce,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:ie,rightFixedColumnsRef:he,fixedColumnLeftMapRef:Fe,fixedColumnRightMapRef:De,mergedCurrentPageRef:C,someRowsCheckedRef:N,allRowsCheckedRef:be,mergedSortStateRef:T,mergedFilterStateRef:P,loadingRef:Ue(e,"loading"),rowClassNameRef:Ue(e,"rowClassName"),mergedCheckedRowKeySetRef:Ie,mergedExpandedRowKeysRef:I,mergedInderminateRowKeySetRef:Ne,localeRef:Me,expandableRef:_e,stickyExpandedRowsRef:F,rowKeyRef:Ue(e,"rowKey"),renderExpandRef:re,summaryRef:Ue(e,"summary"),virtualScrollRef:Ue(e,"virtualScroll"),rowPropsRef:Ue(e,"rowProps"),stripedRef:Ue(e,"striped"),checkOptionsRef:M(()=>{const{value:J}=y;return J==null?void 0:J.options}),rawPaginatedDataRef:S,filterMenuCssVarsRef:M(()=>{const{self:{actionDividerColor:J,actionPadding:xe,actionButtonMargin:Ee}}=l.value;return{"--n-action-padding":xe,"--n-action-button-margin":Ee,"--n-action-divider-color":J}}),onLoadRef:Ue(e,"onLoad"),mergedTableLayoutRef:He,maxHeightRef:Ue(e,"maxHeight"),minHeightRef:Ue(e,"minHeight"),flexHeightRef:Ue(e,"flexHeight"),headerCheckboxDisabledRef:le,paginationBehaviorOnFilterRef:Ue(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Ue(e,"summaryPlacement"),filterIconPopoverPropsRef:Ue(e,"filterIconPopoverProps"),scrollbarPropsRef:Ue(e,"scrollbarProps"),syncScrollState:O,doUpdatePage:E,doUpdateFilters:G,getResizableWidth:d,onUnstableColumnResize:B,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:D,doCheck:oe,doUncheck:K,doCheckAll:Y,doUncheckAll:W,doUpdateExpandedRowKeys:ne,handleTableHeaderScroll:we,handleTableBodyScroll:me,setHeaderScrollLeft:H,renderCell:Ue(e,"renderCell")});const et={filter:L,filters:X,clearFilters:ae,clearSorter:ue,page:ee,sort:R,clearFilter:V,downloadCsv:A,scrollTo:(J,xe)=>{var Ee;(Ee=u.value)===null||Ee===void 0||Ee.scrollTo(J,xe)}},$e=M(()=>{const{size:J}=e,{common:{cubicBezierEaseInOut:xe},self:{borderColor:Ee,tdColorHover:qe,tdColorSorting:Qe,tdColorSortingModal:Je,tdColorSortingPopover:tt,thColorSorting:it,thColorSortingModal:vt,thColorSortingPopover:an,thColor:Ft,thColorHover:Se,tdColor:Be,tdTextColor:Ze,thTextColor:ht,thFontWeight:bt,thButtonColorHover:dt,thIconColor:Rt,thIconColorActive:ce,filterSize:Ae,borderRadius:ot,lineHeight:Bt,tdColorModal:Kt,thColorModal:Dt,borderColorModal:yo,thColorHoverModal:xo,tdColorHoverModal:Co,borderColorPopover:Jo,thColorPopover:Zo,tdColorPopover:ii,tdColorHoverPopover:es,thColorHoverPopover:ts,paginationMargin:ns,emptyPadding:os,boxShadowAfter:yr,boxShadowBefore:xr,sorterSize:id,resizableContainerSize:ad,resizableSize:sd,loadingColor:ld,loadingSize:cd,opacityLoading:ud,tdColorStriped:dd,tdColorStripedModal:fd,tdColorStripedPopover:hd,[Te("fontSize",J)]:pd,[Te("thPadding",J)]:md,[Te("tdPadding",J)]:gd}}=l.value;return{"--n-font-size":pd,"--n-th-padding":md,"--n-td-padding":gd,"--n-bezier":xe,"--n-border-radius":ot,"--n-line-height":Bt,"--n-border-color":Ee,"--n-border-color-modal":yo,"--n-border-color-popover":Jo,"--n-th-color":Ft,"--n-th-color-hover":Se,"--n-th-color-modal":Dt,"--n-th-color-hover-modal":xo,"--n-th-color-popover":Zo,"--n-th-color-hover-popover":ts,"--n-td-color":Be,"--n-td-color-hover":qe,"--n-td-color-modal":Kt,"--n-td-color-hover-modal":Co,"--n-td-color-popover":ii,"--n-td-color-hover-popover":es,"--n-th-text-color":ht,"--n-td-text-color":Ze,"--n-th-font-weight":bt,"--n-th-button-color-hover":dt,"--n-th-icon-color":Rt,"--n-th-icon-color-active":ce,"--n-filter-size":Ae,"--n-pagination-margin":ns,"--n-empty-padding":os,"--n-box-shadow-before":xr,"--n-box-shadow-after":yr,"--n-sorter-size":id,"--n-resizable-container-size":ad,"--n-resizable-size":sd,"--n-loading-size":cd,"--n-loading-color":ld,"--n-opacity-loading":ud,"--n-td-color-striped":dd,"--n-td-color-striped-modal":fd,"--n-td-color-striped-popover":hd,"n-td-color-sorting":Qe,"n-td-color-sorting-modal":Je,"n-td-color-sorting-popover":tt,"n-th-color-sorting":it,"n-th-color-sorting-modal":vt,"n-th-color-sorting-popover":an}}),Xe=r?Pt("data-table",M(()=>e.size[0]),$e,e):void 0,gt=M(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const J=k.value,{pageCount:xe}=J;return xe!==void 0?xe>1:J.itemCount&&J.pageSize&&J.itemCount>J.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:o,rtlEnabled:a,mergedTheme:l,paginatedData:_,mergedBordered:n,mergedBottomBordered:s,mergedPagination:k,mergedShowPagination:gt,cssVars:r?void 0:$e,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender},et)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:o,spinProps:r}=this;return n==null||n(),v("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},v("div",{class:`${e}-data-table-wrapper`},v(eq,{ref:"mainTableInstRef"})),this.mergedShowPagination?v("div",{class:`${e}-data-table__pagination`},v(UV,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,v(fn,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?v("div",{class:`${e}-data-table-loading-wrapper`},$n(o.loading,()=>[v(oi,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}}),hq={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function pq(e){const{popoverColor:t,textColor2:n,primaryColor:o,hoverColor:r,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},hq),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:n,itemTextColorActive:o,itemColorHover:r,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:u})}const mq={name:"TimePicker",common:je,peers:{Scrollbar:Un,Button:Vn,Input:go},self:pq},m2=mq,gq={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function vq(e){const{hoverColor:t,fontSize:n,textColor2:o,textColorDisabled:r,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:h,fontWeightStrong:p}=e;return Object.assign(Object.assign({},gq),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:o,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Oe(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:h,calendarTitleFontWeight:p,scrollItemBorderRadius:h,iconColor:l,iconColorDisabled:c})}const bq={name:"DatePicker",common:je,peers:{Input:go,Button:Vn,TimePicker:m2,Scrollbar:Un},self(e){const{popoverColor:t,hoverColor:n,primaryColor:o}=e,r=vq(e);return r.itemColorDisabled=Ke(t,n),r.itemColorIncluded=Oe(o,{alpha:.15}),r.itemColorHover=Ke(t,n),r}},yq=bq,xq={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function Cq(e){const{tableHeaderColor:t,textColor2:n,textColor1:o,cardColor:r,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h}=e;return Object.assign(Object.assign({},xq),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,titleTextColor:o,thColor:Ke(r,t),thColorModal:Ke(i,t),thColorPopover:Ke(a,t),thTextColor:o,thFontWeight:c,tdTextColor:n,tdColor:r,tdColorModal:i,tdColorPopover:a,borderColor:Ke(r,s),borderColorModal:Ke(i,s),borderColorPopover:Ke(a,s),borderRadius:l})}const wq={name:"Descriptions",common:je,self:Cq},_q=wq,Sq={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function g2(e){const{textColor1:t,textColor2:n,modalColor:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:u,warningColor:d,errorColor:f,primaryColor:h,dividerColor:p,borderRadius:g,fontWeightStrong:m,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},Sq),{fontSize:w,lineHeight:b,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:o,closeColorHover:s,closeColorPressed:l,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:h,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:g,titleFontWeight:m})}const kq={name:"Dialog",common:xt,peers:{Button:Du},self:g2},v2=kq,Pq={name:"Dialog",common:je,peers:{Button:Vn},self:g2},b2=Pq,Uu={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},y2=ei(Uu),Tq=q([z("dialog",` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); @@ -2492,9 +2492,9 @@ ${t} border-color .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `,[j("icon",{color:"var(--n-icon-color)"}),J("bordered",{border:"var(--n-border)"}),J("icon-top",[j("close",{margin:"var(--n-close-margin)"}),j("icon",{margin:"var(--n-icon-margin)"}),j("content",{textAlign:"center"}),j("title",{justifyContent:"center"}),j("action",{justifyContent:"center"})]),J("icon-left",[j("icon",{margin:"var(--n-icon-margin)"}),J("closable",[j("title",` + `,[U("icon",{color:"var(--n-icon-color)"}),Z("bordered",{border:"var(--n-border)"}),Z("icon-top",[U("close",{margin:"var(--n-close-margin)"}),U("icon",{margin:"var(--n-icon-margin)"}),U("content",{textAlign:"center"}),U("title",{justifyContent:"center"}),U("action",{justifyContent:"center"})]),Z("icon-left",[U("icon",{margin:"var(--n-icon-margin)"}),Z("closable",[U("title",` padding-right: calc(var(--n-close-size) + 6px); - `)])]),j("close",` + `)])]),U("close",` position: absolute; right: 0; top: 0; @@ -2503,20 +2503,20 @@ ${t} background-color .3s var(--n-bezier), color .3s var(--n-bezier); z-index: 1; - `),j("content",` + `),U("content",` font-size: var(--n-font-size); margin: var(--n-content-margin); position: relative; word-break: break-word; - `,[J("last","margin-bottom: 0;")]),j("action",` + `,[Z("last","margin-bottom: 0;")]),U("action",` display: flex; justify-content: flex-end; - `,[W("> *:not(:last-child)",` + `,[q("> *:not(:last-child)",` margin-right: var(--n-action-space); - `)]),j("icon",` + `)]),U("icon",` font-size: var(--n-icon-size); transition: color .3s var(--n-bezier); - `),j("title",` + `),U("title",` transition: color .3s var(--n-bezier); display: flex; align-items: center; @@ -2526,13 +2526,13 @@ ${t} `),z("dialog-icon-container",` display: flex; justify-content: center; - `)]),al(z("dialog",` + `)]),cl(z("dialog",` width: 446px; max-width: calc(100vw - 32px); - `)),z("dialog",[Cw(` + `)),z("dialog",[Aw(` width: 446px; max-width: calc(100vw - 32px); - `)])]),yq={default:()=>v(Ur,null),info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null)},h2=xe({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Le.props),Lu),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=pn("Dialog",r,n),a=I(()=>{var h,p;const{iconPlacement:g}=e;return g||((p=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function s(h){const{onPositiveClick:p}=e;p&&p(h)}function l(h){const{onNegativeClick:p}=e;p&&p(h)}function c(){const{onClose:h}=e;h&&h()}const u=Le("Dialog","-dialog",bq,u2,e,n),d=I(()=>{const{type:h}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:m,lineHeight:b,border:w,titleTextColor:C,textColor:_,color:S,closeBorderRadius:y,closeColorHover:x,closeColorPressed:P,closeIconColor:k,closeIconColorHover:T,closeIconColorPressed:R,closeIconSize:E,borderRadius:q,titleFontWeight:D,titleFontSize:B,padding:M,iconSize:K,actionSpace:V,contentMargin:ae,closeSize:pe,[p==="top"?"iconMarginIconTop":"iconMargin"]:Z,[p==="top"?"closeMarginIconTop":"closeMargin"]:N,[Te("iconColor",h)]:O}}=u.value,ee=co(Z);return{"--n-font-size":m,"--n-icon-color":O,"--n-bezier":g,"--n-close-margin":N,"--n-icon-margin-top":ee.top,"--n-icon-margin-right":ee.right,"--n-icon-margin-bottom":ee.bottom,"--n-icon-margin-left":ee.left,"--n-icon-size":K,"--n-close-size":pe,"--n-close-icon-size":E,"--n-close-border-radius":y,"--n-close-color-hover":x,"--n-close-color-pressed":P,"--n-close-icon-color":k,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":R,"--n-color":S,"--n-text-color":_,"--n-border-radius":q,"--n-padding":M,"--n-line-height":b,"--n-border":w,"--n-content-margin":ae,"--n-title-font-size":B,"--n-title-font-weight":D,"--n-title-text-color":C,"--n-action-space":V}}),f=o?Pt("dialog",I(()=>`${e.type[0]}${a.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:o,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:p,mergedTheme:g,loading:m,type:b,mergedClsPrefix:w}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?v(Wt,{clsPrefix:w,class:`${w}-dialog__icon`},{default:()=>At(this.$slots.icon,S=>S||(this.icon?Vt(this.icon):yq[this.type]()))}):null,_=At(this.$slots.action,S=>S||u||c||l?v("div",{class:[`${w}-dialog__action`,this.actionClass],style:this.actionStyle},S||(l?[Vt(l)]:[this.negativeText&&v(zt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},f),{default:()=>Vt(this.negativeText)}),this.positiveText&&v(zt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:m,loading:m,onClick:h},d),{default:()=>Vt(this.positiveText)})])):null);return v("div",{class:[`${w}-dialog`,this.themeClass,this.closable&&`${w}-dialog--closable`,`${w}-dialog--icon-${n}`,t&&`${w}-dialog--bordered`,this.rtlEnabled&&`${w}-dialog--rtl`],style:o,role:"dialog"},r?At(this.$slots.close,S=>{const y=[`${w}-dialog__close`,this.rtlEnabled&&`${w}-dialog--rtl`];return S?v("div",{class:y},S):v(qi,{clsPrefix:w,class:y,onClick:this.handleCloseClick})}):null,i&&n==="top"?v("div",{class:`${w}-dialog-icon-container`},C):null,v("div",{class:[`${w}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?C:null,$n(this.$slots.header,()=>[Vt(a)])),v("div",{class:[`${w}-dialog__content`,_?"":`${w}-dialog__content--last`,this.contentClass],style:this.contentStyle},$n(this.$slots.default,()=>[Vt(s)])),_)}}),p2="n-dialog-provider",m2="n-dialog-api",xq="n-dialog-reactive-list";function g2(e){const{modalColor:t,textColor2:n,boxShadow3:o}=e;return{color:t,textColor:n,boxShadow:o}}const Cq={name:"Modal",common:xt,peers:{Scrollbar:Gi,Dialog:u2,Card:bS},self:g2},wq=Cq,_q={name:"Modal",common:He,peers:{Scrollbar:Un,Dialog:d2,Card:yS},self:g2},Sq=_q,Rm=Object.assign(Object.assign({},vm),Lu),kq=Jr(Rm),Pq=xe({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Rm),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=U(null),n=U(null),o=U(e.show),r=U(null),i=U(null);ft(Ue(e,"show"),m=>{m&&(o.value=!0)}),Uw(I(()=>e.blockScroll&&o.value));const a=Ve(Pw);function s(){if(a.transformOriginRef.value==="center")return"";const{value:m}=r,{value:b}=i;if(m===null||b===null)return"";if(n.value){const w=n.value.containerScrollTop;return`${m}px ${b+w}px`}return""}function l(m){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!n.value)return;const w=n.value.containerScrollTop,{offsetLeft:C,offsetTop:_}=m;if(b){const S=b.y,y=b.x;r.value=-(C-y),i.value=-(_-S-w)}m.style.transformOrigin=s()}function c(m){Ht(()=>{l(m)})}function u(m){m.style.transformOrigin=s(),e.onBeforeLeave()}function d(){o.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:m}=e;m&&m()}function h(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=U(null);return ft(g,m=>{m&&Ht(()=>{const b=m.el;b&&t.value!==b&&(t.value=b)})}),at(sl,t),at(ll,null),at(ja,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:o,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:h,handleCloseClick:f,handleAfterLeave:d,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:o,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=mh(e),!s){cr("modal","default slot is empty");return}s=fo(s),s.props=Ln({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?dn(v("div",{role:"none",class:`${a}-modal-body-wrapper`},v(Oo,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),v(Xp,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return v(fn,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:r},{default:()=>{const u=[[Mn,this.show]],{onClickoutside:d}=this;return d&&u.push([Ea,this.onClickoutside,void 0,{capture:!0}]),dn(this.preset==="confirm"||this.preset==="dialog"?v(h2,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},eo(this.$props,f2),{"aria-modal":"true"}),e):this.preset==="card"?v(vo,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},eo(this.$props,SU),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,u)}})}})]}})),[[Mn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Tq=W([z("modal-container",` + `)])]),Aq={default:()=>v(Wr,null),info:()=>v(Wr,null),success:()=>v(Wi,null),warning:()=>v(qi,null),error:()=>v(Vi,null)},x2=ye({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Le.props),Uu),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:r}=st(e),i=pn("Dialog",r,n),a=M(()=>{var h,p;const{iconPlacement:g}=e;return g||((p=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function s(h){const{onPositiveClick:p}=e;p&&p(h)}function l(h){const{onNegativeClick:p}=e;p&&p(h)}function c(){const{onClose:h}=e;h&&h()}const u=Le("Dialog","-dialog",Tq,v2,e,n),d=M(()=>{const{type:h}=e,p=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:m,lineHeight:b,border:w,titleTextColor:C,textColor:_,color:S,closeBorderRadius:y,closeColorHover:x,closeColorPressed:k,closeIconColor:P,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:E,borderRadius:G,titleFontWeight:B,titleFontSize:D,padding:L,iconSize:X,actionSpace:V,contentMargin:ae,closeSize:ue,[p==="top"?"iconMarginIconTop":"iconMargin"]:ee,[p==="top"?"closeMarginIconTop":"closeMargin"]:R,[Te("iconColor",h)]:A}}=u.value,Y=co(ee);return{"--n-font-size":m,"--n-icon-color":A,"--n-bezier":g,"--n-close-margin":R,"--n-icon-margin-top":Y.top,"--n-icon-margin-right":Y.right,"--n-icon-margin-bottom":Y.bottom,"--n-icon-margin-left":Y.left,"--n-icon-size":X,"--n-close-size":ue,"--n-close-icon-size":E,"--n-close-border-radius":y,"--n-close-color-hover":x,"--n-close-color-pressed":k,"--n-close-icon-color":P,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":S,"--n-text-color":_,"--n-border-radius":G,"--n-padding":L,"--n-line-height":b,"--n-border":w,"--n-content-margin":ae,"--n-title-font-size":D,"--n-title-font-weight":B,"--n-title-text-color":C,"--n-action-space":V}}),f=o?Pt("dialog",M(()=>`${e.type[0]}${a.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:l,handleCloseClick:c,cssVars:o?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:o,closable:r,showIcon:i,title:a,content:s,action:l,negativeText:c,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:h,handleNegativeClick:p,mergedTheme:g,loading:m,type:b,mergedClsPrefix:w}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?v(Wt,{clsPrefix:w,class:`${w}-dialog__icon`},{default:()=>Et(this.$slots.icon,S=>S||(this.icon?Vt(this.icon):Aq[this.type]()))}):null,_=Et(this.$slots.action,S=>S||u||c||l?v("div",{class:[`${w}-dialog__action`,this.actionClass],style:this.actionStyle},S||(l?[Vt(l)]:[this.negativeText&&v(zt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:p},f),{default:()=>Vt(this.negativeText)}),this.positiveText&&v(zt,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:m,loading:m,onClick:h},d),{default:()=>Vt(this.positiveText)})])):null);return v("div",{class:[`${w}-dialog`,this.themeClass,this.closable&&`${w}-dialog--closable`,`${w}-dialog--icon-${n}`,t&&`${w}-dialog--bordered`,this.rtlEnabled&&`${w}-dialog--rtl`],style:o,role:"dialog"},r?Et(this.$slots.close,S=>{const y=[`${w}-dialog__close`,this.rtlEnabled&&`${w}-dialog--rtl`];return S?v("div",{class:y},S):v(Gi,{clsPrefix:w,class:y,onClick:this.handleCloseClick})}):null,i&&n==="top"?v("div",{class:`${w}-dialog-icon-container`},C):null,v("div",{class:[`${w}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?C:null,$n(this.$slots.header,()=>[Vt(a)])),v("div",{class:[`${w}-dialog__content`,_?"":`${w}-dialog__content--last`,this.contentClass],style:this.contentStyle},$n(this.$slots.default,()=>[Vt(s)])),_)}}),C2="n-dialog-provider",w2="n-dialog-api",Rq="n-dialog-reactive-list";function _2(e){const{modalColor:t,textColor2:n,boxShadow3:o}=e;return{color:t,textColor:n,boxShadow:o}}const Eq={name:"Modal",common:xt,peers:{Scrollbar:Yi,Dialog:v2,Card:kS},self:_2},$q=Eq,Iq={name:"Modal",common:je,peers:{Scrollbar:Un,Dialog:b2,Card:PS},self:_2},Oq=Iq,Fm=Object.assign(Object.assign({},Sm),Uu),Mq=ei(Fm),zq=ye({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},Fm),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=j(null),n=j(null),o=j(e.show),r=j(null),i=j(null);ut(Ue(e,"show"),m=>{m&&(o.value=!0)}),Yw(M(()=>e.blockScroll&&o.value));const a=Ve(Ow);function s(){if(a.transformOriginRef.value==="center")return"";const{value:m}=r,{value:b}=i;if(m===null||b===null)return"";if(n.value){const w=n.value.containerScrollTop;return`${m}px ${b+w}px`}return""}function l(m){if(a.transformOriginRef.value==="center")return;const b=a.getMousePosition();if(!b||!n.value)return;const w=n.value.containerScrollTop,{offsetLeft:C,offsetTop:_}=m;if(b){const S=b.y,y=b.x;r.value=-(C-y),i.value=-(_-S-w)}m.style.transformOrigin=s()}function c(m){Ht(()=>{l(m)})}function u(m){m.style.transformOrigin=s(),e.onBeforeLeave()}function d(){o.value=!1,r.value=null,i.value=null,e.onAfterLeave()}function f(){const{onClose:m}=e;m&&m()}function h(){e.onNegativeClick()}function p(){e.onPositiveClick()}const g=j(null);return ut(g,m=>{m&&Ht(()=>{const b=m.el;b&&t.value!==b&&(t.value=b)})}),at(ul,t),at(dl,null),at(Wa,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:o,childNodeRef:g,handlePositiveClick:p,handleNegativeClick:h,handleCloseClick:f,handleAfterLeave:d,handleBeforeLeave:u,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:o,handleBeforeLeave:r,preset:i,mergedClsPrefix:a}=this;let s=null;if(!i){if(s=Ch(e),!s){cr("modal","default slot is empty");return}s=fo(s),s.props=Ln({class:`${a}-modal`},t,s.props||{})}return this.displayDirective==="show"||this.displayed||this.show?dn(v("div",{role:"none",class:`${a}-modal-body-wrapper`},v(Oo,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),v(nm,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return v(fn,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:r},{default:()=>{const u=[[Mn,this.show]],{onClickoutside:d}=this;return d&&u.push([Ea,this.onClickoutside,void 0,{capture:!0}]),dn(this.preset==="confirm"||this.preset==="dialog"?v(x2,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},eo(this.$props,y2),{"aria-modal":"true"}),e):this.preset==="card"?v(vo,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},eo(this.$props,OU),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=s,u)}})}})]}})),[[Mn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Fq=q([z("modal-container",` position: fixed; left: 0; top: 0; @@ -2546,7 +2546,7 @@ ${t} top: 0; bottom: 0; background-color: rgba(0, 0, 0, .4); - `,[dl({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),z("modal-body-wrapper",` + `,[pl({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),z("modal-body-wrapper",` position: fixed; left: 0; right: 0; @@ -2563,7 +2563,7 @@ ${t} color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[Wa({duration:".25s",enterScale:".5"})])]),v2=Object.assign(Object.assign(Object.assign(Object.assign({},Le.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Rm),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),ni=xe({name:"Modal",inheritAttrs:!1,props:v2,setup(e){const t=U(null),{mergedClsPrefixRef:n,namespaceRef:o,inlineThemeDisabled:r}=st(e),i=Le("Modal","-modal",Tq,wq,e,n),a=Ac(64),s=Rc(),l=Zr(),c=e.internalDialog?Ve(p2,null):null,u=e.internalModal?Ve(E8,null):null,d=Vw();function f(y){const{onUpdateShow:x,"onUpdate:show":P,onHide:k}=e;x&&Re(x,y),P&&Re(P,y),k&&!y&&k(y)}function h(){const{onClose:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function g(){const{onNegativeClick:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function m(){const{onBeforeLeave:y,onBeforeHide:x}=e;y&&Re(y),x&&x()}function b(){const{onAfterLeave:y,onAfterHide:x}=e;y&&Re(y),x&&x()}function w(y){var x;const{onMaskClick:P}=e;P&&P(y),e.maskClosable&&!((x=t.value)===null||x===void 0)&&x.contains($i(y))&&f(!1)}function C(y){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&_w(y)&&(d.value||f(!1))}at(Pw,{getMousePosition:()=>{const y=c||u;if(y){const{clickedRef:x,clickedPositionRef:P}=y;if(x.value&&P.value)return P.value}return a.value?s.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:l,appearRef:Ue(e,"internalAppear"),transformOriginRef:Ue(e,"transformOrigin")});const _=I(()=>{const{common:{cubicBezierEaseOut:y},self:{boxShadow:x,color:P,textColor:k}}=i.value;return{"--n-bezier-ease-out":y,"--n-box-shadow":x,"--n-color":P,"--n-text-color":k}}),S=r?Pt("theme-class",void 0,_,e):void 0;return{mergedClsPrefix:n,namespace:o,isMounted:l,containerRef:t,presetProps:I(()=>eo(e,kq)),handleEsc:C,handleAfterLeave:b,handleClickoutside:w,handleBeforeLeave:m,doUpdateShow:f,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:h,cssVars:r?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){const{mergedClsPrefix:e}=this;return v(ku,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return dn(v("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},v(Pq,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var o;return v(fn,{name:"fade-in-transition",key:"mask",appear:(o=this.internalAppear)!==null&&o!==void 0?o:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Su,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Eq=Object.assign(Object.assign({},Lu),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Rq=xe({name:"DialogEnvironment",props:Object.assign(Object.assign({},Eq),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=U(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(u){const{onPositiveClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function r(u){const{onNegativeClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:o,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return v(ni,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>v(h2,Object.assign({},eo(this.$props,f2),{style:this.internalStyle,onClose:o,onNegativeClick:n,onPositiveClick:e}))})}}),Aq={injectionKey:String,to:[String,Object]},$q=xe({name:"DialogProvider",props:Aq,setup(){const e=U([]),t={};function n(s={}){const l=Qr(),c=to(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var u;(u=t[`n-dialog-${l}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const o=["info","success","warning","error"].map(s=>l=>n(Object.assign(Object.assign({},l),{type:s})));function r(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s==null||s.hide()})}const a={create:n,destroyAll:i,info:o[0],success:o[1],warning:o[2],error:o[3]};return at(m2,a),at(p2,{clickedRef:Ac(64),clickedPositionRef:Rc()}),at(xq,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return v(rt,null,[this.dialogList.map(n=>v(Rq,Ha(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function Iq(){const e=Ve(m2,null);return e===null&&hr("use-dialog","No outer founded."),e}function b2(e){const{textColor1:t,dividerColor:n,fontWeightStrong:o}=e;return{textColor:t,color:n,fontWeight:o}}const Oq={name:"Divider",common:xt,self:b2},Mq=Oq,zq={name:"Divider",common:He,self:b2},Fq=zq,Dq=z("divider",` + `,[Ga({duration:".25s",enterScale:".5"})])]),S2=Object.assign(Object.assign(Object.assign(Object.assign({},Le.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),Fm),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),ri=ye({name:"Modal",inheritAttrs:!1,props:S2,setup(e){const t=j(null),{mergedClsPrefixRef:n,namespaceRef:o,inlineThemeDisabled:r}=st(e),i=Le("Modal","-modal",Fq,$q,e,n),a=zc(64),s=Mc(),l=ti(),c=e.internalDialog?Ve(C2,null):null,u=e.internalModal?Ve(D8,null):null,d=Qw();function f(y){const{onUpdateShow:x,"onUpdate:show":k,onHide:P}=e;x&&Re(x,y),k&&Re(k,y),P&&!y&&P(y)}function h(){const{onClose:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function g(){const{onNegativeClick:y}=e;y?Promise.resolve(y()).then(x=>{x!==!1&&f(!1)}):f(!1)}function m(){const{onBeforeLeave:y,onBeforeHide:x}=e;y&&Re(y),x&&x()}function b(){const{onAfterLeave:y,onAfterHide:x}=e;y&&Re(y),x&&x()}function w(y){var x;const{onMaskClick:k}=e;k&&k(y),e.maskClosable&&!((x=t.value)===null||x===void 0)&&x.contains(Oi(y))&&f(!1)}function C(y){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&Ew(y)&&(d.value||f(!1))}at(Ow,{getMousePosition:()=>{const y=c||u;if(y){const{clickedRef:x,clickedPositionRef:k}=y;if(x.value&&k.value)return k.value}return a.value?s.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:l,appearRef:Ue(e,"internalAppear"),transformOriginRef:Ue(e,"transformOrigin")});const _=M(()=>{const{common:{cubicBezierEaseOut:y},self:{boxShadow:x,color:k,textColor:P}}=i.value;return{"--n-bezier-ease-out":y,"--n-box-shadow":x,"--n-color":k,"--n-text-color":P}}),S=r?Pt("theme-class",void 0,_,e):void 0;return{mergedClsPrefix:n,namespace:o,isMounted:l,containerRef:t,presetProps:M(()=>eo(e,Mq)),handleEsc:C,handleAfterLeave:b,handleClickoutside:w,handleBeforeLeave:m,doUpdateShow:f,handleNegativeClick:g,handlePositiveClick:p,handleCloseClick:h,cssVars:r?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){const{mergedClsPrefix:e}=this;return v(Eu,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return dn(v("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},v(zq,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var o;return v(fn,{name:"fade-in-transition",key:"mask",appear:(o=this.internalAppear)!==null&&o!==void 0?o:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Ru,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Dq=Object.assign(Object.assign({},Uu),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Lq=ye({name:"DialogEnvironment",props:Object.assign(Object.assign({},Dq),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=j(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(u){const{onPositiveClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function r(u){const{onNegativeClick:d}=e;d?Promise.resolve(d(u)).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:a,handleEsc:s}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:o,handleAfterLeave:r,handleMaskClick:i,handleEsc:a,to:s,maskClosable:l,show:c}=this;return v(ri,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:s,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:r,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>v(x2,Object.assign({},eo(this.$props,y2),{style:this.internalStyle,onClose:o,onNegativeClick:n,onPositiveClick:e}))})}}),Bq={injectionKey:String,to:[String,Object]},Nq=ye({name:"DialogProvider",props:Bq,setup(){const e=j([]),t={};function n(s={}){const l=Zr(),c=to(Object.assign(Object.assign({},s),{key:l,destroy:()=>{var u;(u=t[`n-dialog-${l}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const o=["info","success","warning","error"].map(s=>l=>n(Object.assign(Object.assign({},l),{type:s})));function r(s){const{value:l}=e;l.splice(l.findIndex(c=>c.key===s),1)}function i(){Object.values(t).forEach(s=>{s==null||s.hide()})}const a={create:n,destroyAll:i,info:o[0],success:o[1],warning:o[2],error:o[3]};return at(w2,a),at(C2,{clickedRef:zc(64),clickedPositionRef:Mc()}),at(Rq,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:r})},render(){var e,t;return v(rt,null,[this.dialogList.map(n=>v(Lq,Va(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function Hq(){const e=Ve(w2,null);return e===null&&hr("use-dialog","No outer founded."),e}function k2(e){const{textColor1:t,dividerColor:n,fontWeightStrong:o}=e;return{textColor:t,color:n,fontWeight:o}}const jq={name:"Divider",common:xt,self:k2},Uq=jq,Vq={name:"Divider",common:je,self:k2},Wq=Vq,qq=z("divider",` position: relative; display: flex; width: 100%; @@ -2573,38 +2573,38 @@ ${t} transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier); -`,[Et("vertical",` +`,[At("vertical",` margin-top: 24px; margin-bottom: 24px; - `,[Et("no-title",` + `,[At("no-title",` display: flex; align-items: center; - `)]),j("title",` + `)]),U("title",` display: flex; align-items: center; margin-left: 12px; margin-right: 12px; white-space: nowrap; font-weight: var(--n-font-weight); - `),J("title-position-left",[j("line",[J("left",{width:"28px"})])]),J("title-position-right",[j("line",[J("right",{width:"28px"})])]),J("dashed",[j("line",` + `),Z("title-position-left",[U("line",[Z("left",{width:"28px"})])]),Z("title-position-right",[U("line",[Z("right",{width:"28px"})])]),Z("dashed",[U("line",` background-color: #0000; height: 0px; width: 100%; border-style: dashed; border-width: 1px 0 0; - `)]),J("vertical",` + `)]),Z("vertical",` display: inline-block; height: 1em; margin: 0 8px; vertical-align: middle; width: 1px; - `),j("line",` + `),U("line",` border: none; transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); height: 1px; width: 100%; margin: 0; - `),Et("dashed",[j("line",{backgroundColor:"var(--n-color)"})]),J("dashed",[j("line",{borderColor:"var(--n-color)"})]),J("vertical",{backgroundColor:"var(--n-color)"})]),Lq=Object.assign(Object.assign({},Le.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Yi=xe({name:"Divider",props:Lq,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Divider","-divider",Dq,Mq,e,t),r=I(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:s,textColor:l,fontWeight:c}}=o.value;return{"--n-bezier":a,"--n-color":s,"--n-text-color":l,"--n-font-weight":c}}),i=n?Pt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:o,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:o,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},o?null:v("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!o&&t.default?v(rt,null,v("div",{class:`${a}-divider__title`},this.$slots),v("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function y2(e){const{modalColor:t,textColor1:n,textColor2:o,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:p}}const Bq={name:"Drawer",common:xt,peers:{Scrollbar:Gi},self:y2},Nq=Bq,Hq={name:"Drawer",common:He,peers:{Scrollbar:Un},self:y2},jq=Hq,Uq=xe({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=U(!!e.show),n=U(null),o=Ve(Up);let r=0,i="",a=null;const s=U(!1),l=U(!1),c=I(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:d}=st(e),f=pn("Drawer",d,u),h=y,p=k=>{l.value=!0,r=c.value?k.clientY:k.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",S),document.body.addEventListener("mouseleave",h),document.body.addEventListener("mouseup",y)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value?s.value=!0:a=window.setTimeout(()=>{s.value=!0},300)},m=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value=!1},{doUpdateHeight:b,doUpdateWidth:w}=o,C=k=>{const{maxWidth:T}=e;if(T&&k>T)return T;const{minWidth:R}=e;return R&&k{const{maxHeight:T}=e;if(T&&k>T)return T;const{minHeight:R}=e;return R&&k{e.show&&(t.value=!0)}),ft(()=>e.show,k=>{k||y()}),on(()=>{y()});const x=I(()=>{const{show:k}=e,T=[[Mn,k]];return e.showMask||T.push([Ea,e.onClickoutside,void 0,{capture:!0}]),T});function P(){var k;t.value=!1,(k=e.onAfterLeave)===null||k===void 0||k.call(e)}return Uw(I(()=>e.blockScroll&&t.value)),at(ll,n),at(ja,null),at(sl,null),{bodyRef:n,rtlEnabled:f,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:I(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:P,bodyDirectives:x,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:m,isDragging:l,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?dn(v("div",{role:"none"},v(Xp,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>v(fn,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>dn(v("div",Ln(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?v("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?v("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):v(Oo,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Mn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Vq,cubicBezierEaseOut:Wq}=mo;function qq({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Vq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Wq}`}),W(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:Kq,cubicBezierEaseOut:Gq}=mo;function Xq({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Kq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Gq}`}),W(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:Yq,cubicBezierEaseOut:Qq}=mo;function Jq({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Yq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qq}`}),W(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:Zq,cubicBezierEaseOut:eK}=mo;function tK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[W(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zq}`}),W(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${eK}`}),W(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),W(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),W(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),W(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const nK=W([z("drawer",` + `),At("dashed",[U("line",{backgroundColor:"var(--n-color)"})]),Z("dashed",[U("line",{borderColor:"var(--n-color)"})]),Z("vertical",{backgroundColor:"var(--n-color)"})]),Kq=Object.assign(Object.assign({},Le.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Ji=ye({name:"Divider",props:Kq,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Divider","-divider",qq,Uq,e,t),r=M(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:s,textColor:l,fontWeight:c}}=o.value;return{"--n-bezier":a,"--n-color":s,"--n-text-color":l,"--n-font-weight":c}}),i=n?Pt("divider",void 0,r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:o,dashed:r,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:o,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:r,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},o?null:v("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!o&&t.default?v(rt,null,v("div",{class:`${a}-divider__title`},this.$slots),v("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function P2(e){const{modalColor:t,textColor1:n,textColor2:o,boxShadow3:r,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:h,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:h,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:h,resizableTriggerColorHover:p}}const Gq={name:"Drawer",common:xt,peers:{Scrollbar:Yi},self:P2},Xq=Gq,Yq={name:"Drawer",common:je,peers:{Scrollbar:Un},self:P2},Qq=Yq,Jq=ye({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=j(!!e.show),n=j(null),o=Ve(Yp);let r=0,i="",a=null;const s=j(!1),l=j(!1),c=M(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:d}=st(e),f=pn("Drawer",d,u),h=y,p=P=>{l.value=!0,r=c.value?P.clientY:P.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",S),document.body.addEventListener("mouseleave",h),document.body.addEventListener("mouseup",y)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value?s.value=!0:a=window.setTimeout(()=>{s.value=!0},300)},m=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value=!1},{doUpdateHeight:b,doUpdateWidth:w}=o,C=P=>{const{maxWidth:T}=e;if(T&&P>T)return T;const{minWidth:$}=e;return $&&P<$?$:P},_=P=>{const{maxHeight:T}=e;if(T&&P>T)return T;const{minHeight:$}=e;return $&&P<$?$:P};function S(P){var T,$;if(l.value)if(c.value){let E=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const G=r-P.clientY;E+=e.placement==="bottom"?G:-G,E=_(E),b(E),r=P.clientY}else{let E=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const G=r-P.clientX;E+=e.placement==="right"?G:-G,E=C(E),w(E),r=P.clientX}}function y(){l.value&&(r=0,l.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",S),document.body.removeEventListener("mouseup",y),document.body.removeEventListener("mouseleave",h))}Yt(()=>{e.show&&(t.value=!0)}),ut(()=>e.show,P=>{P||y()}),on(()=>{y()});const x=M(()=>{const{show:P}=e,T=[[Mn,P]];return e.showMask||T.push([Ea,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var P;t.value=!1,(P=e.onAfterLeave)===null||P===void 0||P.call(e)}return Yw(M(()=>e.blockScroll&&t.value)),at(dl,n),at(Wa,null),at(ul,null),{bodyRef:n,rtlEnabled:f,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:M(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:x,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:m,isDragging:l,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?dn(v("div",{role:"none"},v(nm,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>v(fn,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>dn(v("div",Ln(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?v("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?v("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):v(Oo,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Mn,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Zq,cubicBezierEaseOut:eK}=mo;function tK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[q(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zq}`}),q(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${eK}`}),q(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),q(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),q(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),q(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:nK,cubicBezierEaseOut:oK}=mo;function rK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[q(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${nK}`}),q(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${oK}`}),q(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),q(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),q(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),q(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:iK,cubicBezierEaseOut:aK}=mo;function sK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[q(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${iK}`}),q(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${aK}`}),q(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),q(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),q(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),q(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:lK,cubicBezierEaseOut:cK}=mo;function uK({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[q(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${lK}`}),q(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${cK}`}),q(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),q(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),q(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),q(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const dK=q([z("drawer",` word-break: break-word; line-height: var(--n-line-height); position: absolute; @@ -2616,17 +2616,17 @@ ${t} background-color: var(--n-color); color: var(--n-text-color); box-sizing: border-box; - `,[qq(),Xq(),Jq(),tK(),J("unselectable",` + `,[tK(),rK(),sK(),uK(),Z("unselectable",` user-select: none; -webkit-user-select: none; - `),J("native-scrollbar",[z("drawer-content-wrapper",` + `),Z("native-scrollbar",[z("drawer-content-wrapper",` overflow: auto; height: 100%; - `)]),j("resize-trigger",` + `)]),U("resize-trigger",` position: absolute; background-color: #0000; transition: background-color .3s var(--n-bezier); - `,[J("hover",` + `,[Z("hover",` background-color: var(--n-resize-trigger-color-hover); `)]),z("drawer-content-wrapper",` box-sizing: border-box; @@ -2634,7 +2634,7 @@ ${t} height: 100%; display: flex; flex-direction: column; - `,[J("native-scrollbar",[z("drawer-body-content-wrapper",` + `,[Z("native-scrollbar",[z("drawer-body-content-wrapper",` height: 100%; overflow: auto; `)]),z("drawer-body",` @@ -2655,7 +2655,7 @@ ${t} display: flex; justify-content: space-between; align-items: center; - `,[j("close",` + `,[U("close",` margin-left: 6px; transition: background-color .3s var(--n-bezier), @@ -2666,59 +2666,59 @@ ${t} border-top: var(--n-footer-border-top); transition: border .3s var(--n-bezier); padding: var(--n-footer-padding); - `)]),J("right-placement",` + `)]),Z("right-placement",` top: 0; bottom: 0; right: 0; border-top-left-radius: var(--n-border-radius); border-bottom-left-radius: var(--n-border-radius); - `,[j("resize-trigger",` + `,[U("resize-trigger",` width: 3px; height: 100%; top: 0; left: 0; transform: translateX(-1.5px); cursor: ew-resize; - `)]),J("left-placement",` + `)]),Z("left-placement",` top: 0; bottom: 0; left: 0; border-top-right-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `,[j("resize-trigger",` + `,[U("resize-trigger",` width: 3px; height: 100%; top: 0; right: 0; transform: translateX(1.5px); cursor: ew-resize; - `)]),J("top-placement",` + `)]),Z("top-placement",` top: 0; left: 0; right: 0; border-bottom-left-radius: var(--n-border-radius); border-bottom-right-radius: var(--n-border-radius); - `,[j("resize-trigger",` + `,[U("resize-trigger",` width: 100%; height: 3px; bottom: 0; left: 0; transform: translateY(1.5px); cursor: ns-resize; - `)]),J("bottom-placement",` + `)]),Z("bottom-placement",` left: 0; bottom: 0; right: 0; border-top-left-radius: var(--n-border-radius); border-top-right-radius: var(--n-border-radius); - `,[j("resize-trigger",` + `,[U("resize-trigger",` width: 100%; height: 3px; top: 0; left: 0; transform: translateY(-1.5px); cursor: ns-resize; - `)])]),W("body",[W(">",[z("drawer-container",` + `)])]),q("body",[q(">",[z("drawer-container",` position: fixed; `)])]),z("drawer-container",` position: relative; @@ -2728,7 +2728,7 @@ ${t} top: 0; bottom: 0; pointer-events: none; - `,[W("> *",` + `,[q("> *",` pointer-events: all; `)]),z("drawer-mask",` background-color: rgba(0, 0, 0, .3); @@ -2737,15 +2737,15 @@ ${t} right: 0; top: 0; bottom: 0; - `,[J("invisible",` + `,[Z("invisible",` background-color: rgba(0, 0, 0, 0) - `),dl({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),oK=Object.assign(Object.assign({},Le.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),x2=xe({name:"Drawer",inheritAttrs:!1,props:oK,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:o}=st(e),r=Zr(),i=Le("Drawer","-drawer",nK,Nq,e,t),a=U(e.defaultWidth),s=U(e.defaultHeight),l=rn(Ue(e,"width"),a),c=rn(Ue(e,"height"),s),u=I(()=>{const{placement:y}=e;return y==="top"||y==="bottom"?"":qt(l.value)}),d=I(()=>{const{placement:y}=e;return y==="left"||y==="right"?"":qt(c.value)}),f=y=>{const{onUpdateWidth:x,"onUpdate:width":P}=e;x&&Re(x,y),P&&Re(P,y),a.value=y},h=y=>{const{onUpdateHeight:x,"onUpdate:width":P}=e;x&&Re(x,y),P&&Re(P,y),s.value=y},p=I(()=>[{width:u.value,height:d.value},e.drawerStyle||""]);function g(y){const{onMaskClick:x,maskClosable:P}=e;P&&C(!1),x&&x(y)}function m(y){g(y)}const b=Vw();function w(y){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&_w(y)&&(b.value||C(!1))}function C(y){const{onHide:x,onUpdateShow:P,"onUpdate:show":k}=e;P&&Re(P,y),k&&Re(k,y),x&&!y&&Re(x,y)}at(Up,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:C,doUpdateHeight:h,doUpdateWidth:f});const _=I(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:x,cubicBezierEaseOut:P},self:{color:k,textColor:T,boxShadow:R,lineHeight:E,headerPadding:q,footerPadding:D,borderRadius:B,bodyPadding:M,titleFontSize:K,titleTextColor:V,titleFontWeight:ae,headerBorderBottom:pe,footerBorderTop:Z,closeIconColor:N,closeIconColorHover:O,closeIconColorPressed:ee,closeColorHover:G,closeColorPressed:ne,closeIconSize:X,closeSize:ce,closeBorderRadius:L,resizableTriggerColorHover:be}}=i.value;return{"--n-line-height":E,"--n-color":k,"--n-border-radius":B,"--n-text-color":T,"--n-box-shadow":R,"--n-bezier":y,"--n-bezier-out":P,"--n-bezier-in":x,"--n-header-padding":q,"--n-body-padding":M,"--n-footer-padding":D,"--n-title-text-color":V,"--n-title-font-size":K,"--n-title-font-weight":ae,"--n-header-border-bottom":pe,"--n-footer-border-top":Z,"--n-close-icon-color":N,"--n-close-icon-color-hover":O,"--n-close-icon-color-pressed":ee,"--n-close-size":ce,"--n-close-color-hover":G,"--n-close-color-pressed":ne,"--n-close-icon-size":X,"--n-close-border-radius":L,"--n-resize-trigger-color-hover":be}}),S=o?Pt("drawer",void 0,_,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleOutsideClick:m,handleMaskClick:g,handleEsc:w,mergedTheme:i,cssVars:o?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return v(ku,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),dn(v("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?v(fn,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,v(Uq,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Su,{zIndex:this.zIndex,enabled:this.show}]])}})}}),rK={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},iK=xe({name:"DrawerContent",props:rK,setup(){const e=Ve(Up,null);e||hr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:o,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:s,headerClass:l,headerStyle:c,footerClass:u,footerStyle:d,scrollbarProps:f,closable:h,$slots:p}=this;return v("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},p.header||e||h?v("div",{class:[`${t}-drawer-header`,l],style:c,role:"none"},v("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),h&&v(qi,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?v("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},v("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:s,role:"none"},p)):v(Oo,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},f,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:s}),p),p.footer?v("div",{class:[`${t}-drawer-footer`,u],style:d,role:"none"},p.footer()):null)}}),aK={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},sK={name:"DynamicInput",common:He,peers:{Input:go,Button:Vn},self(){return aK}},lK=sK,C2={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},cK={name:"Space",self(){return C2}},w2=cK;function uK(){return C2}const dK={name:"Space",self:uK},fK=dK;let rf;function hK(){if(!pr)return!0;if(rf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),rf=t}return rf}const pK=Object.assign(Object.assign({},Le.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Qi=xe({name:"Space",props:pK,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=Le("Space","-space",void 0,fK,e,t),r=pn("Space",n,t);return{useGap:hK(),rtlEnabled:r,mergedClsPrefix:t,margin:I(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Te("gap",i)]:a}}=o.value,{row:s,col:l}=MI(a);return{horizontal:bn(l),vertical:bn(s)}})}},render(){const{vertical:e,reverse:t,align:n,inline:o,justify:r,itemClass:i,itemStyle:a,margin:s,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:h}=this,p=Ta(fw(this),!1);if(!p.length)return null;const g=`${s.horizontal}px`,m=`${s.horizontal/2}px`,b=`${s.vertical}px`,w=`${s.vertical/2}px`,C=p.length-1,_=r.startsWith("space-");return v("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${w}`,marginBottom:d||e?"":`-${w}`,alignItems:n,gap:d?`${s.vertical}px ${s.horizontal}px`:""}},!f&&(d||h)?p:p.map((S,y)=>S.type===_n?S:v("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},d?"":e?{marginBottom:y!==C?b:""}:u?{marginLeft:_?r==="space-between"&&y===C?"":m:y!==C?g:"",marginRight:_?r==="space-between"&&y===0?"":m:"",paddingTop:w,paddingBottom:w}:{marginRight:_?r==="space-between"&&y===C?"":m:y!==C?g:"",marginLeft:_?r==="space-between"&&y===0?"":m:"",paddingTop:w,paddingBottom:w}]},S)))}}),mK={name:"DynamicTags",common:He,peers:{Input:go,Button:Vn,Tag:tS,Space:w2},self(){return{inputWidth:"64px"}}},gK=mK,vK={name:"Element",common:He},bK=vK,yK={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},xK={name:"Flex",self(){return yK}},CK=xK,wK={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function _K(e){const{heightSmall:t,heightMedium:n,heightLarge:o,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},wK),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:o,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const SK={name:"Form",common:He,self:_K},kK=SK,PK={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function _2(e){const{textColor2:t,successColor:n,infoColor:o,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:h,borderRadius:p,fontWeightStrong:g,boxShadow2:m,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},PK),{borderRadius:p,lineHeight:b,fontSize:w,headerFontWeight:g,iconColor:t,iconColorSuccess:n,iconColorInfo:o,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:m})}const TK={name:"Notification",common:xt,peers:{Scrollbar:Gi},self:_2},EK=TK,RK={name:"Notification",common:He,peers:{Scrollbar:Un},self:_2},AK=RK,$K={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function S2(e){const{textColor2:t,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:h,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},$K),{closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:p,closeColorPressed:g,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:n,closeIconColorHoverInfo:o,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:n,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:n,closeIconColorHoverError:o,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:n,closeIconColorHoverWarning:o,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:n,closeIconColorHoverLoading:o,closeIconColorPressedLoading:r,loadingColor:d,lineHeight:f,borderRadius:h})}const IK={name:"Message",common:xt,self:S2},OK=IK,MK={name:"Message",common:He,self:S2},zK=MK,FK={name:"ButtonGroup",common:He},DK=FK,LK={name:"GradientText",common:He,self(e){const{primaryColor:t,successColor:n,warningColor:o,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:o,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:n,colorEndSuccess:s}}},BK=LK,NK={name:"InputNumber",common:He,peers:{Button:Vn,Input:go},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},HK=NK;function jK(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const UK={name:"InputNumber",common:xt,peers:{Button:Iu,Input:mm},self:jK},VK=UK,WK={name:"Layout",common:He,peers:{Scrollbar:Un},self(e){const{textColor2:t,bodyColor:n,popoverColor:o,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ke(n,a),siderToggleBarColorHover:Ke(n,s),__invertScrollbar:"false"}}},qK=WK;function KK(e){const{baseColor:t,textColor2:n,bodyColor:o,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:o,colorEmbedded:a,headerColor:r,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:Ke(o,s),siderToggleBarColorHover:Ke(o,l),__invertScrollbar:"true"}}const GK={name:"Layout",common:xt,peers:{Scrollbar:Gi},self:KK},k2=GK;function P2(e){const{textColor2:t,cardColor:n,modalColor:o,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:n,colorHover:l,colorModal:o,colorHoverModal:Ke(o,l),colorPopover:r,colorHoverPopover:Ke(r,l),borderColor:i,borderColorModal:Ke(o,i),borderColorPopover:Ke(r,i),borderRadius:a,fontSize:s}}const XK={name:"List",common:xt,self:P2},YK=XK,QK={name:"List",common:He,self:P2},JK=QK,ZK={name:"LoadingBar",common:He,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},eG=ZK;function tG(e){const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}}const nG={name:"LoadingBar",common:xt,self:tG},oG=nG,rG={name:"Log",common:He,peers:{Scrollbar:Un,Code:kS},self(e){const{textColor2:t,inputColor:n,fontSize:o,primaryColor:r}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:r}}},iG=rG,aG={name:"Mention",common:He,peers:{InternalSelectMenu:fl,Input:go},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},sG=aG;function lG(e,t,n,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:o}}function T2(e){const{borderRadius:t,textColor3:n,primaryColor:o,textColor2:r,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:l,itemColorActive:Ie(o,{alpha:.1}),itemColorActiveHover:Ie(o,{alpha:.1}),itemColorActiveCollapsed:Ie(o,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},lG("#BBB",o,"#FFF","#AAA"))}const cG={name:"Menu",common:xt,peers:{Tooltip:wm,Dropdown:Sm},self:T2},uG=cG,dG={name:"Menu",common:He,peers:{Tooltip:Mu,Dropdown:km},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,o=T2(e);return o.itemColorActive=Ie(t,{alpha:.15}),o.itemColorActiveHover=Ie(t,{alpha:.15}),o.itemColorActiveCollapsed=Ie(t,{alpha:.15}),o.itemColorActiveInverted=n,o.itemColorActiveHoverInverted=n,o.itemColorActiveCollapsedInverted=n,o}},fG=dG,hG={titleFontSize:"18px",backSize:"22px"};function pG(e){const{textColor1:t,textColor2:n,textColor3:o,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},hG),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:s,subtitleTextColor:o})}const mG={name:"PageHeader",common:He,self:pG},gG={iconSize:"22px"};function vG(e){const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},gG),{fontSize:t,iconColor:n})}const bG={name:"Popconfirm",common:He,peers:{Button:Vn,Popover:Xi},self:vG},yG=bG;function E2(e){const{infoColor:t,successColor:n,warningColor:o,errorColor:r,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:o,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:o,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const xG={name:"Progress",common:xt,self:E2},CG=xG,wG={name:"Progress",common:He,self(e){const t=E2(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},R2=wG,_G={name:"Rate",common:He,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},SG=_G,kG={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function A2(e){const{textColor2:t,textColor1:n,errorColor:o,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},kG),{lineHeight:s,titleFontWeight:l,titleTextColor:n,textColor:t,iconColorError:o,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const PG={name:"Result",common:xt,self:A2},TG=PG,EG={name:"Result",common:He,self:A2},RG=EG,AG={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},$G={name:"Slider",common:He,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:o,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},AG),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:u,handleColor:"#FFF",dotColor:s,dotColorModal:o,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}},IG=$G;function $2(e){const{opacityDisabled:t,heightTiny:n,heightSmall:o,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:n,sizeSmall:o,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}}const OG={name:"Spin",common:xt,self:$2},MG=OG,zG={name:"Spin",common:He,self:$2},FG=zG;function DG(e){const{textColor2:t,textColor3:n,fontSize:o,fontWeight:r}=e;return{labelFontSize:o,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const LG={name:"Statistic",common:He,self:DG},BG=LG,NG={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function HG(e){const{fontWeightStrong:t,baseColor:n,textColorDisabled:o,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},NG),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:o,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:o,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:r,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})}const jG={name:"Steps",common:He,self:HG},UG=jG,I2={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},VG={name:"Switch",common:He,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:o,primaryColor:r,textColor2:i,baseColor:a}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},I2),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:n,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${Ie(r,{alpha:.3})}`})}},WG=VG;function qG(e){const{primaryColor:t,opacityDisabled:n,borderRadius:o,textColor3:r}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},I2),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${Ie(t,{alpha:.2})}`})}const KG={name:"Switch",common:xt,self:qG},GG=KG,XG={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function YG(e){const{dividerColor:t,cardColor:n,modalColor:o,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},XG),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:d,borderRadius:c,borderColor:Ke(n,t),borderColorModal:Ke(o,t),borderColorPopover:Ke(r,t),tdColor:n,tdColorModal:o,tdColorPopover:r,tdColorStriped:Ke(n,a),tdColorStripedModal:Ke(o,a),tdColorStripedPopover:Ke(r,a),thColor:Ke(n,i),thColorModal:Ke(o,i),thColorPopover:Ke(r,i),thTextColor:s,tdTextColor:l,thFontWeight:u})}const QG={name:"Table",common:He,self:YG},JG=QG,ZG={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function eX(e){const{textColor2:t,primaryColor:n,textColorDisabled:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:m}=e;return Object.assign(Object.assign({},ZG),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:o,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:h,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:o,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:n,tabTextColorDisabledCard:o,barColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:p,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})}const tX={name:"Tabs",common:He,self(e){const t=eX(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},nX=tX;function oX(e){const{textColor1:t,textColor2:n,fontWeightStrong:o,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:n,titleFontWeight:o}}const rX={name:"Thing",common:He,self:oX},iX=rX,aX={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},sX={name:"Timeline",common:He,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:o,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},aX),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:o,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},lX=sX,cX={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},uX={name:"Transfer",common:He,peers:{Checkbox:Ka,Scrollbar:Un,Input:go,Empty:Ki,Button:Vn},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:o,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:m,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C,dividerColor:_}=e;return Object.assign(Object.assign({},cX),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n,borderRadius:s,dividerColor:_,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:h,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C})}},dX=uX;function fX(e){const{borderRadiusSmall:t,dividerColor:n,hoverColor:o,pressedColor:r,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:r,nodeColorActive:Ie(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:n}}const hX={name:"Tree",common:He,peers:{Checkbox:Ka,Scrollbar:Un,Empty:Ki},self(e){const{primaryColor:t}=e,n=fX(e);return n.nodeColorActive=Ie(t,{alpha:.15}),n}},O2=hX,pX={name:"TreeSelect",common:He,peers:{Tree:O2,Empty:Ki,InternalSelection:hm}},mX=pX,gX={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function vX(e){const{primaryColor:t,textColor2:n,borderColor:o,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},gX),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:o,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:r,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:n,codeColor:g,codeBorder:"1px solid #0000"})}const bX={name:"Typography",common:He,self:vX},yX=bX;function xX(e){const{iconColor:t,primaryColor:n,errorColor:o,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:Ie(o,{alpha:.06}),itemTextColor:r,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}}const CX={name:"Upload",common:He,peers:{Button:Vn,Progress:R2},self(e){const{errorColor:t}=e,n=xX(e);return n.itemColorHoverError=Ie(t,{alpha:.09}),n}},wX=CX,_X={name:"Watermark",common:He,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},SX=_X,kX={name:"Row",common:He},PX=kX,TX={name:"FloatButton",common:He,self(e){const{popoverColor:t,textColor2:n,buttonColor2Hover:o,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:o,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},EX=TX;function RX(e){const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}const AX={name:"IconWrapper",common:He,self:RX},$X=AX,IX={name:"Image",common:He,peers:{Tooltip:Mu},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function OX(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function MX(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function af(e){return e==null?!0:!Number.isNaN(e)}function u1(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function sf(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const zX=W([z("input-number-suffix",` + `),pl({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),fK=Object.assign(Object.assign({},Le.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),T2=ye({name:"Drawer",inheritAttrs:!1,props:fK,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:o}=st(e),r=ti(),i=Le("Drawer","-drawer",dK,Xq,e,t),a=j(e.defaultWidth),s=j(e.defaultHeight),l=rn(Ue(e,"width"),a),c=rn(Ue(e,"height"),s),u=M(()=>{const{placement:y}=e;return y==="top"||y==="bottom"?"":qt(l.value)}),d=M(()=>{const{placement:y}=e;return y==="left"||y==="right"?"":qt(c.value)}),f=y=>{const{onUpdateWidth:x,"onUpdate:width":k}=e;x&&Re(x,y),k&&Re(k,y),a.value=y},h=y=>{const{onUpdateHeight:x,"onUpdate:width":k}=e;x&&Re(x,y),k&&Re(k,y),s.value=y},p=M(()=>[{width:u.value,height:d.value},e.drawerStyle||""]);function g(y){const{onMaskClick:x,maskClosable:k}=e;k&&C(!1),x&&x(y)}function m(y){g(y)}const b=Qw();function w(y){var x;(x=e.onEsc)===null||x===void 0||x.call(e),e.show&&e.closeOnEsc&&Ew(y)&&(b.value||C(!1))}function C(y){const{onHide:x,onUpdateShow:k,"onUpdate:show":P}=e;k&&Re(k,y),P&&Re(P,y),x&&!y&&Re(x,y)}at(Yp,{isMountedRef:r,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:C,doUpdateHeight:h,doUpdateWidth:f});const _=M(()=>{const{common:{cubicBezierEaseInOut:y,cubicBezierEaseIn:x,cubicBezierEaseOut:k},self:{color:P,textColor:T,boxShadow:$,lineHeight:E,headerPadding:G,footerPadding:B,borderRadius:D,bodyPadding:L,titleFontSize:X,titleTextColor:V,titleFontWeight:ae,headerBorderBottom:ue,footerBorderTop:ee,closeIconColor:R,closeIconColorHover:A,closeIconColorPressed:Y,closeColorHover:W,closeColorPressed:oe,closeIconSize:K,closeSize:le,closeBorderRadius:N,resizableTriggerColorHover:be}}=i.value;return{"--n-line-height":E,"--n-color":P,"--n-border-radius":D,"--n-text-color":T,"--n-box-shadow":$,"--n-bezier":y,"--n-bezier-out":k,"--n-bezier-in":x,"--n-header-padding":G,"--n-body-padding":L,"--n-footer-padding":B,"--n-title-text-color":V,"--n-title-font-size":X,"--n-title-font-weight":ae,"--n-header-border-bottom":ue,"--n-footer-border-top":ee,"--n-close-icon-color":R,"--n-close-icon-color-hover":A,"--n-close-icon-color-pressed":Y,"--n-close-size":le,"--n-close-color-hover":W,"--n-close-color-pressed":oe,"--n-close-icon-size":K,"--n-close-border-radius":N,"--n-resize-trigger-color-hover":be}}),S=o?Pt("drawer",void 0,_,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleOutsideClick:m,handleMaskClick:g,handleEsc:w,mergedTheme:i,cssVars:o?void 0:_,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,isMounted:r}},render(){const{mergedClsPrefix:e}=this;return v(Eu,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),dn(v("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?v(fn,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?v("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,v(Jq,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Ru,{zIndex:this.zIndex,enabled:this.show}]])}})}}),hK={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},pK=ye({name:"DrawerContent",props:hK,setup(){const e=Ve(Yp,null);e||hr("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:o,bodyClass:r,bodyStyle:i,bodyContentClass:a,bodyContentStyle:s,headerClass:l,headerStyle:c,footerClass:u,footerStyle:d,scrollbarProps:f,closable:h,$slots:p}=this;return v("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},p.header||e||h?v("div",{class:[`${t}-drawer-header`,l],style:c,role:"none"},v("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},p.header!==void 0?p.header():e),h&&v(Gi,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?v("div",{class:[`${t}-drawer-body`,r],style:i,role:"none"},v("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:s,role:"none"},p)):v(Oo,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},f,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:s}),p),p.footer?v("div",{class:[`${t}-drawer-footer`,u],style:d,role:"none"},p.footer()):null)}}),mK={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},gK={name:"DynamicInput",common:je,peers:{Input:go,Button:Vn},self(){return mK}},vK=gK,A2={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},bK={name:"Space",self(){return A2}},R2=bK;function yK(){return A2}const xK={name:"Space",self:yK},CK=xK;let uf;function wK(){if(!pr)return!0;if(uf===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),uf=t}return uf}const _K=Object.assign(Object.assign({},Le.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),Zi=ye({name:"Space",props:_K,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=st(e),o=Le("Space","-space",void 0,CK,e,t),r=pn("Space",n,t);return{useGap:wK(),rtlEnabled:r,mergedClsPrefix:t,margin:M(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Te("gap",i)]:a}}=o.value,{row:s,col:l}=UI(a);return{horizontal:bn(l),vertical:bn(s)}})}},render(){const{vertical:e,reverse:t,align:n,inline:o,justify:r,itemClass:i,itemStyle:a,margin:s,wrap:l,mergedClsPrefix:c,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:h}=this,p=Ra(yw(this),!1);if(!p.length)return null;const g=`${s.horizontal}px`,m=`${s.horizontal/2}px`,b=`${s.vertical}px`,w=`${s.vertical/2}px`,C=p.length-1,_=r.startsWith("space-");return v("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:(()=>e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row")(),justifyContent:["start","end"].includes(r)?`flex-${r}`:r,flexWrap:!l||e?"nowrap":"wrap",marginTop:d||e?"":`-${w}`,marginBottom:d||e?"":`-${w}`,alignItems:n,gap:d?`${s.vertical}px ${s.horizontal}px`:""}},!f&&(d||h)?p:p.map((S,y)=>S.type===_n?S:v("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},d?"":e?{marginBottom:y!==C?b:""}:u?{marginLeft:_?r==="space-between"&&y===C?"":m:y!==C?g:"",marginRight:_?r==="space-between"&&y===0?"":m:"",paddingTop:w,paddingBottom:w}:{marginRight:_?r==="space-between"&&y===C?"":m:y!==C?g:"",marginLeft:_?r==="space-between"&&y===0?"":m:"",paddingTop:w,paddingBottom:w}]},S)))}}),SK={name:"DynamicTags",common:je,peers:{Input:go,Button:Vn,Tag:lS,Space:R2},self(){return{inputWidth:"64px"}}},kK=SK,PK={name:"Element",common:je},TK=PK,AK={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},RK={name:"Flex",self(){return AK}},EK=RK,$K={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function IK(e){const{heightSmall:t,heightMedium:n,heightLarge:o,textColor1:r,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},$K),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:o,lineHeight:s,labelTextColor:r,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})}const OK={name:"Form",common:je,self:IK},MK=OK,zK={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function E2(e){const{textColor2:t,successColor:n,infoColor:o,warningColor:r,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:h,borderRadius:p,fontWeightStrong:g,boxShadow2:m,lineHeight:b,fontSize:w}=e;return Object.assign(Object.assign({},zK),{borderRadius:p,lineHeight:b,fontSize:w,headerFontWeight:g,iconColor:t,iconColorSuccess:n,iconColorInfo:o,iconColorWarning:r,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:h,actionTextColor:t,boxShadow:m})}const FK={name:"Notification",common:xt,peers:{Scrollbar:Yi},self:E2},DK=FK,LK={name:"Notification",common:je,peers:{Scrollbar:Un},self:E2},BK=LK,NK={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function $2(e){const{textColor2:t,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:h,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},NK),{closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:p,closeColorPressed:g,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:r,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:n,closeIconColorHoverInfo:o,closeIconColorPressedInfo:r,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:n,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:r,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:n,closeIconColorHoverError:o,closeIconColorPressedError:r,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:n,closeIconColorHoverWarning:o,closeIconColorPressedWarning:r,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:n,closeIconColorHoverLoading:o,closeIconColorPressedLoading:r,loadingColor:d,lineHeight:f,borderRadius:h})}const HK={name:"Message",common:xt,self:$2},jK=HK,UK={name:"Message",common:je,self:$2},VK=UK,WK={name:"ButtonGroup",common:je},qK=WK,KK={name:"GradientText",common:je,self(e){const{primaryColor:t,successColor:n,warningColor:o,errorColor:r,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:u,colorStartWarning:o,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:n,colorEndSuccess:s}}},GK=KK,XK={name:"InputNumber",common:je,peers:{Button:Vn,Input:go},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},YK=XK;function QK(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const JK={name:"InputNumber",common:xt,peers:{Button:Du,Input:wm},self:QK},ZK=JK,eG={name:"Layout",common:je,peers:{Scrollbar:Un},self(e){const{textColor2:t,bodyColor:n,popoverColor:o,cardColor:r,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ke(n,a),siderToggleBarColorHover:Ke(n,s),__invertScrollbar:"false"}}},tG=eG;function nG(e){const{baseColor:t,textColor2:n,bodyColor:o,cardColor:r,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:o,colorEmbedded:a,headerColor:r,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:Ke(o,s),siderToggleBarColorHover:Ke(o,l),__invertScrollbar:"true"}}const oG={name:"Layout",common:xt,peers:{Scrollbar:Yi},self:nG},I2=oG;function O2(e){const{textColor2:t,cardColor:n,modalColor:o,popoverColor:r,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:n,colorHover:l,colorModal:o,colorHoverModal:Ke(o,l),colorPopover:r,colorHoverPopover:Ke(r,l),borderColor:i,borderColorModal:Ke(o,i),borderColorPopover:Ke(r,i),borderRadius:a,fontSize:s}}const rG={name:"List",common:xt,self:O2},iG=rG,aG={name:"List",common:je,self:O2},sG=aG,lG={name:"LoadingBar",common:je,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},cG=lG;function uG(e){const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}}const dG={name:"LoadingBar",common:xt,self:uG},fG=dG,hG={name:"Log",common:je,peers:{Scrollbar:Un,Code:IS},self(e){const{textColor2:t,inputColor:n,fontSize:o,primaryColor:r}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:r}}},pG=hG,mG={name:"Mention",common:je,peers:{InternalSelectMenu:ml,Input:go},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},gG=mG;function vG(e,t,n,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:o}}function M2(e){const{borderRadius:t,textColor3:n,primaryColor:o,textColor2:r,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:l,itemColorActive:Oe(o,{alpha:.1}),itemColorActiveHover:Oe(o,{alpha:.1}),itemColorActiveCollapsed:Oe(o,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},vG("#BBB",o,"#FFF","#AAA"))}const bG={name:"Menu",common:xt,peers:{Tooltip:Rm,Dropdown:$m},self:M2},yG=bG,xG={name:"Menu",common:je,peers:{Tooltip:Bu,Dropdown:Im},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,o=M2(e);return o.itemColorActive=Oe(t,{alpha:.15}),o.itemColorActiveHover=Oe(t,{alpha:.15}),o.itemColorActiveCollapsed=Oe(t,{alpha:.15}),o.itemColorActiveInverted=n,o.itemColorActiveHoverInverted=n,o.itemColorActiveCollapsedInverted=n,o}},CG=xG,wG={titleFontSize:"18px",backSize:"22px"};function _G(e){const{textColor1:t,textColor2:n,textColor3:o,fontSize:r,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},wG),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:s,subtitleTextColor:o})}const SG={name:"PageHeader",common:je,self:_G},kG={iconSize:"22px"};function PG(e){const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},kG),{fontSize:t,iconColor:n})}const TG={name:"Popconfirm",common:je,peers:{Button:Vn,Popover:Qi},self:PG},AG=TG;function z2(e){const{infoColor:t,successColor:n,warningColor:o,errorColor:r,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:o,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:o,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const RG={name:"Progress",common:xt,self:z2},EG=RG,$G={name:"Progress",common:je,self(e){const t=z2(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},F2=$G,IG={name:"Rate",common:je,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},OG=IG,MG={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function D2(e){const{textColor2:t,textColor1:n,errorColor:o,successColor:r,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},MG),{lineHeight:s,titleFontWeight:l,titleTextColor:n,textColor:t,iconColorError:o,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:a})}const zG={name:"Result",common:xt,self:D2},FG=zG,DG={name:"Result",common:je,self:D2},LG=DG,BG={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},NG={name:"Slider",common:je,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:o,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:u}=e;return Object.assign(Object.assign({},BG),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:r,fillColorHover:r,opacityDisabled:u,handleColor:"#FFF",dotColor:s,dotColorModal:o,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:""})}},HG=NG;function L2(e){const{opacityDisabled:t,heightTiny:n,heightSmall:o,heightMedium:r,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:n,sizeSmall:o,sizeMedium:r,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}}const jG={name:"Spin",common:xt,self:L2},UG=jG,VG={name:"Spin",common:je,self:L2},WG=VG;function qG(e){const{textColor2:t,textColor3:n,fontSize:o,fontWeight:r}=e;return{labelFontSize:o,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const KG={name:"Statistic",common:je,self:qG},GG=KG,XG={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function YG(e){const{fontWeightStrong:t,baseColor:n,textColorDisabled:o,primaryColor:r,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},XG),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:o,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:o,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:r,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})}const QG={name:"Steps",common:je,self:YG},JG=QG,B2={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},ZG={name:"Switch",common:je,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:o,primaryColor:r,textColor2:i,baseColor:a}=e,s="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},B2),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:n,railColor:s,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${Oe(r,{alpha:.3})}`})}},eX=ZG;function tX(e){const{primaryColor:t,opacityDisabled:n,borderRadius:o,textColor3:r}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},B2),{iconColor:r,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${Oe(t,{alpha:.2})}`})}const nX={name:"Switch",common:xt,self:tX},oX=nX,rX={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function iX(e){const{dividerColor:t,cardColor:n,modalColor:o,popoverColor:r,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},rX),{fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,lineHeight:d,borderRadius:c,borderColor:Ke(n,t),borderColorModal:Ke(o,t),borderColorPopover:Ke(r,t),tdColor:n,tdColorModal:o,tdColorPopover:r,tdColorStriped:Ke(n,a),tdColorStripedModal:Ke(o,a),tdColorStripedPopover:Ke(r,a),thColor:Ke(n,i),thColorModal:Ke(o,i),thColorPopover:Ke(r,i),thTextColor:s,tdTextColor:l,thFontWeight:u})}const aX={name:"Table",common:je,self:iX},sX=aX,lX={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function cX(e){const{textColor2:t,primaryColor:n,textColorDisabled:o,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:u,dividerColor:d,fontWeight:f,textColor1:h,borderRadius:p,fontSize:g,fontWeightStrong:m}=e;return Object.assign(Object.assign({},lX),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:o,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:h,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:o,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:n,tabTextColorDisabledCard:o,barColor:n,closeIconColor:r,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:p,tabColor:c,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})}const uX={name:"Tabs",common:je,self(e){const t=cX(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},dX=uX;function fX(e){const{textColor1:t,textColor2:n,fontWeightStrong:o,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:n,titleFontWeight:o}}const hX={name:"Thing",common:je,self:fX},pX=hX,mX={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},gX={name:"Timeline",common:je,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:o,successColorSuppl:r,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},mX),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:o,iconColorSuccess:r,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},vX=gX,bX={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},yX={name:"Transfer",common:je,peers:{Checkbox:Ya,Scrollbar:Un,Input:go,Empty:Xi,Button:Vn},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:o,fontSizeSmall:r,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:h,hoverColor:p,closeColorHover:g,closeColorPressed:m,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C,dividerColor:_}=e;return Object.assign(Object.assign({},bX),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n,borderRadius:s,dividerColor:_,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:h,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:b,closeIconColorHover:w,closeIconColorPressed:C})}},xX=yX;function CX(e){const{borderRadiusSmall:t,dividerColor:n,hoverColor:o,pressedColor:r,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:r,nodeColorActive:Oe(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:n}}const wX={name:"Tree",common:je,peers:{Checkbox:Ya,Scrollbar:Un,Empty:Xi},self(e){const{primaryColor:t}=e,n=CX(e);return n.nodeColorActive=Oe(t,{alpha:.15}),n}},N2=wX,_X={name:"TreeSelect",common:je,peers:{Tree:N2,Empty:Xi,InternalSelection:xm}},SX=_X,kX={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function PX(e){const{primaryColor:t,textColor2:n,borderColor:o,lineHeight:r,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},kX),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:o,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:r,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:n,codeColor:g,codeBorder:"1px solid #0000"})}const TX={name:"Typography",common:je,self:PX},AX=TX;function RX(e){const{iconColor:t,primaryColor:n,errorColor:o,textColor2:r,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:Oe(o,{alpha:.06}),itemTextColor:r,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}}const EX={name:"Upload",common:je,peers:{Button:Vn,Progress:F2},self(e){const{errorColor:t}=e,n=RX(e);return n.itemColorHoverError=Oe(t,{alpha:.09}),n}},$X=EX,IX={name:"Watermark",common:je,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},OX=IX,MX={name:"Row",common:je},zX=MX,FX={name:"FloatButton",common:je,self(e){const{popoverColor:t,textColor2:n,buttonColor2Hover:o,buttonColor2Pressed:r,primaryColor:i,primaryColorHover:a,primaryColorPressed:s,baseColor:l,borderRadius:c}=e;return{color:t,textColor:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:o,colorPressed:r,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:s,textColorPrimary:l,borderRadiusSquare:c}}},DX=FX;function LX(e){const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}const BX={name:"IconWrapper",common:je,self:LX},NX=BX,HX={name:"Image",common:je,peers:{Tooltip:Bu},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}};function jX(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function UX(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function df(e){return e==null?!0:!Number.isNaN(e)}function v1(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function ff(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const VX=q([z("input-number-suffix",` display: inline-block; margin-right: 10px; `),z("input-number-prefix",` display: inline-block; margin-left: 10px; - `)]),d1=800,f1=100,FX=Object.assign(Object.assign({},Le.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),DX=xe({name:"InputNumber",props:FX,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:o}=st(e),r=Le("InputNumber","-input-number",zX,VK,e,n),{localeRef:i}=Hi("InputNumber"),a=mr(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:c}=a,u=U(null),d=U(null),f=U(null),h=U(e.defaultValue),p=Ue(e,"value"),g=rn(p,h),m=U(""),b=oe=>{const ve=String(oe).split(".")[1];return ve?ve.length:0},w=oe=>{const ve=[e.min,e.max,e.step,oe].map(ke=>ke===void 0?0:b(ke));return Math.max(...ve)},C=kt(()=>{const{placeholder:oe}=e;return oe!==void 0?oe:i.value.placeholder}),_=kt(()=>{const oe=sf(e.step);return oe!==null?oe===0?1:Math.abs(oe):1}),S=kt(()=>{const oe=sf(e.min);return oe!==null?oe:null}),y=kt(()=>{const oe=sf(e.max);return oe!==null?oe:null}),x=()=>{const{value:oe}=g;if(af(oe)){const{format:ve,precision:ke}=e;ve?m.value=ve(oe):oe===null||ke===void 0||b(oe)>ke?m.value=u1(oe,void 0):m.value=u1(oe,ke)}else m.value=String(oe)};x();const P=oe=>{const{value:ve}=g;if(oe===ve){x();return}const{"onUpdate:value":ke,onUpdateValue:$,onChange:H}=e,{nTriggerFormInput:te,nTriggerFormChange:Ce}=a;H&&Re(H,oe),$&&Re($,oe),ke&&Re(ke,oe),h.value=oe,te(),Ce()},k=({offset:oe,doUpdateIfValid:ve,fixPrecision:ke,isInputing:$})=>{const{value:H}=m;if($&&MX(H))return!1;const te=(e.parse||OX)(H);if(te===null)return ve&&P(null),null;if(af(te)){const Ce=b(te),{precision:de}=e;if(de!==void 0&&deie){if(!ve||$)return!1;ue=ie}if(fe!==null&&uek({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),R=kt(()=>{const{value:oe}=g;if(e.validator&&oe===null)return!1;const{value:ve}=_;return k({offset:-ve,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),E=kt(()=>{const{value:oe}=g;if(e.validator&&oe===null)return!1;const{value:ve}=_;return k({offset:+ve,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function q(oe){const{onFocus:ve}=e,{nTriggerFormFocus:ke}=a;ve&&Re(ve,oe),ke()}function D(oe){var ve,ke;if(oe.target===((ve=u.value)===null||ve===void 0?void 0:ve.wrapperElRef))return;const $=k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if($!==!1){const Ce=(ke=u.value)===null||ke===void 0?void 0:ke.inputElRef;Ce&&(Ce.value=String($||"")),g.value===$&&x()}else x();const{onBlur:H}=e,{nTriggerFormBlur:te}=a;H&&Re(H,oe),te(),Ht(()=>{x()})}function B(oe){const{onClear:ve}=e;ve&&Re(ve,oe)}function M(){const{value:oe}=E;if(!oe){ce();return}const{value:ve}=g;if(ve===null)e.validator||P(pe());else{const{value:ke}=_;k({offset:ke,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function K(){const{value:oe}=R;if(!oe){ne();return}const{value:ve}=g;if(ve===null)e.validator||P(pe());else{const{value:ke}=_;k({offset:-ke,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const V=q,ae=D;function pe(){if(e.validator)return null;const{value:oe}=S,{value:ve}=y;return oe!==null?Math.max(0,oe):ve!==null?Math.min(0,ve):0}function Z(oe){B(oe),P(null)}function N(oe){var ve,ke,$;!((ve=f.value)===null||ve===void 0)&&ve.$el.contains(oe.target)&&oe.preventDefault(),!((ke=d.value)===null||ke===void 0)&&ke.$el.contains(oe.target)&&oe.preventDefault(),($=u.value)===null||$===void 0||$.activate()}let O=null,ee=null,G=null;function ne(){G&&(window.clearTimeout(G),G=null),O&&(window.clearInterval(O),O=null)}let X=null;function ce(){X&&(window.clearTimeout(X),X=null),ee&&(window.clearInterval(ee),ee=null)}function L(){ne(),G=window.setTimeout(()=>{O=window.setInterval(()=>{K()},f1)},d1),$t("mouseup",document,ne,{once:!0})}function be(){ce(),X=window.setTimeout(()=>{ee=window.setInterval(()=>{M()},f1)},d1),$t("mouseup",document,ce,{once:!0})}const Oe=()=>{ee||M()},je=()=>{O||K()};function F(oe){var ve,ke;if(oe.key==="Enter"){if(oe.target===((ve=u.value)===null||ve===void 0?void 0:ve.wrapperElRef))return;k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ke=u.value)===null||ke===void 0||ke.deactivate())}else if(oe.key==="ArrowUp"){if(!E.value||e.keyboard.ArrowUp===!1)return;oe.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&M()}else if(oe.key==="ArrowDown"){if(!R.value||e.keyboard.ArrowDown===!1)return;oe.preventDefault(),k({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&K()}}function A(oe){m.value=oe,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&k({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}ft(g,()=>{x()});const re={focus:()=>{var oe;return(oe=u.value)===null||oe===void 0?void 0:oe.focus()},blur:()=>{var oe;return(oe=u.value)===null||oe===void 0?void 0:oe.blur()},select:()=>{var oe;return(oe=u.value)===null||oe===void 0?void 0:oe.select()}},we=pn("InputNumber",o,n);return Object.assign(Object.assign({},re),{rtlEnabled:we,inputInstRef:u,minusButtonInstRef:d,addButtonInstRef:f,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:h,mergedValue:g,mergedPlaceholder:C,displayedValueInvalid:T,mergedSize:s,mergedDisabled:l,displayedValue:m,addable:E,minusable:R,mergedStatus:c,handleFocus:V,handleBlur:ae,handleClear:Z,handleMouseDown:N,handleAddClick:Oe,handleMinusClick:je,handleAddMousedown:be,handleMinusMousedown:L,handleKeyDown:F,handleUpdateDisplayedValue:A,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:I(()=>{const{self:{iconColorDisabled:oe}}=r.value,[ve,ke,$,H]=qo(oe);return{textColorTextDisabled:`rgb(${ve}, ${ke}, ${$})`,opacityDisabled:`${H}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>v(G0,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>$n(t["minus-icon"],()=>[v(Wt,{clsPrefix:e},{default:()=>v(IN,null)})])}),o=()=>v(G0,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>$n(t["add-icon"],()=>[v(Wt,{clsPrefix:e},{default:()=>v(SN,null)})])});return v("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},v(dr,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[n(),At(t.prefix,i=>i?v("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[At(t.suffix,i=>i?v("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,o()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),M2="n-layout-sider",z2={type:String,default:"static"},LX=z("layout",` + `)]),b1=800,y1=100,WX=Object.assign(Object.assign({},Le.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),qX=ye({name:"InputNumber",props:WX,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:o}=st(e),r=Le("InputNumber","-input-number",VX,ZK,e,n),{localeRef:i}=Ui("InputNumber"),a=mr(e),{mergedSizeRef:s,mergedDisabledRef:l,mergedStatusRef:c}=a,u=j(null),d=j(null),f=j(null),h=j(e.defaultValue),p=Ue(e,"value"),g=rn(p,h),m=j(""),b=ne=>{const me=String(ne).split(".")[1];return me?me.length:0},w=ne=>{const me=[e.min,e.max,e.step,ne].map(we=>we===void 0?0:b(we));return Math.max(...me)},C=kt(()=>{const{placeholder:ne}=e;return ne!==void 0?ne:i.value.placeholder}),_=kt(()=>{const ne=ff(e.step);return ne!==null?ne===0?1:Math.abs(ne):1}),S=kt(()=>{const ne=ff(e.min);return ne!==null?ne:null}),y=kt(()=>{const ne=ff(e.max);return ne!==null?ne:null}),x=()=>{const{value:ne}=g;if(df(ne)){const{format:me,precision:we}=e;me?m.value=me(ne):ne===null||we===void 0||b(ne)>we?m.value=v1(ne,void 0):m.value=v1(ne,we)}else m.value=String(ne)};x();const k=ne=>{const{value:me}=g;if(ne===me){x();return}const{"onUpdate:value":we,onUpdateValue:O,onChange:H}=e,{nTriggerFormInput:te,nTriggerFormChange:Ce}=a;H&&Re(H,ne),O&&Re(O,ne),we&&Re(we,ne),h.value=ne,te(),Ce()},P=({offset:ne,doUpdateIfValid:me,fixPrecision:we,isInputing:O})=>{const{value:H}=m;if(O&&UX(H))return!1;const te=(e.parse||jX)(H);if(te===null)return me&&k(null),null;if(df(te)){const Ce=b(te),{precision:fe}=e;if(fe!==void 0&&feie){if(!me||O)return!1;de=ie}if(he!==null&&deP({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),$=kt(()=>{const{value:ne}=g;if(e.validator&&ne===null)return!1;const{value:me}=_;return P({offset:-me,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),E=kt(()=>{const{value:ne}=g;if(e.validator&&ne===null)return!1;const{value:me}=_;return P({offset:+me,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function G(ne){const{onFocus:me}=e,{nTriggerFormFocus:we}=a;me&&Re(me,ne),we()}function B(ne){var me,we;if(ne.target===((me=u.value)===null||me===void 0?void 0:me.wrapperElRef))return;const O=P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(O!==!1){const Ce=(we=u.value)===null||we===void 0?void 0:we.inputElRef;Ce&&(Ce.value=String(O||"")),g.value===O&&x()}else x();const{onBlur:H}=e,{nTriggerFormBlur:te}=a;H&&Re(H,ne),te(),Ht(()=>{x()})}function D(ne){const{onClear:me}=e;me&&Re(me,ne)}function L(){const{value:ne}=E;if(!ne){le();return}const{value:me}=g;if(me===null)e.validator||k(ue());else{const{value:we}=_;P({offset:we,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function X(){const{value:ne}=$;if(!ne){oe();return}const{value:me}=g;if(me===null)e.validator||k(ue());else{const{value:we}=_;P({offset:-we,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const V=G,ae=B;function ue(){if(e.validator)return null;const{value:ne}=S,{value:me}=y;return ne!==null?Math.max(0,ne):me!==null?Math.min(0,me):0}function ee(ne){D(ne),k(null)}function R(ne){var me,we,O;!((me=f.value)===null||me===void 0)&&me.$el.contains(ne.target)&&ne.preventDefault(),!((we=d.value)===null||we===void 0)&&we.$el.contains(ne.target)&&ne.preventDefault(),(O=u.value)===null||O===void 0||O.activate()}let A=null,Y=null,W=null;function oe(){W&&(window.clearTimeout(W),W=null),A&&(window.clearInterval(A),A=null)}let K=null;function le(){K&&(window.clearTimeout(K),K=null),Y&&(window.clearInterval(Y),Y=null)}function N(){oe(),W=window.setTimeout(()=>{A=window.setInterval(()=>{X()},y1)},b1),$t("mouseup",document,oe,{once:!0})}function be(){le(),K=window.setTimeout(()=>{Y=window.setInterval(()=>{L()},y1)},b1),$t("mouseup",document,le,{once:!0})}const Ie=()=>{Y||L()},Ne=()=>{A||X()};function F(ne){var me,we;if(ne.key==="Enter"){if(ne.target===((me=u.value)===null||me===void 0?void 0:me.wrapperElRef))return;P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((we=u.value)===null||we===void 0||we.deactivate())}else if(ne.key==="ArrowUp"){if(!E.value||e.keyboard.ArrowUp===!1)return;ne.preventDefault(),P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&L()}else if(ne.key==="ArrowDown"){if(!$.value||e.keyboard.ArrowDown===!1)return;ne.preventDefault(),P({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&X()}}function I(ne){m.value=ne,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&P({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}ut(g,()=>{x()});const re={focus:()=>{var ne;return(ne=u.value)===null||ne===void 0?void 0:ne.focus()},blur:()=>{var ne;return(ne=u.value)===null||ne===void 0?void 0:ne.blur()},select:()=>{var ne;return(ne=u.value)===null||ne===void 0?void 0:ne.select()}},_e=pn("InputNumber",o,n);return Object.assign(Object.assign({},re),{rtlEnabled:_e,inputInstRef:u,minusButtonInstRef:d,addButtonInstRef:f,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:h,mergedValue:g,mergedPlaceholder:C,displayedValueInvalid:T,mergedSize:s,mergedDisabled:l,displayedValue:m,addable:E,minusable:$,mergedStatus:c,handleFocus:V,handleBlur:ae,handleClear:ee,handleMouseDown:R,handleAddClick:Ie,handleMinusClick:Ne,handleAddMousedown:be,handleMinusMousedown:N,handleKeyDown:F,handleUpdateDisplayedValue:I,mergedTheme:r,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:M(()=>{const{self:{iconColorDisabled:ne}}=r.value,[me,we,O,H]=qo(ne);return{textColorTextDisabled:`rgb(${me}, ${we}, ${O})`,opacityDisabled:`${H}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>v(t1,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>$n(t["minus-icon"],()=>[v(Wt,{clsPrefix:e},{default:()=>v(HN,null)})])}),o=()=>v(t1,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>$n(t["add-icon"],()=>[v(Wt,{clsPrefix:e},{default:()=>v(ON,null)})])});return v("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},v(dr,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var r;return this.showButton&&this.buttonPlacement==="both"?[n(),Et(t.prefix,i=>i?v("span",{class:`${e}-input-number-prefix`},i):null)]:(r=t.prefix)===null||r===void 0?void 0:r.call(t)},suffix:()=>{var r;return this.showButton?[Et(t.suffix,i=>i?v("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,o()]:(r=t.suffix)===null||r===void 0?void 0:r.call(t)}}))}}),H2="n-layout-sider",j2={type:String,default:"static"},KX=z("layout",` color: var(--n-text-color); background-color: var(--n-color); box-sizing: border-box; @@ -2761,13 +2761,13 @@ ${t} overflow-x: hidden; box-sizing: border-box; height: 100%; - `),J("absolute-positioned",` + `),Z("absolute-positioned",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `)]),BX={embedded:Boolean,position:z2,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},F2="n-layout";function NX(e){return xe({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Le.props),BX),setup(t){const n=U(null),o=U(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=st(t),a=Le("Layout","-layout",LX,k2,t,r);function s(g,m){if(t.nativeScrollbar){const{value:b}=n;b&&(m===void 0?b.scrollTo(g):b.scrollTo(g,m))}else{const{value:b}=o;b&&b.scrollTo(g,m)}}at(F2,t);let l=0,c=0;const u=g=>{var m;const b=g.target;l=b.scrollLeft,c=b.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,g)};Qp(()=>{if(t.nativeScrollbar){const g=n.value;g&&(g.scrollTop=c,g.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},h=I(()=>{const{common:{cubicBezierEaseInOut:g},self:m}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Pt("layout",I(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:n,scrollbarInstRef:o,hasSiderStyle:d,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},f)},render(){var t;const{mergedClsPrefix:n,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return v("div",{class:i,style:this.cssVars},this.nativeScrollbar?v("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):v(Oo,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const HX=NX(!1),jX=z("layout-sider",` + `)]),GX={embedded:Boolean,position:j2,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},U2="n-layout";function XX(e){return ye({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Le.props),GX),setup(t){const n=j(null),o=j(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=st(t),a=Le("Layout","-layout",KX,I2,t,r);function s(g,m){if(t.nativeScrollbar){const{value:b}=n;b&&(m===void 0?b.scrollTo(g):b.scrollTo(g,m))}else{const{value:b}=o;b&&b.scrollTo(g,m)}}at(U2,t);let l=0,c=0;const u=g=>{var m;const b=g.target;l=b.scrollLeft,c=b.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,g)};rm(()=>{if(t.nativeScrollbar){const g=n.value;g&&(g.scrollTop=c,g.scrollLeft=l)}});const d={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},h=M(()=>{const{common:{cubicBezierEaseInOut:g},self:m}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Pt("layout",M(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:n,scrollbarInstRef:o,hasSiderStyle:d,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},f)},render(){var t;const{mergedClsPrefix:n,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return v("div",{class:i,style:this.cssVars},this.nativeScrollbar?v("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):v(Oo,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const YX=XX(!1),QX=z("layout-sider",` flex-shrink: 0; box-sizing: border-box; position: relative; @@ -2783,7 +2783,7 @@ ${t} background-color: var(--n-color); display: flex; justify-content: flex-end; -`,[J("bordered",[j("border",` +`,[Z("bordered",[U("border",` content: ""; position: absolute; top: 0; @@ -2791,15 +2791,15 @@ ${t} width: 1px; background-color: var(--n-border-color); transition: background-color .3s var(--n-bezier); - `)]),j("left-placement",[J("bordered",[j("border",` + `)]),U("left-placement",[Z("bordered",[U("border",` right: 0; - `)])]),J("right-placement",` + `)])]),Z("right-placement",` justify-content: flex-start; - `,[J("bordered",[j("border",` + `,[Z("bordered",[U("border",` left: 0; - `)]),J("collapsed",[z("layout-toggle-button",[z("base-icon",` + `)]),Z("collapsed",[z("layout-toggle-button",[z("base-icon",` transform: rotate(180deg); - `)]),z("layout-toggle-bar",[W("&:hover",[j("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),z("layout-toggle-button",` + `)]),z("layout-toggle-bar",[q("&:hover",[U("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),U("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),z("layout-toggle-button",` left: 0; transform: translateX(-50%) translateY(-50%); `,[z("base-icon",` @@ -2807,7 +2807,7 @@ ${t} `)]),z("layout-toggle-bar",` left: -28px; transform: rotate(180deg); - `,[W("&:hover",[j("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),J("collapsed",[z("layout-toggle-bar",[W("&:hover",[j("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),z("layout-toggle-button",[z("base-icon",` + `,[q("&:hover",[U("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),U("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),Z("collapsed",[z("layout-toggle-bar",[q("&:hover",[U("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),U("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),z("layout-toggle-button",[z("base-icon",` transform: rotate(0); `)])]),z("layout-toggle-button",` transition: @@ -2843,7 +2843,7 @@ ${t} position: absolute; top: calc(50% - 36px); right: -28px; - `,[j("top, bottom",` + `,[U("top, bottom",` position: absolute; width: 4px; border-radius: 2px; @@ -2852,10 +2852,10 @@ ${t} transition: background-color .3s var(--n-bezier), transform .3s var(--n-bezier); - `),j("bottom",` + `),U("bottom",` position: absolute; top: 34px; - `),W("&:hover",[j("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),j("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),j("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),W("&:hover",[j("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),j("border",` + `),q("&:hover",[U("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),U("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),U("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),q("&:hover",[U("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),U("border",` position: absolute; top: 0; right: 0; @@ -2870,12 +2870,12 @@ ${t} opacity: 0; transition: opacity .3s var(--n-bezier); max-width: 100%; - `),J("show-content",[z("layout-sider-scroll-container",{opacity:1})]),J("absolute-positioned",` + `),Z("show-content",[z("layout-sider-scroll-container",{opacity:1})]),Z("absolute-positioned",` position: absolute; left: 0; top: 0; bottom: 0; - `)]),UX=xe({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},v(Wt,{clsPrefix:e},{default:()=>v(um,null)}))}}),VX=xe({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},v("div",{class:`${e}-layout-toggle-bar__top`}),v("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),WX={position:z2,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},qX=xe({name:"LayoutSider",props:Object.assign(Object.assign({},Le.props),WX),setup(e){const t=Ve(F2),n=U(null),o=U(null),r=U(e.defaultCollapsed),i=rn(Ue(e,"collapsed"),r),a=I(()=>qt(i.value?e.collapsedWidth:e.width)),s=I(()=>e.collapseMode!=="transform"?{}:{minWidth:qt(e.width)}),l=I(()=>t?t.siderPlacement:"left");function c(S,y){if(e.nativeScrollbar){const{value:x}=n;x&&(y===void 0?x.scrollTo(S):x.scrollTo(S,y))}else{const{value:x}=o;x&&x.scrollTo(S,y)}}function u(){const{"onUpdate:collapsed":S,onUpdateCollapsed:y,onExpand:x,onCollapse:P}=e,{value:k}=i;y&&Re(y,!k),S&&Re(S,!k),r.value=!k,k?x&&Re(x):P&&Re(P)}let d=0,f=0;const h=S=>{var y;const x=S.target;d=x.scrollLeft,f=x.scrollTop,(y=e.onScroll)===null||y===void 0||y.call(e,S)};Qp(()=>{if(e.nativeScrollbar){const S=n.value;S&&(S.scrollTop=f,S.scrollLeft=d)}}),at(M2,{collapsedRef:i,collapseModeRef:Ue(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:g}=st(e),m=Le("Layout","-layout-sider",jX,k2,e,p);function b(S){var y,x;S.propertyName==="max-width"&&(i.value?(y=e.onAfterLeave)===null||y===void 0||y.call(e):(x=e.onAfterEnter)===null||x===void 0||x.call(e))}const w={scrollTo:c},C=I(()=>{const{common:{cubicBezierEaseInOut:S},self:y}=m.value,{siderToggleButtonColor:x,siderToggleButtonBorder:P,siderToggleBarColor:k,siderToggleBarColorHover:T}=y,R={"--n-bezier":S,"--n-toggle-button-color":x,"--n-toggle-button-border":P,"--n-toggle-bar-color":k,"--n-toggle-bar-color-hover":T};return e.inverted?(R["--n-color"]=y.siderColorInverted,R["--n-text-color"]=y.textColorInverted,R["--n-border-color"]=y.siderBorderColorInverted,R["--n-toggle-button-icon-color"]=y.siderToggleButtonIconColorInverted,R.__invertScrollbar=y.__invertScrollbar):(R["--n-color"]=y.siderColor,R["--n-text-color"]=y.textColor,R["--n-border-color"]=y.siderBorderColor,R["--n-toggle-button-icon-color"]=y.siderToggleButtonIconColor),R}),_=g?Pt("layout-sider",I(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:o,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:b,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender},w)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:qt(this.width)}]},this.nativeScrollbar?v("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):v(Oo,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),o?o==="bar"?v(VX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):v(UX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?v("div",{class:`${t}-layout-sider__border`}):null)}}),KX={extraFontSize:"12px",width:"440px"},GX={name:"Transfer",common:He,peers:{Checkbox:Ka,Scrollbar:Un,Input:go,Empty:Ki,Button:Vn},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:o,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:m}=e;return Object.assign(Object.assign({},KX),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:u,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:m,titleFontWeight:o,iconColor:n,iconColorDisabled:t})}},XX=GX,YX=W([z("list",` + `)]),JX=ye({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},v(Wt,{clsPrefix:e},{default:()=>v(vm,null)}))}}),ZX=ye({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},v("div",{class:`${e}-layout-toggle-bar__top`}),v("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),eY={position:j2,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},tY=ye({name:"LayoutSider",props:Object.assign(Object.assign({},Le.props),eY),setup(e){const t=Ve(U2),n=j(null),o=j(null),r=j(e.defaultCollapsed),i=rn(Ue(e,"collapsed"),r),a=M(()=>qt(i.value?e.collapsedWidth:e.width)),s=M(()=>e.collapseMode!=="transform"?{}:{minWidth:qt(e.width)}),l=M(()=>t?t.siderPlacement:"left");function c(S,y){if(e.nativeScrollbar){const{value:x}=n;x&&(y===void 0?x.scrollTo(S):x.scrollTo(S,y))}else{const{value:x}=o;x&&x.scrollTo(S,y)}}function u(){const{"onUpdate:collapsed":S,onUpdateCollapsed:y,onExpand:x,onCollapse:k}=e,{value:P}=i;y&&Re(y,!P),S&&Re(S,!P),r.value=!P,P?x&&Re(x):k&&Re(k)}let d=0,f=0;const h=S=>{var y;const x=S.target;d=x.scrollLeft,f=x.scrollTop,(y=e.onScroll)===null||y===void 0||y.call(e,S)};rm(()=>{if(e.nativeScrollbar){const S=n.value;S&&(S.scrollTop=f,S.scrollLeft=d)}}),at(H2,{collapsedRef:i,collapseModeRef:Ue(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:g}=st(e),m=Le("Layout","-layout-sider",QX,I2,e,p);function b(S){var y,x;S.propertyName==="max-width"&&(i.value?(y=e.onAfterLeave)===null||y===void 0||y.call(e):(x=e.onAfterEnter)===null||x===void 0||x.call(e))}const w={scrollTo:c},C=M(()=>{const{common:{cubicBezierEaseInOut:S},self:y}=m.value,{siderToggleButtonColor:x,siderToggleButtonBorder:k,siderToggleBarColor:P,siderToggleBarColorHover:T}=y,$={"--n-bezier":S,"--n-toggle-button-color":x,"--n-toggle-button-border":k,"--n-toggle-bar-color":P,"--n-toggle-bar-color-hover":T};return e.inverted?($["--n-color"]=y.siderColorInverted,$["--n-text-color"]=y.textColorInverted,$["--n-border-color"]=y.siderBorderColorInverted,$["--n-toggle-button-icon-color"]=y.siderToggleButtonIconColorInverted,$.__invertScrollbar=y.__invertScrollbar):($["--n-color"]=y.siderColor,$["--n-text-color"]=y.textColor,$["--n-border-color"]=y.siderBorderColor,$["--n-toggle-button-icon-color"]=y.siderToggleButtonIconColor),$}),_=g?Pt("layout-sider",M(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:o,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:s,siderPlacement:l,handleNativeElScroll:h,handleTransitionend:b,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender},w)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:qt(this.width)}]},this.nativeScrollbar?v("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):v(Oo,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),o?o==="bar"?v(ZX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):v(JX,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?v("div",{class:`${t}-layout-sider__border`}):null)}}),nY={extraFontSize:"12px",width:"440px"},oY={name:"Transfer",common:je,peers:{Checkbox:Ya,Scrollbar:Un,Input:go,Empty:Xi,Button:Vn},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:o,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:h,textColorDisabled:p,textColor2:g,hoverColor:m}=e;return Object.assign(Object.assign({},nY),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:r,borderRadius:u,borderColor:"#0000",listColor:d,headerColor:f,titleTextColor:h,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:m,titleFontWeight:o,iconColor:n,iconColorDisabled:t})}},rY=oY,iY=q([z("list",` --n-merged-border-color: var(--n-border-color); --n-merged-color: var(--n-color); --n-merged-color-hover: var(--n-color-hover); @@ -2889,28 +2889,28 @@ ${t} list-style-type: none; color: var(--n-text-color); background-color: var(--n-merged-color); - `,[J("show-divider",[z("list-item",[W("&:not(:last-child)",[j("divider",` + `,[Z("show-divider",[z("list-item",[q("&:not(:last-child)",[U("divider",` background-color: var(--n-merged-border-color); - `)])])]),J("clickable",[z("list-item",` + `)])])]),Z("clickable",[z("list-item",` cursor: pointer; - `)]),J("bordered",` + `)]),Z("bordered",` border: 1px solid var(--n-merged-border-color); border-radius: var(--n-border-radius); - `),J("hoverable",[z("list-item",` + `),Z("hoverable",[z("list-item",` border-radius: var(--n-border-radius); - `,[W("&:hover",` + `,[q("&:hover",` background-color: var(--n-merged-color-hover); - `,[j("divider",` + `,[U("divider",` background-color: transparent; - `)])])]),J("bordered, hoverable",[z("list-item",` + `)])])]),Z("bordered, hoverable",[z("list-item",` padding: 12px 20px; - `),j("header, footer",` + `),U("header, footer",` padding: 12px 20px; - `)]),j("header, footer",` + `)]),U("header, footer",` padding: 12px 0; box-sizing: border-box; transition: border-color .3s var(--n-bezier); - `,[W("&:not(:last-child)",` + `,[q("&:not(:last-child)",` border-bottom: 1px solid var(--n-merged-border-color); `)]),z("list-item",` position: relative; @@ -2922,15 +2922,15 @@ ${t} transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[j("prefix",` + `,[U("prefix",` margin-right: 20px; flex: 0; - `),j("suffix",` + `),U("suffix",` margin-left: 20px; flex: 0; - `),j("main",` + `),U("main",` flex: 1; - `),j("divider",` + `),U("divider",` height: 1px; position: absolute; bottom: 0; @@ -2939,58 +2939,58 @@ ${t} background-color: transparent; transition: background-color .3s var(--n-bezier); pointer-events: none; - `)])]),al(z("list",` + `)])]),cl(z("list",` --n-merged-color-hover: var(--n-color-hover-modal); --n-merged-color: var(--n-color-modal); --n-merged-border-color: var(--n-border-color-modal); - `)),wu(z("list",` + `)),Tu(z("list",` --n-merged-color-hover: var(--n-color-hover-popover); --n-merged-color: var(--n-color-popover); --n-merged-border-color: var(--n-border-color-popover); - `))]),QX=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),D2="n-list",Am=xe({name:"List",props:QX,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=st(e),r=pn("List",o,t),i=Le("List","-list",YX,YK,e,t);at(D2,{showDividerRef:Ue(e,"showDivider"),mergedClsPrefixRef:t});const a=I(()=>{const{common:{cubicBezierEaseInOut:l},self:{fontSize:c,textColor:u,color:d,colorModal:f,colorPopover:h,borderColor:p,borderColorModal:g,borderColorPopover:m,borderRadius:b,colorHover:w,colorHoverModal:C,colorHoverPopover:_}}=i.value;return{"--n-font-size":c,"--n-bezier":l,"--n-text-color":u,"--n-color":d,"--n-border-radius":b,"--n-border-color":p,"--n-border-color-modal":g,"--n-border-color-popover":m,"--n-color-modal":f,"--n-color-popover":h,"--n-color-hover":w,"--n-color-hover-modal":C,"--n-color-hover-popover":_}}),s=n?Pt("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:r,cssVars:n?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),v("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?v("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?v("div",{class:`${n}-list__footer`},t.footer()):null)}}),$m=xe({name:"ListItem",setup(){const e=Ve(D2,null);return e||hr("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return v("li",{class:`${t}-list-item`},e.prefix?v("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?v("div",{class:`${t}-list-item__main`},e):null,e.suffix?v("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&v("div",{class:`${t}-list-item__divider`}))}}),L2="n-loading-bar",B2="n-loading-bar-api",JX=z("loading-bar-container",` + `))]),aY=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),V2="n-list",Dm=ye({name:"List",props:aY,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:o}=st(e),r=pn("List",o,t),i=Le("List","-list",iY,iG,e,t);at(V2,{showDividerRef:Ue(e,"showDivider"),mergedClsPrefixRef:t});const a=M(()=>{const{common:{cubicBezierEaseInOut:l},self:{fontSize:c,textColor:u,color:d,colorModal:f,colorPopover:h,borderColor:p,borderColorModal:g,borderColorPopover:m,borderRadius:b,colorHover:w,colorHoverModal:C,colorHoverPopover:_}}=i.value;return{"--n-font-size":c,"--n-bezier":l,"--n-text-color":u,"--n-color":d,"--n-border-radius":b,"--n-border-color":p,"--n-border-color-modal":g,"--n-border-color-popover":m,"--n-color-modal":f,"--n-color-popover":h,"--n-color-hover":w,"--n-color-hover-modal":C,"--n-color-hover-popover":_}}),s=n?Pt("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:r,cssVars:n?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),v("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?v("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?v("div",{class:`${n}-list__footer`},t.footer()):null)}}),Lm=ye({name:"ListItem",setup(){const e=Ve(V2,null);return e||hr("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return v("li",{class:`${t}-list-item`},e.prefix?v("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?v("div",{class:`${t}-list-item__main`},e):null,e.suffix?v("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&v("div",{class:`${t}-list-item__divider`}))}}),W2="n-loading-bar",q2="n-loading-bar-api",sY=z("loading-bar-container",` z-index: 5999; position: fixed; top: 0; left: 0; right: 0; height: 2px; -`,[dl({enterDuration:"0.3s",leaveDuration:"0.8s"}),z("loading-bar",` +`,[pl({enterDuration:"0.3s",leaveDuration:"0.8s"}),z("loading-bar",` width: 100%; transition: max-width 4s linear, background .2s linear; height: var(--n-height); - `,[J("starting",` + `,[Z("starting",` background: var(--n-color-loading); - `),J("finishing",` + `),Z("finishing",` background: var(--n-color-loading); transition: max-width .2s linear, background .2s linear; - `),J("error",` + `),Z("error",` background: var(--n-color-error); transition: max-width .2s linear, background .2s linear; - `)])]);var Vl=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(d){a(d)}}function l(u){try{c(o.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):r(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};function Wl(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ZX=xe({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=st(),{props:t,mergedClsPrefixRef:n}=Ve(L2),o=U(null),r=U(!1),i=U(!1),a=U(!1),s=U(!1);let l=!1;const c=U(!1),u=I(()=>{const{loadingBarStyle:S}=t;return S?S[c.value?"error":"loading"]:""});function d(){return Vl(this,void 0,void 0,function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield Ht(),s.value=!1})}function f(){return Vl(this,arguments,void 0,function*(S=0,y=80,x="starting"){if(i.value=!0,yield d(),l)return;a.value=!0,yield Ht();const P=o.value;P&&(P.style.maxWidth=`${S}%`,P.style.transition="none",P.offsetWidth,P.className=Wl(x,n.value),P.style.transition="",P.style.maxWidth=`${y}%`)})}function h(){return Vl(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield Ht()),l=!0;const S=o.value;S&&(S.className=Wl("finishing",n.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1)})}function p(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const S=o.value;S&&(S.className=Wl("error",n.value),S.offsetWidth,a.value=!1)});else{c.value=!0;const S=o.value;if(!S)return;S.className=Wl("error",n.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1}}function g(){r.value=!0}function m(){r.value=!1}function b(){return Vl(this,void 0,void 0,function*(){yield d()})}const w=Le("LoadingBar","-loading-bar",JX,oG,t,n),C=I(()=>{const{self:{height:S,colorError:y,colorLoading:x}}=w.value;return{"--n-height":S,"--n-color-loading":x,"--n-color-error":y}}),_=e?Pt("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:o,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:p,finish:h,handleEnter:g,handleAfterEnter:m,handleAfterLeave:b,mergedLoadingBarStyle:u,cssVars:e?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return v(fn,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),dn(v("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},v("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Mn,this.loading||!this.loading&&this.entering]])}})}}),eY=Object.assign(Object.assign({},Le.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),tY=xe({name:"LoadingBarProvider",props:eY,setup(e){const t=Zr(),n=U(null),o={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=st(e);return at(B2,o),at(L2,{props:e,mergedClsPrefixRef:r}),Object.assign(o,{loadingBarRef:n})},render(){var e,t;return v(rt,null,v(Zc,{disabled:this.to===!1,to:this.to||"body"},v(ZX,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function nY(){const e=Ve(B2,null);return e===null&&hr("use-loading-bar","No outer founded."),e}const gl="n-menu",Im="n-submenu",Om="n-menu-item-group",ql=8;function Mm(e){const t=Ve(gl),{props:n,mergedCollapsedRef:o}=t,r=Ve(Im,null),i=Ve(Om,null),a=I(()=>n.mode==="horizontal"),s=I(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=I(()=>{var f;return Math.max((f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize,n.iconSize)}),c=I(()=>{var f;return!a.value&&e.root&&o.value&&(f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize}),u=I(()=>{if(a.value)return;const{collapsedWidth:f,indent:h,rootIndent:p}=n,{root:g,isGroup:m}=e,b=p===void 0?h:p;return g?o.value?f/2-l.value/2:b:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(m?h/2:h)+r.paddingLeftRef.value:0}),d=I(()=>{const{collapsedWidth:f,indent:h,rootIndent:p}=n,{value:g}=l,{root:m}=e;return a.value||!m||!o.value?ql:(p===void 0?h:p)+g+ql-(f+g)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:u,iconMarginRight:d,NMenu:t,NSubmenu:r}}const zm={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},N2=Object.assign(Object.assign({},zm),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),oY=xe({name:"MenuOptionGroup",props:N2,setup(e){at(Im,null);const t=Mm(e);at(Om,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:o}=Ve(gl);return function(){const{value:r}=n,i=t.paddingLeft.value,{nodeProps:a}=o,s=a==null?void 0:a(e.tmNode.rawNode);return v("div",{class:`${r}-menu-item-group`,role:"group"},v("div",Object.assign({},s,{class:[`${r}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Vt(e.title),e.extra?v(rt,null," ",Vt(e.extra)):null),v("div",null,e.tmNodes.map(l=>Fm(l,o))))}}}),H2=xe({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Ve(gl);return{menuProps:t,style:I(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:I(()=>{const{maxIconSize:n,activeIconSize:o,iconMarginRight:r}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${o}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:o,renderExtra:r,expandIcon:i}}=this,a=n?n(t.rawNode):Vt(this.icon);return v("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&v("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),v("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:o?o(t.rawNode):Vt(this.title),this.extra||r?v("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):Vt(this.extra)):null),this.showArrow?v(Wt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):v(MN,null)}):null)}}),j2=Object.assign(Object.assign({},zm),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Bh=xe({name:"Submenu",props:j2,setup(e){const t=Mm(e),{NMenu:n,NSubmenu:o}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:a}=n,s=I(()=>{const{disabled:f}=e;return o!=null&&o.mergedDisabledRef.value||r.disabled?!0:f}),l=U(!1);at(Im,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),at(Om,null);function c(){const{onClick:f}=e;f&&f()}function u(){s.value||(i.value||n.toggleExpand(e.internalKey),c())}function d(f){l.value=f}return{menuProps:r,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:n.mergedValueRef,childActive:kt(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:n.activePathRef.value.includes(e.internalKey)}),collapsed:I(()=>r.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:I(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:d,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:o}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:u,activeIconSize:d,title:f,childActive:h,icon:p,handleClick:g,menuProps:{nodeProps:m},dropdownShow:b,iconMarginRight:w,tmNode:C,mergedClsPrefix:_,isEllipsisPlaceholder:S,extra:y}=this,x=m==null?void 0:m(C.rawNode);return v("div",Object.assign({},x,{class:[`${_}-menu-item`,x==null?void 0:x.class],role:"menuitem"}),v(H2,{tmNode:C,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:w,maxIconSize:u,activeIconSize:d,title:f,extra:y,showArrow:!a,childActive:h,clsPrefix:_,icon:p,hover:b,onClick:g,isEllipsisPlaceholder:S}))},i=()=>v(Au,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:v("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Fm(l,this.menuProps)))}});return this.root?v(Em,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:o}),{default:()=>v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),U2=Object.assign(Object.assign({},zm),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),rY=xe({name:"MenuOption",props:U2,setup(e){const t=Mm(e),{NSubmenu:n,NMenu:o}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:a}=o,s=n?n.mergedDisabledRef:{value:!1},l=I(()=>s.value||e.disabled);function c(d){const{onClick:f}=e;f&&f(d)}function u(d){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(d))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:r,dropdownEnabled:kt(()=>e.root&&a.value&&r.mode!=="horizontal"&&!l.value),selected:kt(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:o,nodeProps:r}}=this,i=r==null?void 0:r(n.rawNode);return v("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),v(zu,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(n.rawNode):Vt(this.title),trigger:()=>v(H2,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),iY=xe({name:"MenuDivider",setup(){const e=Ve(gl),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:v("div",{class:`${t.value}-menu-divider`})}}),aY=Jr(N2),sY=Jr(U2),lY=Jr(j2);function Nh(e){return e.type==="divider"||e.type==="render"}function cY(e){return e.type==="divider"}function Fm(e,t){const{rawNode:n}=e,{show:o}=n;if(o===!1)return null;if(Nh(n))return cY(n)?v(iY,Object.assign({key:e.key},n.props)):null;const{labelField:r}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},n),{title:n.title||n[r],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?v(oY,eo(l,aY,{tmNode:e,tmNodes:e.children,key:i})):v(Bh,eo(l,lY,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):v(rY,eo(l,sY,{key:i,tmNode:e}))}const h1=[W("&::before","background-color: var(--n-item-color-hover);"),j("arrow",` + `)])]);var Gl=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(d){a(d)}}function l(u){try{c(o.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):r(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};function Xl(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const lY=ye({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=st(),{props:t,mergedClsPrefixRef:n}=Ve(W2),o=j(null),r=j(!1),i=j(!1),a=j(!1),s=j(!1);let l=!1;const c=j(!1),u=M(()=>{const{loadingBarStyle:S}=t;return S?S[c.value?"error":"loading"]:""});function d(){return Gl(this,void 0,void 0,function*(){r.value=!1,a.value=!1,l=!1,c.value=!1,s.value=!0,yield Ht(),s.value=!1})}function f(){return Gl(this,arguments,void 0,function*(S=0,y=80,x="starting"){if(i.value=!0,yield d(),l)return;a.value=!0,yield Ht();const k=o.value;k&&(k.style.maxWidth=`${S}%`,k.style.transition="none",k.offsetWidth,k.className=Xl(x,n.value),k.style.transition="",k.style.maxWidth=`${y}%`)})}function h(){return Gl(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield Ht()),l=!0;const S=o.value;S&&(S.className=Xl("finishing",n.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1)})}function p(){if(!(l||c.value))if(!a.value)f(100,100,"error").then(()=>{c.value=!0;const S=o.value;S&&(S.className=Xl("error",n.value),S.offsetWidth,a.value=!1)});else{c.value=!0;const S=o.value;if(!S)return;S.className=Xl("error",n.value),S.style.maxWidth="100%",S.offsetWidth,a.value=!1}}function g(){r.value=!0}function m(){r.value=!1}function b(){return Gl(this,void 0,void 0,function*(){yield d()})}const w=Le("LoadingBar","-loading-bar",sY,fG,t,n),C=M(()=>{const{self:{height:S,colorError:y,colorLoading:x}}=w.value;return{"--n-height":S,"--n-color-loading":x,"--n-color-error":y}}),_=e?Pt("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:o,started:i,loading:a,entering:r,transitionDisabled:s,start:f,error:p,finish:h,handleEnter:g,handleAfterEnter:m,handleAfterLeave:b,mergedLoadingBarStyle:u,cssVars:e?void 0:C,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return v(fn,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),dn(v("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},v("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Mn,this.loading||!this.loading&&this.entering]])}})}}),cY=Object.assign(Object.assign({},Le.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),uY=ye({name:"LoadingBarProvider",props:cY,setup(e){const t=ti(),n=j(null),o={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Ht(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:r}=st(e);return at(q2,o),at(W2,{props:e,mergedClsPrefixRef:r}),Object.assign(o,{loadingBarRef:n})},render(){var e,t;return v(rt,null,v(ru,{disabled:this.to===!1,to:this.to||"body"},v(lY,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function dY(){const e=Ve(q2,null);return e===null&&hr("use-loading-bar","No outer founded."),e}const yl="n-menu",Bm="n-submenu",Nm="n-menu-item-group",Yl=8;function Hm(e){const t=Ve(yl),{props:n,mergedCollapsedRef:o}=t,r=Ve(Bm,null),i=Ve(Nm,null),a=M(()=>n.mode==="horizontal"),s=M(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=M(()=>{var f;return Math.max((f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize,n.iconSize)}),c=M(()=>{var f;return!a.value&&e.root&&o.value&&(f=n.collapsedIconSize)!==null&&f!==void 0?f:n.iconSize}),u=M(()=>{if(a.value)return;const{collapsedWidth:f,indent:h,rootIndent:p}=n,{root:g,isGroup:m}=e,b=p===void 0?h:p;return g?o.value?f/2-l.value/2:b:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(m?h/2:h)+r.paddingLeftRef.value:0}),d=M(()=>{const{collapsedWidth:f,indent:h,rootIndent:p}=n,{value:g}=l,{root:m}=e;return a.value||!m||!o.value?Yl:(p===void 0?h:p)+g+Yl-(f+g)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:u,iconMarginRight:d,NMenu:t,NSubmenu:r}}const jm={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},K2=Object.assign(Object.assign({},jm),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),fY=ye({name:"MenuOptionGroup",props:K2,setup(e){at(Bm,null);const t=Hm(e);at(Nm,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:o}=Ve(yl);return function(){const{value:r}=n,i=t.paddingLeft.value,{nodeProps:a}=o,s=a==null?void 0:a(e.tmNode.rawNode);return v("div",{class:`${r}-menu-item-group`,role:"group"},v("div",Object.assign({},s,{class:[`${r}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Vt(e.title),e.extra?v(rt,null," ",Vt(e.extra)):null),v("div",null,e.tmNodes.map(l=>Um(l,o))))}}}),G2=ye({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Ve(yl);return{menuProps:t,style:M(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:M(()=>{const{maxIconSize:n,activeIconSize:o,iconMarginRight:r}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${o}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:o,renderExtra:r,expandIcon:i}}=this,a=n?n(t.rawNode):Vt(this.icon);return v("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&v("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),v("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:o?o(t.rawNode):Vt(this.title),this.extra||r?v("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):Vt(this.extra)):null),this.showArrow?v(Wt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):v(UN,null)}):null)}}),X2=Object.assign(Object.assign({},jm),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),Wh=ye({name:"Submenu",props:X2,setup(e){const t=Hm(e),{NMenu:n,NSubmenu:o}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:a}=n,s=M(()=>{const{disabled:f}=e;return o!=null&&o.mergedDisabledRef.value||r.disabled?!0:f}),l=j(!1);at(Bm,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),at(Nm,null);function c(){const{onClick:f}=e;f&&f()}function u(){s.value||(i.value||n.toggleExpand(e.internalKey),c())}function d(f){l.value=f}return{menuProps:r,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:n.mergedValueRef,childActive:kt(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:n.activePathRef.value.includes(e.internalKey)}),collapsed:M(()=>r.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:M(()=>!s.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:d,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:o}}=this,r=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:u,activeIconSize:d,title:f,childActive:h,icon:p,handleClick:g,menuProps:{nodeProps:m},dropdownShow:b,iconMarginRight:w,tmNode:C,mergedClsPrefix:_,isEllipsisPlaceholder:S,extra:y}=this,x=m==null?void 0:m(C.rawNode);return v("div",Object.assign({},x,{class:[`${_}-menu-item`,x==null?void 0:x.class],role:"menuitem"}),v(G2,{tmNode:C,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:w,maxIconSize:u,activeIconSize:d,title:f,extra:y,showArrow:!a,childActive:h,clsPrefix:_,icon:p,hover:b,onClick:g,isEllipsisPlaceholder:S}))},i=()=>v(zu,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:v("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Um(l,this.menuProps)))}});return this.root?v(zm,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:o}),{default:()=>v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),Y2=Object.assign(Object.assign({},jm),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),hY=ye({name:"MenuOption",props:Y2,setup(e){const t=Hm(e),{NSubmenu:n,NMenu:o}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:a}=o,s=n?n.mergedDisabledRef:{value:!1},l=M(()=>s.value||e.disabled);function c(d){const{onClick:f}=e;f&&f(d)}function u(d){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(d))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:r,dropdownEnabled:kt(()=>e.root&&a.value&&r.mode!=="horizontal"&&!l.value),selected:kt(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:o,nodeProps:r}}=this,i=r==null?void 0:r(n.rawNode);return v("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),v(Nu,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(n.rawNode):Vt(this.title),trigger:()=>v(G2,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),pY=ye({name:"MenuDivider",setup(){const e=Ve(yl),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:v("div",{class:`${t.value}-menu-divider`})}}),mY=ei(K2),gY=ei(Y2),vY=ei(X2);function qh(e){return e.type==="divider"||e.type==="render"}function bY(e){return e.type==="divider"}function Um(e,t){const{rawNode:n}=e,{show:o}=n;if(o===!1)return null;if(qh(n))return bY(n)?v(pY,Object.assign({key:e.key},n.props)):null;const{labelField:r}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},n),{title:n.title||n[r],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?v(fY,eo(l,mY,{tmNode:e,tmNodes:e.children,key:i})):v(Wh,eo(l,vY,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):v(hY,eo(l,gY,{key:i,tmNode:e}))}const x1=[q("&::before","background-color: var(--n-item-color-hover);"),U("arrow",` color: var(--n-arrow-color-hover); - `),j("icon",` + `),U("icon",` color: var(--n-item-icon-color-hover); `),z("menu-item-content-header",` color: var(--n-item-text-color-hover); - `,[W("a",` + `,[q("a",` color: var(--n-item-text-color-hover); - `),j("extra",` + `),U("extra",` color: var(--n-item-text-color-hover); - `)])],p1=[j("icon",` + `)])],C1=[U("icon",` color: var(--n-item-icon-color-hover-horizontal); `),z("menu-item-content-header",` color: var(--n-item-text-color-hover-horizontal); - `,[W("a",` + `,[q("a",` color: var(--n-item-text-color-hover-horizontal); - `),j("extra",` + `),U("extra",` color: var(--n-item-text-color-hover-horizontal); - `)])],uY=W([z("menu",` + `)])],yY=q([z("menu",` background-color: var(--n-color); color: var(--n-item-text-color); overflow: hidden; @@ -2998,7 +2998,7 @@ ${t} box-sizing: border-box; font-size: var(--n-font-size); padding-bottom: 6px; - `,[J("horizontal",` + `,[Z("horizontal",` max-width: 100%; width: 100%; display: flex; @@ -3007,28 +3007,28 @@ ${t} `,[z("submenu","margin: 0;"),z("menu-item","margin: 0;"),z("menu-item-content",` padding: 0 20px; border-bottom: 2px solid #0000; - `,[W("&::before","display: none;"),J("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),z("menu-item-content",[J("selected",[j("icon","color: var(--n-item-icon-color-active-horizontal);"),z("menu-item-content-header",` + `,[q("&::before","display: none;"),Z("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),z("menu-item-content",[Z("selected",[U("icon","color: var(--n-item-icon-color-active-horizontal);"),z("menu-item-content-header",` color: var(--n-item-text-color-active-horizontal); - `,[W("a","color: var(--n-item-text-color-active-horizontal);"),j("extra","color: var(--n-item-text-color-active-horizontal);")])]),J("child-active",` + `,[q("a","color: var(--n-item-text-color-active-horizontal);"),U("extra","color: var(--n-item-text-color-active-horizontal);")])]),Z("child-active",` border-bottom: 2px solid var(--n-border-color-horizontal); `,[z("menu-item-content-header",` color: var(--n-item-text-color-child-active-horizontal); - `,[W("a",` + `,[q("a",` color: var(--n-item-text-color-child-active-horizontal); - `),j("extra",` + `),U("extra",` color: var(--n-item-text-color-child-active-horizontal); - `)]),j("icon",` + `)]),U("icon",` color: var(--n-item-icon-color-child-active-horizontal); - `)]),Et("disabled",[Et("selected, child-active",[W("&:focus-within",p1)]),J("selected",[ui(null,[j("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),z("menu-item-content-header",` + `)]),At("disabled",[At("selected, child-active",[q("&:focus-within",C1)]),Z("selected",[fi(null,[U("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),z("menu-item-content-header",` color: var(--n-item-text-color-active-hover-horizontal); - `,[W("a","color: var(--n-item-text-color-active-hover-horizontal);"),j("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),J("child-active",[ui(null,[j("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),z("menu-item-content-header",` + `,[q("a","color: var(--n-item-text-color-active-hover-horizontal);"),U("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),Z("child-active",[fi(null,[U("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),z("menu-item-content-header",` color: var(--n-item-text-color-child-active-hover-horizontal); - `,[W("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),j("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),ui("border-bottom: 2px solid var(--n-border-color-horizontal);",p1)]),z("menu-item-content-header",[W("a","color: var(--n-item-text-color-horizontal);")])])]),Et("responsive",[z("menu-item-content-header",` + `,[q("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),U("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),fi("border-bottom: 2px solid var(--n-border-color-horizontal);",C1)]),z("menu-item-content-header",[q("a","color: var(--n-item-text-color-horizontal);")])])]),At("responsive",[z("menu-item-content-header",` overflow: hidden; text-overflow: ellipsis; - `)]),J("collapsed",[z("menu-item-content",[J("selected",[W("&::before",` + `)]),Z("collapsed",[z("menu-item-content",[Z("selected",[q("&::before",` background-color: var(--n-item-color-active-collapsed) !important; - `)]),z("menu-item-content-header","opacity: 0;"),j("arrow","opacity: 0;"),j("icon","color: var(--n-item-icon-color-collapsed);")])]),z("menu-item",` + `)]),z("menu-item-content-header","opacity: 0;"),U("arrow","opacity: 0;"),U("icon","color: var(--n-item-icon-color-collapsed);")])]),z("menu-item",` height: var(--n-item-height); margin-top: 6px; position: relative; @@ -3047,7 +3047,7 @@ ${t} background-color .3s var(--n-bezier), padding-left .3s var(--n-bezier), border-color .3s var(--n-bezier); - `,[W("> *","z-index: 1;"),W("&::before",` + `,[q("> *","z-index: 1;"),q("&::before",` z-index: auto; content: ""; background-color: #0000; @@ -3059,26 +3059,26 @@ ${t} pointer-events: none; border-radius: var(--n-border-radius); transition: background-color .3s var(--n-bezier); - `),J("disabled",` + `),Z("disabled",` opacity: .45; cursor: not-allowed; - `),J("collapsed",[j("arrow","transform: rotate(0);")]),J("selected",[W("&::before","background-color: var(--n-item-color-active);"),j("arrow","color: var(--n-arrow-color-active);"),j("icon","color: var(--n-item-icon-color-active);"),z("menu-item-content-header",` + `),Z("collapsed",[U("arrow","transform: rotate(0);")]),Z("selected",[q("&::before","background-color: var(--n-item-color-active);"),U("arrow","color: var(--n-arrow-color-active);"),U("icon","color: var(--n-item-icon-color-active);"),z("menu-item-content-header",` color: var(--n-item-text-color-active); - `,[W("a","color: var(--n-item-text-color-active);"),j("extra","color: var(--n-item-text-color-active);")])]),J("child-active",[z("menu-item-content-header",` + `,[q("a","color: var(--n-item-text-color-active);"),U("extra","color: var(--n-item-text-color-active);")])]),Z("child-active",[z("menu-item-content-header",` color: var(--n-item-text-color-child-active); - `,[W("a",` + `,[q("a",` color: var(--n-item-text-color-child-active); - `),j("extra",` + `),U("extra",` color: var(--n-item-text-color-child-active); - `)]),j("arrow",` + `)]),U("arrow",` color: var(--n-arrow-color-child-active); - `),j("icon",` + `),U("icon",` color: var(--n-item-icon-color-child-active); - `)]),Et("disabled",[Et("selected, child-active",[W("&:focus-within",h1)]),J("selected",[ui(null,[j("arrow","color: var(--n-arrow-color-active-hover);"),j("icon","color: var(--n-item-icon-color-active-hover);"),z("menu-item-content-header",` + `)]),At("disabled",[At("selected, child-active",[q("&:focus-within",x1)]),Z("selected",[fi(null,[U("arrow","color: var(--n-arrow-color-active-hover);"),U("icon","color: var(--n-item-icon-color-active-hover);"),z("menu-item-content-header",` color: var(--n-item-text-color-active-hover); - `,[W("a","color: var(--n-item-text-color-active-hover);"),j("extra","color: var(--n-item-text-color-active-hover);")])])]),J("child-active",[ui(null,[j("arrow","color: var(--n-arrow-color-child-active-hover);"),j("icon","color: var(--n-item-icon-color-child-active-hover);"),z("menu-item-content-header",` + `,[q("a","color: var(--n-item-text-color-active-hover);"),U("extra","color: var(--n-item-text-color-active-hover);")])])]),Z("child-active",[fi(null,[U("arrow","color: var(--n-arrow-color-child-active-hover);"),U("icon","color: var(--n-item-icon-color-child-active-hover);"),z("menu-item-content-header",` color: var(--n-item-text-color-child-active-hover); - `,[W("a","color: var(--n-item-text-color-child-active-hover);"),j("extra","color: var(--n-item-text-color-child-active-hover);")])])]),J("selected",[ui(null,[W("&::before","background-color: var(--n-item-color-active-hover);")])]),ui(null,h1)]),j("icon",` + `,[q("a","color: var(--n-item-text-color-child-active-hover);"),U("extra","color: var(--n-item-text-color-child-active-hover);")])])]),Z("selected",[fi(null,[q("&::before","background-color: var(--n-item-color-active-hover);")])]),fi(null,x1)]),U("icon",` grid-area: icon; color: var(--n-item-icon-color); transition: @@ -3089,7 +3089,7 @@ ${t} display: inline-flex; align-items: center; justify-content: center; - `),j("arrow",` + `),U("arrow",` grid-area: arrow; font-size: 16px; color: var(--n-arrow-color); @@ -3107,19 +3107,19 @@ ${t} opacity: 1; white-space: nowrap; color: var(--n-item-text-color); - `,[W("a",` + `,[q("a",` outline: none; text-decoration: none; transition: color .3s var(--n-bezier); color: var(--n-item-text-color); - `,[W("&::before",` + `,[q("&::before",` content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; - `)]),j("extra",` + `)]),U("extra",` font-size: .93em; color: var(--n-group-text-color); transition: color .3s var(--n-bezier); @@ -3132,7 +3132,7 @@ ${t} `),z("submenu-children",` overflow: hidden; padding: 0; - `,[pm({duration:".2s"})])]),z("menu-item-group",[z("menu-item-group-title",` + `,[Cm({duration:".2s"})])]),z("menu-item-group",[z("menu-item-group-title",` margin-top: 6px; color: var(--n-group-text-color); cursor: default; @@ -3143,7 +3143,7 @@ ${t} transition: padding-left .3s var(--n-bezier), color .3s var(--n-bezier); - `)])]),z("menu-tooltip",[W("a",` + `)])]),z("menu-tooltip",[q("a",` color: inherit; text-decoration: none; `)]),z("menu-divider",` @@ -3151,12 +3151,12 @@ ${t} background-color: var(--n-divider-color); height: 1px; margin: 6px 18px; - `)]);function ui(e,t){return[J("hover",e,t),W("&:hover",e,t)]}const dY=Object.assign(Object.assign({},Le.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),fY=xe({name:"Menu",props:dY,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Menu","-menu",uY,uG,e,t),r=Ve(M2,null),i=I(()=>{var Z;const{collapsed:N}=e;if(N!==void 0)return N;if(r){const{collapseModeRef:O,collapsedRef:ee}=r;if(O.value==="width")return(Z=ee.value)!==null&&Z!==void 0?Z:!1}return!1}),a=I(()=>{const{keyField:Z,childrenField:N,disabledField:O}=e;return Pi(e.items||e.options,{getIgnored(ee){return Nh(ee)},getChildren(ee){return ee[N]},getDisabled(ee){return ee[O]},getKey(ee){var G;return(G=ee[Z])!==null&&G!==void 0?G:ee.name}})}),s=I(()=>new Set(a.value.treeNodes.map(Z=>Z.key))),{watchProps:l}=e,c=U(null);l!=null&&l.includes("defaultValue")?Yt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=Ue(e,"value"),d=rn(u,c),f=U([]),h=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Yt(h):h();const p=_u(e,["expandedNames","expandedKeys"]),g=rn(p,f),m=I(()=>a.value.treeNodes),b=I(()=>a.value.getPath(d.value).keyPath);at(gl,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:d,mergedExpandedKeysRef:g,activePathRef:b,mergedClsPrefixRef:t,isHorizontalRef:I(()=>e.mode==="horizontal"),invertedRef:Ue(e,"inverted"),doSelect:w,toggleExpand:_});function w(Z,N){const{"onUpdate:value":O,onUpdateValue:ee,onSelect:G}=e;ee&&Re(ee,Z,N),O&&Re(O,Z,N),G&&Re(G,Z,N),c.value=Z}function C(Z){const{"onUpdate:expandedKeys":N,onUpdateExpandedKeys:O,onExpandedNamesChange:ee,onOpenNamesChange:G}=e;N&&Re(N,Z),O&&Re(O,Z),ee&&Re(ee,Z),G&&Re(G,Z),f.value=Z}function _(Z){const N=Array.from(g.value),O=N.findIndex(ee=>ee===Z);if(~O)N.splice(O,1);else{if(e.accordion&&s.value.has(Z)){const ee=N.findIndex(G=>s.value.has(G));ee>-1&&N.splice(ee,1)}N.push(Z)}C(N)}const S=Z=>{const N=a.value.getPath(Z??d.value,{includeSelf:!1}).keyPath;if(!N.length)return;const O=Array.from(g.value),ee=new Set([...O,...N]);e.accordion&&s.value.forEach(G=>{ee.has(G)&&!N.includes(G)&&ee.delete(G)}),C(Array.from(ee))},y=I(()=>{const{inverted:Z}=e,{common:{cubicBezierEaseInOut:N},self:O}=o.value,{borderRadius:ee,borderColorHorizontal:G,fontSize:ne,itemHeight:X,dividerColor:ce}=O,L={"--n-divider-color":ce,"--n-bezier":N,"--n-font-size":ne,"--n-border-color-horizontal":G,"--n-border-radius":ee,"--n-item-height":X};return Z?(L["--n-group-text-color"]=O.groupTextColorInverted,L["--n-color"]=O.colorInverted,L["--n-item-text-color"]=O.itemTextColorInverted,L["--n-item-text-color-hover"]=O.itemTextColorHoverInverted,L["--n-item-text-color-active"]=O.itemTextColorActiveInverted,L["--n-item-text-color-child-active"]=O.itemTextColorChildActiveInverted,L["--n-item-text-color-child-active-hover"]=O.itemTextColorChildActiveInverted,L["--n-item-text-color-active-hover"]=O.itemTextColorActiveHoverInverted,L["--n-item-icon-color"]=O.itemIconColorInverted,L["--n-item-icon-color-hover"]=O.itemIconColorHoverInverted,L["--n-item-icon-color-active"]=O.itemIconColorActiveInverted,L["--n-item-icon-color-active-hover"]=O.itemIconColorActiveHoverInverted,L["--n-item-icon-color-child-active"]=O.itemIconColorChildActiveInverted,L["--n-item-icon-color-child-active-hover"]=O.itemIconColorChildActiveHoverInverted,L["--n-item-icon-color-collapsed"]=O.itemIconColorCollapsedInverted,L["--n-item-text-color-horizontal"]=O.itemTextColorHorizontalInverted,L["--n-item-text-color-hover-horizontal"]=O.itemTextColorHoverHorizontalInverted,L["--n-item-text-color-active-horizontal"]=O.itemTextColorActiveHorizontalInverted,L["--n-item-text-color-child-active-horizontal"]=O.itemTextColorChildActiveHorizontalInverted,L["--n-item-text-color-child-active-hover-horizontal"]=O.itemTextColorChildActiveHoverHorizontalInverted,L["--n-item-text-color-active-hover-horizontal"]=O.itemTextColorActiveHoverHorizontalInverted,L["--n-item-icon-color-horizontal"]=O.itemIconColorHorizontalInverted,L["--n-item-icon-color-hover-horizontal"]=O.itemIconColorHoverHorizontalInverted,L["--n-item-icon-color-active-horizontal"]=O.itemIconColorActiveHorizontalInverted,L["--n-item-icon-color-active-hover-horizontal"]=O.itemIconColorActiveHoverHorizontalInverted,L["--n-item-icon-color-child-active-horizontal"]=O.itemIconColorChildActiveHorizontalInverted,L["--n-item-icon-color-child-active-hover-horizontal"]=O.itemIconColorChildActiveHoverHorizontalInverted,L["--n-arrow-color"]=O.arrowColorInverted,L["--n-arrow-color-hover"]=O.arrowColorHoverInverted,L["--n-arrow-color-active"]=O.arrowColorActiveInverted,L["--n-arrow-color-active-hover"]=O.arrowColorActiveHoverInverted,L["--n-arrow-color-child-active"]=O.arrowColorChildActiveInverted,L["--n-arrow-color-child-active-hover"]=O.arrowColorChildActiveHoverInverted,L["--n-item-color-hover"]=O.itemColorHoverInverted,L["--n-item-color-active"]=O.itemColorActiveInverted,L["--n-item-color-active-hover"]=O.itemColorActiveHoverInverted,L["--n-item-color-active-collapsed"]=O.itemColorActiveCollapsedInverted):(L["--n-group-text-color"]=O.groupTextColor,L["--n-color"]=O.color,L["--n-item-text-color"]=O.itemTextColor,L["--n-item-text-color-hover"]=O.itemTextColorHover,L["--n-item-text-color-active"]=O.itemTextColorActive,L["--n-item-text-color-child-active"]=O.itemTextColorChildActive,L["--n-item-text-color-child-active-hover"]=O.itemTextColorChildActiveHover,L["--n-item-text-color-active-hover"]=O.itemTextColorActiveHover,L["--n-item-icon-color"]=O.itemIconColor,L["--n-item-icon-color-hover"]=O.itemIconColorHover,L["--n-item-icon-color-active"]=O.itemIconColorActive,L["--n-item-icon-color-active-hover"]=O.itemIconColorActiveHover,L["--n-item-icon-color-child-active"]=O.itemIconColorChildActive,L["--n-item-icon-color-child-active-hover"]=O.itemIconColorChildActiveHover,L["--n-item-icon-color-collapsed"]=O.itemIconColorCollapsed,L["--n-item-text-color-horizontal"]=O.itemTextColorHorizontal,L["--n-item-text-color-hover-horizontal"]=O.itemTextColorHoverHorizontal,L["--n-item-text-color-active-horizontal"]=O.itemTextColorActiveHorizontal,L["--n-item-text-color-child-active-horizontal"]=O.itemTextColorChildActiveHorizontal,L["--n-item-text-color-child-active-hover-horizontal"]=O.itemTextColorChildActiveHoverHorizontal,L["--n-item-text-color-active-hover-horizontal"]=O.itemTextColorActiveHoverHorizontal,L["--n-item-icon-color-horizontal"]=O.itemIconColorHorizontal,L["--n-item-icon-color-hover-horizontal"]=O.itemIconColorHoverHorizontal,L["--n-item-icon-color-active-horizontal"]=O.itemIconColorActiveHorizontal,L["--n-item-icon-color-active-hover-horizontal"]=O.itemIconColorActiveHoverHorizontal,L["--n-item-icon-color-child-active-horizontal"]=O.itemIconColorChildActiveHorizontal,L["--n-item-icon-color-child-active-hover-horizontal"]=O.itemIconColorChildActiveHoverHorizontal,L["--n-arrow-color"]=O.arrowColor,L["--n-arrow-color-hover"]=O.arrowColorHover,L["--n-arrow-color-active"]=O.arrowColorActive,L["--n-arrow-color-active-hover"]=O.arrowColorActiveHover,L["--n-arrow-color-child-active"]=O.arrowColorChildActive,L["--n-arrow-color-child-active-hover"]=O.arrowColorChildActiveHover,L["--n-item-color-hover"]=O.itemColorHover,L["--n-item-color-active"]=O.itemColorActive,L["--n-item-color-active-hover"]=O.itemColorActiveHover,L["--n-item-color-active-collapsed"]=O.itemColorActiveCollapsed),L}),x=n?Pt("menu",I(()=>e.inverted?"a":"b"),y,e):void 0,P=Qr(),k=U(null),T=U(null);let R=!0;const E=()=>{var Z;R?R=!1:(Z=k.value)===null||Z===void 0||Z.sync({showAllItemsBeforeCalculate:!0})};function q(){return document.getElementById(P)}const D=U(-1);function B(Z){D.value=e.options.length-Z}function M(Z){Z||(D.value=-1)}const K=I(()=>{const Z=D.value;return{children:Z===-1?[]:e.options.slice(Z)}}),V=I(()=>{const{childrenField:Z,disabledField:N,keyField:O}=e;return Pi([K.value],{getIgnored(ee){return Nh(ee)},getChildren(ee){return ee[Z]},getDisabled(ee){return ee[N]},getKey(ee){var G;return(G=ee[O])!==null&&G!==void 0?G:ee.name}})}),ae=I(()=>Pi([{}]).treeNodes[0]);function pe(){var Z;if(D.value===-1)return v(Bh,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ae.value,domId:P,isEllipsisPlaceholder:!0});const N=V.value.treeNodes[0],O=b.value,ee=!!(!((Z=N.children)===null||Z===void 0)&&Z.some(G=>O.includes(G.key)));return v(Bh,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:ee,tmNode:N,domId:P,rawNodes:N.rawNode.children||[],tmNodes:N.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:f,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:d,activePath:b,tmNodes:m,mergedTheme:o,mergedCollapsed:i,cssVars:n?void 0:y,themeClass:x==null?void 0:x.themeClass,overflowRef:k,counterRef:T,updateCounter:()=>{},onResize:E,onUpdateOverflow:M,onUpdateCount:B,renderCounter:pe,getCounter:q,onRender:x==null?void 0:x.onRender,showOption:S,deriveResponsiveState:E}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:o}=this;o==null||o();const r=()=>this.tmNodes.map(l=>Fm(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>v("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},a?v(wh,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return a?v(ur,{onResize:this.onResize},{default:s}):s()}}),V2={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},W2="n-message-api",q2="n-message-provider",hY=W([z("message-wrapper",` + `)]);function fi(e,t){return[Z("hover",e,t),q("&:hover",e,t)]}const xY=Object.assign(Object.assign({},Le.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),CY=ye({name:"Menu",props:xY,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Menu","-menu",yY,yG,e,t),r=Ve(H2,null),i=M(()=>{var ee;const{collapsed:R}=e;if(R!==void 0)return R;if(r){const{collapseModeRef:A,collapsedRef:Y}=r;if(A.value==="width")return(ee=Y.value)!==null&&ee!==void 0?ee:!1}return!1}),a=M(()=>{const{keyField:ee,childrenField:R,disabledField:A}=e;return Ai(e.items||e.options,{getIgnored(Y){return qh(Y)},getChildren(Y){return Y[R]},getDisabled(Y){return Y[A]},getKey(Y){var W;return(W=Y[ee])!==null&&W!==void 0?W:Y.name}})}),s=M(()=>new Set(a.value.treeNodes.map(ee=>ee.key))),{watchProps:l}=e,c=j(null);l!=null&&l.includes("defaultValue")?Yt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=Ue(e,"value"),d=rn(u,c),f=j([]),h=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(d.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Yt(h):h();const p=Au(e,["expandedNames","expandedKeys"]),g=rn(p,f),m=M(()=>a.value.treeNodes),b=M(()=>a.value.getPath(d.value).keyPath);at(yl,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:d,mergedExpandedKeysRef:g,activePathRef:b,mergedClsPrefixRef:t,isHorizontalRef:M(()=>e.mode==="horizontal"),invertedRef:Ue(e,"inverted"),doSelect:w,toggleExpand:_});function w(ee,R){const{"onUpdate:value":A,onUpdateValue:Y,onSelect:W}=e;Y&&Re(Y,ee,R),A&&Re(A,ee,R),W&&Re(W,ee,R),c.value=ee}function C(ee){const{"onUpdate:expandedKeys":R,onUpdateExpandedKeys:A,onExpandedNamesChange:Y,onOpenNamesChange:W}=e;R&&Re(R,ee),A&&Re(A,ee),Y&&Re(Y,ee),W&&Re(W,ee),f.value=ee}function _(ee){const R=Array.from(g.value),A=R.findIndex(Y=>Y===ee);if(~A)R.splice(A,1);else{if(e.accordion&&s.value.has(ee)){const Y=R.findIndex(W=>s.value.has(W));Y>-1&&R.splice(Y,1)}R.push(ee)}C(R)}const S=ee=>{const R=a.value.getPath(ee??d.value,{includeSelf:!1}).keyPath;if(!R.length)return;const A=Array.from(g.value),Y=new Set([...A,...R]);e.accordion&&s.value.forEach(W=>{Y.has(W)&&!R.includes(W)&&Y.delete(W)}),C(Array.from(Y))},y=M(()=>{const{inverted:ee}=e,{common:{cubicBezierEaseInOut:R},self:A}=o.value,{borderRadius:Y,borderColorHorizontal:W,fontSize:oe,itemHeight:K,dividerColor:le}=A,N={"--n-divider-color":le,"--n-bezier":R,"--n-font-size":oe,"--n-border-color-horizontal":W,"--n-border-radius":Y,"--n-item-height":K};return ee?(N["--n-group-text-color"]=A.groupTextColorInverted,N["--n-color"]=A.colorInverted,N["--n-item-text-color"]=A.itemTextColorInverted,N["--n-item-text-color-hover"]=A.itemTextColorHoverInverted,N["--n-item-text-color-active"]=A.itemTextColorActiveInverted,N["--n-item-text-color-child-active"]=A.itemTextColorChildActiveInverted,N["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveInverted,N["--n-item-text-color-active-hover"]=A.itemTextColorActiveHoverInverted,N["--n-item-icon-color"]=A.itemIconColorInverted,N["--n-item-icon-color-hover"]=A.itemIconColorHoverInverted,N["--n-item-icon-color-active"]=A.itemIconColorActiveInverted,N["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHoverInverted,N["--n-item-icon-color-child-active"]=A.itemIconColorChildActiveInverted,N["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHoverInverted,N["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsedInverted,N["--n-item-text-color-horizontal"]=A.itemTextColorHorizontalInverted,N["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontalInverted,N["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontalInverted,N["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontalInverted,N["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontalInverted,N["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontalInverted,N["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontalInverted,N["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontalInverted,N["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontalInverted,N["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontalInverted,N["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontalInverted,N["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontalInverted,N["--n-arrow-color"]=A.arrowColorInverted,N["--n-arrow-color-hover"]=A.arrowColorHoverInverted,N["--n-arrow-color-active"]=A.arrowColorActiveInverted,N["--n-arrow-color-active-hover"]=A.arrowColorActiveHoverInverted,N["--n-arrow-color-child-active"]=A.arrowColorChildActiveInverted,N["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHoverInverted,N["--n-item-color-hover"]=A.itemColorHoverInverted,N["--n-item-color-active"]=A.itemColorActiveInverted,N["--n-item-color-active-hover"]=A.itemColorActiveHoverInverted,N["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsedInverted):(N["--n-group-text-color"]=A.groupTextColor,N["--n-color"]=A.color,N["--n-item-text-color"]=A.itemTextColor,N["--n-item-text-color-hover"]=A.itemTextColorHover,N["--n-item-text-color-active"]=A.itemTextColorActive,N["--n-item-text-color-child-active"]=A.itemTextColorChildActive,N["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveHover,N["--n-item-text-color-active-hover"]=A.itemTextColorActiveHover,N["--n-item-icon-color"]=A.itemIconColor,N["--n-item-icon-color-hover"]=A.itemIconColorHover,N["--n-item-icon-color-active"]=A.itemIconColorActive,N["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHover,N["--n-item-icon-color-child-active"]=A.itemIconColorChildActive,N["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHover,N["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsed,N["--n-item-text-color-horizontal"]=A.itemTextColorHorizontal,N["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontal,N["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontal,N["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontal,N["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontal,N["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontal,N["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontal,N["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontal,N["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontal,N["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontal,N["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontal,N["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontal,N["--n-arrow-color"]=A.arrowColor,N["--n-arrow-color-hover"]=A.arrowColorHover,N["--n-arrow-color-active"]=A.arrowColorActive,N["--n-arrow-color-active-hover"]=A.arrowColorActiveHover,N["--n-arrow-color-child-active"]=A.arrowColorChildActive,N["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHover,N["--n-item-color-hover"]=A.itemColorHover,N["--n-item-color-active"]=A.itemColorActive,N["--n-item-color-active-hover"]=A.itemColorActiveHover,N["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsed),N}),x=n?Pt("menu",M(()=>e.inverted?"a":"b"),y,e):void 0,k=Zr(),P=j(null),T=j(null);let $=!0;const E=()=>{var ee;$?$=!1:(ee=P.value)===null||ee===void 0||ee.sync({showAllItemsBeforeCalculate:!0})};function G(){return document.getElementById(k)}const B=j(-1);function D(ee){B.value=e.options.length-ee}function L(ee){ee||(B.value=-1)}const X=M(()=>{const ee=B.value;return{children:ee===-1?[]:e.options.slice(ee)}}),V=M(()=>{const{childrenField:ee,disabledField:R,keyField:A}=e;return Ai([X.value],{getIgnored(Y){return qh(Y)},getChildren(Y){return Y[ee]},getDisabled(Y){return Y[R]},getKey(Y){var W;return(W=Y[A])!==null&&W!==void 0?W:Y.name}})}),ae=M(()=>Ai([{}]).treeNodes[0]);function ue(){var ee;if(B.value===-1)return v(Wh,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ae.value,domId:k,isEllipsisPlaceholder:!0});const R=V.value.treeNodes[0],A=b.value,Y=!!(!((ee=R.children)===null||ee===void 0)&&ee.some(W=>A.includes(W.key)));return v(Wh,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:Y,tmNode:R,domId:k,rawNodes:R.rawNode.children||[],tmNodes:R.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:f,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:d,activePath:b,tmNodes:m,mergedTheme:o,mergedCollapsed:i,cssVars:n?void 0:y,themeClass:x==null?void 0:x.themeClass,overflowRef:P,counterRef:T,updateCounter:()=>{},onResize:E,onUpdateOverflow:L,onUpdateCount:D,renderCounter:ue,getCounter:G,onRender:x==null?void 0:x.onRender,showOption:S,deriveResponsiveState:E}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:o}=this;o==null||o();const r=()=>this.tmNodes.map(l=>Um(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>v("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},a?v(Ah,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return a?v(ur,{onResize:this.onResize},{default:s}):s()}}),Q2={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},J2="n-message-api",Z2="n-message-provider",wY=q([z("message-wrapper",` margin: var(--n-margin); z-index: 0; transform-origin: top center; display: flex; - `,[pm({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),z("message",` + `,[Cm({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),z("message",` box-sizing: border-box; display: flex; align-items: center; @@ -3175,35 +3175,35 @@ ${t} color: var(--n-text-color); background-color: var(--n-color); box-shadow: var(--n-box-shadow); - `,[j("content",` + `,[U("content",` display: inline-block; line-height: var(--n-line-height); font-size: var(--n-font-size); - `),j("icon",` + `),U("icon",` position: relative; margin: var(--n-icon-margin); height: var(--n-icon-size); width: var(--n-icon-size); font-size: var(--n-icon-size); flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>J(`${e}-type`,[W("> *",` + `,[["default","info","success","warning","error","loading"].map(e=>Z(`${e}-type`,[q("> *",` color: var(--n-icon-color-${e}); transition: color .3s var(--n-bezier); - `)])),W("> *",` + `)])),q("> *",` position: absolute; left: 0; top: 0; right: 0; bottom: 0; - `,[Kn()])]),j("close",` + `,[Kn()])]),U("close",` margin: var(--n-close-margin); transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); flex-shrink: 0; - `,[W("&:hover",` + `,[q("&:hover",` color: var(--n-close-icon-color-hover); - `),W("&:active",` + `),q("&:active",` color: var(--n-close-icon-color-pressed); `)])]),z("message-container",` z-index: 6000; @@ -3213,112 +3213,112 @@ ${t} display: flex; flex-direction: column; align-items: center; - `,[J("top",` + `,[Z("top",` top: 12px; left: 0; right: 0; - `),J("top-left",` + `),Z("top-left",` top: 12px; left: 12px; right: 0; align-items: flex-start; - `),J("top-right",` + `),Z("top-right",` top: 12px; left: 0; right: 12px; align-items: flex-end; - `),J("bottom",` + `),Z("bottom",` bottom: 4px; left: 0; right: 0; justify-content: flex-end; - `),J("bottom-left",` + `),Z("bottom-left",` bottom: 4px; left: 12px; right: 0; justify-content: flex-end; align-items: flex-start; - `),J("bottom-right",` + `),Z("bottom-right",` bottom: 4px; left: 0; right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),pY={info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null),default:()=>null},mY=xe({name:"Message",props:Object.assign(Object.assign({},V2),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=st(e),{props:o,mergedClsPrefixRef:r}=Ve(q2),i=pn("Message",n,r),a=Le("Message","-message",hY,OK,o,r),s=I(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:d,margin:f,maxWidth:h,iconMargin:p,closeMargin:g,closeSize:m,iconSize:b,fontSize:w,lineHeight:C,borderRadius:_,iconColorInfo:S,iconColorSuccess:y,iconColorWarning:x,iconColorError:P,iconColorLoading:k,closeIconSize:T,closeBorderRadius:R,[Te("textColor",c)]:E,[Te("boxShadow",c)]:q,[Te("color",c)]:D,[Te("closeColorHover",c)]:B,[Te("closeColorPressed",c)]:M,[Te("closeIconColor",c)]:K,[Te("closeIconColorPressed",c)]:V,[Te("closeIconColorHover",c)]:ae}}=a.value;return{"--n-bezier":u,"--n-margin":f,"--n-padding":d,"--n-max-width":h,"--n-font-size":w,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":T,"--n-close-border-radius":R,"--n-close-size":m,"--n-close-margin":g,"--n-text-color":E,"--n-color":D,"--n-box-shadow":q,"--n-icon-color-info":S,"--n-icon-color-success":y,"--n-icon-color-warning":x,"--n-icon-color-error":P,"--n-icon-color-loading":k,"--n-close-color-hover":B,"--n-close-color-pressed":M,"--n-close-icon-color":K,"--n-close-icon-color-pressed":V,"--n-close-icon-color-hover":ae,"--n-line-height":C,"--n-border-radius":_}}),l=t?Pt("message",I(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:n,content:o,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:u}=this;s==null||s();let d;return v("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):v("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(d=gY(l,t,r))&&u?v("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},v(Wi,null,{default:()=>d})):null,v("div",{class:`${r}-message__content`},Vt(o)),n?v(qi,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function gY(e,t,n){if(typeof e=="function")return e();{const o=t==="loading"?v(ti,{clsPrefix:n,strokeWidth:24,scale:.85}):pY[t]();return o?v(Wt,{clsPrefix:n,key:t},{default:()=>o}):null}}const vY=xe({name:"MessageEnvironment",props:Object.assign(Object.assign({},V2),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=U(!0);jt(()=>{o()});function o(){const{duration:u}=e;u&&(t=window.setTimeout(a,u))}function r(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&o()}function a(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function s(){const{onClose:u}=e;u&&u(),a()}function l(){const{onAfterLeave:u,onInternalAfterLeave:d,onAfterHide:f,internalKey:h}=e;u&&u(),d&&d(h),f&&f()}function c(){a()}return{show:n,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return v(Au,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?v(mY,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),bY=Object.assign(Object.assign({},Le.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),yY=xe({name:"MessageProvider",props:bY,setup(e){const{mergedClsPrefixRef:t}=st(e),n=U([]),o=U({}),r={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};at(q2,{props:e,mergedClsPrefixRef:t}),at(W2,r);function i(l,c){const u=Qr(),d=to(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var h;(h=o.value[u])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&n.value.length>=f&&n.value.shift(),n.value.push(d),d}function a(l){n.value.splice(n.value.findIndex(c=>c.key===l),1),delete o.value[l]}function s(){Object.values(o.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:n,handleAfterLeave:a},r)},render(){var e,t,n;return v(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?v(Zc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>v(vY,Object.assign({ref:r=>{r&&(this.messageRefs[o.key]=r)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},Ha(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function xY(){const e=Ve(W2,null);return e===null&&hr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const CY=xe({name:"ModalEnvironment",props:Object.assign(Object.assign({},v2),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=U(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function r(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:a,handleEsc:s}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:o,show:r}=this;return v(ni,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:n,onEsc:o,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),m1="n-modal-provider",K2="n-modal-api",wY="n-modal-reactive-list",_Y={to:[String,Object]},SY=xe({name:"ModalProvider",props:_Y,setup(){const e=Ac(64),t=Rc(),n=U([]),o={};function r(l={}){const c=Qr(),u=to(Object.assign(Object.assign({},l),{key:c,destroy:()=>{var d;(d=o[`n-modal-${c}`])===null||d===void 0||d.hide()}}));return n.value.push(u),u}function i(l){const{value:c}=n;c.splice(c.findIndex(u=>u.key===l),1)}function a(){Object.values(o).forEach(l=>{l==null||l.hide()})}const s={create:r,destroyAll:a};return at(K2,s),at(m1,{clickedRef:Ac(64),clickedPositionRef:Rc()}),at(wY,n),at(m1,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},s),{modalList:n,modalInstRefs:o,handleAfterLeave:i})},render(){var e,t;return v(rt,null,[this.modalList.map(n=>{var o;return v(CY,Ha(n,["destroy"],{to:(o=n.to)!==null&&o!==void 0?o:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${n.key}`]:this.modalInstRefs[`n-modal-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function kY(){const e=Ve(K2,null);return e===null&&hr("use-modal","No outer founded."),e}const Bu="n-notification-provider",PY=xe({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Ve(Bu),o=U(null);return Yt(()=>{var r,i;n.value>0?(r=o==null?void 0:o.value)===null||r===void 0||r.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:o,placement:r}=this;return v("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${r}`]},t?v(Oo,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),TY={info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null),default:()=>null},Dm={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},EY=Jr(Dm),RY=xe({name:"Notification",props:Dm,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:o}=Ve(Bu),{inlineThemeDisabled:r,mergedRtlRef:i}=st(),a=pn("Notification",i,t),s=I(()=>{const{type:c}=e,{self:{color:u,textColor:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:m,actionTextColor:b,borderRadius:w,headerFontWeight:C,boxShadow:_,lineHeight:S,fontSize:y,closeMargin:x,closeSize:P,width:k,padding:T,closeIconSize:R,closeBorderRadius:E,closeColorHover:q,closeColorPressed:D,titleFontSize:B,metaFontSize:M,descriptionFontSize:K,[Te("iconColor",c)]:V},common:{cubicBezierEaseOut:ae,cubicBezierEaseIn:pe,cubicBezierEaseInOut:Z}}=n.value,{left:N,right:O,top:ee,bottom:G}=co(T);return{"--n-color":u,"--n-font-size":y,"--n-text-color":d,"--n-description-text-color":m,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":C,"--n-bezier":Z,"--n-bezier-ease-out":ae,"--n-bezier-ease-in":pe,"--n-border-radius":w,"--n-box-shadow":_,"--n-close-border-radius":E,"--n-close-color-hover":q,"--n-close-color-pressed":D,"--n-close-icon-color":f,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":S,"--n-icon-color":V,"--n-close-margin":x,"--n-close-size":P,"--n-close-icon-size":R,"--n-width":k,"--n-padding-left":N,"--n-padding-right":O,"--n-padding-top":ee,"--n-padding-bottom":G,"--n-title-font-size":B,"--n-meta-font-size":M,"--n-description-font-size":K}}),l=r?Pt("notification",I(()=>e.type[0]),s,o):void 0;return{mergedClsPrefix:t,showAvatar:I(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},v("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?v("div",{class:`${t}-notification__avatar`},this.avatar?Vt(this.avatar):this.type!=="default"?v(Wt,{clsPrefix:t},{default:()=>TY[this.type]()}):null):null,this.closable?v(qi,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,v("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?v("div",{class:`${t}-notification-main__header`},Vt(this.title)):null,this.description?v("div",{class:`${t}-notification-main__description`},Vt(this.description)):null,this.content?v("pre",{class:`${t}-notification-main__content`},Vt(this.content)):null,this.meta||this.action?v("div",{class:`${t}-notification-main-footer`},this.meta?v("div",{class:`${t}-notification-main-footer__meta`},Vt(this.meta)):null,this.action?v("div",{class:`${t}-notification-main-footer__action`},Vt(this.action)):null):null)))}}),AY=Object.assign(Object.assign({},Dm),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),$Y=xe({name:"NotificationEnvironment",props:Object.assign(Object.assign({},AY),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ve(Bu),n=U(!0);let o=null;function r(){n.value=!1,o&&window.clearTimeout(o)}function i(p){t.value++,Ht(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:m}=e;g&&g(),m&&m()}function s(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function l(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:m,internalKey:b}=e;p&&p(),g(b),m&&m()}function u(){const{duration:p}=e;p&&(o=window.setTimeout(r,p))}function d(p){p.currentTarget===p.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(p){p.currentTarget===p.target&&u()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return jt(()=>{e.duration&&(o=window.setTimeout(r,e.duration))}),{show:n,hide:r,handleClose:h,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:d,handleMouseleave:f}},render(){return v(fn,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?v(RY,Object.assign({},eo(this.$props,EY),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),IY=W([z("notification-container",` + `)])]),_Y={info:()=>v(Wr,null),success:()=>v(Wi,null),warning:()=>v(qi,null),error:()=>v(Vi,null),default:()=>null},SY=ye({name:"Message",props:Object.assign(Object.assign({},Q2),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=st(e),{props:o,mergedClsPrefixRef:r}=Ve(Z2),i=pn("Message",n,r),a=Le("Message","-message",wY,jK,o,r),s=M(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:d,margin:f,maxWidth:h,iconMargin:p,closeMargin:g,closeSize:m,iconSize:b,fontSize:w,lineHeight:C,borderRadius:_,iconColorInfo:S,iconColorSuccess:y,iconColorWarning:x,iconColorError:k,iconColorLoading:P,closeIconSize:T,closeBorderRadius:$,[Te("textColor",c)]:E,[Te("boxShadow",c)]:G,[Te("color",c)]:B,[Te("closeColorHover",c)]:D,[Te("closeColorPressed",c)]:L,[Te("closeIconColor",c)]:X,[Te("closeIconColorPressed",c)]:V,[Te("closeIconColorHover",c)]:ae}}=a.value;return{"--n-bezier":u,"--n-margin":f,"--n-padding":d,"--n-max-width":h,"--n-font-size":w,"--n-icon-margin":p,"--n-icon-size":b,"--n-close-icon-size":T,"--n-close-border-radius":$,"--n-close-size":m,"--n-close-margin":g,"--n-text-color":E,"--n-color":B,"--n-box-shadow":G,"--n-icon-color-info":S,"--n-icon-color-success":y,"--n-icon-color-warning":x,"--n-icon-color-error":k,"--n-icon-color-loading":P,"--n-close-color-hover":D,"--n-close-color-pressed":L,"--n-close-icon-color":X,"--n-close-icon-color-pressed":V,"--n-close-icon-color-hover":ae,"--n-line-height":C,"--n-border-radius":_}}),l=t?Pt("message",M(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:r,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:n,content:o,mergedClsPrefix:r,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:u}=this;s==null||s();let d;return v("div",{class:[`${r}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):v("div",{class:[`${r}-message ${r}-message--${t}-type`,this.rtlEnabled&&`${r}-message--rtl`]},(d=kY(l,t,r))&&u?v("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},v(Ki,null,{default:()=>d})):null,v("div",{class:`${r}-message__content`},Vt(o)),n?v(Gi,{clsPrefix:r,class:`${r}-message__close`,onClick:c,absolute:!0}):null))}});function kY(e,t,n){if(typeof e=="function")return e();{const o=t==="loading"?v(oi,{clsPrefix:n,strokeWidth:24,scale:.85}):_Y[t]();return o?v(Wt,{clsPrefix:n,key:t},{default:()=>o}):null}}const PY=ye({name:"MessageEnvironment",props:Object.assign(Object.assign({},Q2),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=j(!0);jt(()=>{o()});function o(){const{duration:u}=e;u&&(t=window.setTimeout(a,u))}function r(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&o()}function a(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function s(){const{onClose:u}=e;u&&u(),a()}function l(){const{onAfterLeave:u,onInternalAfterLeave:d,onAfterHide:f,internalKey:h}=e;u&&u(),d&&d(h),f&&f()}function c(){a()}return{show:n,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:r,deactivate:c}},render(){return v(zu,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?v(SY,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),TY=Object.assign(Object.assign({},Le.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),AY=ye({name:"MessageProvider",props:TY,setup(e){const{mergedClsPrefixRef:t}=st(e),n=j([]),o=j({}),r={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};at(Z2,{props:e,mergedClsPrefixRef:t}),at(J2,r);function i(l,c){const u=Zr(),d=to(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var h;(h=o.value[u])===null||h===void 0||h.hide()}})),{max:f}=e;return f&&n.value.length>=f&&n.value.shift(),n.value.push(d),d}function a(l){n.value.splice(n.value.findIndex(c=>c.key===l),1),delete o.value[l]}function s(){Object.values(o.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:n,handleAfterLeave:a},r)},render(){var e,t,n;return v(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?v(ru,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>v(PY,Object.assign({ref:r=>{r&&(this.messageRefs[o.key]=r)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},Va(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function RY(){const e=Ve(J2,null);return e===null&&hr("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const EY=ye({name:"ModalEnvironment",props:Object.assign(Object.assign({},S2),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=j(!0);function n(){const{onInternalAfterLeave:u,internalKey:d,onAfterLeave:f}=e;u&&u(d),f&&f()}function o(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function r(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(d=>{d!==!1&&l()}):l()}function a(u){const{onMaskClick:d,maskClosable:f}=e;d&&(d(u),f&&l())}function s(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:r,handlePositiveClick:o,handleMaskClick:a,handleEsc:s}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:o,show:r}=this;return v(ri,Object.assign({},this.$props,{show:r,onUpdateShow:e,onMaskClick:n,onEsc:o,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),w1="n-modal-provider",ek="n-modal-api",$Y="n-modal-reactive-list",IY={to:[String,Object]},OY=ye({name:"ModalProvider",props:IY,setup(){const e=zc(64),t=Mc(),n=j([]),o={};function r(l={}){const c=Zr(),u=to(Object.assign(Object.assign({},l),{key:c,destroy:()=>{var d;(d=o[`n-modal-${c}`])===null||d===void 0||d.hide()}}));return n.value.push(u),u}function i(l){const{value:c}=n;c.splice(c.findIndex(u=>u.key===l),1)}function a(){Object.values(o).forEach(l=>{l==null||l.hide()})}const s={create:r,destroyAll:a};return at(ek,s),at(w1,{clickedRef:zc(64),clickedPositionRef:Mc()}),at($Y,n),at(w1,{clickedRef:e,clickedPositionRef:t}),Object.assign(Object.assign({},s),{modalList:n,modalInstRefs:o,handleAfterLeave:i})},render(){var e,t;return v(rt,null,[this.modalList.map(n=>{var o;return v(EY,Va(n,["destroy"],{to:(o=n.to)!==null&&o!==void 0?o:this.to,ref:r=>{r===null?delete this.modalInstRefs[`n-modal-${n.key}`]:this.modalInstRefs[`n-modal-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function MY(){const e=Ve(ek,null);return e===null&&hr("use-modal","No outer founded."),e}const Vu="n-notification-provider",zY=ye({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Ve(Vu),o=j(null);return Yt(()=>{var r,i;n.value>0?(r=o==null?void 0:o.value)===null||r===void 0||r.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:o,placement:r}=this;return v("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${r}`]},t?v(Oo,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),FY={info:()=>v(Wr,null),success:()=>v(Wi,null),warning:()=>v(qi,null),error:()=>v(Vi,null),default:()=>null},Vm={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},DY=ei(Vm),LY=ye({name:"Notification",props:Vm,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:o}=Ve(Vu),{inlineThemeDisabled:r,mergedRtlRef:i}=st(),a=pn("Notification",i,t),s=M(()=>{const{type:c}=e,{self:{color:u,textColor:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:g,descriptionTextColor:m,actionTextColor:b,borderRadius:w,headerFontWeight:C,boxShadow:_,lineHeight:S,fontSize:y,closeMargin:x,closeSize:k,width:P,padding:T,closeIconSize:$,closeBorderRadius:E,closeColorHover:G,closeColorPressed:B,titleFontSize:D,metaFontSize:L,descriptionFontSize:X,[Te("iconColor",c)]:V},common:{cubicBezierEaseOut:ae,cubicBezierEaseIn:ue,cubicBezierEaseInOut:ee}}=n.value,{left:R,right:A,top:Y,bottom:W}=co(T);return{"--n-color":u,"--n-font-size":y,"--n-text-color":d,"--n-description-text-color":m,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":C,"--n-bezier":ee,"--n-bezier-ease-out":ae,"--n-bezier-ease-in":ue,"--n-border-radius":w,"--n-box-shadow":_,"--n-close-border-radius":E,"--n-close-color-hover":G,"--n-close-color-pressed":B,"--n-close-icon-color":f,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":S,"--n-icon-color":V,"--n-close-margin":x,"--n-close-size":k,"--n-close-icon-size":$,"--n-width":P,"--n-padding-left":R,"--n-padding-right":A,"--n-padding-top":Y,"--n-padding-bottom":W,"--n-title-font-size":D,"--n-meta-font-size":L,"--n-description-font-size":X}}),l=r?Pt("notification",M(()=>e.type[0]),s,o):void 0;return{mergedClsPrefix:t,showAvatar:M(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},v("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?v("div",{class:`${t}-notification__avatar`},this.avatar?Vt(this.avatar):this.type!=="default"?v(Wt,{clsPrefix:t},{default:()=>FY[this.type]()}):null):null,this.closable?v(Gi,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,v("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?v("div",{class:`${t}-notification-main__header`},Vt(this.title)):null,this.description?v("div",{class:`${t}-notification-main__description`},Vt(this.description)):null,this.content?v("pre",{class:`${t}-notification-main__content`},Vt(this.content)):null,this.meta||this.action?v("div",{class:`${t}-notification-main-footer`},this.meta?v("div",{class:`${t}-notification-main-footer__meta`},Vt(this.meta)):null,this.action?v("div",{class:`${t}-notification-main-footer__action`},Vt(this.action)):null):null)))}}),BY=Object.assign(Object.assign({},Vm),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),NY=ye({name:"NotificationEnvironment",props:Object.assign(Object.assign({},BY),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ve(Vu),n=j(!0);let o=null;function r(){n.value=!1,o&&window.clearTimeout(o)}function i(p){t.value++,Ht(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:g,onAfterShow:m}=e;g&&g(),m&&m()}function s(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function l(p){const{onHide:g}=e;g&&g(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:g,onAfterHide:m,internalKey:b}=e;p&&p(),g(b),m&&m()}function u(){const{duration:p}=e;p&&(o=window.setTimeout(r,p))}function d(p){p.currentTarget===p.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(p){p.currentTarget===p.target&&u()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(g=>{g!==!1&&r()}):r()}return jt(()=>{e.duration&&(o=window.setTimeout(r,e.duration))}),{show:n,hide:r,handleClose:h,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:d,handleMouseleave:f}},render(){return v(fn,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?v(LY,Object.assign({},eo(this.$props,DY),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),HY=q([z("notification-container",` z-index: 4000; position: fixed; overflow: visible; display: flex; flex-direction: column; align-items: flex-end; - `,[W(">",[z("scrollbar",` + `,[q(">",[z("scrollbar",` width: initial; overflow: visible; height: -moz-fit-content !important; height: fit-content !important; max-height: 100vh !important; - `,[W(">",[z("scrollbar-container",` + `,[q(">",[z("scrollbar-container",` height: -moz-fit-content !important; height: fit-content !important; max-height: 100vh !important; `,[z("scrollbar-content",` padding-top: 12px; padding-bottom: 33px; - `)])])])]),J("top, top-right, top-left",` + `)])])])]),Z("top, top-right, top-left",` top: 12px; - `,[W("&.transitioning >",[z("scrollbar",[W(">",[z("scrollbar-container",` + `,[q("&.transitioning >",[z("scrollbar",[q(">",[z("scrollbar-container",` min-height: 100vh !important; - `)])])])]),J("bottom, bottom-right, bottom-left",` + `)])])])]),Z("bottom, bottom-right, bottom-left",` bottom: 12px; - `,[W(">",[z("scrollbar",[W(">",[z("scrollbar-container",[z("scrollbar-content",` + `,[q(">",[z("scrollbar",[q(">",[z("scrollbar-container",[z("scrollbar-content",` padding-bottom: 12px; `)])])])]),z("notification-wrapper",` display: flex; align-items: flex-end; margin-bottom: 0; margin-top: 12px; - `)]),J("top, bottom",` + `)]),Z("top, bottom",` left: 50%; transform: translateX(-50%); - `,[z("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + `,[z("notification-wrapper",[q("&.notification-transition-enter-from, &.notification-transition-leave-to",` transform: scale(0.85); - `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` + `),q("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: scale(1); - `)])]),J("top",[z("notification-wrapper",` + `)])]),Z("top",[z("notification-wrapper",` transform-origin: top center; - `)]),J("bottom",[z("notification-wrapper",` + `)]),Z("bottom",[z("notification-wrapper",` transform-origin: bottom center; - `)]),J("top-right, bottom-right",[z("notification",` + `)]),Z("top-right, bottom-right",[z("notification",` margin-left: 28px; margin-right: 16px; - `)]),J("top-left, bottom-left",[z("notification",` + `)]),Z("top-left, bottom-left",[z("notification",` margin-left: 16px; margin-right: 28px; - `)]),J("top-right",` + `)]),Z("top-right",` right: 0; - `,[Kl("top-right")]),J("top-left",` + `,[Ql("top-right")]),Z("top-left",` left: 0; - `,[Kl("top-left")]),J("bottom-right",` + `,[Ql("top-left")]),Z("bottom-right",` right: 0; - `,[Kl("bottom-right")]),J("bottom-left",` + `,[Ql("bottom-right")]),Z("bottom-left",` left: 0; - `,[Kl("bottom-left")]),J("scrollable",[J("top-right",` + `,[Ql("bottom-left")]),Z("scrollable",[Z("top-right",` top: 0; - `),J("top-left",` + `),Z("top-left",` top: 0; - `),J("bottom-right",` + `),Z("bottom-right",` bottom: 0; - `),J("bottom-left",` + `),Z("bottom-left",` bottom: 0; `)]),z("notification-wrapper",` margin-bottom: 12px; - `,[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + `,[q("&.notification-transition-enter-from, &.notification-transition-leave-to",` opacity: 0; margin-top: 0 !important; margin-bottom: 0 !important; - `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` + `),q("&.notification-transition-leave-from, &.notification-transition-enter-to",` opacity: 1; - `),W("&.notification-transition-leave-active",` + `),q("&.notification-transition-leave-active",` transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier), @@ -3328,7 +3328,7 @@ ${t} margin-top .3s linear, margin-bottom .3s linear, box-shadow .3s var(--n-bezier); - `),W("&.notification-transition-enter-active",` + `),q("&.notification-transition-enter-active",` transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier), @@ -3361,16 +3361,16 @@ ${t} box-shadow: var(--n-box-shadow); box-sizing: border-box; opacity: 1; - `,[j("avatar",[z("icon",` + `,[U("avatar",[z("icon",` color: var(--n-icon-color); `),z("base-icon",` color: var(--n-icon-color); - `)]),J("show-avatar",[z("notification-main",` + `)]),Z("show-avatar",[z("notification-main",` margin-left: 40px; width: calc(100% - 40px); - `)]),J("closable",[z("notification-main",[W("> *:first-child",` + `)]),Z("closable",[z("notification-main",[q("> *:first-child",` padding-right: 20px; - `)]),j("close",` + `)]),U("close",` position: absolute; top: 0; right: 0; @@ -3378,7 +3378,7 @@ ${t} transition: background-color .3s var(--n-bezier), color .3s var(--n-bezier); - `)]),j("avatar",` + `)]),U("avatar",` position: absolute; top: var(--n-padding-top); left: var(--n-padding-left); @@ -3401,27 +3401,27 @@ ${t} align-items: center; justify-content: space-between; margin-top: 12px; - `,[j("meta",` + `,[U("meta",` font-size: var(--n-meta-font-size); transition: color .3s var(--n-bezier-ease-out); color: var(--n-description-text-color); - `),j("action",` + `),U("action",` cursor: pointer; transition: color .3s var(--n-bezier-ease-out); color: var(--n-action-text-color); - `)]),j("header",` + `)]),U("header",` font-weight: var(--n-title-font-weight); font-size: var(--n-title-font-size); transition: color .3s var(--n-bezier-ease-out); color: var(--n-title-text-color); - `),j("description",` + `),U("description",` margin-top: 8px; font-size: var(--n-description-font-size); white-space: pre-wrap; word-wrap: break-word; transition: color .3s var(--n-bezier-ease-out); color: var(--n-description-text-color); - `),j("content",` + `),U("content",` line-height: var(--n-line-height); margin: 12px 0 0 0; font-family: inherit; @@ -3429,14 +3429,14 @@ ${t} word-wrap: break-word; transition: color .3s var(--n-bezier-ease-out); color: var(--n-text-color); - `,[W("&:first-child","margin: 0;")])])])])]);function Kl(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",o="0";return z("notification-wrapper",[W("&.notification-transition-enter-from, &.notification-transition-leave-to",` + `,[q("&:first-child","margin: 0;")])])])])]);function Ql(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",o="0";return z("notification-wrapper",[q("&.notification-transition-enter-from, &.notification-transition-leave-to",` transform: translate(${n}, 0); - `),W("&.notification-transition-leave-from, &.notification-transition-enter-to",` + `),q("&.notification-transition-leave-from, &.notification-transition-enter-to",` transform: translate(${o}, 0); - `)])}const G2="n-notification-api",OY=Object.assign(Object.assign({},Le.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),MY=xe({name:"NotificationProvider",props:OY,setup(e){const{mergedClsPrefixRef:t}=st(e),n=U([]),o={},r=new Set;function i(h){const p=Qr(),g=()=>{r.add(p),o[p]&&o[p].hide()},m=to(Object.assign(Object.assign({},h),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&n.value.length-r.size>=b){let w=!1,C=0;for(const _ of n.value){if(!r.has(_.key)){o[_.key]&&(_.destroy(),w=!0);break}C++}w||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function s(h){r.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=Le("Notification","-notification",IY,EK,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:d,destroyAll:f},u=U(0);at(G2,c),at(Bu,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function d(h){return i(h)}function f(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:o,handleAfterLeave:s},c)},render(){var e,t,n;const{placement:o}=this;return v(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?v(Zc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v(PY,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(r=>v($Y,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Ha(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function zY(){const e=Ve(G2,null);return e===null&&hr("use-notification","No outer `n-notification-provider` found."),e}const FY=W([z("progress",{display:"inline-block"},[z("progress-icon",` + `)])}const tk="n-notification-api",jY=Object.assign(Object.assign({},Le.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),UY=ye({name:"NotificationProvider",props:jY,setup(e){const{mergedClsPrefixRef:t}=st(e),n=j([]),o={},r=new Set;function i(h){const p=Zr(),g=()=>{r.add(p),o[p]&&o[p].hide()},m=to(Object.assign(Object.assign({},h),{key:p,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&n.value.length-r.size>=b){let w=!1,C=0;for(const _ of n.value){if(!r.has(_.key)){o[_.key]&&(_.destroy(),w=!0);break}C++}w||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function s(h){r.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=Le("Notification","-notification",HY,DK,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:d,destroyAll:f},u=j(0);at(tk,c),at(Vu,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function d(h){return i(h)}function f(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:o,handleAfterLeave:s},c)},render(){var e,t,n;const{placement:o}=this;return v(rt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?v(ru,{to:(n=this.to)!==null&&n!==void 0?n:"body"},v(zY,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(r=>v(NY,Object.assign({ref:i=>{const a=r.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Va(r,["destroy","hide","deactivate"]),{internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover})))})):null)}});function VY(){const e=Ve(tk,null);return e===null&&hr("use-notification","No outer `n-notification-provider` found."),e}const WY=q([z("progress",{display:"inline-block"},[z("progress-icon",` color: var(--n-icon-color); transition: color .3s var(--n-bezier); - `),J("line",` + `),Z("line",` width: 100%; display: block; `,[z("progress-content",` @@ -3448,14 +3448,14 @@ ${t} height: var(--n-icon-size-line); line-height: var(--n-icon-size-line); font-size: var(--n-icon-size-line); - `,[J("as-text",` + `,[Z("as-text",` color: var(--n-text-color-line-outer); text-align: center; width: 40px; font-size: var(--n-font-size); padding-left: 4px; transition: color .3s var(--n-bezier); - `)])]),J("circle, dashboard",{width:"120px"},[z("progress-custom-content",` + `)])]),Z("circle, dashboard",{width:"120px"},[z("progress-custom-content",` position: absolute; left: 50%; top: 50%; @@ -3485,7 +3485,7 @@ ${t} align-items: center; color: var(--n-icon-color); font-size: var(--n-icon-size-circle); - `)]),J("multiple-circle",` + `)]),Z("multiple-circle",` width: 200px; color: inherit; `,[z("progress-text",` @@ -3499,17 +3499,17 @@ ${t} align-items: center; justify-content: center; transition: color .3s var(--n-bezier); - `)]),z("progress-content",{position:"relative"}),z("progress-graph",{position:"relative"},[z("progress-graph-circle",[W("svg",{verticalAlign:"bottom"}),z("progress-graph-circle-fill",` + `)]),z("progress-content",{position:"relative"}),z("progress-graph",{position:"relative"},[z("progress-graph-circle",[q("svg",{verticalAlign:"bottom"}),z("progress-graph-circle-fill",` stroke: var(--n-fill-color); transition: opacity .3s var(--n-bezier), stroke .3s var(--n-bezier), stroke-dasharray .3s var(--n-bezier); - `,[J("empty",{opacity:0})]),z("progress-graph-circle-rail",` + `,[Z("empty",{opacity:0})]),z("progress-graph-circle-rail",` transition: stroke .3s var(--n-bezier); overflow: hidden; stroke: var(--n-rail-color); - `)]),z("progress-graph-line",[J("indicator-inside",[z("progress-graph-line-rail",` + `)]),z("progress-graph-line",[Z("indicator-inside",[z("progress-graph-line-rail",` height: 16px; line-height: 16px; border-radius: 10px; @@ -3526,7 +3526,7 @@ ${t} font-size: 12px; color: var(--n-text-color-line-inner); transition: color .3s var(--n-bezier); - `)])]),J("indicator-inside-label",` + `)])]),Z("indicator-inside-label",` height: 16px; display: flex; align-items: center; @@ -3567,11 +3567,11 @@ ${t} transition: background-color .3s var(--n-bezier), max-width .2s var(--n-bezier); - `,[J("processing",[W("&::after",` + `,[Z("processing",[q("&::after",` content: ""; background-image: var(--n-line-bg-processing); animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),W("@keyframes progress-processing-animation",` + `)])])])])])]),q("@keyframes progress-processing-animation",` 0% { position: absolute; left: 0; @@ -3596,13 +3596,13 @@ ${t} right: 0; opacity: 0; } - `)]),DY={success:v(Ui,null),error:v(ji,null),warning:v(Vi,null),info:v(Ur,null)},LY=xe({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=I(()=>qt(e.height)),o=I(()=>e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):""),r=I(()=>e.fillBorderRadius!==void 0?qt(e.fillBorderRadius):e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:s,percentage:l,unit:c,indicatorTextColor:u,status:d,showIndicator:f,fillColor:h,processing:p,clsPrefix:g}=e;return v("div",{class:`${g}-progress-content`,role:"none"},v("div",{class:`${g}-progress-graph`,"aria-hidden":!0},v("div",{class:[`${g}-progress-graph-line`,{[`${g}-progress-graph-line--indicator-${i}`]:!0}]},v("div",{class:`${g}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:o.value},s]},v("div",{class:[`${g}-progress-graph-line-fill`,p&&`${g}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:h,height:n.value,lineHeight:n.value,borderRadius:r.value}},i==="inside"?v("div",{class:`${g}-progress-graph-line-indicator`,style:{color:u}},t.default?t.default():`${l}${c}`):null)))),f&&i==="outside"?v("div",null,t.default?v("div",{class:`${g}-progress-custom-content`,style:{color:u},role:"none"},t.default()):d==="default"?v("div",{role:"none",class:`${g}-progress-icon ${g}-progress-icon--as-text`,style:{color:u}},l,c):v("div",{class:`${g}-progress-icon`,"aria-hidden":!0},v(Wt,{clsPrefix:g},{default:()=>DY[d]}))):null)}}}),BY={success:v(Ui,null),error:v(ji,null),warning:v(Vi,null),info:v(Ur,null)},NY=xe({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(o,r,i){const{gapDegree:a,viewBoxWidth:s,strokeWidth:l}=e,c=50,u=0,d=c,f=0,h=2*c,p=50+l/2,g=`M ${p},${p} m ${u},${d} + `)]),qY={success:v(Wi,null),error:v(Vi,null),warning:v(qi,null),info:v(Wr,null)},KY=ye({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=M(()=>qt(e.height)),o=M(()=>e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):""),r=M(()=>e.fillBorderRadius!==void 0?qt(e.fillBorderRadius):e.railBorderRadius!==void 0?qt(e.railBorderRadius):e.height!==void 0?qt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:s,percentage:l,unit:c,indicatorTextColor:u,status:d,showIndicator:f,fillColor:h,processing:p,clsPrefix:g}=e;return v("div",{class:`${g}-progress-content`,role:"none"},v("div",{class:`${g}-progress-graph`,"aria-hidden":!0},v("div",{class:[`${g}-progress-graph-line`,{[`${g}-progress-graph-line--indicator-${i}`]:!0}]},v("div",{class:`${g}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:o.value},s]},v("div",{class:[`${g}-progress-graph-line-fill`,p&&`${g}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:h,height:n.value,lineHeight:n.value,borderRadius:r.value}},i==="inside"?v("div",{class:`${g}-progress-graph-line-indicator`,style:{color:u}},t.default?t.default():`${l}${c}`):null)))),f&&i==="outside"?v("div",null,t.default?v("div",{class:`${g}-progress-custom-content`,style:{color:u},role:"none"},t.default()):d==="default"?v("div",{role:"none",class:`${g}-progress-icon ${g}-progress-icon--as-text`,style:{color:u}},l,c):v("div",{class:`${g}-progress-icon`,"aria-hidden":!0},v(Wt,{clsPrefix:g},{default:()=>qY[d]}))):null)}}}),GY={success:v(Wi,null),error:v(Vi,null),warning:v(qi,null),info:v(Wr,null)},XY=ye({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(o,r,i){const{gapDegree:a,viewBoxWidth:s,strokeWidth:l}=e,c=50,u=0,d=c,f=0,h=2*c,p=50+l/2,g=`M ${p},${p} m ${u},${d} a ${c},${c} 0 1 1 ${f},${-h} - a ${c},${c} 0 1 1 ${-f},${h}`,m=Math.PI*2*c,b={stroke:i,strokeDasharray:`${o/100*(m-a)}px ${s*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:r?"center":void 0,transform:r?`rotate(${r}deg)`:void 0};return{pathString:g,pathStyle:b}}return()=>{const{fillColor:o,railColor:r,strokeWidth:i,offsetDegree:a,status:s,percentage:l,showIndicator:c,indicatorTextColor:u,unit:d,gapOffsetDegree:f,clsPrefix:h}=e,{pathString:p,pathStyle:g}=n(100,0,r),{pathString:m,pathStyle:b}=n(l,a,o),w=100+i;return v("div",{class:`${h}-progress-content`,role:"none"},v("div",{class:`${h}-progress-graph`,"aria-hidden":!0},v("div",{class:`${h}-progress-graph-circle`,style:{transform:f?`rotate(${f}deg)`:void 0}},v("svg",{viewBox:`0 0 ${w} ${w}`},v("g",null,v("path",{class:`${h}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g})),v("g",null,v("path",{class:[`${h}-progress-graph-circle-fill`,l===0&&`${h}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b}))))),c?v("div",null,t.default?v("div",{class:`${h}-progress-custom-content`,role:"none"},t.default()):s!=="default"?v("div",{class:`${h}-progress-icon`,"aria-hidden":!0},v(Wt,{clsPrefix:h},{default:()=>BY[s]})):v("div",{class:`${h}-progress-text`,style:{color:u},role:"none"},v("span",{class:`${h}-progress-text__percentage`},l),v("span",{class:`${h}-progress-text__unit`},d))):null)}}});function g1(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const HY=xe({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=I(()=>e.percentage.map((r,i)=>`${Math.PI*r/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:o,strokeWidth:r,circleGap:i,showIndicator:a,fillColor:s,railColor:l,railStyle:c,percentage:u,clsPrefix:d}=e;return v("div",{class:`${d}-progress-content`,role:"none"},v("div",{class:`${d}-progress-graph`,"aria-hidden":!0},v("div",{class:`${d}-progress-graph-circle`},v("svg",{viewBox:`0 0 ${o} ${o}`},u.map((f,h)=>v("g",{key:h},v("path",{class:`${d}-progress-graph-circle-rail`,d:g1(o/2-r/2*(1+2*h)-i*h,r,o),"stroke-width":r,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[h]},c[h]]}),v("path",{class:[`${d}-progress-graph-circle-fill`,f===0&&`${d}-progress-graph-circle-fill--empty`],d:g1(o/2-r/2*(1+2*h)-i*h,r,o),"stroke-width":r,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[h],strokeDashoffset:0,stroke:s[h]}})))))),a&&t.default?v("div",null,v("div",{class:`${d}-progress-text`},t.default())):null)}}}),jY=Object.assign(Object.assign({},Le.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),UY=xe({name:"Progress",props:jY,setup(e){const t=I(()=>e.indicatorPlacement||e.indicatorPosition),n=I(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=st(e),i=Le("Progress","-progress",FY,CG,e,o),a=I(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:u,fontSizeCircle:d,railColor:f,railHeight:h,iconSizeCircle:p,iconSizeLine:g,textColorCircle:m,textColorLineInner:b,textColorLineOuter:w,lineBgProcessing:C,fontWeightCircle:_,[Te("iconColor",l)]:S,[Te("fillColor",l)]:y}}=i.value;return{"--n-bezier":c,"--n-fill-color":y,"--n-font-size":u,"--n-font-size-circle":d,"--n-font-weight-circle":_,"--n-icon-color":S,"--n-icon-size-circle":p,"--n-icon-size-line":g,"--n-line-bg-processing":C,"--n-rail-color":f,"--n-rail-height":h,"--n-text-color-circle":m,"--n-text-color-line-inner":b,"--n-text-color-line-outer":w}}),s=r?Pt("progress",I(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:o,mergedIndicatorPlacement:t,gapDeg:n,cssVars:r?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:o,status:r,railColor:i,railStyle:a,color:s,percentage:l,viewBoxWidth:c,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:h,fillBorderRadius:p,height:g,processing:m,circleGap:b,mergedClsPrefix:w,gapDeg:C,gapOffsetDegree:_,themeClass:S,$slots:y,onRender:x}=this;return x==null||x(),v("div",{class:[S,`${w}-progress`,`${w}-progress--${e}`,`${w}-progress--${r}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?v(NY,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:s,railStyle:a,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:c,strokeWidth:u,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:_,unit:f},y):e==="line"?v(LY,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:s,railStyle:a,percentage:l,processing:m,indicatorPlacement:d,unit:f,fillBorderRadius:p,railBorderRadius:h,height:g},y):e==="multiple-circle"?v(HY,{clsPrefix:w,strokeWidth:u,railColor:i,fillColor:s,railStyle:a,viewBoxWidth:c,percentage:l,showIndicator:o,circleGap:b},y):null)}}),VY={name:"QrCode",common:He,self:e=>({borderRadius:e.borderRadius})},WY=VY;function qY(e){return{borderRadius:e.borderRadius}}const KY={name:"QrCode",common:xt,self:qY},GY=KY,XY=W([z("qr-code",` + a ${c},${c} 0 1 1 ${-f},${h}`,m=Math.PI*2*c,b={stroke:i,strokeDasharray:`${o/100*(m-a)}px ${s*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:r?"center":void 0,transform:r?`rotate(${r}deg)`:void 0};return{pathString:g,pathStyle:b}}return()=>{const{fillColor:o,railColor:r,strokeWidth:i,offsetDegree:a,status:s,percentage:l,showIndicator:c,indicatorTextColor:u,unit:d,gapOffsetDegree:f,clsPrefix:h}=e,{pathString:p,pathStyle:g}=n(100,0,r),{pathString:m,pathStyle:b}=n(l,a,o),w=100+i;return v("div",{class:`${h}-progress-content`,role:"none"},v("div",{class:`${h}-progress-graph`,"aria-hidden":!0},v("div",{class:`${h}-progress-graph-circle`,style:{transform:f?`rotate(${f}deg)`:void 0}},v("svg",{viewBox:`0 0 ${w} ${w}`},v("g",null,v("path",{class:`${h}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g})),v("g",null,v("path",{class:[`${h}-progress-graph-circle-fill`,l===0&&`${h}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b}))))),c?v("div",null,t.default?v("div",{class:`${h}-progress-custom-content`,role:"none"},t.default()):s!=="default"?v("div",{class:`${h}-progress-icon`,"aria-hidden":!0},v(Wt,{clsPrefix:h},{default:()=>GY[s]})):v("div",{class:`${h}-progress-text`,style:{color:u},role:"none"},v("span",{class:`${h}-progress-text__percentage`},l),v("span",{class:`${h}-progress-text__unit`},d))):null)}}});function _1(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const YY=ye({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=M(()=>e.percentage.map((r,i)=>`${Math.PI*r/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:o,strokeWidth:r,circleGap:i,showIndicator:a,fillColor:s,railColor:l,railStyle:c,percentage:u,clsPrefix:d}=e;return v("div",{class:`${d}-progress-content`,role:"none"},v("div",{class:`${d}-progress-graph`,"aria-hidden":!0},v("div",{class:`${d}-progress-graph-circle`},v("svg",{viewBox:`0 0 ${o} ${o}`},u.map((f,h)=>v("g",{key:h},v("path",{class:`${d}-progress-graph-circle-rail`,d:_1(o/2-r/2*(1+2*h)-i*h,r,o),"stroke-width":r,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[h]},c[h]]}),v("path",{class:[`${d}-progress-graph-circle-fill`,f===0&&`${d}-progress-graph-circle-fill--empty`],d:_1(o/2-r/2*(1+2*h)-i*h,r,o),"stroke-width":r,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[h],strokeDashoffset:0,stroke:s[h]}})))))),a&&t.default?v("div",null,v("div",{class:`${d}-progress-text`},t.default())):null)}}}),QY=Object.assign(Object.assign({},Le.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),JY=ye({name:"Progress",props:QY,setup(e){const t=M(()=>e.indicatorPlacement||e.indicatorPosition),n=M(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:o,inlineThemeDisabled:r}=st(e),i=Le("Progress","-progress",WY,EG,e,o),a=M(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:u,fontSizeCircle:d,railColor:f,railHeight:h,iconSizeCircle:p,iconSizeLine:g,textColorCircle:m,textColorLineInner:b,textColorLineOuter:w,lineBgProcessing:C,fontWeightCircle:_,[Te("iconColor",l)]:S,[Te("fillColor",l)]:y}}=i.value;return{"--n-bezier":c,"--n-fill-color":y,"--n-font-size":u,"--n-font-size-circle":d,"--n-font-weight-circle":_,"--n-icon-color":S,"--n-icon-size-circle":p,"--n-icon-size-line":g,"--n-line-bg-processing":C,"--n-rail-color":f,"--n-rail-height":h,"--n-text-color-circle":m,"--n-text-color-line-inner":b,"--n-text-color-line-outer":w}}),s=r?Pt("progress",M(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:o,mergedIndicatorPlacement:t,gapDeg:n,cssVars:r?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:o,status:r,railColor:i,railStyle:a,color:s,percentage:l,viewBoxWidth:c,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:h,fillBorderRadius:p,height:g,processing:m,circleGap:b,mergedClsPrefix:w,gapDeg:C,gapOffsetDegree:_,themeClass:S,$slots:y,onRender:x}=this;return x==null||x(),v("div",{class:[S,`${w}-progress`,`${w}-progress--${e}`,`${w}-progress--${r}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?v(XY,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:s,railStyle:a,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:c,strokeWidth:u,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:_,unit:f},y):e==="line"?v(KY,{clsPrefix:w,status:r,showIndicator:o,indicatorTextColor:n,railColor:i,fillColor:s,railStyle:a,percentage:l,processing:m,indicatorPlacement:d,unit:f,fillBorderRadius:p,railBorderRadius:h,height:g},y):e==="multiple-circle"?v(YY,{clsPrefix:w,strokeWidth:u,railColor:i,fillColor:s,railStyle:a,viewBoxWidth:c,percentage:l,showIndicator:o,circleGap:b},y):null)}}),ZY={name:"QrCode",common:je,self:e=>({borderRadius:e.borderRadius})},eQ=ZY;function tQ(e){return{borderRadius:e.borderRadius}}const nQ={name:"QrCode",common:xt,self:tQ},oQ=nQ,rQ=q([z("qr-code",` background: #fff; border-radius: var(--n-border-radius); display: inline-flex; - `)]);var Mi;(function(e){class t{static encodeText(a,s){const l=e.QrSegment.makeSegments(a);return t.encodeSegments(l,s)}static encodeBinary(a,s){const l=e.QrSegment.makeBytes(a);return t.encodeSegments([l],s)}static encodeSegments(a,s,l=1,c=40,u=-1,d=!0){if(!(t.MIN_VERSION<=l&&l<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let f,h;for(f=l;;f++){const b=t.getNumDataCodewords(f,s)*8,w=r.getTotalBits(a,f);if(w<=b){h=w;break}if(f>=c)throw new RangeError("Data too long")}for(const b of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&h<=t.getNumDataCodewords(f,b)*8&&(s=b);const p=[];for(const b of a){n(b.mode.modeBits,4,p),n(b.numChars,b.mode.numCharCountBits(f),p);for(const w of b.getData())p.push(w)}const g=t.getNumDataCodewords(f,s)*8;n(0,Math.min(4,g-p.length),p),n(0,(8-p.length%8)%8,p);for(let b=236;p.lengthm[w>>>3]|=b<<7-(w&7)),new t(f,s,m,u)}constructor(a,s,l,c){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const u=[];for(let f=0;f=0&&a=0&&s>>9)*1335;const c=(s<<10|l)^21522;for(let u=0;u<=5;u++)this.setFunctionModule(8,u,o(c,u));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let u=9;u<15;u++)this.setFunctionModule(14-u,8,o(c,u));for(let u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,o(c,u));for(let u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,o(c,u));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let l=0;l<12;l++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;for(let l=0;l<18;l++){const c=o(s,l),u=this.size-11+l%3,d=Math.floor(l/3);this.setFunctionModule(u,d,c),this.setFunctionModule(d,u,c)}}drawFinderPattern(a,s){for(let l=-4;l<=4;l++)for(let c=-4;c<=4;c++){const u=Math.max(Math.abs(c),Math.abs(l)),d=a+c,f=s+l;d>=0&&d=0&&f{(b!==h-u||C>=f)&&m.push(w[b])});return m}drawCodewords(a){if(a.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let l=this.size-1;l>=1;l-=2){l===6&&(l=5);for(let c=0;c>>3],7-(s&7)),s++)}}}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(f,h),d||(a+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[u][p],f=1);a+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;u5&&a++):(this.finderPenaltyAddHistory(f,h),d||(a+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[p][u],f=1);a+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;ud+(f?1:0),s);const l=this.size*this.size,c=Math.ceil(Math.abs(s*20-l*10)/l)-1;return a+=c*t.PENALTY_N4,a}getAlignmentPatternPositions(){if(this.version===1)return[];{const a=Math.floor(this.version/7)+2,s=this.version===32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,l=[6];for(let c=this.size-7;l.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const l=Math.floor(a/7)+2;s-=(25*l-10)*l-55,a>=7&&(s-=36)}return s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c0);for(const c of a){const u=c^l.shift();l.push(0),s.forEach((d,f)=>l[f]^=t.reedSolomonMultiply(d,u))}return l}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let l=0;for(let c=7;c>=0;c--)l=l<<1^(l>>>7)*285,l^=(s>>>c&1)*a;return l}finderPenaltyCountPatterns(a){const s=a[1],l=s>0&&a[2]===s&&a[3]===s*3&&a[4]===s&&a[5]===s;return(l&&a[0]>=s*4&&a[6]>=s?1:0)+(l&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,l){return a&&(this.finderPenaltyAddHistory(s,l),s=0),s+=this.size,this.finderPenaltyAddHistory(s,l),this.finderPenaltyCountPatterns(l)}finderPenaltyAddHistory(a,s){s[0]===0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,s){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let l=a-1;l>=0;l--)s.push(i>>>l&1)}function o(i,a){return(i>>>a&1)!==0}class r{static makeBytes(a){const s=[];for(const l of a)n(l,8,s);return new r(r.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!r.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let l=0;l=1<({"--n-border-radius":o.value.self.borderRadius})),i=n?Pt("qr-code",void 0,r,e):void 0,a=U(),s=I(()=>{var f;const h=YY[e.errorCorrectionLevel];return ps.QrCode.encodeText((f=e.value)!==null&&f!==void 0?f:"-",h)});jt(()=>{const f=U(0);let h=null;Yt(()=>{e.type!=="svg"&&(f.value,l(s.value,e.size,e.color,e.backgroundColor,h?{icon:h,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null))}),Yt(()=>{if(e.type==="svg")return;const{iconSrc:p}=e;if(p){let g=!1;const m=new Image;return m.src=p,m.onload=()=>{g||(h=m,f.value++)},()=>{g=!0}}})});function l(f,h,p,g,m){const b=a.value;if(!b)return;const w=h*lf,C=f.size,_=w/C;b.width=w,b.height=w;const S=b.getContext("2d");if(S){S.clearRect(0,0,b.width,b.height);for(let y=0;y=1?T:T*q,B=q<=1?T:T/q,M=R+(T-D)/2,K=E+(T-B)/2;S.drawImage(y,M,K,D,B)}}}function c(f,h=0){const p=[];return f.forEach((g,m)=>{let b=null;g.forEach((w,C)=>{if(!w&&b!==null){p.push(`M${b+h} ${m+h}h${C-b}v1H${b+h}z`),b=null;return}if(C===g.length-1){if(!w)return;b===null?p.push(`M${C+h},${m+h} h1v1H${C+h}z`):p.push(`M${b+h},${m+h} h${C+1-b}v1H${b+h}z`);return}w&&b===null&&(b=C)})}),p.join("")}function u(f,h,p){const g=f.getModules(),m=g.length,b=g;let w="";const C=``,_=``;let S="";if(p){const{iconSrc:y,iconSize:x}=p,k=Math.floor(h*.1),T=m/h,R=(x||k)*T,E=(x||k)*T,q=g.length/2-E/2,D=g.length/2-R/2;S+=``}return w+=C,w+=_,w+=S,{innerHtml:w,numCells:m}}const d=I(()=>u(s.value,e.size,e.iconSrc?{iconSrc:e.iconSrc,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null));return{canvasRef:a,mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,svgInfo:d}},render(){const{mergedClsPrefix:e,backgroundColor:t,padding:n,cssVars:o,themeClass:r,size:i,type:a}=this;return v("div",{class:[`${e}-qr-code`,r],style:Object.assign({padding:typeof n=="number"?`${n}px`:n,backgroundColor:t,width:`${i}px`,height:`${i}px`},o)},a==="canvas"?v("canvas",{ref:"canvasRef",style:{width:`${i}px`,height:`${i}px`}}):v("svg",{height:i,width:i,viewBox:`0 0 ${this.svgInfo.numCells} ${this.svgInfo.numCells}`,role:"img",innerHTML:this.svgInfo.innerHtml}))}}),JY=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),v("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),v("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),v("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),v("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),v("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),ZY=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),v("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),v("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),eQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),v("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),v("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),v("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),v("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),v("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),tQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),v("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),nQ=z("result",` + `)]);var Fi;(function(e){class t{static encodeText(a,s){const l=e.QrSegment.makeSegments(a);return t.encodeSegments(l,s)}static encodeBinary(a,s){const l=e.QrSegment.makeBytes(a);return t.encodeSegments([l],s)}static encodeSegments(a,s,l=1,c=40,u=-1,d=!0){if(!(t.MIN_VERSION<=l&&l<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let f,h;for(f=l;;f++){const b=t.getNumDataCodewords(f,s)*8,w=r.getTotalBits(a,f);if(w<=b){h=w;break}if(f>=c)throw new RangeError("Data too long")}for(const b of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])d&&h<=t.getNumDataCodewords(f,b)*8&&(s=b);const p=[];for(const b of a){n(b.mode.modeBits,4,p),n(b.numChars,b.mode.numCharCountBits(f),p);for(const w of b.getData())p.push(w)}const g=t.getNumDataCodewords(f,s)*8;n(0,Math.min(4,g-p.length),p),n(0,(8-p.length%8)%8,p);for(let b=236;p.lengthm[w>>>3]|=b<<7-(w&7)),new t(f,s,m,u)}constructor(a,s,l,c){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const u=[];for(let f=0;f=0&&a=0&&s>>9)*1335;const c=(s<<10|l)^21522;for(let u=0;u<=5;u++)this.setFunctionModule(8,u,o(c,u));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let u=9;u<15;u++)this.setFunctionModule(14-u,8,o(c,u));for(let u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,o(c,u));for(let u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,o(c,u));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let l=0;l<12;l++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;for(let l=0;l<18;l++){const c=o(s,l),u=this.size-11+l%3,d=Math.floor(l/3);this.setFunctionModule(u,d,c),this.setFunctionModule(d,u,c)}}drawFinderPattern(a,s){for(let l=-4;l<=4;l++)for(let c=-4;c<=4;c++){const u=Math.max(Math.abs(c),Math.abs(l)),d=a+c,f=s+l;d>=0&&d=0&&f{(b!==h-u||C>=f)&&m.push(w[b])});return m}drawCodewords(a){if(a.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let l=this.size-1;l>=1;l-=2){l===6&&(l=5);for(let c=0;c>>3],7-(s&7)),s++)}}}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(f,h),d||(a+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[u][p],f=1);a+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;u5&&a++):(this.finderPenaltyAddHistory(f,h),d||(a+=this.finderPenaltyCountPatterns(h)*t.PENALTY_N3),d=this.modules[p][u],f=1);a+=this.finderPenaltyTerminateAndCount(d,f,h)*t.PENALTY_N3}for(let u=0;ud+(f?1:0),s);const l=this.size*this.size,c=Math.ceil(Math.abs(s*20-l*10)/l)-1;return a+=c*t.PENALTY_N4,a}getAlignmentPatternPositions(){if(this.version===1)return[];{const a=Math.floor(this.version/7)+2,s=this.version===32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,l=[6];for(let c=this.size-7;l.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const l=Math.floor(a/7)+2;s-=(25*l-10)*l-55,a>=7&&(s-=36)}return s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c0);for(const c of a){const u=c^l.shift();l.push(0),s.forEach((d,f)=>l[f]^=t.reedSolomonMultiply(d,u))}return l}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let l=0;for(let c=7;c>=0;c--)l=l<<1^(l>>>7)*285,l^=(s>>>c&1)*a;return l}finderPenaltyCountPatterns(a){const s=a[1],l=s>0&&a[2]===s&&a[3]===s*3&&a[4]===s&&a[5]===s;return(l&&a[0]>=s*4&&a[6]>=s?1:0)+(l&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,l){return a&&(this.finderPenaltyAddHistory(s,l),s=0),s+=this.size,this.finderPenaltyAddHistory(s,l),this.finderPenaltyCountPatterns(l)}finderPenaltyAddHistory(a,s){s[0]===0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,s){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let l=a-1;l>=0;l--)s.push(i>>>l&1)}function o(i,a){return(i>>>a&1)!==0}class r{static makeBytes(a){const s=[];for(const l of a)n(l,8,s);return new r(r.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!r.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let l=0;l=1<({"--n-border-radius":o.value.self.borderRadius})),i=n?Pt("qr-code",void 0,r,e):void 0,a=j(),s=M(()=>{var f;const h=iQ[e.errorCorrectionLevel];return vs.QrCode.encodeText((f=e.value)!==null&&f!==void 0?f:"-",h)});jt(()=>{const f=j(0);let h=null;Yt(()=>{e.type!=="svg"&&(f.value,l(s.value,e.size,e.color,e.backgroundColor,h?{icon:h,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null))}),Yt(()=>{if(e.type==="svg")return;const{iconSrc:p}=e;if(p){let g=!1;const m=new Image;return m.src=p,m.onload=()=>{g||(h=m,f.value++)},()=>{g=!0}}})});function l(f,h,p,g,m){const b=a.value;if(!b)return;const w=h*hf,C=f.size,_=w/C;b.width=w,b.height=w;const S=b.getContext("2d");if(S){S.clearRect(0,0,b.width,b.height);for(let y=0;y=1?T:T*G,D=G<=1?T:T/G,L=$+(T-B)/2,X=E+(T-D)/2;S.drawImage(y,L,X,B,D)}}}function c(f,h=0){const p=[];return f.forEach((g,m)=>{let b=null;g.forEach((w,C)=>{if(!w&&b!==null){p.push(`M${b+h} ${m+h}h${C-b}v1H${b+h}z`),b=null;return}if(C===g.length-1){if(!w)return;b===null?p.push(`M${C+h},${m+h} h1v1H${C+h}z`):p.push(`M${b+h},${m+h} h${C+1-b}v1H${b+h}z`);return}w&&b===null&&(b=C)})}),p.join("")}function u(f,h,p){const g=f.getModules(),m=g.length,b=g;let w="";const C=``,_=``;let S="";if(p){const{iconSrc:y,iconSize:x}=p,P=Math.floor(h*.1),T=m/h,$=(x||P)*T,E=(x||P)*T,G=g.length/2-E/2,B=g.length/2-$/2;S+=``}return w+=C,w+=_,w+=S,{innerHtml:w,numCells:m}}const d=M(()=>u(s.value,e.size,e.iconSrc?{iconSrc:e.iconSrc,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null));return{canvasRef:a,mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,svgInfo:d}},render(){const{mergedClsPrefix:e,backgroundColor:t,padding:n,cssVars:o,themeClass:r,size:i,type:a}=this;return v("div",{class:[`${e}-qr-code`,r],style:Object.assign({padding:typeof n=="number"?`${n}px`:n,backgroundColor:t,width:`${i}px`,height:`${i}px`},o)},a==="canvas"?v("canvas",{ref:"canvasRef",style:{width:`${i}px`,height:`${i}px`}}):v("svg",{height:i,width:i,viewBox:`0 0 ${this.svgInfo.numCells} ${this.svgInfo.numCells}`,role:"img",innerHTML:this.svgInfo.innerHtml}))}}),sQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),v("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),v("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),v("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),v("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),v("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),lQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),v("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),v("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),cQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),v("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),v("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),v("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),v("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),v("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),uQ=v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},v("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),v("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),dQ=z("result",` color: var(--n-text-color); line-height: var(--n-line-height); font-size: var(--n-font-size); @@ -3612,7 +3612,7 @@ ${t} display: flex; justify-content: center; transition: color .3s var(--n-bezier); - `,[j("status-image",` + `,[U("status-image",` font-size: var(--n-icon-size); width: 1em; height: 1em; @@ -3622,18 +3622,18 @@ ${t} `)]),z("result-content",{marginTop:"24px"}),z("result-footer",` margin-top: 24px; text-align: center; - `),z("result-header",[j("title",` + `),z("result-header",[U("title",` margin-top: 16px; font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); text-align: center; color: var(--n-title-text-color); font-size: var(--n-title-font-size); - `),j("description",` + `),U("description",` margin-top: 4px; text-align: center; font-size: var(--n-font-size); - `)])]),oQ={403:()=>tQ,404:()=>JY,418:()=>eQ,500:()=>ZY,info:()=>v(Ur,null),success:()=>v(Ui,null),warning:()=>v(Vi,null),error:()=>v(ji,null)},rQ=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),iQ=xe({name:"Result",props:rQ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Result","-result",nQ,TG,e,t),r=I(()=>{const{size:a,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:c,lineHeight:u,titleTextColor:d,titleFontWeight:f,[Te("iconColor",s)]:h,[Te("fontSize",a)]:p,[Te("titleFontSize",a)]:g,[Te("iconSize",a)]:m}}=o.value;return{"--n-bezier":l,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":h||""}}),i=n?Pt("result",I(()=>{const{size:a,status:s}=e;let l="";return a&&(l+=a[0]),s&&(l+=s[0]),l}),r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:o,onRender:r}=this;return r==null||r(),v("div",{class:[`${o}-result`,this.themeClass],style:this.cssVars},v("div",{class:`${o}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||v(Wt,{clsPrefix:o},{default:()=>oQ[t]()})),v("div",{class:`${o}-result-header`},this.title?v("div",{class:`${o}-result-header__title`},this.title):null,this.description?v("div",{class:`${o}-result-header__description`},this.description):null),n.default&&v("div",{class:`${o}-result-content`},n),n.footer&&v("div",{class:`${o}-result-footer`},n.footer()))}}),aQ=Object.assign(Object.assign({},Le.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number}),sQ=xe({name:"Scrollbar",props:aQ,setup(){const e=U(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return v(Oo,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),lQ=sQ,cQ={name:"Skeleton",common:He,self(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}};function uQ(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}const dQ={name:"Skeleton",common:xt,self:uQ},fQ=W([z("skeleton",` + `)])]),fQ={403:()=>uQ,404:()=>sQ,418:()=>cQ,500:()=>lQ,info:()=>v(Wr,null),success:()=>v(Wi,null),warning:()=>v(qi,null),error:()=>v(Vi,null)},hQ=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),pQ=ye({name:"Result",props:hQ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Result","-result",dQ,FG,e,t),r=M(()=>{const{size:a,status:s}=e,{common:{cubicBezierEaseInOut:l},self:{textColor:c,lineHeight:u,titleTextColor:d,titleFontWeight:f,[Te("iconColor",s)]:h,[Te("fontSize",a)]:p,[Te("titleFontSize",a)]:g,[Te("iconSize",a)]:m}}=o.value;return{"--n-bezier":l,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":f,"--n-title-text-color":d,"--n-icon-color":h||""}}),i=n?Pt("result",M(()=>{const{size:a,status:s}=e;let l="";return a&&(l+=a[0]),s&&(l+=s[0]),l}),r,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:o,onRender:r}=this;return r==null||r(),v("div",{class:[`${o}-result`,this.themeClass],style:this.cssVars},v("div",{class:`${o}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||v(Wt,{clsPrefix:o},{default:()=>fQ[t]()})),v("div",{class:`${o}-result-header`},this.title?v("div",{class:`${o}-result-header__title`},this.title):null,this.description?v("div",{class:`${o}-result-header__description`},this.description):null),n.default&&v("div",{class:`${o}-result-content`},n),n.footer&&v("div",{class:`${o}-result-footer`},n.footer()))}}),mQ=Object.assign(Object.assign({},Le.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number}),gQ=ye({name:"Scrollbar",props:mQ,setup(){const e=j(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var o;(o=e.value)===null||o===void 0||o.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return v(Oo,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),vQ=gQ,bQ={name:"Skeleton",common:je,self(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}};function yQ(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}const xQ={name:"Skeleton",common:xt,self:yQ},CQ=q([z("skeleton",` height: 1em; width: 100%; transition: @@ -3642,7 +3642,7 @@ ${t} background-color .3s var(--n-bezier); animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); background-color: var(--n-color-start); - `),W("@keyframes skeleton-loading",` + `),q("@keyframes skeleton-loading",` 0% { background: var(--n-color-start); } @@ -3655,8 +3655,8 @@ ${t} 100% { background: var(--n-color-start); } - `)]),hQ=Object.assign(Object.assign({},Le.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),vl=xe({name:"Skeleton",inheritAttrs:!1,props:hQ,setup(e){R8();const{mergedClsPrefixRef:t}=st(e),n=Le("Skeleton","-skeleton",fQ,dQ,e,t);return{mergedClsPrefix:t,style:I(()=>{var o,r;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,s=i.self,{color:l,colorEnd:c,borderRadius:u}=s;let d;const{circle:f,sharp:h,round:p,width:g,height:m,size:b,text:w,animated:C}=e;b!==void 0&&(d=s[Te("height",b)]);const _=f?(o=g??m)!==null&&o!==void 0?o:d:g,S=(r=f?g??m:m)!==null&&r!==void 0?r:d;return{display:w?"inline-block":"",verticalAlign:w?"-0.125em":"",borderRadius:f?"50%":p?"4096px":h?"":u,width:typeof _=="number"?zn(_):_,height:typeof S=="number"?zn(S):S,animation:C?"":"none","--n-bezier":a,"--n-color-start":l,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:o}=this,r=v("div",Ln({class:`${n}-skeleton`,style:t},o));return e>1?v(rt,null,dw(e,null).map(i=>[r,` -`])):r}}),pQ=W([W("@keyframes spin-rotate",` + `)]),wQ=Object.assign(Object.assign({},Le.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),xl=ye({name:"Skeleton",inheritAttrs:!1,props:wQ,setup(e){L8();const{mergedClsPrefixRef:t}=st(e),n=Le("Skeleton","-skeleton",CQ,xQ,e,t);return{mergedClsPrefix:t,style:M(()=>{var o,r;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,s=i.self,{color:l,colorEnd:c,borderRadius:u}=s;let d;const{circle:f,sharp:h,round:p,width:g,height:m,size:b,text:w,animated:C}=e;b!==void 0&&(d=s[Te("height",b)]);const _=f?(o=g??m)!==null&&o!==void 0?o:d:g,S=(r=f?g??m:m)!==null&&r!==void 0?r:d;return{display:w?"inline-block":"",verticalAlign:w?"-0.125em":"",borderRadius:f?"50%":p?"4096px":h?"":u,width:typeof _=="number"?zn(_):_,height:typeof S=="number"?zn(S):S,animation:C?"":"none","--n-bezier":a,"--n-color-start":l,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:o}=this,r=v("div",Ln({class:`${n}-skeleton`,style:t},o));return e>1?v(rt,null,bw(e,null).map(i=>[r,` +`])):r}}),_Q=q([q("@keyframes spin-rotate",` from { transform: rotate(0); } @@ -3670,7 +3670,7 @@ ${t} top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); - `,[dl()])]),z("spin-body",` + `,[pl()])]),z("spin-body",` display: inline-flex; align-items: center; justify-content: center; @@ -3681,7 +3681,7 @@ ${t} width: var(--n-size); font-size: var(--n-size); color: var(--n-color); - `,[J("rotate",` + `,[Z("rotate",` animation: spin-rotate 2s linear infinite; `)]),z("spin-description",` display: inline-block; @@ -3693,12 +3693,12 @@ ${t} opacity: 1; transition: opacity .3s var(--n-bezier); pointer-events: all; - `,[J("spinning",` + `,[Z("spinning",` user-select: none; -webkit-user-select: none; pointer-events: none; opacity: var(--n-opacity-spinning); - `)])]),mQ={small:20,medium:18,large:16},gQ=Object.assign(Object.assign({},Le.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),vQ=xe({name:"Spin",props:gQ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Spin","-spin",pQ,MG,e,t),r=I(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:c},self:u}=o.value,{opacitySpinning:d,color:f,textColor:h}=u,p=typeof l=="number"?zn(l):u[Te("size",l)];return{"--n-bezier":c,"--n-opacity-spinning":d,"--n-size":p,"--n-color":f,"--n-text-color":h}}),i=n?Pt("spin",I(()=>{const{size:l}=e;return typeof l=="number"?String(l):l[0]}),r,e):void 0,a=_u(e,["spinning","show"]),s=U(!1);return Yt(l=>{let c;if(a.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{s.value=!0},u),l(()=>{clearTimeout(c)});return}}s.value=a.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:I(()=>{const{strokeWidth:l}=e;if(l!==void 0)return l;const{size:c}=e;return mQ[typeof c=="number"?"medium":c]}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:o,description:r}=this,i=n.icon&&this.rotate,a=(r||n.description)&&v("div",{class:`${o}-spin-description`},r||((e=n.description)===null||e===void 0?void 0:e.call(n))),s=n.icon?v("div",{class:[`${o}-spin-body`,this.themeClass]},v("div",{class:[`${o}-spin`,i&&`${o}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):v("div",{class:[`${o}-spin-body`,this.themeClass]},v(ti,{clsPrefix:o,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?v("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},v("div",{class:[`${o}-spin-content`,this.active&&`${o}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),v(fn,{name:"fade-in-transition"},{default:()=>this.active?s:null})):s}}),bQ={name:"Split",common:He},yQ=bQ,xQ=z("switch",` + `)])]),SQ={small:20,medium:18,large:16},kQ=Object.assign(Object.assign({},Le.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),PQ=ye({name:"Spin",props:kQ,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Spin","-spin",_Q,UG,e,t),r=M(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:c},self:u}=o.value,{opacitySpinning:d,color:f,textColor:h}=u,p=typeof l=="number"?zn(l):u[Te("size",l)];return{"--n-bezier":c,"--n-opacity-spinning":d,"--n-size":p,"--n-color":f,"--n-text-color":h}}),i=n?Pt("spin",M(()=>{const{size:l}=e;return typeof l=="number"?String(l):l[0]}),r,e):void 0,a=Au(e,["spinning","show"]),s=j(!1);return Yt(l=>{let c;if(a.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{s.value=!0},u),l(()=>{clearTimeout(c)});return}}s.value=a.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:M(()=>{const{strokeWidth:l}=e;if(l!==void 0)return l;const{size:c}=e;return SQ[typeof c=="number"?"medium":c]}),cssVars:n?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:o,description:r}=this,i=n.icon&&this.rotate,a=(r||n.description)&&v("div",{class:`${o}-spin-description`},r||((e=n.description)===null||e===void 0?void 0:e.call(n))),s=n.icon?v("div",{class:[`${o}-spin-body`,this.themeClass]},v("div",{class:[`${o}-spin`,i&&`${o}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):v("div",{class:[`${o}-spin-body`,this.themeClass]},v(oi,{clsPrefix:o,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?v("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},v("div",{class:[`${o}-spin-content`,this.active&&`${o}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),v(fn,{name:"fade-in-transition"},{default:()=>this.active?s:null})):s}}),TQ={name:"Split",common:je},AQ=TQ,RQ=z("switch",` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; @@ -3708,17 +3708,17 @@ ${t} outline: none; justify-content: center; align-items: center; -`,[j("children-placeholder",` +`,[U("children-placeholder",` height: var(--n-rail-height); display: flex; flex-direction: column; overflow: hidden; pointer-events: none; visibility: hidden; - `),j("rail-placeholder",` + `),U("rail-placeholder",` display: flex; flex-wrap: none; - `),j("button-placeholder",` + `),U("button-placeholder",` width: calc(1.75 * var(--n-rail-height)); height: var(--n-rail-height); `),z("base-loading",` @@ -3729,7 +3729,7 @@ ${t} font-size: calc(var(--n-button-width) - 4px); color: var(--n-loading-color); transition: color .3s var(--n-bezier); - `,[Kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),j("checked, unchecked",` + `,[Kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),U("checked, unchecked",` transition: color .3s var(--n-bezier); color: var(--n-text-color); box-sizing: border-box; @@ -3740,16 +3740,16 @@ ${t} display: flex; align-items: center; line-height: 1; - `),j("checked",` + `),U("checked",` right: 0; padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),j("unchecked",` + `),U("unchecked",` left: 0; justify-content: flex-end; padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),W("&:focus",[j("rail",` + `),q("&:focus",[U("rail",` box-shadow: var(--n-box-shadow-focus); - `)]),J("round",[j("rail","border-radius: calc(var(--n-rail-height) / 2);",[j("button","border-radius: calc(var(--n-button-height) / 2);")])]),Et("disabled",[Et("icon",[J("rubber-band",[J("pressed",[j("rail",[j("button","max-width: var(--n-button-width-pressed);")])]),j("rail",[W("&:active",[j("button","max-width: var(--n-button-width-pressed);")])]),J("active",[J("pressed",[j("rail",[j("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),j("rail",[W("&:active",[j("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),J("active",[j("rail",[j("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),j("rail",` + `)]),Z("round",[U("rail","border-radius: calc(var(--n-rail-height) / 2);",[U("button","border-radius: calc(var(--n-button-height) / 2);")])]),At("disabled",[At("icon",[Z("rubber-band",[Z("pressed",[U("rail",[U("button","max-width: var(--n-button-width-pressed);")])]),U("rail",[q("&:active",[U("button","max-width: var(--n-button-width-pressed);")])]),Z("active",[Z("pressed",[U("rail",[U("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),U("rail",[q("&:active",[U("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),Z("active",[U("rail",[U("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),U("rail",` overflow: hidden; height: var(--n-rail-height); min-width: var(--n-rail-width); @@ -3761,7 +3761,7 @@ ${t} background .3s var(--n-bezier), box-shadow .3s var(--n-bezier); background-color: var(--n-rail-color); - `,[j("button-icon",` + `,[U("button-icon",` color: var(--n-icon-color); transition: color .3s var(--n-bezier); font-size: calc(var(--n-button-height) - 4px); @@ -3774,7 +3774,7 @@ ${t} justify-content: center; align-items: center; line-height: 1; - `,[Kn()]),j("button",` + `,[Kn()]),U("button",` align-items: center; top: var(--n-offset); left: var(--n-offset); @@ -3794,15 +3794,15 @@ ${t} opacity .3s var(--n-bezier), max-width .3s var(--n-bezier), box-shadow .3s var(--n-bezier); - `)]),J("active",[j("rail","background-color: var(--n-rail-color-active);")]),J("loading",[j("rail",` + `)]),Z("active",[U("rail","background-color: var(--n-rail-color-active);")]),Z("loading",[U("rail",` cursor: wait; - `)]),J("disabled",[j("rail",` + `)]),Z("disabled",[U("rail",` cursor: not-allowed; opacity: .5; - `)])]),CQ=Object.assign(Object.assign({},Le.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let us;const wQ=xe({name:"Switch",props:CQ,setup(e){us===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?us=CSS.supports("width","max(1px)"):us=!1:us=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=st(e),o=Le("Switch","-switch",xQ,GG,e,t),r=mr(e),{mergedSizeRef:i,mergedDisabledRef:a}=r,s=U(e.defaultValue),l=Ue(e,"value"),c=rn(l,s),u=I(()=>c.value===e.checkedValue),d=U(!1),f=U(!1),h=I(()=>{const{railStyle:P}=e;if(P)return P({focused:f.value,checked:u.value})});function p(P){const{"onUpdate:value":k,onChange:T,onUpdateValue:R}=e,{nTriggerFormInput:E,nTriggerFormChange:q}=r;k&&Re(k,P),R&&Re(R,P),T&&Re(T,P),s.value=P,E(),q()}function g(){const{nTriggerFormFocus:P}=r;P()}function m(){const{nTriggerFormBlur:P}=r;P()}function b(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function w(){f.value=!0,g()}function C(){f.value=!1,m(),d.value=!1}function _(P){e.loading||a.value||P.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),d.value=!1)}function S(P){e.loading||a.value||P.key===" "&&(P.preventDefault(),d.value=!0)}const y=I(()=>{const{value:P}=i,{self:{opacityDisabled:k,railColor:T,railColorActive:R,buttonBoxShadow:E,buttonColor:q,boxShadowFocus:D,loadingColor:B,textColor:M,iconColor:K,[Te("buttonHeight",P)]:V,[Te("buttonWidth",P)]:ae,[Te("buttonWidthPressed",P)]:pe,[Te("railHeight",P)]:Z,[Te("railWidth",P)]:N,[Te("railBorderRadius",P)]:O,[Te("buttonBorderRadius",P)]:ee},common:{cubicBezierEaseInOut:G}}=o.value;let ne,X,ce;return us?(ne=`calc((${Z} - ${V}) / 2)`,X=`max(${Z}, ${V})`,ce=`max(${N}, calc(${N} + ${V} - ${Z}))`):(ne=zn((bn(Z)-bn(V))/2),X=zn(Math.max(bn(Z),bn(V))),ce=bn(Z)>bn(V)?N:zn(bn(N)+bn(V)-bn(Z))),{"--n-bezier":G,"--n-button-border-radius":ee,"--n-button-box-shadow":E,"--n-button-color":q,"--n-button-width":ae,"--n-button-width-pressed":pe,"--n-button-height":V,"--n-height":X,"--n-offset":ne,"--n-opacity-disabled":k,"--n-rail-border-radius":O,"--n-rail-color":T,"--n-rail-color-active":R,"--n-rail-height":Z,"--n-rail-width":N,"--n-width":ce,"--n-box-shadow-focus":D,"--n-loading-color":B,"--n-text-color":M,"--n-icon-color":K}}),x=n?Pt("switch",I(()=>i.value[0]),y,e):void 0;return{handleClick:b,handleBlur:C,handleFocus:w,handleKeyup:_,handleKeydown:S,mergedRailStyle:h,pressed:d,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:a,cssVars:n?void 0:y,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:o,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:s,icon:l,"checked-icon":c,"unchecked-icon":u}=i,d=!(pa(l)&&pa(c)&&pa(u));return v("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},v("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:o},At(a,f=>At(s,h=>f||h?v("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),f),v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),h)):null)),v("div",{class:`${e}-switch__button`},At(l,f=>At(c,h=>At(u,p=>v(Wi,null,{default:()=>this.loading?v(ti,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(h||f)?v("div",{class:`${e}-switch__button-icon`,key:h?"checked-icon":"icon"},h||f):!this.checked&&(p||f)?v("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||f):null})))),At(a,f=>f&&v("div",{key:"checked",class:`${e}-switch__checked`},f)),At(s,f=>f&&v("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}}),_Q=xe({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}),SQ={message:xY,notification:zY,loadingBar:nY,dialog:Iq,modal:kY};function kQ({providersAndProps:e,configProviderProps:t}){let n=Cx(r);const o={app:n};function r(){return v(PS,Se(t),{default:()=>e.map(({type:s,Provider:l,props:c})=>v(l,Se(c),{default:()=>v(_Q,{onSetup:()=>o[s]=SQ[s]()})}))})}let i;return pr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var s;if(n===null||i===null){cr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(s=i.parentNode)===null||s===void 0||s.removeChild(i),i=null,n=null}},o)}function PQ(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:o,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const s=[];return e.forEach(c=>{switch(c){case"message":s.push({type:c,Provider:yY,props:n});break;case"notification":s.push({type:c,Provider:MY,props:r});break;case"dialog":s.push({type:c,Provider:$q,props:o});break;case"loadingBar":s.push({type:c,Provider:tY,props:i});break;case"modal":s.push({type:c,Provider:SY,props:a})}}),kQ({providersAndProps:s,configProviderProps:t})}function TQ(){const e=Ve(Ao,null);return I(()=>{if(e===null)return xt;const{mergedThemeRef:{value:t},mergedThemeOverridesRef:{value:n}}=e,o=(t==null?void 0:t.common)||xt;return n!=null&&n.common?Object.assign({},o,n.common):o})}const EQ=()=>({}),RQ={name:"Equation",common:He,self:EQ},AQ=RQ,$Q={name:"FloatButtonGroup",common:He,self(e){const{popoverColor:t,dividerColor:n,borderRadius:o}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},IQ=$Q,Y2={name:"dark",common:He,Alert:aj,Anchor:vj,AutoComplete:Oj,Avatar:dS,AvatarGroup:Lj,BackTop:Nj,Badge:Xj,Breadcrumb:eU,Button:Vn,ButtonGroup:DK,Calendar:gU,Card:yS,Carousel:RU,Cascader:ZU,Checkbox:Ka,Code:kS,Collapse:cV,CollapseTransition:fV,ColorPicker:yU,DataTable:YV,DatePicker:uq,Descriptions:pq,Dialog:d2,Divider:Fq,Drawer:jq,Dropdown:km,DynamicInput:lK,DynamicTags:gK,Element:bK,Empty:Ki,Ellipsis:DS,Equation:AQ,Flex:CK,Form:kK,GradientText:BK,Icon:SW,IconWrapper:$X,Image:IX,Input:go,InputNumber:HK,LegacyTransfer:XX,Layout:qK,List:JK,LoadingBar:eG,Log:iG,Menu:fG,Mention:sG,Message:zK,Modal:Sq,Notification:AK,PageHeader:mG,Pagination:MS,Popconfirm:yG,Popover:Xi,Popselect:TS,Progress:R2,QrCode:WY,Radio:NS,Rate:SG,Result:RG,Row:PX,Scrollbar:Un,Select:$S,Skeleton:cQ,Slider:IG,Space:w2,Spin:FG,Statistic:BG,Steps:UG,Switch:WG,Table:JG,Tabs:nX,Tag:tS,Thing:iX,TimePicker:l2,Timeline:lX,Tooltip:Mu,Transfer:dX,Tree:O2,TreeSelect:mX,Typography:yX,Upload:wX,Watermark:SX,Split:yQ,FloatButton:EX,FloatButtonGroup:IQ},OQ={"aria-hidden":"true",width:"1em",height:"1em"},MQ=["xlink:href","fill"],zQ=xe({__name:"SvgIcon",props:{icon:{type:String,required:!0},prefix:{type:String,default:"icon-custom"},color:{type:String,default:"currentColor"}},setup(e){const t=e,n=I(()=>`#${t.prefix}-${t.icon}`);return(o,r)=>(ge(),ze("svg",OQ,[Y("use",{"xlink:href":n.value,fill:e.color},null,8,MQ)]))}}),tl=(e,t={size:12})=>()=>v(Xo,t,()=>v(AI,{icon:e})),Q2=(e,t={size:12})=>()=>v(Xo,t,()=>v(zQ,{icon:e}));function FQ(){var n,o;const e={default:DQ,blue:LQ,black:BQ,darkblue:NQ},t=((o=(n=window.settings)==null?void 0:n.theme)==null?void 0:o.color)||"default";return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e.default}const DQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#316C72FF",primaryColorHover:"#316C72E3",primaryColorPressed:"#2B4C59FF",primaryColorSuppl:"#316C72E3",infoColor:"#316C72FF",infoColorHover:"#316C72E3",infoColorPressed:"#2B4C59FF",infoColorSuppl:"#316C72E3",successColor:"#18A058FF",successColorHover:"#36AD6AFF",successColorPressed:"#0C7A43FF",successColorSuppl:"#36AD6AFF",warningColor:"#F0A020FF",warningColorHover:"#FCB040FF",warningColorPressed:"#C97C10FF",warningColorSuppl:"#FCB040FF",errorColor:"#D03050FF",errorColorHover:"#DE576DFF",errorColorPressed:"#AB1F3FFF",errorColorSuppl:"#DE576DFF"}}},LQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#0665d0",primaryColorHover:"#2a84de",primaryColorPressed:"#004085",primaryColorSuppl:"#0056b3",infoColor:"#0665d0",infoColorHover:"#2a84de",infoColorPressed:"#0c5460",infoColorSuppl:"#004085",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},BQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#343a40",primaryColorHover:"#23272b",primaryColorPressed:"#1d2124",primaryColorSuppl:"#23272b",infoColor:"#343a40",infoColorHover:"#23272b",infoColorPressed:"#1d2124",infoColorSuppl:"#23272b",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},NQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#004175",primaryColorHover:"#002c4c",primaryColorPressed:"#001f35",primaryColorSuppl:"#002c4c",infoColor:"#004175",infoColorHover:"#002c4c",infoColorPressed:"#001f35",infoColorSuppl:"#002c4c",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},{header:HQ,tags:F7e,naiveThemeOverrides:Hh}=FQ();function Nu(e){return Xh()?(py(e),!0):!1}function Po(e){return typeof e=="function"?e():Se(e)}const J2=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jQ=e=>e!=null,UQ=Object.prototype.toString,VQ=e=>UQ.call(e)==="[object Object]",Z2=()=>{};function WQ(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const ek=e=>e();function qQ(e=ek){const t=U(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:uo(t),pause:n,resume:o,eventFilter:r}}function KQ(e){return e||no()}function GQ(...e){if(e.length!==1)return Ue(...e);const t=e[0];return typeof t=="function"?uo(G3(()=>({get:t,set:Z2}))):U(t)}function XQ(e,t,n={}){const{eventFilter:o=ek,...r}=n;return ft(e,WQ(o,t),r)}function YQ(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:i,pause:a,resume:s,isActive:l}=qQ(o);return{stop:XQ(e,t,{...r,eventFilter:i}),pause:a,resume:s,isActive:l}}function tk(e,t=!0,n){KQ()?jt(e,n):t?e():Ht(e)}function QQ(e=!1,t={}){const{truthyValue:n=!0,falsyValue:o=!1}=t,r=cn(e),i=U(e);function a(s){if(arguments.length)return i.value=s,i.value;{const l=Po(n);return i.value=i.value===l?Po(o):l,i.value}}return r?a:[i,a]}function $a(e){var t;const n=Po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vr=J2?window:void 0,JQ=J2?window.document:void 0;function Bc(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=Vr):[t,n,o,r]=e,!t)return Z2;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},s=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),l=ft(()=>[$a(t),Po(r)],([u,d])=>{if(a(),!u)return;const f=VQ(d)?{...d}:d;i.push(...n.flatMap(h=>o.map(p=>s(u,h,p,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Nu(c),c}function ZQ(){const e=U(!1),t=no();return t&&jt(()=>{e.value=!0},t),e}function Lm(e){const t=ZQ();return I(()=>(t.value,!!e()))}function eJ(e,t,n={}){const{window:o=Vr,...r}=n;let i;const a=Lm(()=>o&&"MutationObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},l=I(()=>{const f=Po(e),h=(Array.isArray(f)?f:[f]).map($a).filter(jQ);return new Set(h)}),c=ft(()=>l.value,f=>{s(),a.value&&f.size&&(i=new MutationObserver(t),f.forEach(h=>i.observe(h,r)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),d=()=>{s(),c()};return Nu(d),{isSupported:a,stop:d,takeRecords:u}}function tJ(e,t={}){const{window:n=Vr}=t,o=Lm(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=U(!1),a=c=>{i.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a))},l=Yt(()=>{o.value&&(s(),r=n.matchMedia(Po(e)),"addEventListener"in r?r.addEventListener("change",a):r.addListener(a),i.value=r.matches)});return Nu(()=>{l(),s(),r=void 0}),i}const Gl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xl="__vueuse_ssr_handlers__",nJ=oJ();function oJ(){return Xl in Gl||(Gl[Xl]=Gl[Xl]||{}),Gl[Xl]}function nk(e,t){return nJ[e]||t}function rJ(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const iJ={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},v1="vueuse-storage";function aJ(e,t,n,o={}){var r;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=Vr,eventFilter:f,onError:h=T=>{console.error(T)},initOnMounted:p}=o,g=(u?Ia:U)(typeof t=="function"?t():t);if(!n)try{n=nk("getDefaultStorage",()=>{var T;return(T=Vr)==null?void 0:T.localStorage})()}catch(T){h(T)}if(!n)return g;const m=Po(t),b=rJ(m),w=(r=o.serializer)!=null?r:iJ[b],{pause:C,resume:_}=YQ(g,()=>y(g.value),{flush:i,deep:a,eventFilter:f});d&&s&&tk(()=>{Bc(d,"storage",P),Bc(d,v1,k),p&&P()}),p||P();function S(T,R){d&&d.dispatchEvent(new CustomEvent(v1,{detail:{key:e,oldValue:T,newValue:R,storageArea:n}}))}function y(T){try{const R=n.getItem(e);if(T==null)S(R,null),n.removeItem(e);else{const E=w.write(T);R!==E&&(n.setItem(e,E),S(R,E))}}catch(R){h(R)}}function x(T){const R=T?T.newValue:n.getItem(e);if(R==null)return l&&m!=null&&n.setItem(e,w.write(m)),m;if(!T&&c){const E=w.read(R);return typeof c=="function"?c(E,m):b==="object"&&!Array.isArray(E)?{...m,...E}:E}else return typeof R!="string"?R:w.read(R)}function P(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){g.value=m;return}if(!(T&&T.key!==e)){C();try{(T==null?void 0:T.newValue)!==w.write(g.value)&&(g.value=x(T))}catch(R){h(R)}finally{T?Ht(_):_()}}}}function k(T){P(T.detail)}return g}function ok(e){return tJ("(prefers-color-scheme: dark)",e)}function sJ(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=Vr,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=ok({window:r}),h=I(()=>f.value?"dark":"light"),p=l||(a==null?GQ(o):aJ(a,o,i,{window:r,listenToStorageChanges:s})),g=I(()=>p.value==="auto"?h.value:p.value),m=nk("updateHTMLAttrs",(_,S,y)=>{const x=typeof _=="string"?r==null?void 0:r.document.querySelector(_):$a(_);if(!x)return;let P;if(u){P=r.document.createElement("style");const k="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";P.appendChild(document.createTextNode(k)),r.document.head.appendChild(P)}if(S==="class"){const k=y.split(/\s/g);Object.values(d).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{k.includes(T)?x.classList.add(T):x.classList.remove(T)})}else x.setAttribute(S,y);u&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function b(_){var S;m(t,n,(S=d[_])!=null?S:_)}function w(_){e.onChanged?e.onChanged(_,b):b(_)}ft(g,w,{flush:"post",immediate:!0}),tk(()=>w(g.value));const C=I({get(){return c?p.value:g.value},set(_){p.value=_}});try{return Object.assign(C,{store:p,system:h,state:g})}catch{return C}}function lJ(e,t,n={}){const{window:o=Vr,initialValue:r="",observe:i=!1}=n,a=U(r),s=I(()=>{var c;return $a(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function l(){var c;const u=Po(e),d=Po(s);if(d&&o){const f=(c=o.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();a.value=f||r}}return i&&eJ(s,l,{attributeFilter:["style","class"],window:o}),ft([s,()=>Po(e)],l,{immediate:!0}),ft(a,c=>{var u;(u=s.value)!=null&&u.style&&s.value.style.setProperty(Po(e),c)}),a}function rk(e={}){const{valueDark:t="dark",valueLight:n="",window:o=Vr}=e,r=sJ({...e,onChanged:(s,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",l,s):l(s)},modes:{dark:t,light:n}}),i=I(()=>r.system?r.system.value:ok({window:o}).value?"dark":"light");return I({get(){return r.value==="dark"},set(s){const l=s?"dark":"light";i.value===l?r.value="auto":r.value=l}})}const b1=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function cJ(e,t={}){const{document:n=JQ,autoExit:o=!1}=t,r=I(()=>{var b;return(b=$a(e))!=null?b:n==null?void 0:n.querySelector("html")}),i=U(!1),a=I(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),s=I(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),l=I(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||r.value&&b in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),u=Lm(()=>r.value&&n&&a.value!==void 0&&s.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const b=r.value;if((b==null?void 0:b[l.value])!=null)return!!b[l.value]}}return!1};async function h(){if(!(!u.value||!i.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const b=r.value;(b==null?void 0:b[s.value])!=null&&await b[s.value]()}i.value=!1}}async function p(){if(!u.value||i.value)return;f()&&await h();const b=r.value;a.value&&(b==null?void 0:b[a.value])!=null&&(await b[a.value](),i.value=!0)}async function g(){await(i.value?h():p())}const m=()=>{const b=f();(!b||b&&d())&&(i.value=b)};return Bc(n,b1,m,!1),Bc(()=>$a(r),b1,m,!1),o&&Nu(h),{isSupported:u,isFullscreen:i,enter:p,exit:h,toggle:g}}const Tn=au("app",{state(){var e,t,n,o,r,i,a;return{collapsed:window.innerWidth<768,isDark:rk(),title:(e=window.settings)==null?void 0:e.title,assets_path:(t=window.settings)==null?void 0:t.assets_path,theme:(n=window.settings)==null?void 0:n.theme,version:(o=window.settings)==null?void 0:o.version,background_url:(r=window.settings)==null?void 0:r.background_url,description:(i=window.settings)==null?void 0:i.description,logo:(a=window.settings)==null?void 0:a.logo,lang:vu().value||"zh-CN",appConfig:{}}},actions:{async getConfig(){const{data:e}=await wJ();e&&(this.appConfig=e)},switchCollapsed(){this.collapsed=!this.collapsed},setCollapsed(e){this.collapsed=e},setDark(e){this.isDark=e},toggleDark(){this.isDark=!this.isDark},async switchLang(e){qC(e),location.reload()}}});function uJ(e){let t=null;class n{removeMessage(r=t,i=2e3){setTimeout(()=>{r&&(r.destroy(),r=null)},i)}showMessage(r,i,a={}){if(t&&t.type==="loading")t.type=r,t.content=i,r!=="loading"&&this.removeMessage(t,a.duration);else{const s=e[r](i,a);r==="loading"&&(t=s)}}loading(r){this.showMessage("loading",r,{duration:0})}success(r,i={}){this.showMessage("success",r,i)}error(r,i={}){this.showMessage("error",r,i)}info(r,i={}){this.showMessage("info",r,i)}warning(r,i={}){this.showMessage("warning",r,i)}}return new n}function dJ(e){return e.confirm=function(t={}){const n=!P$(t.title);return new Promise(o=>{e[t.type||"warning"]({showIcon:n,positiveText:mn.global.t("确定"),negativeText:mn.global.t("取消"),onPositiveClick:()=>{t.confirm&&t.confirm(),o(!0)},onNegativeClick:()=>{t.cancel&&t.cancel(),o(!1)},onMaskClick:()=>{t.cancel&&t.cancel(),o(!1)},...t})})},e}function fJ(){const e=Tn(),t=I(()=>({theme:e.isDark?Y2:void 0,themeOverrides:Hh})),{message:n,dialog:o,notification:r,loadingBar:i}=PQ(["message","dialog","notification","loadingBar"],{configProviderProps:t});window.$loadingBar=i,window.$notification=r,window.$message=uJ(n),window.$dialog=dJ(o)}const hJ="access_token",pJ=6*60*60;function cf(e){il.set(hJ,e,pJ)}function mJ(e){if(e.method==="get"&&(e.params={...e.params,t:new Date().getTime()}),lA(e))return e;const t=hC();return t.value?(e.headers.Authorization=e.headers.Authorization||t.value,e):(Sp(),Promise.reject({code:"-1",message:"未登录"}))}function gJ(e){return Promise.reject(e)}function vJ(e){return Promise.resolve((e==null?void 0:e.data)||{code:-1,message:"未知错误"})}function bJ(e){var i;const t=((i=e.response)==null?void 0:i.data)||{code:-1,message:"未知错误"};let n=t.message;const{code:o,errors:r}=t;switch(o){case 401:n=n||"登录已过期";break;case 403:n=n||"没有权限";break;case 404:n=n||"资源或接口不存在";break;default:n=n||"未知异常"}return window.$message.error(n),Promise.resolve({code:o,message:n,errors:r})}function yJ(e={}){const t={headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Language":vu().value||"zh-CN"},timeout:12e3},n=aA.create({...t,...e});return n.interceptors.request.use(mJ,gJ),n.interceptors.response.use(vJ,bJ),n}const _t=yJ({baseURL:xJ()});function xJ(){let e=CJ(window.routerBase||"/")+"api/v1";return/^https?:\/\//.test(e)||(e=window.location.origin+e),e}function CJ(e){return e.endsWith("/")?e:"/"+e}function wJ(){return _t.get("/user/comm/config")}function _J(){return _t.get("/user/info")}function SJ(){return _t.get("/user/getStat")}function kJ(){return _t.get("/user/getSubscribe")}function PJ(){return _t.get("/user/notice/fetch")}function TJ(){return _t.get("/user/plan/fetch")}function ik(){return _t.get("/user/server/fetch")}function Bm(){return _t.get("/user/order/fetch")}function EJ(e){return _t.get("/user/order/detail?trade_no="+e)}function Hu(e){return _t.post("/user/order/cancel",{trade_no:e})}function RJ(e){return _t.get("/user/order/check?trade_no="+e)}function AJ(){return _t.get("/user/invite/fetch")}function $J(e=1,t=10){return _t.get(`/user/invite/details?current=${e}&page_size=${t}`)}function IJ(){return _t.get("/user/invite/save")}function OJ(e){return _t.post("/user/transfer",{transfer_amount:e})}function MJ(e){return _t.post("/user/ticket/withdraw",e)}function y1(e){return _t.post("/user/update",e)}function zJ(e,t){return _t.post("/user/changePassword",{old_password:e,new_password:t})}function FJ(){return _t.get("/user/resetSecurity")}function DJ(){return _t.get("/user/stat/getTrafficLog")}function LJ(){return _t.get("/user/order/getPaymentMethod")}function ak(e,t,n){return _t.post("/user/order/save",{plan_id:e,period:t,coupon_code:n})}function BJ(e,t){return _t.post("/user/order/checkout",{trade_no:e,method:t})}function NJ(e){return _t.get("/user/plan/fetch?id="+e)}function HJ(e,t){return _t.post("/user/coupon/check",{code:e,plan_id:t})}function jJ(){return _t.get("/user/ticket/fetch")}function UJ(e,t,n){return _t.post("/user/ticket/save",{subject:e,level:t,message:n})}function VJ(e){return _t.post("/user/ticket/close",{id:e})}function WJ(e){return _t.get("/user/ticket/fetch?id="+e)}function qJ(e,t){return _t.post("/user/ticket/reply",{id:e,message:t})}function KJ(e="",t="zh-CN"){return _t.get(`/user/knowledge/fetch?keyword=${e}&language=${t}`)}function GJ(e,t="zh-CN"){return _t.get(`/user/knowledge/fetch?id=${e}&language=${t}`)}function XJ(){return _t.get("user/telegram/getBotInfo")}const Ji=au("user",{state:()=>({userInfo:{}}),getters:{userUUID(){var e;return(e=this.userInfo)==null?void 0:e.uuid},email(){var e;return(e=this.userInfo)==null?void 0:e.email},avatar(){return this.userInfo.avatar_url??""},role(){return[]},remind_expire(){return this.userInfo.remind_expire},remind_traffic(){return this.userInfo.remind_traffic},balance(){return this.userInfo.balance},plan_id(){return this.userInfo.plan_id},expired_at(){return this.userInfo.expired_at},plan(){return this.userInfo.plan},subscribe(){return this.userInfo.subscribe}},actions:{async getUserInfo(){try{const e=await _J(),{data:t}=e;return t?(this.userInfo=t,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async getUserSubscribe(){try{const e=await kJ(),{data:t}=e;return t?(this.userInfo.subscribe=t,this.userInfo.plan=t.plan,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async logout(){pC(),this.userInfo={},Sp()},setUserInfo(e){this.userInfo={...this.userInfo,...e}}}});function YJ(e,t){var o,r;if(!((o=e.meta)!=null&&o.requireAuth))return!0;const n=((r=e.meta)==null?void 0:r.role)||[];return!t.length||!n.length?!1:t.some(i=>n.includes(i))}function sk(e,t){const n=[];return e.forEach(o=>{if(YJ(o,t)){const r={...o,children:[]};o.children&&o.children.length?r.children=sk(o.children,t):Reflect.deleteProperty(r,"children"),n.push(r)}}),n}const lk=au("permission",{state(){return{accessRoutes:[]}},getters:{routes(){return Mx.concat(JSON.parse(JSON.stringify(this.accessRoutes)))},menus(){return this.routes.filter(e=>{var t;return e.name&&!((t=e.meta)!=null&&t.isHidden)})}},actions:{generateRoutes(e){const t=sk(zx,e);return this.accessRoutes=t,t}}}),QJ=Cc.get("activeTag"),JJ=Cc.get("tags"),ZJ=["/404","/login"],eZ=au({id:"tag",state:()=>{const e=U(JJ.value),t=U(QJ.value),n=U(!1);return{tags:e,activeTag:t,reloading:n}},getters:{activeIndex:e=>()=>e.tags.findIndex(t=>t.path===e.activeTag)},actions:{setActiveTag(e){this.activeTag=e,Cc.set("activeTag",e)},setTags(e){this.tags=e,Cc.set("tags",e)},addTag(e={}){if(ZJ.includes(e.path))return;let t=this.tags.find(n=>n.path===e.path);t?t=e:this.setTags([...this.tags,e]),this.setActiveTag(e.path)},async reloadTag(e,t){let n=this.tags.find(o=>o.path===e);n?t&&(n.keepAlive=!1):(n={path:e,keepAlive:!1},this.tags.push(n)),window.$loadingBar.start(),this.reloading=!0,await Ht(),this.reloading=!1,n.keepAlive=t,setTimeout(()=>{document.documentElement.scrollTo({left:0,top:0}),window.$loadingBar.finish()},100)},removeTag(e){this.setTags(this.tags.filter(t=>t.path!==e)),e===this.activeTag&&Gt.push(this.tags[this.tags.length-1].path)},removeOther(e){e||(e=this.activeTag),e||this.setTags(this.tags.filter(t=>t.path===e)),e!==this.activeTag&&Gt.push(this.tags[this.tags.length-1].path)},removeLeft(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r>=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Gt.push(n[n.length-1].path)},removeRight(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r<=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Gt.push(n[n.length-1].path)},resetTags(){this.setTags([]),this.setActiveTag("")}}});function tZ(e){e.use(_E())}const nZ=["/login","/register","/forgetpassword"];function oZ(e){const t=Ji(),n=lk();e.beforeEach(async(o,r,i)=>{var s;hC().value?o.path==="/login"?i({path:((s=o.query.redirect)==null?void 0:s.toString())??"/dashboard"}):t.userUUID?i():(await Promise.all([Tn().getConfig(),t.getUserInfo().catch(c=>{pC(),Sp(),window.$message.error(c.message||"获取用户信息失败!")})]),n.generateRoutes(t.role).forEach(c=>{c.name&&!e.hasRoute(c.name)&&e.addRoute(c)}),e.addRoute(yE),i({...o,replace:!0})):nZ.includes(o.path)?i():i({path:"/login"})})}function rZ(e){xE(e),oZ(e),CE(e)}const Gt=j4({history:g4("/"),routes:Mx,scrollBehavior:()=>({left:0,top:0})});function iZ(e){e.use(Gt),rZ(Gt)}const aZ=xe({__name:"AppProvider",setup(e){const t=Tn(),n={"zh-CN":[AL,O0],"en-US":[F_,L_],"fa-IR":[HL,_N],"ko-KR":[DL,z7],"vi-VN":[BL,CN],"zh-TW":[IL,O0],"ja-JP":[zL,Q9]};function o(){const r=Hh.common;for(const i in r)lJ(`--${wL(i)}`,document.documentElement).value=r[i]||"",i==="primaryColor"&&window.localStorage.setItem("__THEME_COLOR__",r[i]||"")}return o(),(r,i)=>{const a=PS;return ge(),We(a,{"wh-full":"",locale:n[Se(t).lang][0],"date-locale":n[Se(t).lang][1],theme:Se(t).isDark?Se(Y2):void 0,"theme-overrides":Se(Hh)},{default:me(()=>[Jc(r.$slots,"default")]),_:3},8,["locale","date-locale","theme","theme-overrides"])}}}),sZ=xe({__name:"App",setup(e){const t=Ji();return Yt(()=>{const{balance:o,plan:r,expired_at:i,subscribe:a,email:s}=t;if(window.$crisp&&s){const l=[["Balance",(o/100).toString()],...r!=null&&r.name?[["Plan",r.name]]:[],["ExpireTime",Wo(i)],["UsedTraffic",ks(((a==null?void 0:a.u)||0)+((a==null?void 0:a.d)||0))],["AllTraffic",ks(a==null?void 0:a.transfer_enable)]];window.$crisp.push(["set","user:email",s]),window.$crisp.push(["set","session:data",[l]])}}),(o,r)=>{const i=Qc("router-view");return ge(),We(aZ,null,{default:me(()=>[se(i,null,{default:me(({Component:a})=>[(ge(),We(xa(a)))]),_:1})]),_:1})}}}),ju=Cx(sZ);tZ(ju);fJ();iZ(ju);w$(ju);ju.mount("#app");const lZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},cZ=Y("path",{fill:"currentColor",d:"M6.225 4.811a1 1 0 0 0-1.414 1.414L10.586 12L4.81 17.775a1 1 0 1 0 1.414 1.414L12 13.414l5.775 5.775a1 1 0 0 0 1.414-1.414L13.414 12l5.775-5.775a1 1 0 0 0-1.414-1.414L12 10.586z"},null,-1),uZ=[cZ];function dZ(e,t){return ge(),ze("svg",lZ,[...uZ])}const ck={name:"gg-close",render:dZ},fZ={class:"h-15 f-c-c"},hZ=["src"],pZ=xe({__name:"SideLogo",setup(e){const t=Tn();return(n,o)=>{const r=ck,i=zt;return ge(),ze("div",fZ,[Se(t).logo?(ge(),ze("img",{key:0,src:Se(t).logo,height:"30"},null,8,hZ)):Ct("",!0),dn(Y("h2",{class:"ml-2.5 max-w-35 flex-shrink-0 font-bold color-primary"},he(Se(t).title),513),[[Mn,!Se(t).collapsed]]),se(i,{onClick:[o[0]||(o[0]=OT(()=>{},["stop"])),Se(t).switchCollapsed],class:"absolute right-4 h-auto p-0 md:hidden",tertiary:"",size:"medium"},{icon:me(()=>[se(r,{class:"cursor-pointer opacity-85"})]),_:1},8,["onClick"])])}}}),mZ=xe({__name:"SideMenu",setup(e){const t=Tn(),n=p=>mn.global.t(p);function o(){window.innerWidth<=950&&(t.collapsed=!0)}const r=Ox(),i=za(),a=lk(),s=I(()=>{var p;return((p=i.meta)==null?void 0:p.activeMenu)||i.name}),l=I(()=>a.menus.reduce((m,b)=>{var C,_,S,y;const w=d(b);if((_=(C=w.meta)==null?void 0:C.group)!=null&&_.key){const x=w.meta.group.key,P=m.findIndex(k=>k.key===x);if(P!==-1)(S=m[P].children)==null||S.push(w),m[P].children=(y=m[P].children)==null?void 0:y.sort((k,T)=>k.order-T.order);else{const k={type:"group",label:n(w.meta.group.label||""),key:x,children:[w]};m.push(k)}}else m.push(w);return m.sort((x,P)=>x.order-P.order)},[]).sort((m,b)=>m.type==="group"&&b.type!=="group"?1:m.type!=="group"&&b.type==="group"?-1:m.order-b.order));function c(p,g){return eb(g)?g:"/"+[p,g].filter(m=>!!m&&m!=="/").map(m=>m.replace(/(^\/)|(\/$)/g,"")).join("/")}function u(p,g){var b;const m=((b=p.children)==null?void 0:b.filter(w=>{var C;return w.name&&!((C=w.meta)!=null&&C.isHidden)}))||[];return m.length===1?d(m[0],g):m.length>1?{children:m.map(w=>d(w,g)).sort((w,C)=>w.order-C.order)}:null}function d(p,g=""){const{title:m,order:b}=p.meta||{title:"",order:0},{name:w,path:C}=p,_=m||w||"",S=w||"",y=f(p.meta),x=b||0,P=p.meta;let k={label:n(_),key:S,path:c(g,C),icon:y!==null?y:void 0,meta:P,order:x};const T=u(p,k.path);return T&&(k={...k,...T}),k}function f(p){return p!=null&&p.customIcon?Q2(p.customIcon,{size:18}):p!=null&&p.icon?tl(p.icon,{size:18}):null}function h(p,g){eb(g.path)?window.open(g.path):r.push(g.path)}return(p,g)=>{const m=fY;return ge(),We(m,{ref:"menu",class:"side-menu",accordion:"","root-indent":18,indent:0,"collapsed-icon-size":22,"collapsed-width":60,options:l.value,value:s.value,"onUpdate:value":h,onClick:g[0]||(g[0]=b=>o())},null,8,["options","value"])}}}),x1=xe({__name:"index",setup(e){return(t,n)=>(ge(),ze(rt,null,[se(pZ),se(mZ)],64))}}),gZ=xe({__name:"AppMain",setup(e){const t=eZ();return(n,o)=>{const r=Qc("router-view");return ge(),We(r,null,{default:me(({Component:i,route:a})=>[Se(t).reloading?Ct("",!0):(ge(),We(xa(i),{key:a.fullPath}))]),_:1})}}}),vZ=xe({__name:"BreadCrumb",setup(e){const t=za();function n(o){return o!=null&&o.customIcon?Q2(o.customIcon,{size:18}):o!=null&&o.icon?tl(o.icon,{size:18}):null}return(o,r)=>{const i=aU,a=oU;return ge(),We(a,null,{default:me(()=>[(ge(!0),ze(rt,null,Fn(Se(t).matched.filter(s=>{var l;return!!((l=s.meta)!=null&&l.title)}),s=>(ge(),We(i,{key:s.path},{default:me(()=>[(ge(),We(xa(n(s.meta)))),nt(" "+he(o.$t(s.meta.title)),1)]),_:2},1024))),128))]),_:1})}}}),bZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},yZ=Y("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M3 21h18v-2H3m0-7l4 4V8m4 9h10v-2H11z"},null,-1),xZ=[yZ];function CZ(e,t){return ge(),ze("svg",bZ,[...xZ])}const wZ={name:"mdi-format-indent-decrease",render:CZ},_Z={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},SZ=Y("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M11 17h10v-2H11M3 8v8l4-4m-4 9h18v-2H3z"},null,-1),kZ=[SZ];function PZ(e,t){return ge(),ze("svg",_Z,[...kZ])}const TZ={name:"mdi-format-indent-increase",render:PZ},EZ=xe({__name:"MenuCollapse",setup(e){const t=Tn();return(n,o)=>{const r=TZ,i=wZ,a=Xo;return ge(),We(a,{size:"20","cursor-pointer":"",onClick:Se(t).switchCollapsed},{default:me(()=>[Se(t).collapsed?(ge(),We(r,{key:0})):(ge(),We(i,{key:1}))]),_:1},8,["onClick"])}}}),RZ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},AZ=Y("path",{fill:"currentColor",d:"m290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6l43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6L423.7 654c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),$Z=[AZ];function IZ(e,t){return ge(),ze("svg",RZ,[...$Z])}const OZ={name:"ant-design-fullscreen-outlined",render:IZ},MZ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},zZ=Y("path",{fill:"currentColor",d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8m221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6L877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9M744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),FZ=[zZ];function DZ(e,t){return ge(),ze("svg",MZ,[...FZ])}const LZ={name:"ant-design-fullscreen-exit-outlined",render:DZ},BZ=xe({__name:"FullScreen",setup(e){const{isFullscreen:t,toggle:n}=cJ();return(o,r)=>{const i=LZ,a=OZ,s=Xo;return ge(),We(s,{class:"mr-5 cursor-pointer",size:"18",onClick:Se(n)},{default:me(()=>[Se(t)?(ge(),We(i,{key:0})):(ge(),We(a,{key:1}))]),_:1},8,["onClick"])}}}),NZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},HZ=Y("path",{fill:"currentColor",d:"M15.88 9.29L12 13.17L8.12 9.29a.996.996 0 1 0-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.39-1.42 0"},null,-1),jZ=[HZ];function UZ(e,t){return ge(),ze("svg",NZ,[...jZ])}const VZ={name:"ic-round-expand-more",render:UZ},WZ={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},qZ=Y("path",{fill:"none",d:"M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0M20.5 12.5A4.5 4.5 0 1 1 16 8a4.5 4.5 0 0 1 4.5 4.5"},null,-1),KZ=Y("path",{fill:"currentColor",d:"M26.749 24.93A13.99 13.99 0 1 0 2 16a13.9 13.9 0 0 0 3.251 8.93l-.02.017c.07.084.15.156.222.239c.09.103.187.2.28.3q.418.457.87.87q.14.124.28.242q.48.415.99.782c.044.03.084.069.128.1v-.012a13.9 13.9 0 0 0 16 0v.012c.044-.031.083-.07.128-.1q.51-.368.99-.782q.14-.119.28-.242q.451-.413.87-.87c.093-.1.189-.197.28-.3c.071-.083.152-.155.222-.24ZM16 8a4.5 4.5 0 1 1-4.5 4.5A4.5 4.5 0 0 1 16 8M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0"},null,-1),GZ=[qZ,KZ];function XZ(e,t){return ge(),ze("svg",WZ,[...GZ])}const YZ={name:"carbon-user-avatar-filled",render:XZ},QZ={class:"hidden md:block"},JZ=xe({__name:"UserAvatar",setup(e){const t=Ji(),n=i=>mn.global.t(i),o=[{label:n("个人中心"),key:"profile",icon:tl("mdi-account-outline",{size:14})},{label:n("登出"),key:"logout",icon:tl("mdi:exit-to-app",{size:14})}];function r(i){i==="logout"&&window.$dialog.confirm({title:n("提示"),type:"info",content:n("确认退出?"),confirm(){t.logout(),window.$message.success(n("已退出登录"))}}),i==="profile"&&Gt.push("/profile")}return(i,a)=>{const s=YZ,l=VZ,c=zt,u=Em;return ge(),We(u,{options:o,onSelect:r},{default:me(()=>[se(c,{text:"",flex:"","cursor-pointer":"","items-center":""},{default:me(()=>[se(s,{class:"mr-0 h-5 w-5 rounded-full md:mr-2.5 md:h-8 md:w-8"}),se(l,{class:"h-5 w-5 md:hidden"}),Y("span",QZ,he(Se(t).email),1)]),_:1})]),_:1})}}}),ZZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},eee=Y("path",{fill:"currentColor",d:"M11.4 18.4H.9a.9.9 0 0 1-.9-.9V7.3a.9.9 0 0 1 .9-.9h10.5zm-4.525-2.72c.058.187.229.32.431.32h.854a.45.45 0 0 0 .425-.597l.001.003l-2.15-6.34a.45.45 0 0 0-.426-.306H4.791a.45.45 0 0 0-.425.302l-.001.003l-2.154 6.34a.45.45 0 0 0 .426.596h.856a.45.45 0 0 0 .431-.323l.001-.003l.342-1.193h2.258l.351 1.195zM5.41 10.414s.16.79.294 1.245l.406 1.408H4.68l.415-1.408c.131-.455.294-1.245.294-1.245zM23.1 18.4H12.6v-12h10.5a.9.9 0 0 1 .9.9v10.2a.9.9 0 0 1-.9.9m-1.35-8.55h-2.4v-.601a.45.45 0 0 0-.45-.45h-.601a.45.45 0 0 0-.45.45v.601h-2.4a.45.45 0 0 0-.45.45v.602c0 .248.201.45.45.45h4.281a5.9 5.9 0 0 1-1.126 1.621l.001-.001a7 7 0 0 1-.637-.764l-.014-.021a.45.45 0 0 0-.602-.129l.002-.001l-.273.16l-.24.146a.45.45 0 0 0-.139.642l-.001-.001c.253.359.511.674.791.969l-.004-.004c-.28.216-.599.438-.929.645l-.05.029a.45.45 0 0 0-.159.61l-.001-.002l.298.52a.45.45 0 0 0 .628.159l-.002.001c.507-.312.94-.619 1.353-.95l-.026.02c.387.313.82.62 1.272.901l.055.032a.45.45 0 0 0 .626-.158l.001-.002l.298-.52a.45.45 0 0 0-.153-.605l-.002-.001a12 12 0 0 1-1.004-.696l.027.02a6.7 6.7 0 0 0 1.586-2.572l.014-.047h.43a.45.45 0 0 0 .45-.45v-.602a.45.45 0 0 0-.45-.447h-.001z"},null,-1),tee=[eee];function nee(e,t){return ge(),ze("svg",ZZ,[...tee])}const oee={name:"fontisto-language",render:nee},ree=xe({__name:"SwitchLang",setup(e){const t=Tn();return(n,o)=>{const r=oee,i=zt,a=Cm;return ge(),We(a,{value:Se(t).lang,"onUpdate:value":o[0]||(o[0]=s=>Se(t).lang=s),options:Object.entries(Se(ih)).map(([s,l])=>({label:l,value:s})),trigger:"click","on-update:value":Se(t).switchLang},{default:me(()=>[se(i,{text:"","icon-placement":"left",class:"mr-5"},{icon:me(()=>[se(r)]),_:1})]),_:1},8,["value","options","on-update:value"])}}}),iee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},aee=Y("path",{fill:"currentColor",d:"m3.55 19.09l1.41 1.41l1.8-1.79l-1.42-1.42M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6c0-3.32-2.69-6-6-6m8 7h3v-2h-3m-2.76 7.71l1.8 1.79l1.41-1.41l-1.79-1.8M20.45 5l-1.41-1.4l-1.8 1.79l1.42 1.42M13 1h-2v3h2M6.76 5.39L4.96 3.6L3.55 5l1.79 1.81zM1 13h3v-2H1m12 9h-2v3h2"},null,-1),see=[aee];function lee(e,t){return ge(),ze("svg",iee,[...see])}const cee={name:"mdi-white-balance-sunny",render:lee},uee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},dee=Y("path",{fill:"currentColor",d:"M2 12a10 10 0 0 0 13 9.54a10 10 0 0 1 0-19.08A10 10 0 0 0 2 12"},null,-1),fee=[dee];function hee(e,t){return ge(),ze("svg",uee,[...fee])}const pee={name:"mdi-moon-waning-crescent",render:hee},mee=xe({__name:"ThemeMode",setup(e){const t=Tn(),n=rk(),o=()=>{t.toggleDark(),QQ(n)()};return(r,i)=>{const a=pee,s=cee,l=Xo;return ge(),We(l,{class:"mr-5 cursor-pointer",size:"18",onClick:o},{default:me(()=>[Se(n)?(ge(),We(a,{key:0})):(ge(),We(s,{key:1}))]),_:1})}}}),gee={flex:"","items-center":""},vee={"ml-auto":"",flex:"","items-center":""},bee=xe({__name:"index",setup(e){return(t,n)=>(ge(),ze(rt,null,[Y("div",gee,[se(EZ),se(vZ)]),Y("div",vee,[se(mee),se(ree),se(BZ),se(JZ)])],64))}}),yee={class:"flex flex-col flex-1 overflow-hidden"},xee={class:"flex-1 overflow-hidden bg-hex-f5f6fb dark:bg-hex-101014"},Cee=xe({__name:"index",setup(e){const t=Tn();function n(a){t.collapsed=a}const o=I({get:()=>r.value&&!t.collapsed,set:a=>t.collapsed=!a}),r=U(!1),i=()=>{document.body.clientWidth<=950?(r.value=!0,t.collapsed=!0):(t.collapsed=!1,r.value=!1)};return jt(()=>{window.addEventListener("resize",i),i()}),(a,s)=>{const l=qX,c=x2,u=HX;return ge(),We(u,{"has-sider":"","wh-full":""},{default:me(()=>[dn(se(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:Se(t).collapsed,"on-update:collapsed":n},{default:me(()=>[se(x1)]),_:1},8,["collapsed"]),[[Mn,!o.value]]),se(c,{show:o.value,"onUpdate:show":s[0]||(s[0]=d=>o.value=d),width:220,placement:"left"},{default:me(()=>[se(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:Se(t).collapsed,"on-update:collapsed":n},{default:me(()=>[se(x1)]),_:1},8,["collapsed"])]),_:1},8,["show"]),Y("article",yee,[Y("header",{class:"flex items-center bg-white px-4",dark:"bg-dark border-0",style:Fi(`height: ${Se(HQ).height}px`)},[se(bee)],4),Y("section",xee,[se(gZ)])])]),_:1})}}}),br=Object.freeze(Object.defineProperty({__proto__:null,default:Cee},Symbol.toStringTag,{value:"Module"})),Uu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},wee={},_ee={"f-c-c":"","flex-col":"","text-14":"",color:"#6a6a6a"},See=Y("p",null,[nt(" Copyright © 2022-present "),Y("a",{href:"https://github.com/zclzone",target:"__blank",hover:"decoration-underline color-primary"}," Ronnie Zhang ")],-1),kee=Y("p",null,null,-1),Pee=[See,kee];function Tee(e,t){return ge(),ze("footer",_ee,Pee)}const Eee=Uu(wee,[["render",Tee]]),Ree={class:"cus-scroll-y wh-full flex-col bg-[#f5f6fb] p-1 dark:bg-hex-121212 md:p-4"},bo=xe({__name:"AppPage",props:{showFooter:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const o=Eee,r=Kj;return ge(),We(fn,{name:"fade-slide",mode:"out-in",appear:""},{default:me(()=>[Y("section",Ree,[Jc(t.$slots,"default"),e.showFooter?(ge(),We(o,{key:0,"mt-15":""})):Ct("",!0),se(r,{bottom:20,class:"z-99999"})])]),_:3})}}}),Aee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},$ee=Y("path",{fill:"currentColor",d:"M20 2H4c-.53 0-1.04.21-1.41.59C2.21 2.96 2 3.47 2 4v12c0 .53.21 1.04.59 1.41c.37.38.88.59 1.41.59h4l4 4l4-4h4c.53 0 1.04-.21 1.41-.59S22 16.53 22 16V4c0-.53-.21-1.04-.59-1.41C21.04 2.21 20.53 2 20 2M4 16V4h16v12h-4.83L12 19.17L8.83 16m1.22-9.96c.54-.36 1.25-.54 2.14-.54c.94 0 1.69.21 2.23.62q.81.63.81 1.68c0 .44-.15.83-.44 1.2c-.29.36-.67.64-1.13.85c-.26.15-.43.3-.52.47c-.09.18-.14.4-.14.68h-2c0-.5.1-.84.29-1.08c.21-.24.55-.52 1.07-.84c.26-.14.47-.32.64-.54c.14-.21.22-.46.22-.74c0-.3-.09-.52-.27-.69c-.18-.18-.45-.26-.76-.26c-.27 0-.49.07-.69.21c-.16.14-.26.35-.26.63H9.27c-.05-.69.23-1.29.78-1.65M11 14v-2h2v2Z"},null,-1),Iee=[$ee];function Oee(e,t){return ge(),ze("svg",Aee,[...Iee])}const Mee={name:"mdi-tooltip-question-outline",render:Oee},zee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Fee=Y("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7z"},null,-1),Dee=[Fee];function Lee(e,t){return ge(),ze("svg",zee,[...Dee])}const Bee={name:"mdi-clock-outline",render:Lee},Nee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Hee=Y("path",{fill:"currentColor",d:"M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27zm0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93z"},null,-1),jee=[Hee];function Uee(e,t){return ge(),ze("svg",Nee,[...jee])}const Vee={name:"mdi-rss",render:Uee},Wee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},qee=Y("path",{fill:"currentColor",d:"M12 21.5c-1.35-.85-3.8-1.5-5.5-1.5c-1.65 0-3.35.3-4.75 1.05c-.1.05-.15.05-.25.05c-.25 0-.5-.25-.5-.5V6c.6-.45 1.25-.75 2-1c1.11-.35 2.33-.5 3.5-.5c1.95 0 4.05.4 5.5 1.5c1.45-1.1 3.55-1.5 5.5-1.5c1.17 0 2.39.15 3.5.5c.75.25 1.4.55 2 1v14.6c0 .25-.25.5-.5.5c-.1 0-.15 0-.25-.05c-1.4-.75-3.1-1.05-4.75-1.05c-1.7 0-4.15.65-5.5 1.5M12 8v11.5c1.35-.85 3.8-1.5 5.5-1.5c1.2 0 2.4.15 3.5.5V7c-1.1-.35-2.3-.5-3.5-.5c-1.7 0-4.15.65-5.5 1.5m1 3.5c1.11-.68 2.6-1 4.5-1c.91 0 1.76.09 2.5.28V9.23c-.87-.15-1.71-.23-2.5-.23q-2.655 0-4.5.84zm4.5.17c-1.71 0-3.21.26-4.5.79v1.69c1.11-.65 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24v-1.5c-.87-.16-1.71-.23-2.5-.23m2.5 2.9c-.87-.16-1.71-.24-2.5-.24c-1.83 0-3.33.27-4.5.8v1.69c1.11-.66 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24z"},null,-1),Kee=[qee];function Gee(e,t){return ge(),ze("svg",Wee,[...Kee])}const Xee={name:"mdi-book-open-variant",render:Gee},Yee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Qee=Y("g",{fill:"none"},[Y("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Y("path",{fill:"currentColor",d:"M10.5 20a1.5 1.5 0 0 0 3 0v-6.5H20a1.5 1.5 0 0 0 0-3h-6.5V4a1.5 1.5 0 0 0-3 0v6.5H4a1.5 1.5 0 0 0 0 3h6.5z"})],-1),Jee=[Qee];function Zee(e,t){return ge(),ze("svg",Yee,[...Jee])}const ete={name:"mingcute-add-fill",render:Zee},tte={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},nte=Y("path",{fill:"currentColor",d:"M5.503 4.627L5.5 6.75v10.504a3.25 3.25 0 0 0 3.25 3.25h8.616a2.25 2.25 0 0 1-2.122 1.5H8.75A4.75 4.75 0 0 1 4 17.254V6.75c0-.98.627-1.815 1.503-2.123M17.75 2A2.25 2.25 0 0 1 20 4.25v13a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-13A2.25 2.25 0 0 1 8.75 2z"},null,-1),ote=[nte];function rte(e,t){return ge(),ze("svg",tte,[...ote])}const ite={name:"fluent-copy24-filled",render:rte},ate={class:"inline-block",viewBox:"0 0 1200 1200",width:"1em",height:"1em"},ste=Y("path",{fill:"currentColor",d:"M0 0v545.312h545.312V0zm654.688 0v545.312H1200V0zM108.594 108.594h328.125v328.125H108.594zm654.687 0h328.125v328.125H763.281zM217.969 219.531v108.594h110.156V219.531zm653.906 0v108.594h108.594V219.531zM0 654.688V1200h545.312V654.688zm654.688 0V1200h108.595V873.438h108.594v108.595H1200V654.688h-108.594v108.595H980.469V654.688zM108.594 763.281h328.125v328.125H108.594zm109.375 108.594v110.156h110.156V871.875zm653.906 219.531V1200h108.594v-108.594zm219.531 0V1200H1200v-108.594z"},null,-1),lte=[ste];function cte(e,t){return ge(),ze("svg",ate,[...lte])}const ute={name:"el-qrcode",render:cte};var Lt={};const dte="Á",fte="á",hte="Ă",pte="ă",mte="∾",gte="∿",vte="∾̳",bte="Â",yte="â",xte="´",Cte="А",wte="а",_te="Æ",Ste="æ",kte="⁡",Pte="𝔄",Tte="𝔞",Ete="À",Rte="à",Ate="ℵ",$te="ℵ",Ite="Α",Ote="α",Mte="Ā",zte="ā",Fte="⨿",Dte="&",Lte="&",Bte="⩕",Nte="⩓",Hte="∧",jte="⩜",Ute="⩘",Vte="⩚",Wte="∠",qte="⦤",Kte="∠",Gte="⦨",Xte="⦩",Yte="⦪",Qte="⦫",Jte="⦬",Zte="⦭",ene="⦮",tne="⦯",nne="∡",one="∟",rne="⊾",ine="⦝",ane="∢",sne="Å",lne="⍼",cne="Ą",une="ą",dne="𝔸",fne="𝕒",hne="⩯",pne="≈",mne="⩰",gne="≊",vne="≋",bne="'",yne="⁡",xne="≈",Cne="≊",wne="Å",_ne="å",Sne="𝒜",kne="𝒶",Pne="≔",Tne="*",Ene="≈",Rne="≍",Ane="Ã",$ne="ã",Ine="Ä",One="ä",Mne="∳",zne="⨑",Fne="≌",Dne="϶",Lne="‵",Bne="∽",Nne="⋍",Hne="∖",jne="⫧",Une="⊽",Vne="⌅",Wne="⌆",qne="⌅",Kne="⎵",Gne="⎶",Xne="≌",Yne="Б",Qne="б",Jne="„",Zne="∵",eoe="∵",toe="∵",noe="⦰",ooe="϶",roe="ℬ",ioe="ℬ",aoe="Β",soe="β",loe="ℶ",coe="≬",uoe="𝔅",doe="𝔟",foe="⋂",hoe="◯",poe="⋃",moe="⨀",goe="⨁",voe="⨂",boe="⨆",yoe="★",xoe="▽",Coe="△",woe="⨄",_oe="⋁",Soe="⋀",koe="⤍",Poe="⧫",Toe="▪",Eoe="▴",Roe="▾",Aoe="◂",$oe="▸",Ioe="␣",Ooe="▒",Moe="░",zoe="▓",Foe="█",Doe="=⃥",Loe="≡⃥",Boe="⫭",Noe="⌐",Hoe="𝔹",joe="𝕓",Uoe="⊥",Voe="⊥",Woe="⋈",qoe="⧉",Koe="┐",Goe="╕",Xoe="╖",Yoe="╗",Qoe="┌",Joe="╒",Zoe="╓",ere="╔",tre="─",nre="═",ore="┬",rre="╤",ire="╥",are="╦",sre="┴",lre="╧",cre="╨",ure="╩",dre="⊟",fre="⊞",hre="⊠",pre="┘",mre="╛",gre="╜",vre="╝",bre="└",yre="╘",xre="╙",Cre="╚",wre="│",_re="║",Sre="┼",kre="╪",Pre="╫",Tre="╬",Ere="┤",Rre="╡",Are="╢",$re="╣",Ire="├",Ore="╞",Mre="╟",zre="╠",Fre="‵",Dre="˘",Lre="˘",Bre="¦",Nre="𝒷",Hre="ℬ",jre="⁏",Ure="∽",Vre="⋍",Wre="⧅",qre="\\",Kre="⟈",Gre="•",Xre="•",Yre="≎",Qre="⪮",Jre="≏",Zre="≎",eie="≏",tie="Ć",nie="ć",oie="⩄",rie="⩉",iie="⩋",aie="∩",sie="⋒",lie="⩇",cie="⩀",uie="ⅅ",die="∩︀",fie="⁁",hie="ˇ",pie="ℭ",mie="⩍",gie="Č",vie="č",bie="Ç",yie="ç",xie="Ĉ",Cie="ĉ",wie="∰",_ie="⩌",Sie="⩐",kie="Ċ",Pie="ċ",Tie="¸",Eie="¸",Rie="⦲",Aie="¢",$ie="·",Iie="·",Oie="𝔠",Mie="ℭ",zie="Ч",Fie="ч",Die="✓",Lie="✓",Bie="Χ",Nie="χ",Hie="ˆ",jie="≗",Uie="↺",Vie="↻",Wie="⊛",qie="⊚",Kie="⊝",Gie="⊙",Xie="®",Yie="Ⓢ",Qie="⊖",Jie="⊕",Zie="⊗",eae="○",tae="⧃",nae="≗",oae="⨐",rae="⫯",iae="⧂",aae="∲",sae="”",lae="’",cae="♣",uae="♣",dae=":",fae="∷",hae="⩴",pae="≔",mae="≔",gae=",",vae="@",bae="∁",yae="∘",xae="∁",Cae="ℂ",wae="≅",_ae="⩭",Sae="≡",kae="∮",Pae="∯",Tae="∮",Eae="𝕔",Rae="ℂ",Aae="∐",$ae="∐",Iae="©",Oae="©",Mae="℗",zae="∳",Fae="↵",Dae="✗",Lae="⨯",Bae="𝒞",Nae="𝒸",Hae="⫏",jae="⫑",Uae="⫐",Vae="⫒",Wae="⋯",qae="⤸",Kae="⤵",Gae="⋞",Xae="⋟",Yae="↶",Qae="⤽",Jae="⩈",Zae="⩆",ese="≍",tse="∪",nse="⋓",ose="⩊",rse="⊍",ise="⩅",ase="∪︀",sse="↷",lse="⤼",cse="⋞",use="⋟",dse="⋎",fse="⋏",hse="¤",pse="↶",mse="↷",gse="⋎",vse="⋏",bse="∲",yse="∱",xse="⌭",Cse="†",wse="‡",_se="ℸ",Sse="↓",kse="↡",Pse="⇓",Tse="‐",Ese="⫤",Rse="⊣",Ase="⤏",$se="˝",Ise="Ď",Ose="ď",Mse="Д",zse="д",Fse="‡",Dse="⇊",Lse="ⅅ",Bse="ⅆ",Nse="⤑",Hse="⩷",jse="°",Use="∇",Vse="Δ",Wse="δ",qse="⦱",Kse="⥿",Gse="𝔇",Xse="𝔡",Yse="⥥",Qse="⇃",Jse="⇂",Zse="´",ele="˙",tle="˝",nle="`",ole="˜",rle="⋄",ile="⋄",ale="⋄",sle="♦",lle="♦",cle="¨",ule="ⅆ",dle="ϝ",fle="⋲",hle="÷",ple="÷",mle="⋇",gle="⋇",vle="Ђ",ble="ђ",yle="⌞",xle="⌍",Cle="$",wle="𝔻",_le="𝕕",Sle="¨",kle="˙",Ple="⃜",Tle="≐",Ele="≑",Rle="≐",Ale="∸",$le="∔",Ile="⊡",Ole="⌆",Mle="∯",zle="¨",Fle="⇓",Dle="⇐",Lle="⇔",Ble="⫤",Nle="⟸",Hle="⟺",jle="⟹",Ule="⇒",Vle="⊨",Wle="⇑",qle="⇕",Kle="∥",Gle="⤓",Xle="↓",Yle="↓",Qle="⇓",Jle="⇵",Zle="̑",ece="⇊",tce="⇃",nce="⇂",oce="⥐",rce="⥞",ice="⥖",ace="↽",sce="⥟",lce="⥗",cce="⇁",uce="↧",dce="⊤",fce="⤐",hce="⌟",pce="⌌",mce="𝒟",gce="𝒹",vce="Ѕ",bce="ѕ",yce="⧶",xce="Đ",Cce="đ",wce="⋱",_ce="▿",Sce="▾",kce="⇵",Pce="⥯",Tce="⦦",Ece="Џ",Rce="џ",Ace="⟿",$ce="É",Ice="é",Oce="⩮",Mce="Ě",zce="ě",Fce="Ê",Dce="ê",Lce="≖",Bce="≕",Nce="Э",Hce="э",jce="⩷",Uce="Ė",Vce="ė",Wce="≑",qce="ⅇ",Kce="≒",Gce="𝔈",Xce="𝔢",Yce="⪚",Qce="È",Jce="è",Zce="⪖",eue="⪘",tue="⪙",nue="∈",oue="⏧",rue="ℓ",iue="⪕",aue="⪗",sue="Ē",lue="ē",cue="∅",uue="∅",due="◻",fue="∅",hue="▫",pue=" ",mue=" ",gue=" ",vue="Ŋ",bue="ŋ",yue=" ",xue="Ę",Cue="ę",wue="𝔼",_ue="𝕖",Sue="⋕",kue="⧣",Pue="⩱",Tue="ε",Eue="Ε",Rue="ε",Aue="ϵ",$ue="≖",Iue="≕",Oue="≂",Mue="⪖",zue="⪕",Fue="⩵",Due="=",Lue="≂",Bue="≟",Nue="⇌",Hue="≡",jue="⩸",Uue="⧥",Vue="⥱",Wue="≓",que="ℯ",Kue="ℰ",Gue="≐",Xue="⩳",Yue="≂",Que="Η",Jue="η",Zue="Ð",ede="ð",tde="Ë",nde="ë",ode="€",rde="!",ide="∃",ade="∃",sde="ℰ",lde="ⅇ",cde="ⅇ",ude="≒",dde="Ф",fde="ф",hde="♀",pde="ffi",mde="ff",gde="ffl",vde="𝔉",bde="𝔣",yde="fi",xde="◼",Cde="▪",wde="fj",_de="♭",Sde="fl",kde="▱",Pde="ƒ",Tde="𝔽",Ede="𝕗",Rde="∀",Ade="∀",$de="⋔",Ide="⫙",Ode="ℱ",Mde="⨍",zde="½",Fde="⅓",Dde="¼",Lde="⅕",Bde="⅙",Nde="⅛",Hde="⅔",jde="⅖",Ude="¾",Vde="⅗",Wde="⅜",qde="⅘",Kde="⅚",Gde="⅝",Xde="⅞",Yde="⁄",Qde="⌢",Jde="𝒻",Zde="ℱ",efe="ǵ",tfe="Γ",nfe="γ",ofe="Ϝ",rfe="ϝ",ife="⪆",afe="Ğ",sfe="ğ",lfe="Ģ",cfe="Ĝ",ufe="ĝ",dfe="Г",ffe="г",hfe="Ġ",pfe="ġ",mfe="≥",gfe="≧",vfe="⪌",bfe="⋛",yfe="≥",xfe="≧",Cfe="⩾",wfe="⪩",_fe="⩾",Sfe="⪀",kfe="⪂",Pfe="⪄",Tfe="⋛︀",Efe="⪔",Rfe="𝔊",Afe="𝔤",$fe="≫",Ife="⋙",Ofe="⋙",Mfe="ℷ",zfe="Ѓ",Ffe="ѓ",Dfe="⪥",Lfe="≷",Bfe="⪒",Nfe="⪤",Hfe="⪊",jfe="⪊",Ufe="⪈",Vfe="≩",Wfe="⪈",qfe="≩",Kfe="⋧",Gfe="𝔾",Xfe="𝕘",Yfe="`",Qfe="≥",Jfe="⋛",Zfe="≧",ehe="⪢",the="≷",nhe="⩾",ohe="≳",rhe="𝒢",ihe="ℊ",ahe="≳",she="⪎",lhe="⪐",che="⪧",uhe="⩺",dhe=">",fhe=">",hhe="≫",phe="⋗",mhe="⦕",ghe="⩼",vhe="⪆",bhe="⥸",yhe="⋗",xhe="⋛",Che="⪌",whe="≷",_he="≳",She="≩︀",khe="≩︀",Phe="ˇ",The=" ",Ehe="½",Rhe="ℋ",Ahe="Ъ",$he="ъ",Ihe="⥈",Ohe="↔",Mhe="⇔",zhe="↭",Fhe="^",Dhe="ℏ",Lhe="Ĥ",Bhe="ĥ",Nhe="♥",Hhe="♥",jhe="…",Uhe="⊹",Vhe="𝔥",Whe="ℌ",qhe="ℋ",Khe="⤥",Ghe="⤦",Xhe="⇿",Yhe="∻",Qhe="↩",Jhe="↪",Zhe="𝕙",epe="ℍ",tpe="―",npe="─",ope="𝒽",rpe="ℋ",ipe="ℏ",ape="Ħ",spe="ħ",lpe="≎",cpe="≏",upe="⁃",dpe="‐",fpe="Í",hpe="í",ppe="⁣",mpe="Î",gpe="î",vpe="И",bpe="и",ype="İ",xpe="Е",Cpe="е",wpe="¡",_pe="⇔",Spe="𝔦",kpe="ℑ",Ppe="Ì",Tpe="ì",Epe="ⅈ",Rpe="⨌",Ape="∭",$pe="⧜",Ipe="℩",Ope="IJ",Mpe="ij",zpe="Ī",Fpe="ī",Dpe="ℑ",Lpe="ⅈ",Bpe="ℐ",Npe="ℑ",Hpe="ı",jpe="ℑ",Upe="⊷",Vpe="Ƶ",Wpe="⇒",qpe="℅",Kpe="∞",Gpe="⧝",Xpe="ı",Ype="⊺",Qpe="∫",Jpe="∬",Zpe="ℤ",eme="∫",tme="⊺",nme="⋂",ome="⨗",rme="⨼",ime="⁣",ame="⁢",sme="Ё",lme="ё",cme="Į",ume="į",dme="𝕀",fme="𝕚",hme="Ι",pme="ι",mme="⨼",gme="¿",vme="𝒾",bme="ℐ",yme="∈",xme="⋵",Cme="⋹",wme="⋴",_me="⋳",Sme="∈",kme="⁢",Pme="Ĩ",Tme="ĩ",Eme="І",Rme="і",Ame="Ï",$me="ï",Ime="Ĵ",Ome="ĵ",Mme="Й",zme="й",Fme="𝔍",Dme="𝔧",Lme="ȷ",Bme="𝕁",Nme="𝕛",Hme="𝒥",jme="𝒿",Ume="Ј",Vme="ј",Wme="Є",qme="є",Kme="Κ",Gme="κ",Xme="ϰ",Yme="Ķ",Qme="ķ",Jme="К",Zme="к",ege="𝔎",tge="𝔨",nge="ĸ",oge="Х",rge="х",ige="Ќ",age="ќ",sge="𝕂",lge="𝕜",cge="𝒦",uge="𝓀",dge="⇚",fge="Ĺ",hge="ĺ",pge="⦴",mge="ℒ",gge="Λ",vge="λ",bge="⟨",yge="⟪",xge="⦑",Cge="⟨",wge="⪅",_ge="ℒ",Sge="«",kge="⇤",Pge="⤟",Tge="←",Ege="↞",Rge="⇐",Age="⤝",$ge="↩",Ige="↫",Oge="⤹",Mge="⥳",zge="↢",Fge="⤙",Dge="⤛",Lge="⪫",Bge="⪭",Nge="⪭︀",Hge="⤌",jge="⤎",Uge="❲",Vge="{",Wge="[",qge="⦋",Kge="⦏",Gge="⦍",Xge="Ľ",Yge="ľ",Qge="Ļ",Jge="ļ",Zge="⌈",eve="{",tve="Л",nve="л",ove="⤶",rve="“",ive="„",ave="⥧",sve="⥋",lve="↲",cve="≤",uve="≦",dve="⟨",fve="⇤",hve="←",pve="←",mve="⇐",gve="⇆",vve="↢",bve="⌈",yve="⟦",xve="⥡",Cve="⥙",wve="⇃",_ve="⌊",Sve="↽",kve="↼",Pve="⇇",Tve="↔",Eve="↔",Rve="⇔",Ave="⇆",$ve="⇋",Ive="↭",Ove="⥎",Mve="↤",zve="⊣",Fve="⥚",Dve="⋋",Lve="⧏",Bve="⊲",Nve="⊴",Hve="⥑",jve="⥠",Uve="⥘",Vve="↿",Wve="⥒",qve="↼",Kve="⪋",Gve="⋚",Xve="≤",Yve="≦",Qve="⩽",Jve="⪨",Zve="⩽",ebe="⩿",tbe="⪁",nbe="⪃",obe="⋚︀",rbe="⪓",ibe="⪅",abe="⋖",sbe="⋚",lbe="⪋",cbe="⋚",ube="≦",dbe="≶",fbe="≶",hbe="⪡",pbe="≲",mbe="⩽",gbe="≲",vbe="⥼",bbe="⌊",ybe="𝔏",xbe="𝔩",Cbe="≶",wbe="⪑",_be="⥢",Sbe="↽",kbe="↼",Pbe="⥪",Tbe="▄",Ebe="Љ",Rbe="љ",Abe="⇇",$be="≪",Ibe="⋘",Obe="⌞",Mbe="⇚",zbe="⥫",Fbe="◺",Dbe="Ŀ",Lbe="ŀ",Bbe="⎰",Nbe="⎰",Hbe="⪉",jbe="⪉",Ube="⪇",Vbe="≨",Wbe="⪇",qbe="≨",Kbe="⋦",Gbe="⟬",Xbe="⇽",Ybe="⟦",Qbe="⟵",Jbe="⟵",Zbe="⟸",e0e="⟷",t0e="⟷",n0e="⟺",o0e="⟼",r0e="⟶",i0e="⟶",a0e="⟹",s0e="↫",l0e="↬",c0e="⦅",u0e="𝕃",d0e="𝕝",f0e="⨭",h0e="⨴",p0e="∗",m0e="_",g0e="↙",v0e="↘",b0e="◊",y0e="◊",x0e="⧫",C0e="(",w0e="⦓",_0e="⇆",S0e="⌟",k0e="⇋",P0e="⥭",T0e="‎",E0e="⊿",R0e="‹",A0e="𝓁",$0e="ℒ",I0e="↰",O0e="↰",M0e="≲",z0e="⪍",F0e="⪏",D0e="[",L0e="‘",B0e="‚",N0e="Ł",H0e="ł",j0e="⪦",U0e="⩹",V0e="<",W0e="<",q0e="≪",K0e="⋖",G0e="⋋",X0e="⋉",Y0e="⥶",Q0e="⩻",J0e="◃",Z0e="⊴",e1e="◂",t1e="⦖",n1e="⥊",o1e="⥦",r1e="≨︀",i1e="≨︀",a1e="¯",s1e="♂",l1e="✠",c1e="✠",u1e="↦",d1e="↦",f1e="↧",h1e="↤",p1e="↥",m1e="▮",g1e="⨩",v1e="М",b1e="м",y1e="—",x1e="∺",C1e="∡",w1e=" ",_1e="ℳ",S1e="𝔐",k1e="𝔪",P1e="℧",T1e="µ",E1e="*",R1e="⫰",A1e="∣",$1e="·",I1e="⊟",O1e="−",M1e="∸",z1e="⨪",F1e="∓",D1e="⫛",L1e="…",B1e="∓",N1e="⊧",H1e="𝕄",j1e="𝕞",U1e="∓",V1e="𝓂",W1e="ℳ",q1e="∾",K1e="Μ",G1e="μ",X1e="⊸",Y1e="⊸",Q1e="∇",J1e="Ń",Z1e="ń",eye="∠⃒",tye="≉",nye="⩰̸",oye="≋̸",rye="ʼn",iye="≉",aye="♮",sye="ℕ",lye="♮",cye=" ",uye="≎̸",dye="≏̸",fye="⩃",hye="Ň",pye="ň",mye="Ņ",gye="ņ",vye="≇",bye="⩭̸",yye="⩂",xye="Н",Cye="н",wye="–",_ye="⤤",Sye="↗",kye="⇗",Pye="↗",Tye="≠",Eye="≐̸",Rye="​",Aye="​",$ye="​",Iye="​",Oye="≢",Mye="⤨",zye="≂̸",Fye="≫",Dye="≪",Lye=` -`,Bye="∄",Nye="∄",Hye="𝔑",jye="𝔫",Uye="≧̸",Vye="≱",Wye="≱",qye="≧̸",Kye="⩾̸",Gye="⩾̸",Xye="⋙̸",Yye="≵",Qye="≫⃒",Jye="≯",Zye="≯",exe="≫̸",txe="↮",nxe="⇎",oxe="⫲",rxe="∋",ixe="⋼",axe="⋺",sxe="∋",lxe="Њ",cxe="њ",uxe="↚",dxe="⇍",fxe="‥",hxe="≦̸",pxe="≰",mxe="↚",gxe="⇍",vxe="↮",bxe="⇎",yxe="≰",xxe="≦̸",Cxe="⩽̸",wxe="⩽̸",_xe="≮",Sxe="⋘̸",kxe="≴",Pxe="≪⃒",Txe="≮",Exe="⋪",Rxe="⋬",Axe="≪̸",$xe="∤",Ixe="⁠",Oxe=" ",Mxe="𝕟",zxe="ℕ",Fxe="⫬",Dxe="¬",Lxe="≢",Bxe="≭",Nxe="∦",Hxe="∉",jxe="≠",Uxe="≂̸",Vxe="∄",Wxe="≯",qxe="≱",Kxe="≧̸",Gxe="≫̸",Xxe="≹",Yxe="⩾̸",Qxe="≵",Jxe="≎̸",Zxe="≏̸",eCe="∉",tCe="⋵̸",nCe="⋹̸",oCe="∉",rCe="⋷",iCe="⋶",aCe="⧏̸",sCe="⋪",lCe="⋬",cCe="≮",uCe="≰",dCe="≸",fCe="≪̸",hCe="⩽̸",pCe="≴",mCe="⪢̸",gCe="⪡̸",vCe="∌",bCe="∌",yCe="⋾",xCe="⋽",CCe="⊀",wCe="⪯̸",_Ce="⋠",SCe="∌",kCe="⧐̸",PCe="⋫",TCe="⋭",ECe="⊏̸",RCe="⋢",ACe="⊐̸",$Ce="⋣",ICe="⊂⃒",OCe="⊈",MCe="⊁",zCe="⪰̸",FCe="⋡",DCe="≿̸",LCe="⊃⃒",BCe="⊉",NCe="≁",HCe="≄",jCe="≇",UCe="≉",VCe="∤",WCe="∦",qCe="∦",KCe="⫽⃥",GCe="∂̸",XCe="⨔",YCe="⊀",QCe="⋠",JCe="⊀",ZCe="⪯̸",ewe="⪯̸",twe="⤳̸",nwe="↛",owe="⇏",rwe="↝̸",iwe="↛",awe="⇏",swe="⋫",lwe="⋭",cwe="⊁",uwe="⋡",dwe="⪰̸",fwe="𝒩",hwe="𝓃",pwe="∤",mwe="∦",gwe="≁",vwe="≄",bwe="≄",ywe="∤",xwe="∦",Cwe="⋢",wwe="⋣",_we="⊄",Swe="⫅̸",kwe="⊈",Pwe="⊂⃒",Twe="⊈",Ewe="⫅̸",Rwe="⊁",Awe="⪰̸",$we="⊅",Iwe="⫆̸",Owe="⊉",Mwe="⊃⃒",zwe="⊉",Fwe="⫆̸",Dwe="≹",Lwe="Ñ",Bwe="ñ",Nwe="≸",Hwe="⋪",jwe="⋬",Uwe="⋫",Vwe="⋭",Wwe="Ν",qwe="ν",Kwe="#",Gwe="№",Xwe=" ",Ywe="≍⃒",Qwe="⊬",Jwe="⊭",Zwe="⊮",e_e="⊯",t_e="≥⃒",n_e=">⃒",o_e="⤄",r_e="⧞",i_e="⤂",a_e="≤⃒",s_e="<⃒",l_e="⊴⃒",c_e="⤃",u_e="⊵⃒",d_e="∼⃒",f_e="⤣",h_e="↖",p_e="⇖",m_e="↖",g_e="⤧",v_e="Ó",b_e="ó",y_e="⊛",x_e="Ô",C_e="ô",w_e="⊚",__e="О",S_e="о",k_e="⊝",P_e="Ő",T_e="ő",E_e="⨸",R_e="⊙",A_e="⦼",$_e="Œ",I_e="œ",O_e="⦿",M_e="𝔒",z_e="𝔬",F_e="˛",D_e="Ò",L_e="ò",B_e="⧁",N_e="⦵",H_e="Ω",j_e="∮",U_e="↺",V_e="⦾",W_e="⦻",q_e="‾",K_e="⧀",G_e="Ō",X_e="ō",Y_e="Ω",Q_e="ω",J_e="Ο",Z_e="ο",eSe="⦶",tSe="⊖",nSe="𝕆",oSe="𝕠",rSe="⦷",iSe="“",aSe="‘",sSe="⦹",lSe="⊕",cSe="↻",uSe="⩔",dSe="∨",fSe="⩝",hSe="ℴ",pSe="ℴ",mSe="ª",gSe="º",vSe="⊶",bSe="⩖",ySe="⩗",xSe="⩛",CSe="Ⓢ",wSe="𝒪",_Se="ℴ",SSe="Ø",kSe="ø",PSe="⊘",TSe="Õ",ESe="õ",RSe="⨶",ASe="⨷",$Se="⊗",ISe="Ö",OSe="ö",MSe="⌽",zSe="‾",FSe="⏞",DSe="⎴",LSe="⏜",BSe="¶",NSe="∥",HSe="∥",jSe="⫳",USe="⫽",VSe="∂",WSe="∂",qSe="П",KSe="п",GSe="%",XSe=".",YSe="‰",QSe="⊥",JSe="‱",ZSe="𝔓",e2e="𝔭",t2e="Φ",n2e="φ",o2e="ϕ",r2e="ℳ",i2e="☎",a2e="Π",s2e="π",l2e="⋔",c2e="ϖ",u2e="ℏ",d2e="ℎ",f2e="ℏ",h2e="⨣",p2e="⊞",m2e="⨢",g2e="+",v2e="∔",b2e="⨥",y2e="⩲",x2e="±",C2e="±",w2e="⨦",_2e="⨧",S2e="±",k2e="ℌ",P2e="⨕",T2e="𝕡",E2e="ℙ",R2e="£",A2e="⪷",$2e="⪻",I2e="≺",O2e="≼",M2e="⪷",z2e="≺",F2e="≼",D2e="≺",L2e="⪯",B2e="≼",N2e="≾",H2e="⪯",j2e="⪹",U2e="⪵",V2e="⋨",W2e="⪯",q2e="⪳",K2e="≾",G2e="′",X2e="″",Y2e="ℙ",Q2e="⪹",J2e="⪵",Z2e="⋨",eke="∏",tke="∏",nke="⌮",oke="⌒",rke="⌓",ike="∝",ake="∝",ske="∷",lke="∝",cke="≾",uke="⊰",dke="𝒫",fke="𝓅",hke="Ψ",pke="ψ",mke=" ",gke="𝔔",vke="𝔮",bke="⨌",yke="𝕢",xke="ℚ",Cke="⁗",wke="𝒬",_ke="𝓆",Ske="ℍ",kke="⨖",Pke="?",Tke="≟",Eke='"',Rke='"',Ake="⇛",$ke="∽̱",Ike="Ŕ",Oke="ŕ",Mke="√",zke="⦳",Fke="⟩",Dke="⟫",Lke="⦒",Bke="⦥",Nke="⟩",Hke="»",jke="⥵",Uke="⇥",Vke="⤠",Wke="⤳",qke="→",Kke="↠",Gke="⇒",Xke="⤞",Yke="↪",Qke="↬",Jke="⥅",Zke="⥴",e3e="⤖",t3e="↣",n3e="↝",o3e="⤚",r3e="⤜",i3e="∶",a3e="ℚ",s3e="⤍",l3e="⤏",c3e="⤐",u3e="❳",d3e="}",f3e="]",h3e="⦌",p3e="⦎",m3e="⦐",g3e="Ř",v3e="ř",b3e="Ŗ",y3e="ŗ",x3e="⌉",C3e="}",w3e="Р",_3e="р",S3e="⤷",k3e="⥩",P3e="”",T3e="”",E3e="↳",R3e="ℜ",A3e="ℛ",$3e="ℜ",I3e="ℝ",O3e="ℜ",M3e="▭",z3e="®",F3e="®",D3e="∋",L3e="⇋",B3e="⥯",N3e="⥽",H3e="⌋",j3e="𝔯",U3e="ℜ",V3e="⥤",W3e="⇁",q3e="⇀",K3e="⥬",G3e="Ρ",X3e="ρ",Y3e="ϱ",Q3e="⟩",J3e="⇥",Z3e="→",ePe="→",tPe="⇒",nPe="⇄",oPe="↣",rPe="⌉",iPe="⟧",aPe="⥝",sPe="⥕",lPe="⇂",cPe="⌋",uPe="⇁",dPe="⇀",fPe="⇄",hPe="⇌",pPe="⇉",mPe="↝",gPe="↦",vPe="⊢",bPe="⥛",yPe="⋌",xPe="⧐",CPe="⊳",wPe="⊵",_Pe="⥏",SPe="⥜",kPe="⥔",PPe="↾",TPe="⥓",EPe="⇀",RPe="˚",APe="≓",$Pe="⇄",IPe="⇌",OPe="‏",MPe="⎱",zPe="⎱",FPe="⫮",DPe="⟭",LPe="⇾",BPe="⟧",NPe="⦆",HPe="𝕣",jPe="ℝ",UPe="⨮",VPe="⨵",WPe="⥰",qPe=")",KPe="⦔",GPe="⨒",XPe="⇉",YPe="⇛",QPe="›",JPe="𝓇",ZPe="ℛ",eTe="↱",tTe="↱",nTe="]",oTe="’",rTe="’",iTe="⋌",aTe="⋊",sTe="▹",lTe="⊵",cTe="▸",uTe="⧎",dTe="⧴",fTe="⥨",hTe="℞",pTe="Ś",mTe="ś",gTe="‚",vTe="⪸",bTe="Š",yTe="š",xTe="⪼",CTe="≻",wTe="≽",_Te="⪰",STe="⪴",kTe="Ş",PTe="ş",TTe="Ŝ",ETe="ŝ",RTe="⪺",ATe="⪶",$Te="⋩",ITe="⨓",OTe="≿",MTe="С",zTe="с",FTe="⊡",DTe="⋅",LTe="⩦",BTe="⤥",NTe="↘",HTe="⇘",jTe="↘",UTe="§",VTe=";",WTe="⤩",qTe="∖",KTe="∖",GTe="✶",XTe="𝔖",YTe="𝔰",QTe="⌢",JTe="♯",ZTe="Щ",e4e="щ",t4e="Ш",n4e="ш",o4e="↓",r4e="←",i4e="∣",a4e="∥",s4e="→",l4e="↑",c4e="­",u4e="Σ",d4e="σ",f4e="ς",h4e="ς",p4e="∼",m4e="⩪",g4e="≃",v4e="≃",b4e="⪞",y4e="⪠",x4e="⪝",C4e="⪟",w4e="≆",_4e="⨤",S4e="⥲",k4e="←",P4e="∘",T4e="∖",E4e="⨳",R4e="⧤",A4e="∣",$4e="⌣",I4e="⪪",O4e="⪬",M4e="⪬︀",z4e="Ь",F4e="ь",D4e="⌿",L4e="⧄",B4e="/",N4e="𝕊",H4e="𝕤",j4e="♠",U4e="♠",V4e="∥",W4e="⊓",q4e="⊓︀",K4e="⊔",G4e="⊔︀",X4e="√",Y4e="⊏",Q4e="⊑",J4e="⊏",Z4e="⊑",eEe="⊐",tEe="⊒",nEe="⊐",oEe="⊒",rEe="□",iEe="□",aEe="⊓",sEe="⊏",lEe="⊑",cEe="⊐",uEe="⊒",dEe="⊔",fEe="▪",hEe="□",pEe="▪",mEe="→",gEe="𝒮",vEe="𝓈",bEe="∖",yEe="⌣",xEe="⋆",CEe="⋆",wEe="☆",_Ee="★",SEe="ϵ",kEe="ϕ",PEe="¯",TEe="⊂",EEe="⋐",REe="⪽",AEe="⫅",$Ee="⊆",IEe="⫃",OEe="⫁",MEe="⫋",zEe="⊊",FEe="⪿",DEe="⥹",LEe="⊂",BEe="⋐",NEe="⊆",HEe="⫅",jEe="⊆",UEe="⊊",VEe="⫋",WEe="⫇",qEe="⫕",KEe="⫓",GEe="⪸",XEe="≻",YEe="≽",QEe="≻",JEe="⪰",ZEe="≽",eRe="≿",tRe="⪰",nRe="⪺",oRe="⪶",rRe="⋩",iRe="≿",aRe="∋",sRe="∑",lRe="∑",cRe="♪",uRe="¹",dRe="²",fRe="³",hRe="⊃",pRe="⋑",mRe="⪾",gRe="⫘",vRe="⫆",bRe="⊇",yRe="⫄",xRe="⊃",CRe="⊇",wRe="⟉",_Re="⫗",SRe="⥻",kRe="⫂",PRe="⫌",TRe="⊋",ERe="⫀",RRe="⊃",ARe="⋑",$Re="⊇",IRe="⫆",ORe="⊋",MRe="⫌",zRe="⫈",FRe="⫔",DRe="⫖",LRe="⤦",BRe="↙",NRe="⇙",HRe="↙",jRe="⤪",URe="ß",VRe=" ",WRe="⌖",qRe="Τ",KRe="τ",GRe="⎴",XRe="Ť",YRe="ť",QRe="Ţ",JRe="ţ",ZRe="Т",eAe="т",tAe="⃛",nAe="⌕",oAe="𝔗",rAe="𝔱",iAe="∴",aAe="∴",sAe="∴",lAe="Θ",cAe="θ",uAe="ϑ",dAe="ϑ",fAe="≈",hAe="∼",pAe="  ",mAe=" ",gAe=" ",vAe="≈",bAe="∼",yAe="Þ",xAe="þ",CAe="˜",wAe="∼",_Ae="≃",SAe="≅",kAe="≈",PAe="⨱",TAe="⊠",EAe="×",RAe="⨰",AAe="∭",$Ae="⤨",IAe="⌶",OAe="⫱",MAe="⊤",zAe="𝕋",FAe="𝕥",DAe="⫚",LAe="⤩",BAe="‴",NAe="™",HAe="™",jAe="▵",UAe="▿",VAe="◃",WAe="⊴",qAe="≜",KAe="▹",GAe="⊵",XAe="◬",YAe="≜",QAe="⨺",JAe="⃛",ZAe="⨹",e5e="⧍",t5e="⨻",n5e="⏢",o5e="𝒯",r5e="𝓉",i5e="Ц",a5e="ц",s5e="Ћ",l5e="ћ",c5e="Ŧ",u5e="ŧ",d5e="≬",f5e="↞",h5e="↠",p5e="Ú",m5e="ú",g5e="↑",v5e="↟",b5e="⇑",y5e="⥉",x5e="Ў",C5e="ў",w5e="Ŭ",_5e="ŭ",S5e="Û",k5e="û",P5e="У",T5e="у",E5e="⇅",R5e="Ű",A5e="ű",$5e="⥮",I5e="⥾",O5e="𝔘",M5e="𝔲",z5e="Ù",F5e="ù",D5e="⥣",L5e="↿",B5e="↾",N5e="▀",H5e="⌜",j5e="⌜",U5e="⌏",V5e="◸",W5e="Ū",q5e="ū",K5e="¨",G5e="_",X5e="⏟",Y5e="⎵",Q5e="⏝",J5e="⋃",Z5e="⊎",e$e="Ų",t$e="ų",n$e="𝕌",o$e="𝕦",r$e="⤒",i$e="↑",a$e="↑",s$e="⇑",l$e="⇅",c$e="↕",u$e="↕",d$e="⇕",f$e="⥮",h$e="↿",p$e="↾",m$e="⊎",g$e="↖",v$e="↗",b$e="υ",y$e="ϒ",x$e="ϒ",C$e="Υ",w$e="υ",_$e="↥",S$e="⊥",k$e="⇈",P$e="⌝",T$e="⌝",E$e="⌎",R$e="Ů",A$e="ů",$$e="◹",I$e="𝒰",O$e="𝓊",M$e="⋰",z$e="Ũ",F$e="ũ",D$e="▵",L$e="▴",B$e="⇈",N$e="Ü",H$e="ü",j$e="⦧",U$e="⦜",V$e="ϵ",W$e="ϰ",q$e="∅",K$e="ϕ",G$e="ϖ",X$e="∝",Y$e="↕",Q$e="⇕",J$e="ϱ",Z$e="ς",eIe="⊊︀",tIe="⫋︀",nIe="⊋︀",oIe="⫌︀",rIe="ϑ",iIe="⊲",aIe="⊳",sIe="⫨",lIe="⫫",cIe="⫩",uIe="В",dIe="в",fIe="⊢",hIe="⊨",pIe="⊩",mIe="⊫",gIe="⫦",vIe="⊻",bIe="∨",yIe="⋁",xIe="≚",CIe="⋮",wIe="|",_Ie="‖",SIe="|",kIe="‖",PIe="∣",TIe="|",EIe="❘",RIe="≀",AIe=" ",$Ie="𝔙",IIe="𝔳",OIe="⊲",MIe="⊂⃒",zIe="⊃⃒",FIe="𝕍",DIe="𝕧",LIe="∝",BIe="⊳",NIe="𝒱",HIe="𝓋",jIe="⫋︀",UIe="⊊︀",VIe="⫌︀",WIe="⊋︀",qIe="⊪",KIe="⦚",GIe="Ŵ",XIe="ŵ",YIe="⩟",QIe="∧",JIe="⋀",ZIe="≙",e8e="℘",t8e="𝔚",n8e="𝔴",o8e="𝕎",r8e="𝕨",i8e="℘",a8e="≀",s8e="≀",l8e="𝒲",c8e="𝓌",u8e="⋂",d8e="◯",f8e="⋃",h8e="▽",p8e="𝔛",m8e="𝔵",g8e="⟷",v8e="⟺",b8e="Ξ",y8e="ξ",x8e="⟵",C8e="⟸",w8e="⟼",_8e="⋻",S8e="⨀",k8e="𝕏",P8e="𝕩",T8e="⨁",E8e="⨂",R8e="⟶",A8e="⟹",$8e="𝒳",I8e="𝓍",O8e="⨆",M8e="⨄",z8e="△",F8e="⋁",D8e="⋀",L8e="Ý",B8e="ý",N8e="Я",H8e="я",j8e="Ŷ",U8e="ŷ",V8e="Ы",W8e="ы",q8e="¥",K8e="𝔜",G8e="𝔶",X8e="Ї",Y8e="ї",Q8e="𝕐",J8e="𝕪",Z8e="𝒴",eOe="𝓎",tOe="Ю",nOe="ю",oOe="ÿ",rOe="Ÿ",iOe="Ź",aOe="ź",sOe="Ž",lOe="ž",cOe="З",uOe="з",dOe="Ż",fOe="ż",hOe="ℨ",pOe="​",mOe="Ζ",gOe="ζ",vOe="𝔷",bOe="ℨ",yOe="Ж",xOe="ж",COe="⇝",wOe="𝕫",_Oe="ℤ",SOe="𝒵",kOe="𝓏",POe="‍",TOe="‌",EOe={Aacute:dte,aacute:fte,Abreve:hte,abreve:pte,ac:mte,acd:gte,acE:vte,Acirc:bte,acirc:yte,acute:xte,Acy:Cte,acy:wte,AElig:_te,aelig:Ste,af:kte,Afr:Pte,afr:Tte,Agrave:Ete,agrave:Rte,alefsym:Ate,aleph:$te,Alpha:Ite,alpha:Ote,Amacr:Mte,amacr:zte,amalg:Fte,amp:Dte,AMP:Lte,andand:Bte,And:Nte,and:Hte,andd:jte,andslope:Ute,andv:Vte,ang:Wte,ange:qte,angle:Kte,angmsdaa:Gte,angmsdab:Xte,angmsdac:Yte,angmsdad:Qte,angmsdae:Jte,angmsdaf:Zte,angmsdag:ene,angmsdah:tne,angmsd:nne,angrt:one,angrtvb:rne,angrtvbd:ine,angsph:ane,angst:sne,angzarr:lne,Aogon:cne,aogon:une,Aopf:dne,aopf:fne,apacir:hne,ap:pne,apE:mne,ape:gne,apid:vne,apos:bne,ApplyFunction:yne,approx:xne,approxeq:Cne,Aring:wne,aring:_ne,Ascr:Sne,ascr:kne,Assign:Pne,ast:Tne,asymp:Ene,asympeq:Rne,Atilde:Ane,atilde:$ne,Auml:Ine,auml:One,awconint:Mne,awint:zne,backcong:Fne,backepsilon:Dne,backprime:Lne,backsim:Bne,backsimeq:Nne,Backslash:Hne,Barv:jne,barvee:Une,barwed:Vne,Barwed:Wne,barwedge:qne,bbrk:Kne,bbrktbrk:Gne,bcong:Xne,Bcy:Yne,bcy:Qne,bdquo:Jne,becaus:Zne,because:eoe,Because:toe,bemptyv:noe,bepsi:ooe,bernou:roe,Bernoullis:ioe,Beta:aoe,beta:soe,beth:loe,between:coe,Bfr:uoe,bfr:doe,bigcap:foe,bigcirc:hoe,bigcup:poe,bigodot:moe,bigoplus:goe,bigotimes:voe,bigsqcup:boe,bigstar:yoe,bigtriangledown:xoe,bigtriangleup:Coe,biguplus:woe,bigvee:_oe,bigwedge:Soe,bkarow:koe,blacklozenge:Poe,blacksquare:Toe,blacktriangle:Eoe,blacktriangledown:Roe,blacktriangleleft:Aoe,blacktriangleright:$oe,blank:Ioe,blk12:Ooe,blk14:Moe,blk34:zoe,block:Foe,bne:Doe,bnequiv:Loe,bNot:Boe,bnot:Noe,Bopf:Hoe,bopf:joe,bot:Uoe,bottom:Voe,bowtie:Woe,boxbox:qoe,boxdl:Koe,boxdL:Goe,boxDl:Xoe,boxDL:Yoe,boxdr:Qoe,boxdR:Joe,boxDr:Zoe,boxDR:ere,boxh:tre,boxH:nre,boxhd:ore,boxHd:rre,boxhD:ire,boxHD:are,boxhu:sre,boxHu:lre,boxhU:cre,boxHU:ure,boxminus:dre,boxplus:fre,boxtimes:hre,boxul:pre,boxuL:mre,boxUl:gre,boxUL:vre,boxur:bre,boxuR:yre,boxUr:xre,boxUR:Cre,boxv:wre,boxV:_re,boxvh:Sre,boxvH:kre,boxVh:Pre,boxVH:Tre,boxvl:Ere,boxvL:Rre,boxVl:Are,boxVL:$re,boxvr:Ire,boxvR:Ore,boxVr:Mre,boxVR:zre,bprime:Fre,breve:Dre,Breve:Lre,brvbar:Bre,bscr:Nre,Bscr:Hre,bsemi:jre,bsim:Ure,bsime:Vre,bsolb:Wre,bsol:qre,bsolhsub:Kre,bull:Gre,bullet:Xre,bump:Yre,bumpE:Qre,bumpe:Jre,Bumpeq:Zre,bumpeq:eie,Cacute:tie,cacute:nie,capand:oie,capbrcup:rie,capcap:iie,cap:aie,Cap:sie,capcup:lie,capdot:cie,CapitalDifferentialD:uie,caps:die,caret:fie,caron:hie,Cayleys:pie,ccaps:mie,Ccaron:gie,ccaron:vie,Ccedil:bie,ccedil:yie,Ccirc:xie,ccirc:Cie,Cconint:wie,ccups:_ie,ccupssm:Sie,Cdot:kie,cdot:Pie,cedil:Tie,Cedilla:Eie,cemptyv:Rie,cent:Aie,centerdot:$ie,CenterDot:Iie,cfr:Oie,Cfr:Mie,CHcy:zie,chcy:Fie,check:Die,checkmark:Lie,Chi:Bie,chi:Nie,circ:Hie,circeq:jie,circlearrowleft:Uie,circlearrowright:Vie,circledast:Wie,circledcirc:qie,circleddash:Kie,CircleDot:Gie,circledR:Xie,circledS:Yie,CircleMinus:Qie,CirclePlus:Jie,CircleTimes:Zie,cir:eae,cirE:tae,cire:nae,cirfnint:oae,cirmid:rae,cirscir:iae,ClockwiseContourIntegral:aae,CloseCurlyDoubleQuote:sae,CloseCurlyQuote:lae,clubs:cae,clubsuit:uae,colon:dae,Colon:fae,Colone:hae,colone:pae,coloneq:mae,comma:gae,commat:vae,comp:bae,compfn:yae,complement:xae,complexes:Cae,cong:wae,congdot:_ae,Congruent:Sae,conint:kae,Conint:Pae,ContourIntegral:Tae,copf:Eae,Copf:Rae,coprod:Aae,Coproduct:$ae,copy:Iae,COPY:Oae,copysr:Mae,CounterClockwiseContourIntegral:zae,crarr:Fae,cross:Dae,Cross:Lae,Cscr:Bae,cscr:Nae,csub:Hae,csube:jae,csup:Uae,csupe:Vae,ctdot:Wae,cudarrl:qae,cudarrr:Kae,cuepr:Gae,cuesc:Xae,cularr:Yae,cularrp:Qae,cupbrcap:Jae,cupcap:Zae,CupCap:ese,cup:tse,Cup:nse,cupcup:ose,cupdot:rse,cupor:ise,cups:ase,curarr:sse,curarrm:lse,curlyeqprec:cse,curlyeqsucc:use,curlyvee:dse,curlywedge:fse,curren:hse,curvearrowleft:pse,curvearrowright:mse,cuvee:gse,cuwed:vse,cwconint:bse,cwint:yse,cylcty:xse,dagger:Cse,Dagger:wse,daleth:_se,darr:Sse,Darr:kse,dArr:Pse,dash:Tse,Dashv:Ese,dashv:Rse,dbkarow:Ase,dblac:$se,Dcaron:Ise,dcaron:Ose,Dcy:Mse,dcy:zse,ddagger:Fse,ddarr:Dse,DD:Lse,dd:Bse,DDotrahd:Nse,ddotseq:Hse,deg:jse,Del:Use,Delta:Vse,delta:Wse,demptyv:qse,dfisht:Kse,Dfr:Gse,dfr:Xse,dHar:Yse,dharl:Qse,dharr:Jse,DiacriticalAcute:Zse,DiacriticalDot:ele,DiacriticalDoubleAcute:tle,DiacriticalGrave:nle,DiacriticalTilde:ole,diam:rle,diamond:ile,Diamond:ale,diamondsuit:sle,diams:lle,die:cle,DifferentialD:ule,digamma:dle,disin:fle,div:hle,divide:ple,divideontimes:mle,divonx:gle,DJcy:vle,djcy:ble,dlcorn:yle,dlcrop:xle,dollar:Cle,Dopf:wle,dopf:_le,Dot:Sle,dot:kle,DotDot:Ple,doteq:Tle,doteqdot:Ele,DotEqual:Rle,dotminus:Ale,dotplus:$le,dotsquare:Ile,doublebarwedge:Ole,DoubleContourIntegral:Mle,DoubleDot:zle,DoubleDownArrow:Fle,DoubleLeftArrow:Dle,DoubleLeftRightArrow:Lle,DoubleLeftTee:Ble,DoubleLongLeftArrow:Nle,DoubleLongLeftRightArrow:Hle,DoubleLongRightArrow:jle,DoubleRightArrow:Ule,DoubleRightTee:Vle,DoubleUpArrow:Wle,DoubleUpDownArrow:qle,DoubleVerticalBar:Kle,DownArrowBar:Gle,downarrow:Xle,DownArrow:Yle,Downarrow:Qle,DownArrowUpArrow:Jle,DownBreve:Zle,downdownarrows:ece,downharpoonleft:tce,downharpoonright:nce,DownLeftRightVector:oce,DownLeftTeeVector:rce,DownLeftVectorBar:ice,DownLeftVector:ace,DownRightTeeVector:sce,DownRightVectorBar:lce,DownRightVector:cce,DownTeeArrow:uce,DownTee:dce,drbkarow:fce,drcorn:hce,drcrop:pce,Dscr:mce,dscr:gce,DScy:vce,dscy:bce,dsol:yce,Dstrok:xce,dstrok:Cce,dtdot:wce,dtri:_ce,dtrif:Sce,duarr:kce,duhar:Pce,dwangle:Tce,DZcy:Ece,dzcy:Rce,dzigrarr:Ace,Eacute:$ce,eacute:Ice,easter:Oce,Ecaron:Mce,ecaron:zce,Ecirc:Fce,ecirc:Dce,ecir:Lce,ecolon:Bce,Ecy:Nce,ecy:Hce,eDDot:jce,Edot:Uce,edot:Vce,eDot:Wce,ee:qce,efDot:Kce,Efr:Gce,efr:Xce,eg:Yce,Egrave:Qce,egrave:Jce,egs:Zce,egsdot:eue,el:tue,Element:nue,elinters:oue,ell:rue,els:iue,elsdot:aue,Emacr:sue,emacr:lue,empty:cue,emptyset:uue,EmptySmallSquare:due,emptyv:fue,EmptyVerySmallSquare:hue,emsp13:pue,emsp14:mue,emsp:gue,ENG:vue,eng:bue,ensp:yue,Eogon:xue,eogon:Cue,Eopf:wue,eopf:_ue,epar:Sue,eparsl:kue,eplus:Pue,epsi:Tue,Epsilon:Eue,epsilon:Rue,epsiv:Aue,eqcirc:$ue,eqcolon:Iue,eqsim:Oue,eqslantgtr:Mue,eqslantless:zue,Equal:Fue,equals:Due,EqualTilde:Lue,equest:Bue,Equilibrium:Nue,equiv:Hue,equivDD:jue,eqvparsl:Uue,erarr:Vue,erDot:Wue,escr:que,Escr:Kue,esdot:Gue,Esim:Xue,esim:Yue,Eta:Que,eta:Jue,ETH:Zue,eth:ede,Euml:tde,euml:nde,euro:ode,excl:rde,exist:ide,Exists:ade,expectation:sde,exponentiale:lde,ExponentialE:cde,fallingdotseq:ude,Fcy:dde,fcy:fde,female:hde,ffilig:pde,fflig:mde,ffllig:gde,Ffr:vde,ffr:bde,filig:yde,FilledSmallSquare:xde,FilledVerySmallSquare:Cde,fjlig:wde,flat:_de,fllig:Sde,fltns:kde,fnof:Pde,Fopf:Tde,fopf:Ede,forall:Rde,ForAll:Ade,fork:$de,forkv:Ide,Fouriertrf:Ode,fpartint:Mde,frac12:zde,frac13:Fde,frac14:Dde,frac15:Lde,frac16:Bde,frac18:Nde,frac23:Hde,frac25:jde,frac34:Ude,frac35:Vde,frac38:Wde,frac45:qde,frac56:Kde,frac58:Gde,frac78:Xde,frasl:Yde,frown:Qde,fscr:Jde,Fscr:Zde,gacute:efe,Gamma:tfe,gamma:nfe,Gammad:ofe,gammad:rfe,gap:ife,Gbreve:afe,gbreve:sfe,Gcedil:lfe,Gcirc:cfe,gcirc:ufe,Gcy:dfe,gcy:ffe,Gdot:hfe,gdot:pfe,ge:mfe,gE:gfe,gEl:vfe,gel:bfe,geq:yfe,geqq:xfe,geqslant:Cfe,gescc:wfe,ges:_fe,gesdot:Sfe,gesdoto:kfe,gesdotol:Pfe,gesl:Tfe,gesles:Efe,Gfr:Rfe,gfr:Afe,gg:$fe,Gg:Ife,ggg:Ofe,gimel:Mfe,GJcy:zfe,gjcy:Ffe,gla:Dfe,gl:Lfe,glE:Bfe,glj:Nfe,gnap:Hfe,gnapprox:jfe,gne:Ufe,gnE:Vfe,gneq:Wfe,gneqq:qfe,gnsim:Kfe,Gopf:Gfe,gopf:Xfe,grave:Yfe,GreaterEqual:Qfe,GreaterEqualLess:Jfe,GreaterFullEqual:Zfe,GreaterGreater:ehe,GreaterLess:the,GreaterSlantEqual:nhe,GreaterTilde:ohe,Gscr:rhe,gscr:ihe,gsim:ahe,gsime:she,gsiml:lhe,gtcc:che,gtcir:uhe,gt:dhe,GT:fhe,Gt:hhe,gtdot:phe,gtlPar:mhe,gtquest:ghe,gtrapprox:vhe,gtrarr:bhe,gtrdot:yhe,gtreqless:xhe,gtreqqless:Che,gtrless:whe,gtrsim:_he,gvertneqq:She,gvnE:khe,Hacek:Phe,hairsp:The,half:Ehe,hamilt:Rhe,HARDcy:Ahe,hardcy:$he,harrcir:Ihe,harr:Ohe,hArr:Mhe,harrw:zhe,Hat:Fhe,hbar:Dhe,Hcirc:Lhe,hcirc:Bhe,hearts:Nhe,heartsuit:Hhe,hellip:jhe,hercon:Uhe,hfr:Vhe,Hfr:Whe,HilbertSpace:qhe,hksearow:Khe,hkswarow:Ghe,hoarr:Xhe,homtht:Yhe,hookleftarrow:Qhe,hookrightarrow:Jhe,hopf:Zhe,Hopf:epe,horbar:tpe,HorizontalLine:npe,hscr:ope,Hscr:rpe,hslash:ipe,Hstrok:ape,hstrok:spe,HumpDownHump:lpe,HumpEqual:cpe,hybull:upe,hyphen:dpe,Iacute:fpe,iacute:hpe,ic:ppe,Icirc:mpe,icirc:gpe,Icy:vpe,icy:bpe,Idot:ype,IEcy:xpe,iecy:Cpe,iexcl:wpe,iff:_pe,ifr:Spe,Ifr:kpe,Igrave:Ppe,igrave:Tpe,ii:Epe,iiiint:Rpe,iiint:Ape,iinfin:$pe,iiota:Ipe,IJlig:Ope,ijlig:Mpe,Imacr:zpe,imacr:Fpe,image:Dpe,ImaginaryI:Lpe,imagline:Bpe,imagpart:Npe,imath:Hpe,Im:jpe,imof:Upe,imped:Vpe,Implies:Wpe,incare:qpe,in:"∈",infin:Kpe,infintie:Gpe,inodot:Xpe,intcal:Ype,int:Qpe,Int:Jpe,integers:Zpe,Integral:eme,intercal:tme,Intersection:nme,intlarhk:ome,intprod:rme,InvisibleComma:ime,InvisibleTimes:ame,IOcy:sme,iocy:lme,Iogon:cme,iogon:ume,Iopf:dme,iopf:fme,Iota:hme,iota:pme,iprod:mme,iquest:gme,iscr:vme,Iscr:bme,isin:yme,isindot:xme,isinE:Cme,isins:wme,isinsv:_me,isinv:Sme,it:kme,Itilde:Pme,itilde:Tme,Iukcy:Eme,iukcy:Rme,Iuml:Ame,iuml:$me,Jcirc:Ime,jcirc:Ome,Jcy:Mme,jcy:zme,Jfr:Fme,jfr:Dme,jmath:Lme,Jopf:Bme,jopf:Nme,Jscr:Hme,jscr:jme,Jsercy:Ume,jsercy:Vme,Jukcy:Wme,jukcy:qme,Kappa:Kme,kappa:Gme,kappav:Xme,Kcedil:Yme,kcedil:Qme,Kcy:Jme,kcy:Zme,Kfr:ege,kfr:tge,kgreen:nge,KHcy:oge,khcy:rge,KJcy:ige,kjcy:age,Kopf:sge,kopf:lge,Kscr:cge,kscr:uge,lAarr:dge,Lacute:fge,lacute:hge,laemptyv:pge,lagran:mge,Lambda:gge,lambda:vge,lang:bge,Lang:yge,langd:xge,langle:Cge,lap:wge,Laplacetrf:_ge,laquo:Sge,larrb:kge,larrbfs:Pge,larr:Tge,Larr:Ege,lArr:Rge,larrfs:Age,larrhk:$ge,larrlp:Ige,larrpl:Oge,larrsim:Mge,larrtl:zge,latail:Fge,lAtail:Dge,lat:Lge,late:Bge,lates:Nge,lbarr:Hge,lBarr:jge,lbbrk:Uge,lbrace:Vge,lbrack:Wge,lbrke:qge,lbrksld:Kge,lbrkslu:Gge,Lcaron:Xge,lcaron:Yge,Lcedil:Qge,lcedil:Jge,lceil:Zge,lcub:eve,Lcy:tve,lcy:nve,ldca:ove,ldquo:rve,ldquor:ive,ldrdhar:ave,ldrushar:sve,ldsh:lve,le:cve,lE:uve,LeftAngleBracket:dve,LeftArrowBar:fve,leftarrow:hve,LeftArrow:pve,Leftarrow:mve,LeftArrowRightArrow:gve,leftarrowtail:vve,LeftCeiling:bve,LeftDoubleBracket:yve,LeftDownTeeVector:xve,LeftDownVectorBar:Cve,LeftDownVector:wve,LeftFloor:_ve,leftharpoondown:Sve,leftharpoonup:kve,leftleftarrows:Pve,leftrightarrow:Tve,LeftRightArrow:Eve,Leftrightarrow:Rve,leftrightarrows:Ave,leftrightharpoons:$ve,leftrightsquigarrow:Ive,LeftRightVector:Ove,LeftTeeArrow:Mve,LeftTee:zve,LeftTeeVector:Fve,leftthreetimes:Dve,LeftTriangleBar:Lve,LeftTriangle:Bve,LeftTriangleEqual:Nve,LeftUpDownVector:Hve,LeftUpTeeVector:jve,LeftUpVectorBar:Uve,LeftUpVector:Vve,LeftVectorBar:Wve,LeftVector:qve,lEg:Kve,leg:Gve,leq:Xve,leqq:Yve,leqslant:Qve,lescc:Jve,les:Zve,lesdot:ebe,lesdoto:tbe,lesdotor:nbe,lesg:obe,lesges:rbe,lessapprox:ibe,lessdot:abe,lesseqgtr:sbe,lesseqqgtr:lbe,LessEqualGreater:cbe,LessFullEqual:ube,LessGreater:dbe,lessgtr:fbe,LessLess:hbe,lesssim:pbe,LessSlantEqual:mbe,LessTilde:gbe,lfisht:vbe,lfloor:bbe,Lfr:ybe,lfr:xbe,lg:Cbe,lgE:wbe,lHar:_be,lhard:Sbe,lharu:kbe,lharul:Pbe,lhblk:Tbe,LJcy:Ebe,ljcy:Rbe,llarr:Abe,ll:$be,Ll:Ibe,llcorner:Obe,Lleftarrow:Mbe,llhard:zbe,lltri:Fbe,Lmidot:Dbe,lmidot:Lbe,lmoustache:Bbe,lmoust:Nbe,lnap:Hbe,lnapprox:jbe,lne:Ube,lnE:Vbe,lneq:Wbe,lneqq:qbe,lnsim:Kbe,loang:Gbe,loarr:Xbe,lobrk:Ybe,longleftarrow:Qbe,LongLeftArrow:Jbe,Longleftarrow:Zbe,longleftrightarrow:e0e,LongLeftRightArrow:t0e,Longleftrightarrow:n0e,longmapsto:o0e,longrightarrow:r0e,LongRightArrow:i0e,Longrightarrow:a0e,looparrowleft:s0e,looparrowright:l0e,lopar:c0e,Lopf:u0e,lopf:d0e,loplus:f0e,lotimes:h0e,lowast:p0e,lowbar:m0e,LowerLeftArrow:g0e,LowerRightArrow:v0e,loz:b0e,lozenge:y0e,lozf:x0e,lpar:C0e,lparlt:w0e,lrarr:_0e,lrcorner:S0e,lrhar:k0e,lrhard:P0e,lrm:T0e,lrtri:E0e,lsaquo:R0e,lscr:A0e,Lscr:$0e,lsh:I0e,Lsh:O0e,lsim:M0e,lsime:z0e,lsimg:F0e,lsqb:D0e,lsquo:L0e,lsquor:B0e,Lstrok:N0e,lstrok:H0e,ltcc:j0e,ltcir:U0e,lt:V0e,LT:W0e,Lt:q0e,ltdot:K0e,lthree:G0e,ltimes:X0e,ltlarr:Y0e,ltquest:Q0e,ltri:J0e,ltrie:Z0e,ltrif:e1e,ltrPar:t1e,lurdshar:n1e,luruhar:o1e,lvertneqq:r1e,lvnE:i1e,macr:a1e,male:s1e,malt:l1e,maltese:c1e,Map:"⤅",map:u1e,mapsto:d1e,mapstodown:f1e,mapstoleft:h1e,mapstoup:p1e,marker:m1e,mcomma:g1e,Mcy:v1e,mcy:b1e,mdash:y1e,mDDot:x1e,measuredangle:C1e,MediumSpace:w1e,Mellintrf:_1e,Mfr:S1e,mfr:k1e,mho:P1e,micro:T1e,midast:E1e,midcir:R1e,mid:A1e,middot:$1e,minusb:I1e,minus:O1e,minusd:M1e,minusdu:z1e,MinusPlus:F1e,mlcp:D1e,mldr:L1e,mnplus:B1e,models:N1e,Mopf:H1e,mopf:j1e,mp:U1e,mscr:V1e,Mscr:W1e,mstpos:q1e,Mu:K1e,mu:G1e,multimap:X1e,mumap:Y1e,nabla:Q1e,Nacute:J1e,nacute:Z1e,nang:eye,nap:tye,napE:nye,napid:oye,napos:rye,napprox:iye,natural:aye,naturals:sye,natur:lye,nbsp:cye,nbump:uye,nbumpe:dye,ncap:fye,Ncaron:hye,ncaron:pye,Ncedil:mye,ncedil:gye,ncong:vye,ncongdot:bye,ncup:yye,Ncy:xye,ncy:Cye,ndash:wye,nearhk:_ye,nearr:Sye,neArr:kye,nearrow:Pye,ne:Tye,nedot:Eye,NegativeMediumSpace:Rye,NegativeThickSpace:Aye,NegativeThinSpace:$ye,NegativeVeryThinSpace:Iye,nequiv:Oye,nesear:Mye,nesim:zye,NestedGreaterGreater:Fye,NestedLessLess:Dye,NewLine:Lye,nexist:Bye,nexists:Nye,Nfr:Hye,nfr:jye,ngE:Uye,nge:Vye,ngeq:Wye,ngeqq:qye,ngeqslant:Kye,nges:Gye,nGg:Xye,ngsim:Yye,nGt:Qye,ngt:Jye,ngtr:Zye,nGtv:exe,nharr:txe,nhArr:nxe,nhpar:oxe,ni:rxe,nis:ixe,nisd:axe,niv:sxe,NJcy:lxe,njcy:cxe,nlarr:uxe,nlArr:dxe,nldr:fxe,nlE:hxe,nle:pxe,nleftarrow:mxe,nLeftarrow:gxe,nleftrightarrow:vxe,nLeftrightarrow:bxe,nleq:yxe,nleqq:xxe,nleqslant:Cxe,nles:wxe,nless:_xe,nLl:Sxe,nlsim:kxe,nLt:Pxe,nlt:Txe,nltri:Exe,nltrie:Rxe,nLtv:Axe,nmid:$xe,NoBreak:Ixe,NonBreakingSpace:Oxe,nopf:Mxe,Nopf:zxe,Not:Fxe,not:Dxe,NotCongruent:Lxe,NotCupCap:Bxe,NotDoubleVerticalBar:Nxe,NotElement:Hxe,NotEqual:jxe,NotEqualTilde:Uxe,NotExists:Vxe,NotGreater:Wxe,NotGreaterEqual:qxe,NotGreaterFullEqual:Kxe,NotGreaterGreater:Gxe,NotGreaterLess:Xxe,NotGreaterSlantEqual:Yxe,NotGreaterTilde:Qxe,NotHumpDownHump:Jxe,NotHumpEqual:Zxe,notin:eCe,notindot:tCe,notinE:nCe,notinva:oCe,notinvb:rCe,notinvc:iCe,NotLeftTriangleBar:aCe,NotLeftTriangle:sCe,NotLeftTriangleEqual:lCe,NotLess:cCe,NotLessEqual:uCe,NotLessGreater:dCe,NotLessLess:fCe,NotLessSlantEqual:hCe,NotLessTilde:pCe,NotNestedGreaterGreater:mCe,NotNestedLessLess:gCe,notni:vCe,notniva:bCe,notnivb:yCe,notnivc:xCe,NotPrecedes:CCe,NotPrecedesEqual:wCe,NotPrecedesSlantEqual:_Ce,NotReverseElement:SCe,NotRightTriangleBar:kCe,NotRightTriangle:PCe,NotRightTriangleEqual:TCe,NotSquareSubset:ECe,NotSquareSubsetEqual:RCe,NotSquareSuperset:ACe,NotSquareSupersetEqual:$Ce,NotSubset:ICe,NotSubsetEqual:OCe,NotSucceeds:MCe,NotSucceedsEqual:zCe,NotSucceedsSlantEqual:FCe,NotSucceedsTilde:DCe,NotSuperset:LCe,NotSupersetEqual:BCe,NotTilde:NCe,NotTildeEqual:HCe,NotTildeFullEqual:jCe,NotTildeTilde:UCe,NotVerticalBar:VCe,nparallel:WCe,npar:qCe,nparsl:KCe,npart:GCe,npolint:XCe,npr:YCe,nprcue:QCe,nprec:JCe,npreceq:ZCe,npre:ewe,nrarrc:twe,nrarr:nwe,nrArr:owe,nrarrw:rwe,nrightarrow:iwe,nRightarrow:awe,nrtri:swe,nrtrie:lwe,nsc:cwe,nsccue:uwe,nsce:dwe,Nscr:fwe,nscr:hwe,nshortmid:pwe,nshortparallel:mwe,nsim:gwe,nsime:vwe,nsimeq:bwe,nsmid:ywe,nspar:xwe,nsqsube:Cwe,nsqsupe:wwe,nsub:_we,nsubE:Swe,nsube:kwe,nsubset:Pwe,nsubseteq:Twe,nsubseteqq:Ewe,nsucc:Rwe,nsucceq:Awe,nsup:$we,nsupE:Iwe,nsupe:Owe,nsupset:Mwe,nsupseteq:zwe,nsupseteqq:Fwe,ntgl:Dwe,Ntilde:Lwe,ntilde:Bwe,ntlg:Nwe,ntriangleleft:Hwe,ntrianglelefteq:jwe,ntriangleright:Uwe,ntrianglerighteq:Vwe,Nu:Wwe,nu:qwe,num:Kwe,numero:Gwe,numsp:Xwe,nvap:Ywe,nvdash:Qwe,nvDash:Jwe,nVdash:Zwe,nVDash:e_e,nvge:t_e,nvgt:n_e,nvHarr:o_e,nvinfin:r_e,nvlArr:i_e,nvle:a_e,nvlt:s_e,nvltrie:l_e,nvrArr:c_e,nvrtrie:u_e,nvsim:d_e,nwarhk:f_e,nwarr:h_e,nwArr:p_e,nwarrow:m_e,nwnear:g_e,Oacute:v_e,oacute:b_e,oast:y_e,Ocirc:x_e,ocirc:C_e,ocir:w_e,Ocy:__e,ocy:S_e,odash:k_e,Odblac:P_e,odblac:T_e,odiv:E_e,odot:R_e,odsold:A_e,OElig:$_e,oelig:I_e,ofcir:O_e,Ofr:M_e,ofr:z_e,ogon:F_e,Ograve:D_e,ograve:L_e,ogt:B_e,ohbar:N_e,ohm:H_e,oint:j_e,olarr:U_e,olcir:V_e,olcross:W_e,oline:q_e,olt:K_e,Omacr:G_e,omacr:X_e,Omega:Y_e,omega:Q_e,Omicron:J_e,omicron:Z_e,omid:eSe,ominus:tSe,Oopf:nSe,oopf:oSe,opar:rSe,OpenCurlyDoubleQuote:iSe,OpenCurlyQuote:aSe,operp:sSe,oplus:lSe,orarr:cSe,Or:uSe,or:dSe,ord:fSe,order:hSe,orderof:pSe,ordf:mSe,ordm:gSe,origof:vSe,oror:bSe,orslope:ySe,orv:xSe,oS:CSe,Oscr:wSe,oscr:_Se,Oslash:SSe,oslash:kSe,osol:PSe,Otilde:TSe,otilde:ESe,otimesas:RSe,Otimes:ASe,otimes:$Se,Ouml:ISe,ouml:OSe,ovbar:MSe,OverBar:zSe,OverBrace:FSe,OverBracket:DSe,OverParenthesis:LSe,para:BSe,parallel:NSe,par:HSe,parsim:jSe,parsl:USe,part:VSe,PartialD:WSe,Pcy:qSe,pcy:KSe,percnt:GSe,period:XSe,permil:YSe,perp:QSe,pertenk:JSe,Pfr:ZSe,pfr:e2e,Phi:t2e,phi:n2e,phiv:o2e,phmmat:r2e,phone:i2e,Pi:a2e,pi:s2e,pitchfork:l2e,piv:c2e,planck:u2e,planckh:d2e,plankv:f2e,plusacir:h2e,plusb:p2e,pluscir:m2e,plus:g2e,plusdo:v2e,plusdu:b2e,pluse:y2e,PlusMinus:x2e,plusmn:C2e,plussim:w2e,plustwo:_2e,pm:S2e,Poincareplane:k2e,pointint:P2e,popf:T2e,Popf:E2e,pound:R2e,prap:A2e,Pr:$2e,pr:I2e,prcue:O2e,precapprox:M2e,prec:z2e,preccurlyeq:F2e,Precedes:D2e,PrecedesEqual:L2e,PrecedesSlantEqual:B2e,PrecedesTilde:N2e,preceq:H2e,precnapprox:j2e,precneqq:U2e,precnsim:V2e,pre:W2e,prE:q2e,precsim:K2e,prime:G2e,Prime:X2e,primes:Y2e,prnap:Q2e,prnE:J2e,prnsim:Z2e,prod:eke,Product:tke,profalar:nke,profline:oke,profsurf:rke,prop:ike,Proportional:ake,Proportion:ske,propto:lke,prsim:cke,prurel:uke,Pscr:dke,pscr:fke,Psi:hke,psi:pke,puncsp:mke,Qfr:gke,qfr:vke,qint:bke,qopf:yke,Qopf:xke,qprime:Cke,Qscr:wke,qscr:_ke,quaternions:Ske,quatint:kke,quest:Pke,questeq:Tke,quot:Eke,QUOT:Rke,rAarr:Ake,race:$ke,Racute:Ike,racute:Oke,radic:Mke,raemptyv:zke,rang:Fke,Rang:Dke,rangd:Lke,range:Bke,rangle:Nke,raquo:Hke,rarrap:jke,rarrb:Uke,rarrbfs:Vke,rarrc:Wke,rarr:qke,Rarr:Kke,rArr:Gke,rarrfs:Xke,rarrhk:Yke,rarrlp:Qke,rarrpl:Jke,rarrsim:Zke,Rarrtl:e3e,rarrtl:t3e,rarrw:n3e,ratail:o3e,rAtail:r3e,ratio:i3e,rationals:a3e,rbarr:s3e,rBarr:l3e,RBarr:c3e,rbbrk:u3e,rbrace:d3e,rbrack:f3e,rbrke:h3e,rbrksld:p3e,rbrkslu:m3e,Rcaron:g3e,rcaron:v3e,Rcedil:b3e,rcedil:y3e,rceil:x3e,rcub:C3e,Rcy:w3e,rcy:_3e,rdca:S3e,rdldhar:k3e,rdquo:P3e,rdquor:T3e,rdsh:E3e,real:R3e,realine:A3e,realpart:$3e,reals:I3e,Re:O3e,rect:M3e,reg:z3e,REG:F3e,ReverseElement:D3e,ReverseEquilibrium:L3e,ReverseUpEquilibrium:B3e,rfisht:N3e,rfloor:H3e,rfr:j3e,Rfr:U3e,rHar:V3e,rhard:W3e,rharu:q3e,rharul:K3e,Rho:G3e,rho:X3e,rhov:Y3e,RightAngleBracket:Q3e,RightArrowBar:J3e,rightarrow:Z3e,RightArrow:ePe,Rightarrow:tPe,RightArrowLeftArrow:nPe,rightarrowtail:oPe,RightCeiling:rPe,RightDoubleBracket:iPe,RightDownTeeVector:aPe,RightDownVectorBar:sPe,RightDownVector:lPe,RightFloor:cPe,rightharpoondown:uPe,rightharpoonup:dPe,rightleftarrows:fPe,rightleftharpoons:hPe,rightrightarrows:pPe,rightsquigarrow:mPe,RightTeeArrow:gPe,RightTee:vPe,RightTeeVector:bPe,rightthreetimes:yPe,RightTriangleBar:xPe,RightTriangle:CPe,RightTriangleEqual:wPe,RightUpDownVector:_Pe,RightUpTeeVector:SPe,RightUpVectorBar:kPe,RightUpVector:PPe,RightVectorBar:TPe,RightVector:EPe,ring:RPe,risingdotseq:APe,rlarr:$Pe,rlhar:IPe,rlm:OPe,rmoustache:MPe,rmoust:zPe,rnmid:FPe,roang:DPe,roarr:LPe,robrk:BPe,ropar:NPe,ropf:HPe,Ropf:jPe,roplus:UPe,rotimes:VPe,RoundImplies:WPe,rpar:qPe,rpargt:KPe,rppolint:GPe,rrarr:XPe,Rrightarrow:YPe,rsaquo:QPe,rscr:JPe,Rscr:ZPe,rsh:eTe,Rsh:tTe,rsqb:nTe,rsquo:oTe,rsquor:rTe,rthree:iTe,rtimes:aTe,rtri:sTe,rtrie:lTe,rtrif:cTe,rtriltri:uTe,RuleDelayed:dTe,ruluhar:fTe,rx:hTe,Sacute:pTe,sacute:mTe,sbquo:gTe,scap:vTe,Scaron:bTe,scaron:yTe,Sc:xTe,sc:CTe,sccue:wTe,sce:_Te,scE:STe,Scedil:kTe,scedil:PTe,Scirc:TTe,scirc:ETe,scnap:RTe,scnE:ATe,scnsim:$Te,scpolint:ITe,scsim:OTe,Scy:MTe,scy:zTe,sdotb:FTe,sdot:DTe,sdote:LTe,searhk:BTe,searr:NTe,seArr:HTe,searrow:jTe,sect:UTe,semi:VTe,seswar:WTe,setminus:qTe,setmn:KTe,sext:GTe,Sfr:XTe,sfr:YTe,sfrown:QTe,sharp:JTe,SHCHcy:ZTe,shchcy:e4e,SHcy:t4e,shcy:n4e,ShortDownArrow:o4e,ShortLeftArrow:r4e,shortmid:i4e,shortparallel:a4e,ShortRightArrow:s4e,ShortUpArrow:l4e,shy:c4e,Sigma:u4e,sigma:d4e,sigmaf:f4e,sigmav:h4e,sim:p4e,simdot:m4e,sime:g4e,simeq:v4e,simg:b4e,simgE:y4e,siml:x4e,simlE:C4e,simne:w4e,simplus:_4e,simrarr:S4e,slarr:k4e,SmallCircle:P4e,smallsetminus:T4e,smashp:E4e,smeparsl:R4e,smid:A4e,smile:$4e,smt:I4e,smte:O4e,smtes:M4e,SOFTcy:z4e,softcy:F4e,solbar:D4e,solb:L4e,sol:B4e,Sopf:N4e,sopf:H4e,spades:j4e,spadesuit:U4e,spar:V4e,sqcap:W4e,sqcaps:q4e,sqcup:K4e,sqcups:G4e,Sqrt:X4e,sqsub:Y4e,sqsube:Q4e,sqsubset:J4e,sqsubseteq:Z4e,sqsup:eEe,sqsupe:tEe,sqsupset:nEe,sqsupseteq:oEe,square:rEe,Square:iEe,SquareIntersection:aEe,SquareSubset:sEe,SquareSubsetEqual:lEe,SquareSuperset:cEe,SquareSupersetEqual:uEe,SquareUnion:dEe,squarf:fEe,squ:hEe,squf:pEe,srarr:mEe,Sscr:gEe,sscr:vEe,ssetmn:bEe,ssmile:yEe,sstarf:xEe,Star:CEe,star:wEe,starf:_Ee,straightepsilon:SEe,straightphi:kEe,strns:PEe,sub:TEe,Sub:EEe,subdot:REe,subE:AEe,sube:$Ee,subedot:IEe,submult:OEe,subnE:MEe,subne:zEe,subplus:FEe,subrarr:DEe,subset:LEe,Subset:BEe,subseteq:NEe,subseteqq:HEe,SubsetEqual:jEe,subsetneq:UEe,subsetneqq:VEe,subsim:WEe,subsub:qEe,subsup:KEe,succapprox:GEe,succ:XEe,succcurlyeq:YEe,Succeeds:QEe,SucceedsEqual:JEe,SucceedsSlantEqual:ZEe,SucceedsTilde:eRe,succeq:tRe,succnapprox:nRe,succneqq:oRe,succnsim:rRe,succsim:iRe,SuchThat:aRe,sum:sRe,Sum:lRe,sung:cRe,sup1:uRe,sup2:dRe,sup3:fRe,sup:hRe,Sup:pRe,supdot:mRe,supdsub:gRe,supE:vRe,supe:bRe,supedot:yRe,Superset:xRe,SupersetEqual:CRe,suphsol:wRe,suphsub:_Re,suplarr:SRe,supmult:kRe,supnE:PRe,supne:TRe,supplus:ERe,supset:RRe,Supset:ARe,supseteq:$Re,supseteqq:IRe,supsetneq:ORe,supsetneqq:MRe,supsim:zRe,supsub:FRe,supsup:DRe,swarhk:LRe,swarr:BRe,swArr:NRe,swarrow:HRe,swnwar:jRe,szlig:URe,Tab:VRe,target:WRe,Tau:qRe,tau:KRe,tbrk:GRe,Tcaron:XRe,tcaron:YRe,Tcedil:QRe,tcedil:JRe,Tcy:ZRe,tcy:eAe,tdot:tAe,telrec:nAe,Tfr:oAe,tfr:rAe,there4:iAe,therefore:aAe,Therefore:sAe,Theta:lAe,theta:cAe,thetasym:uAe,thetav:dAe,thickapprox:fAe,thicksim:hAe,ThickSpace:pAe,ThinSpace:mAe,thinsp:gAe,thkap:vAe,thksim:bAe,THORN:yAe,thorn:xAe,tilde:CAe,Tilde:wAe,TildeEqual:_Ae,TildeFullEqual:SAe,TildeTilde:kAe,timesbar:PAe,timesb:TAe,times:EAe,timesd:RAe,tint:AAe,toea:$Ae,topbot:IAe,topcir:OAe,top:MAe,Topf:zAe,topf:FAe,topfork:DAe,tosa:LAe,tprime:BAe,trade:NAe,TRADE:HAe,triangle:jAe,triangledown:UAe,triangleleft:VAe,trianglelefteq:WAe,triangleq:qAe,triangleright:KAe,trianglerighteq:GAe,tridot:XAe,trie:YAe,triminus:QAe,TripleDot:JAe,triplus:ZAe,trisb:e5e,tritime:t5e,trpezium:n5e,Tscr:o5e,tscr:r5e,TScy:i5e,tscy:a5e,TSHcy:s5e,tshcy:l5e,Tstrok:c5e,tstrok:u5e,twixt:d5e,twoheadleftarrow:f5e,twoheadrightarrow:h5e,Uacute:p5e,uacute:m5e,uarr:g5e,Uarr:v5e,uArr:b5e,Uarrocir:y5e,Ubrcy:x5e,ubrcy:C5e,Ubreve:w5e,ubreve:_5e,Ucirc:S5e,ucirc:k5e,Ucy:P5e,ucy:T5e,udarr:E5e,Udblac:R5e,udblac:A5e,udhar:$5e,ufisht:I5e,Ufr:O5e,ufr:M5e,Ugrave:z5e,ugrave:F5e,uHar:D5e,uharl:L5e,uharr:B5e,uhblk:N5e,ulcorn:H5e,ulcorner:j5e,ulcrop:U5e,ultri:V5e,Umacr:W5e,umacr:q5e,uml:K5e,UnderBar:G5e,UnderBrace:X5e,UnderBracket:Y5e,UnderParenthesis:Q5e,Union:J5e,UnionPlus:Z5e,Uogon:e$e,uogon:t$e,Uopf:n$e,uopf:o$e,UpArrowBar:r$e,uparrow:i$e,UpArrow:a$e,Uparrow:s$e,UpArrowDownArrow:l$e,updownarrow:c$e,UpDownArrow:u$e,Updownarrow:d$e,UpEquilibrium:f$e,upharpoonleft:h$e,upharpoonright:p$e,uplus:m$e,UpperLeftArrow:g$e,UpperRightArrow:v$e,upsi:b$e,Upsi:y$e,upsih:x$e,Upsilon:C$e,upsilon:w$e,UpTeeArrow:_$e,UpTee:S$e,upuparrows:k$e,urcorn:P$e,urcorner:T$e,urcrop:E$e,Uring:R$e,uring:A$e,urtri:$$e,Uscr:I$e,uscr:O$e,utdot:M$e,Utilde:z$e,utilde:F$e,utri:D$e,utrif:L$e,uuarr:B$e,Uuml:N$e,uuml:H$e,uwangle:j$e,vangrt:U$e,varepsilon:V$e,varkappa:W$e,varnothing:q$e,varphi:K$e,varpi:G$e,varpropto:X$e,varr:Y$e,vArr:Q$e,varrho:J$e,varsigma:Z$e,varsubsetneq:eIe,varsubsetneqq:tIe,varsupsetneq:nIe,varsupsetneqq:oIe,vartheta:rIe,vartriangleleft:iIe,vartriangleright:aIe,vBar:sIe,Vbar:lIe,vBarv:cIe,Vcy:uIe,vcy:dIe,vdash:fIe,vDash:hIe,Vdash:pIe,VDash:mIe,Vdashl:gIe,veebar:vIe,vee:bIe,Vee:yIe,veeeq:xIe,vellip:CIe,verbar:wIe,Verbar:_Ie,vert:SIe,Vert:kIe,VerticalBar:PIe,VerticalLine:TIe,VerticalSeparator:EIe,VerticalTilde:RIe,VeryThinSpace:AIe,Vfr:$Ie,vfr:IIe,vltri:OIe,vnsub:MIe,vnsup:zIe,Vopf:FIe,vopf:DIe,vprop:LIe,vrtri:BIe,Vscr:NIe,vscr:HIe,vsubnE:jIe,vsubne:UIe,vsupnE:VIe,vsupne:WIe,Vvdash:qIe,vzigzag:KIe,Wcirc:GIe,wcirc:XIe,wedbar:YIe,wedge:QIe,Wedge:JIe,wedgeq:ZIe,weierp:e8e,Wfr:t8e,wfr:n8e,Wopf:o8e,wopf:r8e,wp:i8e,wr:a8e,wreath:s8e,Wscr:l8e,wscr:c8e,xcap:u8e,xcirc:d8e,xcup:f8e,xdtri:h8e,Xfr:p8e,xfr:m8e,xharr:g8e,xhArr:v8e,Xi:b8e,xi:y8e,xlarr:x8e,xlArr:C8e,xmap:w8e,xnis:_8e,xodot:S8e,Xopf:k8e,xopf:P8e,xoplus:T8e,xotime:E8e,xrarr:R8e,xrArr:A8e,Xscr:$8e,xscr:I8e,xsqcup:O8e,xuplus:M8e,xutri:z8e,xvee:F8e,xwedge:D8e,Yacute:L8e,yacute:B8e,YAcy:N8e,yacy:H8e,Ycirc:j8e,ycirc:U8e,Ycy:V8e,ycy:W8e,yen:q8e,Yfr:K8e,yfr:G8e,YIcy:X8e,yicy:Y8e,Yopf:Q8e,yopf:J8e,Yscr:Z8e,yscr:eOe,YUcy:tOe,yucy:nOe,yuml:oOe,Yuml:rOe,Zacute:iOe,zacute:aOe,Zcaron:sOe,zcaron:lOe,Zcy:cOe,zcy:uOe,Zdot:dOe,zdot:fOe,zeetrf:hOe,ZeroWidthSpace:pOe,Zeta:mOe,zeta:gOe,zfr:vOe,Zfr:bOe,ZHcy:yOe,zhcy:xOe,zigrarr:COe,zopf:wOe,Zopf:_Oe,Zscr:SOe,zscr:kOe,zwj:POe,zwnj:TOe};var uk=EOe,Nm=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ga={},C1={};function ROe(e){var t,n,o=C1[e];if(o)return o;for(o=C1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t"u"&&(n=!0),s=ROe(t),o=0,r=e.length;o=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1=56320&&a<=57343)){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[o])}return l}Vu.defaultChars=";/?:@&=+$,-_.!~*'()#";Vu.componentChars="-_.!~*'()";var AOe=Vu,w1={};function $Oe(e){var t,n,o=w1[e];if(o)return o;for(o=w1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),o.push(n);for(t=0;t=55296&&u<=57343?d+="���":d+=String.fromCharCode(u),r+=6;continue}if((a&248)===240&&r+91114111?d+="����":(u-=65536,d+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}d+="�"}return d})}Wu.defaultChars=";/?:@&=+$,#";Wu.componentChars="";var IOe=Wu,OOe=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function Nc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var MOe=/^([a-z0-9.+-]+:)/i,zOe=/:[0-9]*$/,FOe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,DOe=["<",">",'"',"`"," ","\r",` -`," "],LOe=["{","}","|","\\","^","`"].concat(DOe),BOe=["'"].concat(LOe),_1=["%","/","?",";","#"].concat(BOe),S1=["/","?","#"],NOe=255,k1=/^[+a-z0-9A-Z_-]{0,63}$/,HOe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P1={javascript:!0,"javascript:":!0},T1={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jOe(e,t){if(e&&e instanceof Nc)return e;var n=new Nc;return n.parse(e,t),n}Nc.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&e.split("#").length===1){var l=FOe.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=MOe.exec(s);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(c&&P1[c])&&(s=s.substr(2),this.slashes=!0)),!P1[c]&&(a||c&&!T1[c])){var u=-1;for(n=0;n127?b+="x":b+=m[w];if(!b.match(k1)){var _=g.slice(0,n),S=g.slice(n+1),y=m.match(HOe);y&&(_.push(y[1]),S.unshift(y[2])),S.length&&(s=S.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>NOe&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=s.indexOf("#");x!==-1&&(this.hash=s.substr(x),s=s.slice(0,x));var P=s.indexOf("?");return P!==-1&&(this.search=s.substr(P),s=s.slice(0,P)),s&&(this.pathname=s),T1[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Nc.prototype.parseHost=function(e){var t=zOe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var UOe=jOe;Ga.encode=AOe;Ga.decode=IOe;Ga.format=OOe;Ga.parse=UOe;var di={},uf,E1;function dk(){return E1||(E1=1,uf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),uf}var df,R1;function fk(){return R1||(R1=1,df=/[\0-\x1F\x7F-\x9F]/),df}var ff,A1;function VOe(){return A1||(A1=1,ff=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ff}var hf,$1;function hk(){return $1||($1=1,hf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),hf}var I1;function WOe(){return I1||(I1=1,di.Any=dk(),di.Cc=fk(),di.Cf=VOe(),di.P=Nm,di.Z=hk()),di}(function(e){function t(D){return Object.prototype.toString.call(D)}function n(D){return t(D)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(D,B){return o.call(D,B)}function i(D){var B=Array.prototype.slice.call(arguments,1);return B.forEach(function(M){if(M){if(typeof M!="object")throw new TypeError(M+"must be object");Object.keys(M).forEach(function(K){D[K]=M[K]})}}),D}function a(D,B,M){return[].concat(D.slice(0,B),M,D.slice(B+1))}function s(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function l(D){if(D>65535){D-=65536;var B=55296+(D>>10),M=56320+(D&1023);return String.fromCharCode(B,M)}return String.fromCharCode(D)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=uk;function p(D,B){var M;return r(h,B)?h[B]:B.charCodeAt(0)===35&&f.test(B)&&(M=B[1].toLowerCase()==="x"?parseInt(B.slice(2),16):parseInt(B.slice(1),10),s(M))?l(M):D}function g(D){return D.indexOf("\\")<0?D:D.replace(c,"$1")}function m(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(d,function(B,M,K){return M||p(B,K)})}var b=/[&<>"]/,w=/[&<>"]/g,C={"&":"&","<":"<",">":">",'"':"""};function _(D){return C[D]}function S(D){return b.test(D)?D.replace(w,_):D}var y=/[.?*+^$[\]\\(){}|-]/g;function x(D){return D.replace(y,"\\$&")}function P(D){switch(D){case 9:case 32:return!0}return!1}function k(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=Nm;function R(D){return T.test(D)}function E(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function q(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Ga,e.lib.ucmicro=WOe(),e.assign=i,e.isString=n,e.has=r,e.unescapeMd=g,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=S,e.arrayReplaceAt=a,e.isSpace=P,e.isWhiteSpace=k,e.isMdAsciiPunct=E,e.isPunctChar=R,e.escapeRE=x,e.normalizeReference=q})(Lt);var qu={},qOe=function(t,n,o){var r,i,a,s,l=-1,c=t.posMax,u=t.pos;for(t.pos=n+1,r=1;t.pos32))return s;if(r===41){if(i===0)break;i--}a++}return n===a||i!==0||(s.str=O1(t.slice(n,a)),s.pos=a,s.ok=!0),s},GOe=Lt.unescapeAll,XOe=function(t,n,o){var r,i,a=0,s=n,l={ok:!1,pos:0,lines:0,str:""};if(s>=o||(i=t.charCodeAt(s),i!==34&&i!==39&&i!==40))return l;for(s++,i===40&&(i=41);s"+zi(i.content)+""};Yo.code_block=function(e,t,n,o,r){var i=e[t];return""+zi(e[t].content)+` -`};Yo.fence=function(e,t,n,o,r){var i=e[t],a=i.info?QOe(i.info).trim():"",s="",l="",c,u,d,f,h;return a&&(d=a.split(/(\s+)/g),s=d[0],l=d.slice(2).join("")),n.highlight?c=n.highlight(i.content,s,l)||zi(i.content):c=zi(i.content),c.indexOf("c.value===e.checkedValue),d=j(!1),f=j(!1),h=M(()=>{const{railStyle:k}=e;if(k)return k({focused:f.value,checked:u.value})});function p(k){const{"onUpdate:value":P,onChange:T,onUpdateValue:$}=e,{nTriggerFormInput:E,nTriggerFormChange:G}=r;P&&Re(P,k),$&&Re($,k),T&&Re(T,k),s.value=k,E(),G()}function g(){const{nTriggerFormFocus:k}=r;k()}function m(){const{nTriggerFormBlur:k}=r;k()}function b(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function w(){f.value=!0,g()}function C(){f.value=!1,m(),d.value=!1}function _(k){e.loading||a.value||k.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),d.value=!1)}function S(k){e.loading||a.value||k.key===" "&&(k.preventDefault(),d.value=!0)}const y=M(()=>{const{value:k}=i,{self:{opacityDisabled:P,railColor:T,railColorActive:$,buttonBoxShadow:E,buttonColor:G,boxShadowFocus:B,loadingColor:D,textColor:L,iconColor:X,[Te("buttonHeight",k)]:V,[Te("buttonWidth",k)]:ae,[Te("buttonWidthPressed",k)]:ue,[Te("railHeight",k)]:ee,[Te("railWidth",k)]:R,[Te("railBorderRadius",k)]:A,[Te("buttonBorderRadius",k)]:Y},common:{cubicBezierEaseInOut:W}}=o.value;let oe,K,le;return hs?(oe=`calc((${ee} - ${V}) / 2)`,K=`max(${ee}, ${V})`,le=`max(${R}, calc(${R} + ${V} - ${ee}))`):(oe=zn((bn(ee)-bn(V))/2),K=zn(Math.max(bn(ee),bn(V))),le=bn(ee)>bn(V)?R:zn(bn(R)+bn(V)-bn(ee))),{"--n-bezier":W,"--n-button-border-radius":Y,"--n-button-box-shadow":E,"--n-button-color":G,"--n-button-width":ae,"--n-button-width-pressed":ue,"--n-button-height":V,"--n-height":K,"--n-offset":oe,"--n-opacity-disabled":P,"--n-rail-border-radius":A,"--n-rail-color":T,"--n-rail-color-active":$,"--n-rail-height":ee,"--n-rail-width":R,"--n-width":le,"--n-box-shadow-focus":B,"--n-loading-color":D,"--n-text-color":L,"--n-icon-color":X}}),x=n?Pt("switch",M(()=>i.value[0]),y,e):void 0;return{handleClick:b,handleBlur:C,handleFocus:w,handleKeyup:_,handleKeydown:S,mergedRailStyle:h,pressed:d,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:a,cssVars:n?void 0:y,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:o,onRender:r,$slots:i}=this;r==null||r();const{checked:a,unchecked:s,icon:l,"checked-icon":c,"unchecked-icon":u}=i,d=!(ga(l)&&ga(c)&&ga(u));return v("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},v("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:o},Et(a,f=>Et(s,h=>f||h?v("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),f),v("div",{class:`${e}-switch__rail-placeholder`},v("div",{class:`${e}-switch__button-placeholder`}),h)):null)),v("div",{class:`${e}-switch__button`},Et(l,f=>Et(c,h=>Et(u,p=>v(Ki,null,{default:()=>this.loading?v(oi,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(h||f)?v("div",{class:`${e}-switch__button-icon`,key:h?"checked-icon":"icon"},h||f):!this.checked&&(p||f)?v("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||f):null})))),Et(a,f=>f&&v("div",{key:"checked",class:`${e}-switch__checked`},f)),Et(s,f=>f&&v("div",{key:"unchecked",class:`${e}-switch__unchecked`},f)))))}}),IQ=ye({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var o;return(o=t.default)===null||o===void 0?void 0:o.call(t)}}}),OQ={message:RY,notification:VY,loadingBar:dY,dialog:Hq,modal:MY};function MQ({providersAndProps:e,configProviderProps:t}){let n=Rx(r);const o={app:n};function r(){return v(OS,ke(t),{default:()=>e.map(({type:s,Provider:l,props:c})=>v(l,ke(c),{default:()=>v(IQ,{onSetup:()=>o[s]=OQ[s]()})}))})}let i;return pr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var s;if(n===null||i===null){cr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(s=i.parentNode)===null||s===void 0||s.removeChild(i),i=null,n=null}},o)}function zQ(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:o,notificationProviderProps:r,loadingBarProviderProps:i,modalProviderProps:a}={}){const s=[];return e.forEach(c=>{switch(c){case"message":s.push({type:c,Provider:AY,props:n});break;case"notification":s.push({type:c,Provider:UY,props:r});break;case"dialog":s.push({type:c,Provider:Nq,props:o});break;case"loadingBar":s.push({type:c,Provider:uY,props:i});break;case"modal":s.push({type:c,Provider:OY,props:a})}}),MQ({providersAndProps:s,configProviderProps:t})}function FQ(){const e=Ve(Eo,null);return M(()=>{if(e===null)return xt;const{mergedThemeRef:{value:t},mergedThemeOverridesRef:{value:n}}=e,o=(t==null?void 0:t.common)||xt;return n!=null&&n.common?Object.assign({},o,n.common):o})}const DQ=()=>({}),LQ={name:"Equation",common:je,self:DQ},BQ=LQ,NQ={name:"FloatButtonGroup",common:je,self(e){const{popoverColor:t,dividerColor:n,borderRadius:o}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},HQ=NQ,ok={name:"dark",common:je,Alert:mj,Anchor:Pj,AutoComplete:jj,Avatar:bS,AvatarGroup:Kj,BackTop:Xj,Badge:rU,Breadcrumb:cU,Button:Vn,ButtonGroup:qK,Calendar:kU,Card:PS,Carousel:LU,Cascader:lV,Checkbox:Ya,Code:IS,Collapse:bV,CollapseTransition:CV,ColorPicker:AU,DataTable:iW,DatePicker:yq,Descriptions:_q,Dialog:b2,Divider:Wq,Drawer:Qq,Dropdown:Im,DynamicInput:vK,DynamicTags:kK,Element:TK,Empty:Xi,Ellipsis:VS,Equation:BQ,Flex:EK,Form:MK,GradientText:GK,Icon:OW,IconWrapper:NX,Image:HX,Input:go,InputNumber:YK,LegacyTransfer:rY,Layout:tG,List:sG,LoadingBar:cG,Log:pG,Menu:CG,Mention:gG,Message:VK,Modal:Oq,Notification:BK,PageHeader:SG,Pagination:HS,Popconfirm:AG,Popover:Qi,Popselect:MS,Progress:F2,QrCode:eQ,Radio:KS,Rate:OG,Result:LG,Row:zX,Scrollbar:Un,Select:LS,Skeleton:bQ,Slider:HG,Space:R2,Spin:WG,Statistic:GG,Steps:JG,Switch:eX,Table:sX,Tabs:dX,Tag:lS,Thing:pX,TimePicker:m2,Timeline:vX,Tooltip:Bu,Transfer:xX,Tree:N2,TreeSelect:SX,Typography:AX,Upload:$X,Watermark:OX,Split:AQ,FloatButton:DX,FloatButtonGroup:HQ},jQ={"aria-hidden":"true",width:"1em",height:"1em"},UQ=["xlink:href","fill"],VQ=ye({__name:"SvgIcon",props:{icon:{type:String,required:!0},prefix:{type:String,default:"icon-custom"},color:{type:String,default:"currentColor"}},setup(e){const t=e,n=M(()=>`#${t.prefix}-${t.icon}`);return(o,r)=>(ve(),ze("svg",jQ,[Q("use",{"xlink:href":n.value,fill:e.color},null,8,UQ)]))}}),rl=(e,t={size:12})=>()=>v(Xo,t,()=>v(BI,{icon:e})),rk=(e,t={size:12})=>()=>v(Xo,t,()=>v(VQ,{icon:e}));function WQ(){var n,o;const e={default:qQ,blue:KQ,black:GQ,darkblue:XQ},t=((o=(n=window.settings)==null?void 0:n.theme)==null?void 0:o.color)||"default";return Object.prototype.hasOwnProperty.call(e,t)?e[t]:e.default}const qQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#316C72FF",primaryColorHover:"#316C72E3",primaryColorPressed:"#2B4C59FF",primaryColorSuppl:"#316C72E3",infoColor:"#316C72FF",infoColorHover:"#316C72E3",infoColorPressed:"#2B4C59FF",infoColorSuppl:"#316C72E3",successColor:"#18A058FF",successColorHover:"#36AD6AFF",successColorPressed:"#0C7A43FF",successColorSuppl:"#36AD6AFF",warningColor:"#F0A020FF",warningColorHover:"#FCB040FF",warningColorPressed:"#C97C10FF",warningColorSuppl:"#FCB040FF",errorColor:"#D03050FF",errorColorHover:"#DE576DFF",errorColorPressed:"#AB1F3FFF",errorColorSuppl:"#DE576DFF"}}},KQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#0665d0",primaryColorHover:"#2a84de",primaryColorPressed:"#004085",primaryColorSuppl:"#0056b3",infoColor:"#0665d0",infoColorHover:"#2a84de",infoColorPressed:"#0c5460",infoColorSuppl:"#004085",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},GQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#343a40",primaryColorHover:"#23272b",primaryColorPressed:"#1d2124",primaryColorSuppl:"#23272b",infoColor:"#343a40",infoColorHover:"#23272b",infoColorPressed:"#1d2124",infoColorSuppl:"#23272b",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},XQ={header:{height:60},tags:{visible:!0,height:50},naiveThemeOverrides:{common:{primaryColor:"#004175",primaryColorHover:"#002c4c",primaryColorPressed:"#001f35",primaryColorSuppl:"#002c4c",infoColor:"#004175",infoColorHover:"#002c4c",infoColorPressed:"#001f35",infoColorSuppl:"#002c4c",successColor:"#28a745",successColorHover:"#218838",successColorPressed:"#1e7e34",successColorSuppl:"#218838",warningColor:"#ffc107",warningColorHover:"#e0a800",warningColorPressed:"#d39e00",warningColorSuppl:"#e0a800",errorColor:"#dc3545",errorColorHover:"#c82333",errorColorPressed:"#bd2130",errorColorSuppl:"#c82333"}}},{header:YQ,tags:tNe,naiveThemeOverrides:Kh}=WQ();function Wu(e){return np()?(wy(e),!0):!1}function Po(e){return typeof e=="function"?e():ke(e)}const ik=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const QQ=e=>e!=null,JQ=Object.prototype.toString,ZQ=e=>JQ.call(e)==="[object Object]",ak=()=>{};function eJ(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const sk=e=>e();function tJ(e=sk){const t=j(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:uo(t),pause:n,resume:o,eventFilter:r}}function nJ(e){return e||no()}function oJ(...e){if(e.length!==1)return Ue(...e);const t=e[0];return typeof t=="function"?uo(oP(()=>({get:t,set:ak}))):j(t)}function rJ(e,t,n={}){const{eventFilter:o=sk,...r}=n;return ut(e,eJ(o,t),r)}function iJ(e,t,n={}){const{eventFilter:o,...r}=n,{eventFilter:i,pause:a,resume:s,isActive:l}=tJ(o);return{stop:rJ(e,t,{...r,eventFilter:i}),pause:a,resume:s,isActive:l}}function lk(e,t=!0,n){nJ()?jt(e,n):t?e():Ht(e)}function aJ(e=!1,t={}){const{truthyValue:n=!0,falsyValue:o=!1}=t,r=cn(e),i=j(e);function a(s){if(arguments.length)return i.value=s,i.value;{const l=Po(n);return i.value=i.value===l?Po(o):l,i.value}}return r?a:[i,a]}function Oa(e){var t;const n=Po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const qr=ik?window:void 0,sJ=ik?window.document:void 0;function Vc(...e){let t,n,o,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,r]=e,t=qr):[t,n,o,r]=e,!t)return ak;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},s=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),l=ut(()=>[Oa(t),Po(r)],([u,d])=>{if(a(),!u)return;const f=ZQ(d)?{...d}:d;i.push(...n.flatMap(h=>o.map(p=>s(u,h,p,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Wu(c),c}function lJ(){const e=j(!1),t=no();return t&&jt(()=>{e.value=!0},t),e}function Wm(e){const t=lJ();return M(()=>(t.value,!!e()))}function cJ(e,t,n={}){const{window:o=qr,...r}=n;let i;const a=Wm(()=>o&&"MutationObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},l=M(()=>{const f=Po(e),h=(Array.isArray(f)?f:[f]).map(Oa).filter(QQ);return new Set(h)}),c=ut(()=>l.value,f=>{s(),a.value&&f.size&&(i=new MutationObserver(t),f.forEach(h=>i.observe(h,r)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),d=()=>{s(),c()};return Wu(d),{isSupported:a,stop:d,takeRecords:u}}function uJ(e,t={}){const{window:n=qr}=t,o=Wm(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const i=j(!1),a=c=>{i.value=c.matches},s=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",a):r.removeListener(a))},l=Yt(()=>{o.value&&(s(),r=n.matchMedia(Po(e)),"addEventListener"in r?r.addEventListener("change",a):r.addListener(a),i.value=r.matches)});return Wu(()=>{l(),s(),r=void 0}),i}const Jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zl="__vueuse_ssr_handlers__",dJ=fJ();function fJ(){return Zl in Jl||(Jl[Zl]=Jl[Zl]||{}),Jl[Zl]}function ck(e,t){return dJ[e]||t}function hJ(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const pJ={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},S1="vueuse-storage";function mJ(e,t,n,o={}){var r;const{flush:i="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=qr,eventFilter:f,onError:h=T=>{console.error(T)},initOnMounted:p}=o,g=(u?za:j)(typeof t=="function"?t():t);if(!n)try{n=ck("getDefaultStorage",()=>{var T;return(T=qr)==null?void 0:T.localStorage})()}catch(T){h(T)}if(!n)return g;const m=Po(t),b=hJ(m),w=(r=o.serializer)!=null?r:pJ[b],{pause:C,resume:_}=iJ(g,()=>y(g.value),{flush:i,deep:a,eventFilter:f});d&&s&&lk(()=>{Vc(d,"storage",k),Vc(d,S1,P),p&&k()}),p||k();function S(T,$){d&&d.dispatchEvent(new CustomEvent(S1,{detail:{key:e,oldValue:T,newValue:$,storageArea:n}}))}function y(T){try{const $=n.getItem(e);if(T==null)S($,null),n.removeItem(e);else{const E=w.write(T);$!==E&&(n.setItem(e,E),S($,E))}}catch($){h($)}}function x(T){const $=T?T.newValue:n.getItem(e);if($==null)return l&&m!=null&&n.setItem(e,w.write(m)),m;if(!T&&c){const E=w.read($);return typeof c=="function"?c(E,m):b==="object"&&!Array.isArray(E)?{...m,...E}:E}else return typeof $!="string"?$:w.read($)}function k(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){g.value=m;return}if(!(T&&T.key!==e)){C();try{(T==null?void 0:T.newValue)!==w.write(g.value)&&(g.value=x(T))}catch($){h($)}finally{T?Ht(_):_()}}}}function P(T){k(T.detail)}return g}function uk(e){return uJ("(prefers-color-scheme: dark)",e)}function gJ(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=qr,storage:i,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},f=uk({window:r}),h=M(()=>f.value?"dark":"light"),p=l||(a==null?oJ(o):mJ(a,o,i,{window:r,listenToStorageChanges:s})),g=M(()=>p.value==="auto"?h.value:p.value),m=ck("updateHTMLAttrs",(_,S,y)=>{const x=typeof _=="string"?r==null?void 0:r.document.querySelector(_):Oa(_);if(!x)return;let k;if(u){k=r.document.createElement("style");const P="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";k.appendChild(document.createTextNode(P)),r.document.head.appendChild(k)}if(S==="class"){const P=y.split(/\s/g);Object.values(d).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{P.includes(T)?x.classList.add(T):x.classList.remove(T)})}else x.setAttribute(S,y);u&&(r.getComputedStyle(k).opacity,document.head.removeChild(k))});function b(_){var S;m(t,n,(S=d[_])!=null?S:_)}function w(_){e.onChanged?e.onChanged(_,b):b(_)}ut(g,w,{flush:"post",immediate:!0}),lk(()=>w(g.value));const C=M({get(){return c?p.value:g.value},set(_){p.value=_}});try{return Object.assign(C,{store:p,system:h,state:g})}catch{return C}}function vJ(e,t,n={}){const{window:o=qr,initialValue:r="",observe:i=!1}=n,a=j(r),s=M(()=>{var c;return Oa(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function l(){var c;const u=Po(e),d=Po(s);if(d&&o){const f=(c=o.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();a.value=f||r}}return i&&cJ(s,l,{attributeFilter:["style","class"],window:o}),ut([s,()=>Po(e)],l,{immediate:!0}),ut(a,c=>{var u;(u=s.value)!=null&&u.style&&s.value.style.setProperty(Po(e),c)}),a}function dk(e={}){const{valueDark:t="dark",valueLight:n="",window:o=qr}=e,r=gJ({...e,onChanged:(s,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,s==="dark",l,s):l(s)},modes:{dark:t,light:n}}),i=M(()=>r.system?r.system.value:uk({window:o}).value?"dark":"light");return M({get(){return r.value==="dark"},set(s){const l=s?"dark":"light";i.value===l?r.value="auto":r.value=l}})}const k1=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function bJ(e,t={}){const{document:n=sJ,autoExit:o=!1}=t,r=M(()=>{var b;return(b=Oa(e))!=null?b:n==null?void 0:n.querySelector("html")}),i=j(!1),a=M(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),s=M(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(b=>n&&b in n||r.value&&b in r.value)),l=M(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(b=>n&&b in n||r.value&&b in r.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(b=>n&&b in n),u=Wm(()=>r.value&&n&&a.value!==void 0&&s.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===r.value:!1,f=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const b=r.value;if((b==null?void 0:b[l.value])!=null)return!!b[l.value]}}return!1};async function h(){if(!(!u.value||!i.value)){if(s.value)if((n==null?void 0:n[s.value])!=null)await n[s.value]();else{const b=r.value;(b==null?void 0:b[s.value])!=null&&await b[s.value]()}i.value=!1}}async function p(){if(!u.value||i.value)return;f()&&await h();const b=r.value;a.value&&(b==null?void 0:b[a.value])!=null&&(await b[a.value](),i.value=!0)}async function g(){await(i.value?h():p())}const m=()=>{const b=f();(!b||b&&d())&&(i.value=b)};return Vc(n,k1,m,!1),Vc(()=>Oa(r),k1,m,!1),o&&Wu(h),{isSupported:u,isFullscreen:i,enter:p,exit:h,toggle:g}}const Tn=du("app",{state(){var e,t,n,o,r,i,a;return{collapsed:window.innerWidth<768,isDark:dk(),title:(e=window.settings)==null?void 0:e.title,assets_path:(t=window.settings)==null?void 0:t.assets_path,theme:(n=window.settings)==null?void 0:n.theme,version:(o=window.settings)==null?void 0:o.version,background_url:(r=window.settings)==null?void 0:r.background_url,description:(i=window.settings)==null?void 0:i.description,logo:(a=window.settings)==null?void 0:a.logo,lang:wu().value||"zh-CN",appConfig:{}}},actions:{async getConfig(){const{data:e}=await $J();e&&(this.appConfig=e)},switchCollapsed(){this.collapsed=!this.collapsed},setCollapsed(e){this.collapsed=e},setDark(e){this.isDark=e},toggleDark(){this.isDark=!this.isDark},async switchLang(e){ZC(e),location.reload()}}});function yJ(e){let t=null;class n{removeMessage(r=t,i=2e3){setTimeout(()=>{r&&(r.destroy(),r=null)},i)}showMessage(r,i,a={}){if(t&&t.type==="loading")t.type=r,t.content=i,r!=="loading"&&this.removeMessage(t,a.duration);else{const s=e[r](i,a);r==="loading"&&(t=s)}}loading(r){this.showMessage("loading",r,{duration:0})}success(r,i={}){this.showMessage("success",r,i)}error(r,i={}){this.showMessage("error",r,i)}info(r,i={}){this.showMessage("info",r,i)}warning(r,i={}){this.showMessage("warning",r,i)}}return new n}function xJ(e){return e.confirm=function(t={}){const n=!z$(t.title);return new Promise(o=>{e[t.type||"warning"]({showIcon:n,positiveText:mn.global.t("确定"),negativeText:mn.global.t("取消"),onPositiveClick:()=>{t.confirm&&t.confirm(),o(!0)},onNegativeClick:()=>{t.cancel&&t.cancel(),o(!1)},onMaskClick:()=>{t.cancel&&t.cancel(),o(!1)},...t})})},e}function CJ(){const e=Tn(),t=M(()=>({theme:e.isDark?ok:void 0,themeOverrides:Kh})),{message:n,dialog:o,notification:r,loadingBar:i}=zQ(["message","dialog","notification","loadingBar"],{configProviderProps:t});window.$loadingBar=i,window.$notification=r,window.$message=yJ(n),window.$dialog=xJ(o)}const wJ="access_token",_J=6*60*60;function pf(e){ll.set(wJ,e,_J)}function SJ(e){if(e.method==="get"&&(e.params={...e.params,t:new Date().getTime()}),vE(e))return e;const t=CC();return t.value?(e.headers.Authorization=e.headers.Authorization||t.value,e):($p(),Promise.reject({code:"-1",message:"未登录"}))}function kJ(e){return Promise.reject(e)}function PJ(e){return Promise.resolve((e==null?void 0:e.data)||{code:-1,message:"未知错误"})}function TJ(e){var i;const t=((i=e.response)==null?void 0:i.data)||{code:-1,message:"未知错误"};let n=t.message;const{code:o,errors:r}=t;switch(o){case 401:n=n||"登录已过期";break;case 403:n=n||"没有权限";break;case 404:n=n||"资源或接口不存在";break;default:n=n||"未知异常"}return window.$message.error(n),Promise.resolve({code:o,message:n,errors:r})}function AJ(e={}){const t={headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Language":wu().value||"zh-CN"},timeout:12e3},n=mE.create({...t,...e});return n.interceptors.request.use(SJ,kJ),n.interceptors.response.use(PJ,TJ),n}const _t=AJ({baseURL:RJ()});function RJ(){let e=EJ(window.routerBase||"/")+"api/v1";return/^https?:\/\//.test(e)||(e=window.location.origin+e),e}function EJ(e){return e.endsWith("/")?e:"/"+e}function $J(){return _t.get("/user/comm/config")}function IJ(){return _t.get("/user/info")}function OJ(){return _t.get("/user/getStat")}function MJ(){return _t.get("/user/getSubscribe")}function zJ(){return _t.get("/user/notice/fetch")}function FJ(){return _t.get("/user/plan/fetch")}function fk(){return _t.get("/user/server/fetch")}function qm(){return _t.get("/user/order/fetch")}function DJ(e){return _t.get("/user/order/detail?trade_no="+e)}function qu(e){return _t.post("/user/order/cancel",{trade_no:e})}function LJ(e){return _t.get("/user/order/check?trade_no="+e)}function BJ(){return _t.get("/user/invite/fetch")}function NJ(e=1,t=10){return _t.get(`/user/invite/details?current=${e}&page_size=${t}`)}function HJ(){return _t.get("/user/invite/save")}function jJ(e){return _t.post("/user/transfer",{transfer_amount:e})}function UJ(e){return _t.post("/user/ticket/withdraw",e)}function P1(e){return _t.post("/user/update",e)}function VJ(e,t){return _t.post("/user/changePassword",{old_password:e,new_password:t})}function WJ(){return _t.get("/user/resetSecurity")}function qJ(){return _t.get("/user/stat/getTrafficLog")}function KJ(){return _t.get("/user/order/getPaymentMethod")}function hk(e,t,n){return _t.post("/user/order/save",{plan_id:e,period:t,coupon_code:n})}function GJ(e,t){return _t.post("/user/order/checkout",{trade_no:e,method:t})}function XJ(e){return _t.get("/user/plan/fetch?id="+e)}function YJ(e,t){return _t.post("/user/coupon/check",{code:e,plan_id:t})}function QJ(){return _t.get("/user/ticket/fetch")}function JJ(e,t,n){return _t.post("/user/ticket/save",{subject:e,level:t,message:n})}function ZJ(e){return _t.post("/user/ticket/close",{id:e})}function eZ(e){return _t.get("/user/ticket/fetch?id="+e)}function tZ(e,t){return _t.post("/user/ticket/reply",{id:e,message:t})}function nZ(e="",t="zh-CN"){return _t.get(`/user/knowledge/fetch?keyword=${e}&language=${t}`)}function oZ(e,t="zh-CN"){return _t.get(`/user/knowledge/fetch?id=${e}&language=${t}`)}function rZ(){return _t.get("user/telegram/getBotInfo")}const ea=du("user",{state:()=>({userInfo:{}}),getters:{userUUID(){var e;return(e=this.userInfo)==null?void 0:e.uuid},email(){var e;return(e=this.userInfo)==null?void 0:e.email},avatar(){return this.userInfo.avatar_url??""},role(){return[]},remind_expire(){return this.userInfo.remind_expire},remind_traffic(){return this.userInfo.remind_traffic},balance(){return this.userInfo.balance},plan_id(){return this.userInfo.plan_id},expired_at(){return this.userInfo.expired_at},plan(){return this.userInfo.plan},subscribe(){return this.userInfo.subscribe}},actions:{async getUserInfo(){try{const e=await IJ(),{data:t}=e;return t?(this.userInfo=t,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async getUserSubscribe(){try{const e=await MJ(),{data:t}=e;return t?(this.userInfo.subscribe=t,this.userInfo.plan=t.plan,t):Promise.reject(e)}catch(e){return Promise.reject(e)}},async logout(){wC(),this.userInfo={},$p()},setUserInfo(e){this.userInfo={...this.userInfo,...e}}}});function iZ(e,t){var o,r;if(!((o=e.meta)!=null&&o.requireAuth))return!0;const n=((r=e.meta)==null?void 0:r.role)||[];return!t.length||!n.length?!1:t.some(i=>n.includes(i))}function pk(e,t){const n=[];return e.forEach(o=>{if(iZ(o,t)){const r={...o,children:[]};o.children&&o.children.length?r.children=pk(o.children,t):Reflect.deleteProperty(r,"children"),n.push(r)}}),n}const mk=du("permission",{state(){return{accessRoutes:[]}},getters:{routes(){return jx.concat(JSON.parse(JSON.stringify(this.accessRoutes)))},menus(){return this.routes.filter(e=>{var t;return e.name&&!((t=e.meta)!=null&&t.isHidden)})}},actions:{generateRoutes(e){const t=pk(Ux,e);return this.accessRoutes=t,t}}}),aZ=Pc.get("activeTag"),sZ=Pc.get("tags"),lZ=["/404","/login"],cZ=du({id:"tag",state:()=>{const e=j(sZ.value),t=j(aZ.value),n=j(!1);return{tags:e,activeTag:t,reloading:n}},getters:{activeIndex:e=>()=>e.tags.findIndex(t=>t.path===e.activeTag)},actions:{setActiveTag(e){this.activeTag=e,Pc.set("activeTag",e)},setTags(e){this.tags=e,Pc.set("tags",e)},addTag(e={}){if(lZ.includes(e.path))return;let t=this.tags.find(n=>n.path===e.path);t?t=e:this.setTags([...this.tags,e]),this.setActiveTag(e.path)},async reloadTag(e,t){let n=this.tags.find(o=>o.path===e);n?t&&(n.keepAlive=!1):(n={path:e,keepAlive:!1},this.tags.push(n)),window.$loadingBar.start(),this.reloading=!0,await Ht(),this.reloading=!1,n.keepAlive=t,setTimeout(()=>{document.documentElement.scrollTo({left:0,top:0}),window.$loadingBar.finish()},100)},removeTag(e){this.setTags(this.tags.filter(t=>t.path!==e)),e===this.activeTag&&Gt.push(this.tags[this.tags.length-1].path)},removeOther(e){e||(e=this.activeTag),e||this.setTags(this.tags.filter(t=>t.path===e)),e!==this.activeTag&&Gt.push(this.tags[this.tags.length-1].path)},removeLeft(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r>=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Gt.push(n[n.length-1].path)},removeRight(e){const t=this.tags.findIndex(o=>o.path===e),n=this.tags.filter((o,r)=>r<=t);this.setTags(n),n.find(o=>o.path===this.activeTag)||Gt.push(n[n.length-1].path)},resetTags(){this.setTags([]),this.setActiveTag("")}}});function uZ(e){e.use(IR())}const dZ=["/login","/register","/forgetpassword"];function fZ(e){const t=ea(),n=mk();e.beforeEach(async(o,r,i)=>{var s;CC().value?o.path==="/login"?i({path:((s=o.query.redirect)==null?void 0:s.toString())??"/dashboard"}):t.userUUID?i():(await Promise.all([Tn().getConfig(),t.getUserInfo().catch(c=>{wC(),$p(),window.$message.error(c.message||"获取用户信息失败!")})]),n.generateRoutes(t.role).forEach(c=>{c.name&&!e.hasRoute(c.name)&&e.addRoute(c)}),e.addRoute(AR),i({...o,replace:!0})):dZ.includes(o.path)?i():i({path:"/login"})})}function hZ(e){RR(e),fZ(e),ER(e)}const Gt=QA({history:kA("/"),routes:jx,scrollBehavior:()=>({left:0,top:0})});function pZ(e){e.use(Gt),hZ(Gt)}const mZ=ye({__name:"AppProvider",setup(e){const t=Tn(),n={"zh-CN":[BL,N0],"en-US":[U_,W_],"fa-IR":[YL,IN],"ko-KR":[qL,V7],"vi-VN":[GL,EN],"zh-TW":[HL,N0],"ja-JP":[VL,a7]};function o(){const r=Kh.common;for(const i in r)vJ(`--${$L(i)}`,document.documentElement).value=r[i]||"",i==="primaryColor"&&window.localStorage.setItem("__THEME_COLOR__",r[i]||"")}return o(),(r,i)=>{const a=OS;return ve(),We(a,{"wh-full":"",locale:n[ke(t).lang][0],"date-locale":n[ke(t).lang][1],theme:ke(t).isDark?ke(ok):void 0,"theme-overrides":ke(Kh)},{default:ge(()=>[ou(r.$slots,"default")]),_:3},8,["locale","date-locale","theme","theme-overrides"])}}}),gZ=ye({__name:"App",setup(e){const t=ea();return Yt(()=>{const{balance:o,plan:r,expired_at:i,subscribe:a,email:s}=t;if(window.$crisp&&s){const l=[["Balance",(o/100).toString()],...r!=null&&r.name?[["Plan",r.name]]:[],["ExpireTime",Wo(i)],["UsedTraffic",As(((a==null?void 0:a.u)||0)+((a==null?void 0:a.d)||0))],["AllTraffic",As(a==null?void 0:a.transfer_enable)]];window.$crisp.push(["set","user:email",s]),window.$crisp.push(["set","session:data",[l]])}}),(o,r)=>{const i=nu("router-view");return ve(),We(mZ,null,{default:ge(()=>[se(i,null,{default:ge(({Component:a})=>[(ve(),We(wa(a)))]),_:1})]),_:1})}}}),Ku=Rx(gZ);uZ(Ku);CJ();pZ(Ku);$$(Ku);Ku.mount("#app");const vZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},bZ=Q("path",{fill:"currentColor",d:"M6.225 4.811a1 1 0 0 0-1.414 1.414L10.586 12L4.81 17.775a1 1 0 1 0 1.414 1.414L12 13.414l5.775 5.775a1 1 0 0 0 1.414-1.414L13.414 12l5.775-5.775a1 1 0 0 0-1.414-1.414L12 10.586z"},null,-1),yZ=[bZ];function xZ(e,t){return ve(),ze("svg",vZ,[...yZ])}const gk={name:"gg-close",render:xZ},CZ={class:"h-15 f-c-c"},wZ=["src"],_Z=ye({__name:"SideLogo",setup(e){const t=Tn();return(n,o)=>{const r=gk,i=zt;return ve(),ze("div",CZ,[ke(t).logo?(ve(),ze("img",{key:0,src:ke(t).logo,height:"30"},null,8,wZ)):Ct("",!0),dn(Q("h2",{class:"ml-2.5 max-w-35 flex-shrink-0 font-bold color-primary"},pe(ke(t).title),513),[[Mn,!ke(t).collapsed]]),se(i,{onClick:[o[0]||(o[0]=jT(()=>{},["stop"])),ke(t).switchCollapsed],class:"absolute right-4 h-auto p-0 md:hidden",tertiary:"",size:"medium"},{icon:ge(()=>[se(r,{class:"cursor-pointer opacity-85"})]),_:1},8,["onClick"])])}}}),SZ=ye({__name:"SideMenu",setup(e){const t=Tn(),n=p=>mn.global.t(p);function o(){window.innerWidth<=950&&(t.collapsed=!0)}const r=Hx(),i=La(),a=mk(),s=M(()=>{var p;return((p=i.meta)==null?void 0:p.activeMenu)||i.name}),l=M(()=>a.menus.reduce((m,b)=>{var C,_,S,y;const w=d(b);if((_=(C=w.meta)==null?void 0:C.group)!=null&&_.key){const x=w.meta.group.key,k=m.findIndex(P=>P.key===x);if(k!==-1)(S=m[k].children)==null||S.push(w),m[k].children=(y=m[k].children)==null?void 0:y.sort((P,T)=>P.order-T.order);else{const P={type:"group",label:n(w.meta.group.label||""),key:x,children:[w]};m.push(P)}}else m.push(w);return m.sort((x,k)=>x.order-k.order)},[]).sort((m,b)=>m.type==="group"&&b.type!=="group"?1:m.type!=="group"&&b.type==="group"?-1:m.order-b.order));function c(p,g){return sb(g)?g:"/"+[p,g].filter(m=>!!m&&m!=="/").map(m=>m.replace(/(^\/)|(\/$)/g,"")).join("/")}function u(p,g){var b;const m=((b=p.children)==null?void 0:b.filter(w=>{var C;return w.name&&!((C=w.meta)!=null&&C.isHidden)}))||[];return m.length===1?d(m[0],g):m.length>1?{children:m.map(w=>d(w,g)).sort((w,C)=>w.order-C.order)}:null}function d(p,g=""){const{title:m,order:b}=p.meta||{title:"",order:0},{name:w,path:C}=p,_=m||w||"",S=w||"",y=f(p.meta),x=b||0,k=p.meta;let P={label:n(_),key:S,path:c(g,C),icon:y!==null?y:void 0,meta:k,order:x};const T=u(p,P.path);return T&&(P={...P,...T}),P}function f(p){return p!=null&&p.customIcon?rk(p.customIcon,{size:18}):p!=null&&p.icon?rl(p.icon,{size:18}):null}function h(p,g){sb(g.path)?window.open(g.path):r.push(g.path)}return(p,g)=>{const m=CY;return ve(),We(m,{ref:"menu",class:"side-menu",accordion:"","root-indent":18,indent:0,"collapsed-icon-size":22,"collapsed-width":60,options:l.value,value:s.value,"onUpdate:value":h,onClick:g[0]||(g[0]=b=>o())},null,8,["options","value"])}}}),T1=ye({__name:"index",setup(e){return(t,n)=>(ve(),ze(rt,null,[se(_Z),se(SZ)],64))}}),kZ=ye({__name:"AppMain",setup(e){const t=cZ();return(n,o)=>{const r=nu("router-view");return ve(),We(r,null,{default:ge(({Component:i,route:a})=>[ke(t).reloading?Ct("",!0):(ve(),We(wa(i),{key:a.fullPath}))]),_:1})}}}),PZ=ye({__name:"BreadCrumb",setup(e){const t=La();function n(o){return o!=null&&o.customIcon?rk(o.customIcon,{size:18}):o!=null&&o.icon?rl(o.icon,{size:18}):null}return(o,r)=>{const i=mU,a=fU;return ve(),We(a,null,{default:ge(()=>[(ve(!0),ze(rt,null,Fn(ke(t).matched.filter(s=>{var l;return!!((l=s.meta)!=null&&l.title)}),s=>(ve(),We(i,{key:s.path},{default:ge(()=>[(ve(),We(wa(n(s.meta)))),nt(" "+pe(o.$t(s.meta.title)),1)]),_:2},1024))),128))]),_:1})}}}),TZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},AZ=Q("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M3 21h18v-2H3m0-7l4 4V8m4 9h10v-2H11z"},null,-1),RZ=[AZ];function EZ(e,t){return ve(),ze("svg",TZ,[...RZ])}const $Z={name:"mdi-format-indent-decrease",render:EZ},IZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},OZ=Q("path",{fill:"currentColor",d:"M11 13h10v-2H11m0-2h10V7H11M3 3v2h18V3M11 17h10v-2H11M3 8v8l4-4m-4 9h18v-2H3z"},null,-1),MZ=[OZ];function zZ(e,t){return ve(),ze("svg",IZ,[...MZ])}const FZ={name:"mdi-format-indent-increase",render:zZ},DZ=ye({__name:"MenuCollapse",setup(e){const t=Tn();return(n,o)=>{const r=FZ,i=$Z,a=Xo;return ve(),We(a,{size:"20","cursor-pointer":"",onClick:ke(t).switchCollapsed},{default:ge(()=>[ke(t).collapsed?(ve(),We(r,{key:0})):(ve(),We(i,{key:1}))]),_:1},8,["onClick"])}}}),LZ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},BZ=Q("path",{fill:"currentColor",d:"m290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6l43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6L423.7 654c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),NZ=[BZ];function HZ(e,t){return ve(),ze("svg",LZ,[...NZ])}const jZ={name:"ant-design-fullscreen-outlined",render:HZ},UZ={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},VZ=Q("path",{fill:"currentColor",d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8m221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6L877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9M744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3z"},null,-1),WZ=[VZ];function qZ(e,t){return ve(),ze("svg",UZ,[...WZ])}const KZ={name:"ant-design-fullscreen-exit-outlined",render:qZ},GZ=ye({__name:"FullScreen",setup(e){const{isFullscreen:t,toggle:n}=bJ();return(o,r)=>{const i=KZ,a=jZ,s=Xo;return ve(),We(s,{class:"mr-5 cursor-pointer",size:"18",onClick:ke(n)},{default:ge(()=>[ke(t)?(ve(),We(i,{key:0})):(ve(),We(a,{key:1}))]),_:1},8,["onClick"])}}}),XZ={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},YZ=Q("path",{fill:"currentColor",d:"M15.88 9.29L12 13.17L8.12 9.29a.996.996 0 1 0-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41c-.39-.38-1.03-.39-1.42 0"},null,-1),QZ=[YZ];function JZ(e,t){return ve(),ze("svg",XZ,[...QZ])}const ZZ={name:"ic-round-expand-more",render:JZ},eee={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},tee=Q("path",{fill:"none",d:"M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0M20.5 12.5A4.5 4.5 0 1 1 16 8a4.5 4.5 0 0 1 4.5 4.5"},null,-1),nee=Q("path",{fill:"currentColor",d:"M26.749 24.93A13.99 13.99 0 1 0 2 16a13.9 13.9 0 0 0 3.251 8.93l-.02.017c.07.084.15.156.222.239c.09.103.187.2.28.3q.418.457.87.87q.14.124.28.242q.48.415.99.782c.044.03.084.069.128.1v-.012a13.9 13.9 0 0 0 16 0v.012c.044-.031.083-.07.128-.1q.51-.368.99-.782q.14-.119.28-.242q.451-.413.87-.87c.093-.1.189-.197.28-.3c.071-.083.152-.155.222-.24ZM16 8a4.5 4.5 0 1 1-4.5 4.5A4.5 4.5 0 0 1 16 8M8.007 24.93A4.996 4.996 0 0 1 13 20h6a4.996 4.996 0 0 1 4.993 4.93a11.94 11.94 0 0 1-15.986 0"},null,-1),oee=[tee,nee];function ree(e,t){return ve(),ze("svg",eee,[...oee])}const iee={name:"carbon-user-avatar-filled",render:ree},aee={class:"hidden md:block"},see=ye({__name:"UserAvatar",setup(e){const t=ea(),n=i=>mn.global.t(i),o=[{label:n("个人中心"),key:"profile",icon:rl("mdi-account-outline",{size:14})},{label:n("登出"),key:"logout",icon:rl("mdi:exit-to-app",{size:14})}];function r(i){i==="logout"&&window.$dialog.confirm({title:n("提示"),type:"info",content:n("确认退出?"),confirm(){t.logout(),window.$message.success(n("已退出登录"))}}),i==="profile"&&Gt.push("/profile")}return(i,a)=>{const s=iee,l=ZZ,c=zt,u=zm;return ve(),We(u,{options:o,onSelect:r},{default:ge(()=>[se(c,{text:"",flex:"","cursor-pointer":"","items-center":""},{default:ge(()=>[se(s,{class:"mr-0 h-5 w-5 rounded-full md:mr-2.5 md:h-8 md:w-8"}),se(l,{class:"h-5 w-5 md:hidden"}),Q("span",aee,pe(ke(t).email),1)]),_:1})]),_:1})}}}),lee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},cee=Q("path",{fill:"currentColor",d:"M11.4 18.4H.9a.9.9 0 0 1-.9-.9V7.3a.9.9 0 0 1 .9-.9h10.5zm-4.525-2.72c.058.187.229.32.431.32h.854a.45.45 0 0 0 .425-.597l.001.003l-2.15-6.34a.45.45 0 0 0-.426-.306H4.791a.45.45 0 0 0-.425.302l-.001.003l-2.154 6.34a.45.45 0 0 0 .426.596h.856a.45.45 0 0 0 .431-.323l.001-.003l.342-1.193h2.258l.351 1.195zM5.41 10.414s.16.79.294 1.245l.406 1.408H4.68l.415-1.408c.131-.455.294-1.245.294-1.245zM23.1 18.4H12.6v-12h10.5a.9.9 0 0 1 .9.9v10.2a.9.9 0 0 1-.9.9m-1.35-8.55h-2.4v-.601a.45.45 0 0 0-.45-.45h-.601a.45.45 0 0 0-.45.45v.601h-2.4a.45.45 0 0 0-.45.45v.602c0 .248.201.45.45.45h4.281a5.9 5.9 0 0 1-1.126 1.621l.001-.001a7 7 0 0 1-.637-.764l-.014-.021a.45.45 0 0 0-.602-.129l.002-.001l-.273.16l-.24.146a.45.45 0 0 0-.139.642l-.001-.001c.253.359.511.674.791.969l-.004-.004c-.28.216-.599.438-.929.645l-.05.029a.45.45 0 0 0-.159.61l-.001-.002l.298.52a.45.45 0 0 0 .628.159l-.002.001c.507-.312.94-.619 1.353-.95l-.026.02c.387.313.82.62 1.272.901l.055.032a.45.45 0 0 0 .626-.158l.001-.002l.298-.52a.45.45 0 0 0-.153-.605l-.002-.001a12 12 0 0 1-1.004-.696l.027.02a6.7 6.7 0 0 0 1.586-2.572l.014-.047h.43a.45.45 0 0 0 .45-.45v-.602a.45.45 0 0 0-.45-.447h-.001z"},null,-1),uee=[cee];function dee(e,t){return ve(),ze("svg",lee,[...uee])}const fee={name:"fontisto-language",render:dee},hee=ye({__name:"SwitchLang",setup(e){const t=Tn();return(n,o)=>{const r=fee,i=zt,a=Am;return ve(),We(a,{value:ke(t).lang,"onUpdate:value":o[0]||(o[0]=s=>ke(t).lang=s),options:Object.entries(ke(dh)).map(([s,l])=>({label:l,value:s})),trigger:"click","on-update:value":ke(t).switchLang},{default:ge(()=>[se(i,{text:"","icon-placement":"left",class:"mr-5"},{icon:ge(()=>[se(r)]),_:1})]),_:1},8,["value","options","on-update:value"])}}}),pee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},mee=Q("path",{fill:"currentColor",d:"m3.55 19.09l1.41 1.41l1.8-1.79l-1.42-1.42M12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6s6-2.69 6-6c0-3.32-2.69-6-6-6m8 7h3v-2h-3m-2.76 7.71l1.8 1.79l1.41-1.41l-1.79-1.8M20.45 5l-1.41-1.4l-1.8 1.79l1.42 1.42M13 1h-2v3h2M6.76 5.39L4.96 3.6L3.55 5l1.79 1.81zM1 13h3v-2H1m12 9h-2v3h2"},null,-1),gee=[mee];function vee(e,t){return ve(),ze("svg",pee,[...gee])}const bee={name:"mdi-white-balance-sunny",render:vee},yee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},xee=Q("path",{fill:"currentColor",d:"M2 12a10 10 0 0 0 13 9.54a10 10 0 0 1 0-19.08A10 10 0 0 0 2 12"},null,-1),Cee=[xee];function wee(e,t){return ve(),ze("svg",yee,[...Cee])}const _ee={name:"mdi-moon-waning-crescent",render:wee},See=ye({__name:"ThemeMode",setup(e){const t=Tn(),n=dk(),o=()=>{t.toggleDark(),aJ(n)()};return(r,i)=>{const a=_ee,s=bee,l=Xo;return ve(),We(l,{class:"mr-5 cursor-pointer",size:"18",onClick:o},{default:ge(()=>[ke(n)?(ve(),We(a,{key:0})):(ve(),We(s,{key:1}))]),_:1})}}}),kee={flex:"","items-center":""},Pee={"ml-auto":"",flex:"","items-center":""},Tee=ye({__name:"index",setup(e){return(t,n)=>(ve(),ze(rt,null,[Q("div",kee,[se(DZ),se(PZ)]),Q("div",Pee,[se(See),se(hee),se(GZ),se(see)])],64))}}),Aee={class:"flex flex-col flex-1 overflow-hidden"},Ree={class:"flex-1 overflow-hidden bg-hex-f5f6fb dark:bg-hex-101014"},Eee=ye({__name:"index",setup(e){const t=Tn();function n(a){t.collapsed=a}const o=M({get:()=>r.value&&!t.collapsed,set:a=>t.collapsed=!a}),r=j(!1),i=()=>{document.body.clientWidth<=950?(r.value=!0,t.collapsed=!0):(t.collapsed=!1,r.value=!1)};return jt(()=>{window.addEventListener("resize",i),i()}),(a,s)=>{const l=tY,c=T2,u=YX;return ve(),We(u,{"has-sider":"","wh-full":""},{default:ge(()=>[dn(se(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:ke(t).collapsed,"on-update:collapsed":n},{default:ge(()=>[se(T1)]),_:1},8,["collapsed"]),[[Mn,!o.value]]),se(c,{show:o.value,"onUpdate:show":s[0]||(s[0]=d=>o.value=d),width:220,placement:"left"},{default:ge(()=>[se(l,{bordered:"","collapse-mode":"transform","collapsed-width":0,width:220,"native-scrollbar":!1,collapsed:ke(t).collapsed,"on-update:collapsed":n},{default:ge(()=>[se(T1)]),_:1},8,["collapsed"])]),_:1},8,["show"]),Q("article",Aee,[Q("header",{class:"flex items-center bg-white px-4",dark:"bg-dark border-0",style:Li(`height: ${ke(YQ).height}px`)},[se(Tee)],4),Q("section",Ree,[se(kZ)])])]),_:1})}}}),br=Object.freeze(Object.defineProperty({__proto__:null,default:Eee},Symbol.toStringTag,{value:"Module"})),Gu=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},$ee={},Iee={"f-c-c":"","flex-col":"","text-14":"",color:"#6a6a6a"},Oee=Q("p",null,[nt(" Copyright © 2022-present "),Q("a",{href:"https://github.com/zclzone",target:"__blank",hover:"decoration-underline color-primary"}," Ronnie Zhang ")],-1),Mee=Q("p",null,null,-1),zee=[Oee,Mee];function Fee(e,t){return ve(),ze("footer",Iee,zee)}const Dee=Gu($ee,[["render",Fee]]),Lee={class:"cus-scroll-y wh-full flex-col bg-[#f5f6fb] p-1 dark:bg-hex-121212 md:p-4"},bo=ye({__name:"AppPage",props:{showFooter:{type:Boolean,default:!1}},setup(e){return(t,n)=>{const o=Dee,r=nU;return ve(),We(fn,{name:"fade-slide",mode:"out-in",appear:""},{default:ge(()=>[Q("section",Lee,[ou(t.$slots,"default"),e.showFooter?(ve(),We(o,{key:0,"mt-15":""})):Ct("",!0),se(r,{bottom:20,class:"z-99999"})])]),_:3})}}}),Bee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Nee=Q("path",{fill:"currentColor",d:"M20 2H4c-.53 0-1.04.21-1.41.59C2.21 2.96 2 3.47 2 4v12c0 .53.21 1.04.59 1.41c.37.38.88.59 1.41.59h4l4 4l4-4h4c.53 0 1.04-.21 1.41-.59S22 16.53 22 16V4c0-.53-.21-1.04-.59-1.41C21.04 2.21 20.53 2 20 2M4 16V4h16v12h-4.83L12 19.17L8.83 16m1.22-9.96c.54-.36 1.25-.54 2.14-.54c.94 0 1.69.21 2.23.62q.81.63.81 1.68c0 .44-.15.83-.44 1.2c-.29.36-.67.64-1.13.85c-.26.15-.43.3-.52.47c-.09.18-.14.4-.14.68h-2c0-.5.1-.84.29-1.08c.21-.24.55-.52 1.07-.84c.26-.14.47-.32.64-.54c.14-.21.22-.46.22-.74c0-.3-.09-.52-.27-.69c-.18-.18-.45-.26-.76-.26c-.27 0-.49.07-.69.21c-.16.14-.26.35-.26.63H9.27c-.05-.69.23-1.29.78-1.65M11 14v-2h2v2Z"},null,-1),Hee=[Nee];function jee(e,t){return ve(),ze("svg",Bee,[...Hee])}const Uee={name:"mdi-tooltip-question-outline",render:jee},Vee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Wee=Q("path",{fill:"currentColor",d:"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7z"},null,-1),qee=[Wee];function Kee(e,t){return ve(),ze("svg",Vee,[...qee])}const Gee={name:"mdi-clock-outline",render:Kee},Xee={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},Yee=Q("path",{fill:"currentColor",d:"M6.18 15.64a2.18 2.18 0 0 1 2.18 2.18C8.36 19 7.38 20 6.18 20C5 20 4 19 4 17.82a2.18 2.18 0 0 1 2.18-2.18M4 4.44A15.56 15.56 0 0 1 19.56 20h-2.83A12.73 12.73 0 0 0 4 7.27zm0 5.66a9.9 9.9 0 0 1 9.9 9.9h-2.83A7.07 7.07 0 0 0 4 12.93z"},null,-1),Qee=[Yee];function Jee(e,t){return ve(),ze("svg",Xee,[...Qee])}const Zee={name:"mdi-rss",render:Jee},ete={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},tte=Q("path",{fill:"currentColor",d:"M12 21.5c-1.35-.85-3.8-1.5-5.5-1.5c-1.65 0-3.35.3-4.75 1.05c-.1.05-.15.05-.25.05c-.25 0-.5-.25-.5-.5V6c.6-.45 1.25-.75 2-1c1.11-.35 2.33-.5 3.5-.5c1.95 0 4.05.4 5.5 1.5c1.45-1.1 3.55-1.5 5.5-1.5c1.17 0 2.39.15 3.5.5c.75.25 1.4.55 2 1v14.6c0 .25-.25.5-.5.5c-.1 0-.15 0-.25-.05c-1.4-.75-3.1-1.05-4.75-1.05c-1.7 0-4.15.65-5.5 1.5M12 8v11.5c1.35-.85 3.8-1.5 5.5-1.5c1.2 0 2.4.15 3.5.5V7c-1.1-.35-2.3-.5-3.5-.5c-1.7 0-4.15.65-5.5 1.5m1 3.5c1.11-.68 2.6-1 4.5-1c.91 0 1.76.09 2.5.28V9.23c-.87-.15-1.71-.23-2.5-.23q-2.655 0-4.5.84zm4.5.17c-1.71 0-3.21.26-4.5.79v1.69c1.11-.65 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24v-1.5c-.87-.16-1.71-.23-2.5-.23m2.5 2.9c-.87-.16-1.71-.24-2.5-.24c-1.83 0-3.33.27-4.5.8v1.69c1.11-.66 2.6-.99 4.5-.99c1.04 0 1.88.08 2.5.24z"},null,-1),nte=[tte];function ote(e,t){return ve(),ze("svg",ete,[...nte])}const rte={name:"mdi-book-open-variant",render:ote},ite={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},ate=Q("g",{fill:"none"},[Q("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Q("path",{fill:"currentColor",d:"M10.5 20a1.5 1.5 0 0 0 3 0v-6.5H20a1.5 1.5 0 0 0 0-3h-6.5V4a1.5 1.5 0 0 0-3 0v6.5H4a1.5 1.5 0 0 0 0 3h6.5z"})],-1),ste=[ate];function lte(e,t){return ve(),ze("svg",ite,[...ste])}const cte={name:"mingcute-add-fill",render:lte},ute={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},dte=Q("path",{fill:"currentColor",d:"M5.503 4.627L5.5 6.75v10.504a3.25 3.25 0 0 0 3.25 3.25h8.616a2.25 2.25 0 0 1-2.122 1.5H8.75A4.75 4.75 0 0 1 4 17.254V6.75c0-.98.627-1.815 1.503-2.123M17.75 2A2.25 2.25 0 0 1 20 4.25v13a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-13A2.25 2.25 0 0 1 8.75 2z"},null,-1),fte=[dte];function hte(e,t){return ve(),ze("svg",ute,[...fte])}const pte={name:"fluent-copy24-filled",render:hte},mte={class:"inline-block",viewBox:"0 0 1200 1200",width:"1em",height:"1em"},gte=Q("path",{fill:"currentColor",d:"M0 0v545.312h545.312V0zm654.688 0v545.312H1200V0zM108.594 108.594h328.125v328.125H108.594zm654.687 0h328.125v328.125H763.281zM217.969 219.531v108.594h110.156V219.531zm653.906 0v108.594h108.594V219.531zM0 654.688V1200h545.312V654.688zm654.688 0V1200h108.595V873.438h108.594v108.595H1200V654.688h-108.594v108.595H980.469V654.688zM108.594 763.281h328.125v328.125H108.594zm109.375 108.594v110.156h110.156V871.875zm653.906 219.531V1200h108.594v-108.594zm219.531 0V1200H1200v-108.594z"},null,-1),vte=[gte];function bte(e,t){return ve(),ze("svg",mte,[...vte])}const yte={name:"el-qrcode",render:bte};var Lt={};const xte="Á",Cte="á",wte="Ă",_te="ă",Ste="∾",kte="∿",Pte="∾̳",Tte="Â",Ate="â",Rte="´",Ete="А",$te="а",Ite="Æ",Ote="æ",Mte="⁡",zte="𝔄",Fte="𝔞",Dte="À",Lte="à",Bte="ℵ",Nte="ℵ",Hte="Α",jte="α",Ute="Ā",Vte="ā",Wte="⨿",qte="&",Kte="&",Gte="⩕",Xte="⩓",Yte="∧",Qte="⩜",Jte="⩘",Zte="⩚",ene="∠",tne="⦤",nne="∠",one="⦨",rne="⦩",ine="⦪",ane="⦫",sne="⦬",lne="⦭",cne="⦮",une="⦯",dne="∡",fne="∟",hne="⊾",pne="⦝",mne="∢",gne="Å",vne="⍼",bne="Ą",yne="ą",xne="𝔸",Cne="𝕒",wne="⩯",_ne="≈",Sne="⩰",kne="≊",Pne="≋",Tne="'",Ane="⁡",Rne="≈",Ene="≊",$ne="Å",Ine="å",One="𝒜",Mne="𝒶",zne="≔",Fne="*",Dne="≈",Lne="≍",Bne="Ã",Nne="ã",Hne="Ä",jne="ä",Une="∳",Vne="⨑",Wne="≌",qne="϶",Kne="‵",Gne="∽",Xne="⋍",Yne="∖",Qne="⫧",Jne="⊽",Zne="⌅",eoe="⌆",toe="⌅",noe="⎵",ooe="⎶",roe="≌",ioe="Б",aoe="б",soe="„",loe="∵",coe="∵",uoe="∵",doe="⦰",foe="϶",hoe="ℬ",poe="ℬ",moe="Β",goe="β",voe="ℶ",boe="≬",yoe="𝔅",xoe="𝔟",Coe="⋂",woe="◯",_oe="⋃",Soe="⨀",koe="⨁",Poe="⨂",Toe="⨆",Aoe="★",Roe="▽",Eoe="△",$oe="⨄",Ioe="⋁",Ooe="⋀",Moe="⤍",zoe="⧫",Foe="▪",Doe="▴",Loe="▾",Boe="◂",Noe="▸",Hoe="␣",joe="▒",Uoe="░",Voe="▓",Woe="█",qoe="=⃥",Koe="≡⃥",Goe="⫭",Xoe="⌐",Yoe="𝔹",Qoe="𝕓",Joe="⊥",Zoe="⊥",ere="⋈",tre="⧉",nre="┐",ore="╕",rre="╖",ire="╗",are="┌",sre="╒",lre="╓",cre="╔",ure="─",dre="═",fre="┬",hre="╤",pre="╥",mre="╦",gre="┴",vre="╧",bre="╨",yre="╩",xre="⊟",Cre="⊞",wre="⊠",_re="┘",Sre="╛",kre="╜",Pre="╝",Tre="└",Are="╘",Rre="╙",Ere="╚",$re="│",Ire="║",Ore="┼",Mre="╪",zre="╫",Fre="╬",Dre="┤",Lre="╡",Bre="╢",Nre="╣",Hre="├",jre="╞",Ure="╟",Vre="╠",Wre="‵",qre="˘",Kre="˘",Gre="¦",Xre="𝒷",Yre="ℬ",Qre="⁏",Jre="∽",Zre="⋍",eie="⧅",tie="\\",nie="⟈",oie="•",rie="•",iie="≎",aie="⪮",sie="≏",lie="≎",cie="≏",uie="Ć",die="ć",fie="⩄",hie="⩉",pie="⩋",mie="∩",gie="⋒",vie="⩇",bie="⩀",yie="ⅅ",xie="∩︀",Cie="⁁",wie="ˇ",_ie="ℭ",Sie="⩍",kie="Č",Pie="č",Tie="Ç",Aie="ç",Rie="Ĉ",Eie="ĉ",$ie="∰",Iie="⩌",Oie="⩐",Mie="Ċ",zie="ċ",Fie="¸",Die="¸",Lie="⦲",Bie="¢",Nie="·",Hie="·",jie="𝔠",Uie="ℭ",Vie="Ч",Wie="ч",qie="✓",Kie="✓",Gie="Χ",Xie="χ",Yie="ˆ",Qie="≗",Jie="↺",Zie="↻",eae="⊛",tae="⊚",nae="⊝",oae="⊙",rae="®",iae="Ⓢ",aae="⊖",sae="⊕",lae="⊗",cae="○",uae="⧃",dae="≗",fae="⨐",hae="⫯",pae="⧂",mae="∲",gae="”",vae="’",bae="♣",yae="♣",xae=":",Cae="∷",wae="⩴",_ae="≔",Sae="≔",kae=",",Pae="@",Tae="∁",Aae="∘",Rae="∁",Eae="ℂ",$ae="≅",Iae="⩭",Oae="≡",Mae="∮",zae="∯",Fae="∮",Dae="𝕔",Lae="ℂ",Bae="∐",Nae="∐",Hae="©",jae="©",Uae="℗",Vae="∳",Wae="↵",qae="✗",Kae="⨯",Gae="𝒞",Xae="𝒸",Yae="⫏",Qae="⫑",Jae="⫐",Zae="⫒",ese="⋯",tse="⤸",nse="⤵",ose="⋞",rse="⋟",ise="↶",ase="⤽",sse="⩈",lse="⩆",cse="≍",use="∪",dse="⋓",fse="⩊",hse="⊍",pse="⩅",mse="∪︀",gse="↷",vse="⤼",bse="⋞",yse="⋟",xse="⋎",Cse="⋏",wse="¤",_se="↶",Sse="↷",kse="⋎",Pse="⋏",Tse="∲",Ase="∱",Rse="⌭",Ese="†",$se="‡",Ise="ℸ",Ose="↓",Mse="↡",zse="⇓",Fse="‐",Dse="⫤",Lse="⊣",Bse="⤏",Nse="˝",Hse="Ď",jse="ď",Use="Д",Vse="д",Wse="‡",qse="⇊",Kse="ⅅ",Gse="ⅆ",Xse="⤑",Yse="⩷",Qse="°",Jse="∇",Zse="Δ",ele="δ",tle="⦱",nle="⥿",ole="𝔇",rle="𝔡",ile="⥥",ale="⇃",sle="⇂",lle="´",cle="˙",ule="˝",dle="`",fle="˜",hle="⋄",ple="⋄",mle="⋄",gle="♦",vle="♦",ble="¨",yle="ⅆ",xle="ϝ",Cle="⋲",wle="÷",_le="÷",Sle="⋇",kle="⋇",Ple="Ђ",Tle="ђ",Ale="⌞",Rle="⌍",Ele="$",$le="𝔻",Ile="𝕕",Ole="¨",Mle="˙",zle="⃜",Fle="≐",Dle="≑",Lle="≐",Ble="∸",Nle="∔",Hle="⊡",jle="⌆",Ule="∯",Vle="¨",Wle="⇓",qle="⇐",Kle="⇔",Gle="⫤",Xle="⟸",Yle="⟺",Qle="⟹",Jle="⇒",Zle="⊨",ece="⇑",tce="⇕",nce="∥",oce="⤓",rce="↓",ice="↓",ace="⇓",sce="⇵",lce="̑",cce="⇊",uce="⇃",dce="⇂",fce="⥐",hce="⥞",pce="⥖",mce="↽",gce="⥟",vce="⥗",bce="⇁",yce="↧",xce="⊤",Cce="⤐",wce="⌟",_ce="⌌",Sce="𝒟",kce="𝒹",Pce="Ѕ",Tce="ѕ",Ace="⧶",Rce="Đ",Ece="đ",$ce="⋱",Ice="▿",Oce="▾",Mce="⇵",zce="⥯",Fce="⦦",Dce="Џ",Lce="џ",Bce="⟿",Nce="É",Hce="é",jce="⩮",Uce="Ě",Vce="ě",Wce="Ê",qce="ê",Kce="≖",Gce="≕",Xce="Э",Yce="э",Qce="⩷",Jce="Ė",Zce="ė",eue="≑",tue="ⅇ",nue="≒",oue="𝔈",rue="𝔢",iue="⪚",aue="È",sue="è",lue="⪖",cue="⪘",uue="⪙",due="∈",fue="⏧",hue="ℓ",pue="⪕",mue="⪗",gue="Ē",vue="ē",bue="∅",yue="∅",xue="◻",Cue="∅",wue="▫",_ue=" ",Sue=" ",kue=" ",Pue="Ŋ",Tue="ŋ",Aue=" ",Rue="Ę",Eue="ę",$ue="𝔼",Iue="𝕖",Oue="⋕",Mue="⧣",zue="⩱",Fue="ε",Due="Ε",Lue="ε",Bue="ϵ",Nue="≖",Hue="≕",jue="≂",Uue="⪖",Vue="⪕",Wue="⩵",que="=",Kue="≂",Gue="≟",Xue="⇌",Yue="≡",Que="⩸",Jue="⧥",Zue="⥱",ede="≓",tde="ℯ",nde="ℰ",ode="≐",rde="⩳",ide="≂",ade="Η",sde="η",lde="Ð",cde="ð",ude="Ë",dde="ë",fde="€",hde="!",pde="∃",mde="∃",gde="ℰ",vde="ⅇ",bde="ⅇ",yde="≒",xde="Ф",Cde="ф",wde="♀",_de="ffi",Sde="ff",kde="ffl",Pde="𝔉",Tde="𝔣",Ade="fi",Rde="◼",Ede="▪",$de="fj",Ide="♭",Ode="fl",Mde="▱",zde="ƒ",Fde="𝔽",Dde="𝕗",Lde="∀",Bde="∀",Nde="⋔",Hde="⫙",jde="ℱ",Ude="⨍",Vde="½",Wde="⅓",qde="¼",Kde="⅕",Gde="⅙",Xde="⅛",Yde="⅔",Qde="⅖",Jde="¾",Zde="⅗",efe="⅜",tfe="⅘",nfe="⅚",ofe="⅝",rfe="⅞",ife="⁄",afe="⌢",sfe="𝒻",lfe="ℱ",cfe="ǵ",ufe="Γ",dfe="γ",ffe="Ϝ",hfe="ϝ",pfe="⪆",mfe="Ğ",gfe="ğ",vfe="Ģ",bfe="Ĝ",yfe="ĝ",xfe="Г",Cfe="г",wfe="Ġ",_fe="ġ",Sfe="≥",kfe="≧",Pfe="⪌",Tfe="⋛",Afe="≥",Rfe="≧",Efe="⩾",$fe="⪩",Ife="⩾",Ofe="⪀",Mfe="⪂",zfe="⪄",Ffe="⋛︀",Dfe="⪔",Lfe="𝔊",Bfe="𝔤",Nfe="≫",Hfe="⋙",jfe="⋙",Ufe="ℷ",Vfe="Ѓ",Wfe="ѓ",qfe="⪥",Kfe="≷",Gfe="⪒",Xfe="⪤",Yfe="⪊",Qfe="⪊",Jfe="⪈",Zfe="≩",ehe="⪈",the="≩",nhe="⋧",ohe="𝔾",rhe="𝕘",ihe="`",ahe="≥",she="⋛",lhe="≧",che="⪢",uhe="≷",dhe="⩾",fhe="≳",hhe="𝒢",phe="ℊ",mhe="≳",ghe="⪎",vhe="⪐",bhe="⪧",yhe="⩺",xhe=">",Che=">",whe="≫",_he="⋗",She="⦕",khe="⩼",Phe="⪆",The="⥸",Ahe="⋗",Rhe="⋛",Ehe="⪌",$he="≷",Ihe="≳",Ohe="≩︀",Mhe="≩︀",zhe="ˇ",Fhe=" ",Dhe="½",Lhe="ℋ",Bhe="Ъ",Nhe="ъ",Hhe="⥈",jhe="↔",Uhe="⇔",Vhe="↭",Whe="^",qhe="ℏ",Khe="Ĥ",Ghe="ĥ",Xhe="♥",Yhe="♥",Qhe="…",Jhe="⊹",Zhe="𝔥",epe="ℌ",tpe="ℋ",npe="⤥",ope="⤦",rpe="⇿",ipe="∻",ape="↩",spe="↪",lpe="𝕙",cpe="ℍ",upe="―",dpe="─",fpe="𝒽",hpe="ℋ",ppe="ℏ",mpe="Ħ",gpe="ħ",vpe="≎",bpe="≏",ype="⁃",xpe="‐",Cpe="Í",wpe="í",_pe="⁣",Spe="Î",kpe="î",Ppe="И",Tpe="и",Ape="İ",Rpe="Е",Epe="е",$pe="¡",Ipe="⇔",Ope="𝔦",Mpe="ℑ",zpe="Ì",Fpe="ì",Dpe="ⅈ",Lpe="⨌",Bpe="∭",Npe="⧜",Hpe="℩",jpe="IJ",Upe="ij",Vpe="Ī",Wpe="ī",qpe="ℑ",Kpe="ⅈ",Gpe="ℐ",Xpe="ℑ",Ype="ı",Qpe="ℑ",Jpe="⊷",Zpe="Ƶ",eme="⇒",tme="℅",nme="∞",ome="⧝",rme="ı",ime="⊺",ame="∫",sme="∬",lme="ℤ",cme="∫",ume="⊺",dme="⋂",fme="⨗",hme="⨼",pme="⁣",mme="⁢",gme="Ё",vme="ё",bme="Į",yme="į",xme="𝕀",Cme="𝕚",wme="Ι",_me="ι",Sme="⨼",kme="¿",Pme="𝒾",Tme="ℐ",Ame="∈",Rme="⋵",Eme="⋹",$me="⋴",Ime="⋳",Ome="∈",Mme="⁢",zme="Ĩ",Fme="ĩ",Dme="І",Lme="і",Bme="Ï",Nme="ï",Hme="Ĵ",jme="ĵ",Ume="Й",Vme="й",Wme="𝔍",qme="𝔧",Kme="ȷ",Gme="𝕁",Xme="𝕛",Yme="𝒥",Qme="𝒿",Jme="Ј",Zme="ј",ege="Є",tge="є",nge="Κ",oge="κ",rge="ϰ",ige="Ķ",age="ķ",sge="К",lge="к",cge="𝔎",uge="𝔨",dge="ĸ",fge="Х",hge="х",pge="Ќ",mge="ќ",gge="𝕂",vge="𝕜",bge="𝒦",yge="𝓀",xge="⇚",Cge="Ĺ",wge="ĺ",_ge="⦴",Sge="ℒ",kge="Λ",Pge="λ",Tge="⟨",Age="⟪",Rge="⦑",Ege="⟨",$ge="⪅",Ige="ℒ",Oge="«",Mge="⇤",zge="⤟",Fge="←",Dge="↞",Lge="⇐",Bge="⤝",Nge="↩",Hge="↫",jge="⤹",Uge="⥳",Vge="↢",Wge="⤙",qge="⤛",Kge="⪫",Gge="⪭",Xge="⪭︀",Yge="⤌",Qge="⤎",Jge="❲",Zge="{",eve="[",tve="⦋",nve="⦏",ove="⦍",rve="Ľ",ive="ľ",ave="Ļ",sve="ļ",lve="⌈",cve="{",uve="Л",dve="л",fve="⤶",hve="“",pve="„",mve="⥧",gve="⥋",vve="↲",bve="≤",yve="≦",xve="⟨",Cve="⇤",wve="←",_ve="←",Sve="⇐",kve="⇆",Pve="↢",Tve="⌈",Ave="⟦",Rve="⥡",Eve="⥙",$ve="⇃",Ive="⌊",Ove="↽",Mve="↼",zve="⇇",Fve="↔",Dve="↔",Lve="⇔",Bve="⇆",Nve="⇋",Hve="↭",jve="⥎",Uve="↤",Vve="⊣",Wve="⥚",qve="⋋",Kve="⧏",Gve="⊲",Xve="⊴",Yve="⥑",Qve="⥠",Jve="⥘",Zve="↿",ebe="⥒",tbe="↼",nbe="⪋",obe="⋚",rbe="≤",ibe="≦",abe="⩽",sbe="⪨",lbe="⩽",cbe="⩿",ube="⪁",dbe="⪃",fbe="⋚︀",hbe="⪓",pbe="⪅",mbe="⋖",gbe="⋚",vbe="⪋",bbe="⋚",ybe="≦",xbe="≶",Cbe="≶",wbe="⪡",_be="≲",Sbe="⩽",kbe="≲",Pbe="⥼",Tbe="⌊",Abe="𝔏",Rbe="𝔩",Ebe="≶",$be="⪑",Ibe="⥢",Obe="↽",Mbe="↼",zbe="⥪",Fbe="▄",Dbe="Љ",Lbe="љ",Bbe="⇇",Nbe="≪",Hbe="⋘",jbe="⌞",Ube="⇚",Vbe="⥫",Wbe="◺",qbe="Ŀ",Kbe="ŀ",Gbe="⎰",Xbe="⎰",Ybe="⪉",Qbe="⪉",Jbe="⪇",Zbe="≨",e0e="⪇",t0e="≨",n0e="⋦",o0e="⟬",r0e="⇽",i0e="⟦",a0e="⟵",s0e="⟵",l0e="⟸",c0e="⟷",u0e="⟷",d0e="⟺",f0e="⟼",h0e="⟶",p0e="⟶",m0e="⟹",g0e="↫",v0e="↬",b0e="⦅",y0e="𝕃",x0e="𝕝",C0e="⨭",w0e="⨴",_0e="∗",S0e="_",k0e="↙",P0e="↘",T0e="◊",A0e="◊",R0e="⧫",E0e="(",$0e="⦓",I0e="⇆",O0e="⌟",M0e="⇋",z0e="⥭",F0e="‎",D0e="⊿",L0e="‹",B0e="𝓁",N0e="ℒ",H0e="↰",j0e="↰",U0e="≲",V0e="⪍",W0e="⪏",q0e="[",K0e="‘",G0e="‚",X0e="Ł",Y0e="ł",Q0e="⪦",J0e="⩹",Z0e="<",e1e="<",t1e="≪",n1e="⋖",o1e="⋋",r1e="⋉",i1e="⥶",a1e="⩻",s1e="◃",l1e="⊴",c1e="◂",u1e="⦖",d1e="⥊",f1e="⥦",h1e="≨︀",p1e="≨︀",m1e="¯",g1e="♂",v1e="✠",b1e="✠",y1e="↦",x1e="↦",C1e="↧",w1e="↤",_1e="↥",S1e="▮",k1e="⨩",P1e="М",T1e="м",A1e="—",R1e="∺",E1e="∡",$1e=" ",I1e="ℳ",O1e="𝔐",M1e="𝔪",z1e="℧",F1e="µ",D1e="*",L1e="⫰",B1e="∣",N1e="·",H1e="⊟",j1e="−",U1e="∸",V1e="⨪",W1e="∓",q1e="⫛",K1e="…",G1e="∓",X1e="⊧",Y1e="𝕄",Q1e="𝕞",J1e="∓",Z1e="𝓂",eye="ℳ",tye="∾",nye="Μ",oye="μ",rye="⊸",iye="⊸",aye="∇",sye="Ń",lye="ń",cye="∠⃒",uye="≉",dye="⩰̸",fye="≋̸",hye="ʼn",pye="≉",mye="♮",gye="ℕ",vye="♮",bye=" ",yye="≎̸",xye="≏̸",Cye="⩃",wye="Ň",_ye="ň",Sye="Ņ",kye="ņ",Pye="≇",Tye="⩭̸",Aye="⩂",Rye="Н",Eye="н",$ye="–",Iye="⤤",Oye="↗",Mye="⇗",zye="↗",Fye="≠",Dye="≐̸",Lye="​",Bye="​",Nye="​",Hye="​",jye="≢",Uye="⤨",Vye="≂̸",Wye="≫",qye="≪",Kye=` +`,Gye="∄",Xye="∄",Yye="𝔑",Qye="𝔫",Jye="≧̸",Zye="≱",exe="≱",txe="≧̸",nxe="⩾̸",oxe="⩾̸",rxe="⋙̸",ixe="≵",axe="≫⃒",sxe="≯",lxe="≯",cxe="≫̸",uxe="↮",dxe="⇎",fxe="⫲",hxe="∋",pxe="⋼",mxe="⋺",gxe="∋",vxe="Њ",bxe="њ",yxe="↚",xxe="⇍",Cxe="‥",wxe="≦̸",_xe="≰",Sxe="↚",kxe="⇍",Pxe="↮",Txe="⇎",Axe="≰",Rxe="≦̸",Exe="⩽̸",$xe="⩽̸",Ixe="≮",Oxe="⋘̸",Mxe="≴",zxe="≪⃒",Fxe="≮",Dxe="⋪",Lxe="⋬",Bxe="≪̸",Nxe="∤",Hxe="⁠",jxe=" ",Uxe="𝕟",Vxe="ℕ",Wxe="⫬",qxe="¬",Kxe="≢",Gxe="≭",Xxe="∦",Yxe="∉",Qxe="≠",Jxe="≂̸",Zxe="∄",eCe="≯",tCe="≱",nCe="≧̸",oCe="≫̸",rCe="≹",iCe="⩾̸",aCe="≵",sCe="≎̸",lCe="≏̸",cCe="∉",uCe="⋵̸",dCe="⋹̸",fCe="∉",hCe="⋷",pCe="⋶",mCe="⧏̸",gCe="⋪",vCe="⋬",bCe="≮",yCe="≰",xCe="≸",CCe="≪̸",wCe="⩽̸",_Ce="≴",SCe="⪢̸",kCe="⪡̸",PCe="∌",TCe="∌",ACe="⋾",RCe="⋽",ECe="⊀",$Ce="⪯̸",ICe="⋠",OCe="∌",MCe="⧐̸",zCe="⋫",FCe="⋭",DCe="⊏̸",LCe="⋢",BCe="⊐̸",NCe="⋣",HCe="⊂⃒",jCe="⊈",UCe="⊁",VCe="⪰̸",WCe="⋡",qCe="≿̸",KCe="⊃⃒",GCe="⊉",XCe="≁",YCe="≄",QCe="≇",JCe="≉",ZCe="∤",ewe="∦",twe="∦",nwe="⫽⃥",owe="∂̸",rwe="⨔",iwe="⊀",awe="⋠",swe="⊀",lwe="⪯̸",cwe="⪯̸",uwe="⤳̸",dwe="↛",fwe="⇏",hwe="↝̸",pwe="↛",mwe="⇏",gwe="⋫",vwe="⋭",bwe="⊁",ywe="⋡",xwe="⪰̸",Cwe="𝒩",wwe="𝓃",_we="∤",Swe="∦",kwe="≁",Pwe="≄",Twe="≄",Awe="∤",Rwe="∦",Ewe="⋢",$we="⋣",Iwe="⊄",Owe="⫅̸",Mwe="⊈",zwe="⊂⃒",Fwe="⊈",Dwe="⫅̸",Lwe="⊁",Bwe="⪰̸",Nwe="⊅",Hwe="⫆̸",jwe="⊉",Uwe="⊃⃒",Vwe="⊉",Wwe="⫆̸",qwe="≹",Kwe="Ñ",Gwe="ñ",Xwe="≸",Ywe="⋪",Qwe="⋬",Jwe="⋫",Zwe="⋭",e_e="Ν",t_e="ν",n_e="#",o_e="№",r_e=" ",i_e="≍⃒",a_e="⊬",s_e="⊭",l_e="⊮",c_e="⊯",u_e="≥⃒",d_e=">⃒",f_e="⤄",h_e="⧞",p_e="⤂",m_e="≤⃒",g_e="<⃒",v_e="⊴⃒",b_e="⤃",y_e="⊵⃒",x_e="∼⃒",C_e="⤣",w_e="↖",__e="⇖",S_e="↖",k_e="⤧",P_e="Ó",T_e="ó",A_e="⊛",R_e="Ô",E_e="ô",$_e="⊚",I_e="О",O_e="о",M_e="⊝",z_e="Ő",F_e="ő",D_e="⨸",L_e="⊙",B_e="⦼",N_e="Œ",H_e="œ",j_e="⦿",U_e="𝔒",V_e="𝔬",W_e="˛",q_e="Ò",K_e="ò",G_e="⧁",X_e="⦵",Y_e="Ω",Q_e="∮",J_e="↺",Z_e="⦾",eSe="⦻",tSe="‾",nSe="⧀",oSe="Ō",rSe="ō",iSe="Ω",aSe="ω",sSe="Ο",lSe="ο",cSe="⦶",uSe="⊖",dSe="𝕆",fSe="𝕠",hSe="⦷",pSe="“",mSe="‘",gSe="⦹",vSe="⊕",bSe="↻",ySe="⩔",xSe="∨",CSe="⩝",wSe="ℴ",_Se="ℴ",SSe="ª",kSe="º",PSe="⊶",TSe="⩖",ASe="⩗",RSe="⩛",ESe="Ⓢ",$Se="𝒪",ISe="ℴ",OSe="Ø",MSe="ø",zSe="⊘",FSe="Õ",DSe="õ",LSe="⨶",BSe="⨷",NSe="⊗",HSe="Ö",jSe="ö",USe="⌽",VSe="‾",WSe="⏞",qSe="⎴",KSe="⏜",GSe="¶",XSe="∥",YSe="∥",QSe="⫳",JSe="⫽",ZSe="∂",e2e="∂",t2e="П",n2e="п",o2e="%",r2e=".",i2e="‰",a2e="⊥",s2e="‱",l2e="𝔓",c2e="𝔭",u2e="Φ",d2e="φ",f2e="ϕ",h2e="ℳ",p2e="☎",m2e="Π",g2e="π",v2e="⋔",b2e="ϖ",y2e="ℏ",x2e="ℎ",C2e="ℏ",w2e="⨣",_2e="⊞",S2e="⨢",k2e="+",P2e="∔",T2e="⨥",A2e="⩲",R2e="±",E2e="±",$2e="⨦",I2e="⨧",O2e="±",M2e="ℌ",z2e="⨕",F2e="𝕡",D2e="ℙ",L2e="£",B2e="⪷",N2e="⪻",H2e="≺",j2e="≼",U2e="⪷",V2e="≺",W2e="≼",q2e="≺",K2e="⪯",G2e="≼",X2e="≾",Y2e="⪯",Q2e="⪹",J2e="⪵",Z2e="⋨",eke="⪯",tke="⪳",nke="≾",oke="′",rke="″",ike="ℙ",ake="⪹",ske="⪵",lke="⋨",cke="∏",uke="∏",dke="⌮",fke="⌒",hke="⌓",pke="∝",mke="∝",gke="∷",vke="∝",bke="≾",yke="⊰",xke="𝒫",Cke="𝓅",wke="Ψ",_ke="ψ",Ske=" ",kke="𝔔",Pke="𝔮",Tke="⨌",Ake="𝕢",Rke="ℚ",Eke="⁗",$ke="𝒬",Ike="𝓆",Oke="ℍ",Mke="⨖",zke="?",Fke="≟",Dke='"',Lke='"',Bke="⇛",Nke="∽̱",Hke="Ŕ",jke="ŕ",Uke="√",Vke="⦳",Wke="⟩",qke="⟫",Kke="⦒",Gke="⦥",Xke="⟩",Yke="»",Qke="⥵",Jke="⇥",Zke="⤠",e3e="⤳",t3e="→",n3e="↠",o3e="⇒",r3e="⤞",i3e="↪",a3e="↬",s3e="⥅",l3e="⥴",c3e="⤖",u3e="↣",d3e="↝",f3e="⤚",h3e="⤜",p3e="∶",m3e="ℚ",g3e="⤍",v3e="⤏",b3e="⤐",y3e="❳",x3e="}",C3e="]",w3e="⦌",_3e="⦎",S3e="⦐",k3e="Ř",P3e="ř",T3e="Ŗ",A3e="ŗ",R3e="⌉",E3e="}",$3e="Р",I3e="р",O3e="⤷",M3e="⥩",z3e="”",F3e="”",D3e="↳",L3e="ℜ",B3e="ℛ",N3e="ℜ",H3e="ℝ",j3e="ℜ",U3e="▭",V3e="®",W3e="®",q3e="∋",K3e="⇋",G3e="⥯",X3e="⥽",Y3e="⌋",Q3e="𝔯",J3e="ℜ",Z3e="⥤",ePe="⇁",tPe="⇀",nPe="⥬",oPe="Ρ",rPe="ρ",iPe="ϱ",aPe="⟩",sPe="⇥",lPe="→",cPe="→",uPe="⇒",dPe="⇄",fPe="↣",hPe="⌉",pPe="⟧",mPe="⥝",gPe="⥕",vPe="⇂",bPe="⌋",yPe="⇁",xPe="⇀",CPe="⇄",wPe="⇌",_Pe="⇉",SPe="↝",kPe="↦",PPe="⊢",TPe="⥛",APe="⋌",RPe="⧐",EPe="⊳",$Pe="⊵",IPe="⥏",OPe="⥜",MPe="⥔",zPe="↾",FPe="⥓",DPe="⇀",LPe="˚",BPe="≓",NPe="⇄",HPe="⇌",jPe="‏",UPe="⎱",VPe="⎱",WPe="⫮",qPe="⟭",KPe="⇾",GPe="⟧",XPe="⦆",YPe="𝕣",QPe="ℝ",JPe="⨮",ZPe="⨵",eTe="⥰",tTe=")",nTe="⦔",oTe="⨒",rTe="⇉",iTe="⇛",aTe="›",sTe="𝓇",lTe="ℛ",cTe="↱",uTe="↱",dTe="]",fTe="’",hTe="’",pTe="⋌",mTe="⋊",gTe="▹",vTe="⊵",bTe="▸",yTe="⧎",xTe="⧴",CTe="⥨",wTe="℞",_Te="Ś",STe="ś",kTe="‚",PTe="⪸",TTe="Š",ATe="š",RTe="⪼",ETe="≻",$Te="≽",ITe="⪰",OTe="⪴",MTe="Ş",zTe="ş",FTe="Ŝ",DTe="ŝ",LTe="⪺",BTe="⪶",NTe="⋩",HTe="⨓",jTe="≿",UTe="С",VTe="с",WTe="⊡",qTe="⋅",KTe="⩦",GTe="⤥",XTe="↘",YTe="⇘",QTe="↘",JTe="§",ZTe=";",eAe="⤩",tAe="∖",nAe="∖",oAe="✶",rAe="𝔖",iAe="𝔰",aAe="⌢",sAe="♯",lAe="Щ",cAe="щ",uAe="Ш",dAe="ш",fAe="↓",hAe="←",pAe="∣",mAe="∥",gAe="→",vAe="↑",bAe="­",yAe="Σ",xAe="σ",CAe="ς",wAe="ς",_Ae="∼",SAe="⩪",kAe="≃",PAe="≃",TAe="⪞",AAe="⪠",RAe="⪝",EAe="⪟",$Ae="≆",IAe="⨤",OAe="⥲",MAe="←",zAe="∘",FAe="∖",DAe="⨳",LAe="⧤",BAe="∣",NAe="⌣",HAe="⪪",jAe="⪬",UAe="⪬︀",VAe="Ь",WAe="ь",qAe="⌿",KAe="⧄",GAe="/",XAe="𝕊",YAe="𝕤",QAe="♠",JAe="♠",ZAe="∥",eRe="⊓",tRe="⊓︀",nRe="⊔",oRe="⊔︀",rRe="√",iRe="⊏",aRe="⊑",sRe="⊏",lRe="⊑",cRe="⊐",uRe="⊒",dRe="⊐",fRe="⊒",hRe="□",pRe="□",mRe="⊓",gRe="⊏",vRe="⊑",bRe="⊐",yRe="⊒",xRe="⊔",CRe="▪",wRe="□",_Re="▪",SRe="→",kRe="𝒮",PRe="𝓈",TRe="∖",ARe="⌣",RRe="⋆",ERe="⋆",$Re="☆",IRe="★",ORe="ϵ",MRe="ϕ",zRe="¯",FRe="⊂",DRe="⋐",LRe="⪽",BRe="⫅",NRe="⊆",HRe="⫃",jRe="⫁",URe="⫋",VRe="⊊",WRe="⪿",qRe="⥹",KRe="⊂",GRe="⋐",XRe="⊆",YRe="⫅",QRe="⊆",JRe="⊊",ZRe="⫋",e4e="⫇",t4e="⫕",n4e="⫓",o4e="⪸",r4e="≻",i4e="≽",a4e="≻",s4e="⪰",l4e="≽",c4e="≿",u4e="⪰",d4e="⪺",f4e="⪶",h4e="⋩",p4e="≿",m4e="∋",g4e="∑",v4e="∑",b4e="♪",y4e="¹",x4e="²",C4e="³",w4e="⊃",_4e="⋑",S4e="⪾",k4e="⫘",P4e="⫆",T4e="⊇",A4e="⫄",R4e="⊃",E4e="⊇",$4e="⟉",I4e="⫗",O4e="⥻",M4e="⫂",z4e="⫌",F4e="⊋",D4e="⫀",L4e="⊃",B4e="⋑",N4e="⊇",H4e="⫆",j4e="⊋",U4e="⫌",V4e="⫈",W4e="⫔",q4e="⫖",K4e="⤦",G4e="↙",X4e="⇙",Y4e="↙",Q4e="⤪",J4e="ß",Z4e=" ",eEe="⌖",tEe="Τ",nEe="τ",oEe="⎴",rEe="Ť",iEe="ť",aEe="Ţ",sEe="ţ",lEe="Т",cEe="т",uEe="⃛",dEe="⌕",fEe="𝔗",hEe="𝔱",pEe="∴",mEe="∴",gEe="∴",vEe="Θ",bEe="θ",yEe="ϑ",xEe="ϑ",CEe="≈",wEe="∼",_Ee="  ",SEe=" ",kEe=" ",PEe="≈",TEe="∼",AEe="Þ",REe="þ",EEe="˜",$Ee="∼",IEe="≃",OEe="≅",MEe="≈",zEe="⨱",FEe="⊠",DEe="×",LEe="⨰",BEe="∭",NEe="⤨",HEe="⌶",jEe="⫱",UEe="⊤",VEe="𝕋",WEe="𝕥",qEe="⫚",KEe="⤩",GEe="‴",XEe="™",YEe="™",QEe="▵",JEe="▿",ZEe="◃",e5e="⊴",t5e="≜",n5e="▹",o5e="⊵",r5e="◬",i5e="≜",a5e="⨺",s5e="⃛",l5e="⨹",c5e="⧍",u5e="⨻",d5e="⏢",f5e="𝒯",h5e="𝓉",p5e="Ц",m5e="ц",g5e="Ћ",v5e="ћ",b5e="Ŧ",y5e="ŧ",x5e="≬",C5e="↞",w5e="↠",_5e="Ú",S5e="ú",k5e="↑",P5e="↟",T5e="⇑",A5e="⥉",R5e="Ў",E5e="ў",$5e="Ŭ",I5e="ŭ",O5e="Û",M5e="û",z5e="У",F5e="у",D5e="⇅",L5e="Ű",B5e="ű",N5e="⥮",H5e="⥾",j5e="𝔘",U5e="𝔲",V5e="Ù",W5e="ù",q5e="⥣",K5e="↿",G5e="↾",X5e="▀",Y5e="⌜",Q5e="⌜",J5e="⌏",Z5e="◸",e$e="Ū",t$e="ū",n$e="¨",o$e="_",r$e="⏟",i$e="⎵",a$e="⏝",s$e="⋃",l$e="⊎",c$e="Ų",u$e="ų",d$e="𝕌",f$e="𝕦",h$e="⤒",p$e="↑",m$e="↑",g$e="⇑",v$e="⇅",b$e="↕",y$e="↕",x$e="⇕",C$e="⥮",w$e="↿",_$e="↾",S$e="⊎",k$e="↖",P$e="↗",T$e="υ",A$e="ϒ",R$e="ϒ",E$e="Υ",$$e="υ",I$e="↥",O$e="⊥",M$e="⇈",z$e="⌝",F$e="⌝",D$e="⌎",L$e="Ů",B$e="ů",N$e="◹",H$e="𝒰",j$e="𝓊",U$e="⋰",V$e="Ũ",W$e="ũ",q$e="▵",K$e="▴",G$e="⇈",X$e="Ü",Y$e="ü",Q$e="⦧",J$e="⦜",Z$e="ϵ",eIe="ϰ",tIe="∅",nIe="ϕ",oIe="ϖ",rIe="∝",iIe="↕",aIe="⇕",sIe="ϱ",lIe="ς",cIe="⊊︀",uIe="⫋︀",dIe="⊋︀",fIe="⫌︀",hIe="ϑ",pIe="⊲",mIe="⊳",gIe="⫨",vIe="⫫",bIe="⫩",yIe="В",xIe="в",CIe="⊢",wIe="⊨",_Ie="⊩",SIe="⊫",kIe="⫦",PIe="⊻",TIe="∨",AIe="⋁",RIe="≚",EIe="⋮",$Ie="|",IIe="‖",OIe="|",MIe="‖",zIe="∣",FIe="|",DIe="❘",LIe="≀",BIe=" ",NIe="𝔙",HIe="𝔳",jIe="⊲",UIe="⊂⃒",VIe="⊃⃒",WIe="𝕍",qIe="𝕧",KIe="∝",GIe="⊳",XIe="𝒱",YIe="𝓋",QIe="⫋︀",JIe="⊊︀",ZIe="⫌︀",e8e="⊋︀",t8e="⊪",n8e="⦚",o8e="Ŵ",r8e="ŵ",i8e="⩟",a8e="∧",s8e="⋀",l8e="≙",c8e="℘",u8e="𝔚",d8e="𝔴",f8e="𝕎",h8e="𝕨",p8e="℘",m8e="≀",g8e="≀",v8e="𝒲",b8e="𝓌",y8e="⋂",x8e="◯",C8e="⋃",w8e="▽",_8e="𝔛",S8e="𝔵",k8e="⟷",P8e="⟺",T8e="Ξ",A8e="ξ",R8e="⟵",E8e="⟸",$8e="⟼",I8e="⋻",O8e="⨀",M8e="𝕏",z8e="𝕩",F8e="⨁",D8e="⨂",L8e="⟶",B8e="⟹",N8e="𝒳",H8e="𝓍",j8e="⨆",U8e="⨄",V8e="△",W8e="⋁",q8e="⋀",K8e="Ý",G8e="ý",X8e="Я",Y8e="я",Q8e="Ŷ",J8e="ŷ",Z8e="Ы",eOe="ы",tOe="¥",nOe="𝔜",oOe="𝔶",rOe="Ї",iOe="ї",aOe="𝕐",sOe="𝕪",lOe="𝒴",cOe="𝓎",uOe="Ю",dOe="ю",fOe="ÿ",hOe="Ÿ",pOe="Ź",mOe="ź",gOe="Ž",vOe="ž",bOe="З",yOe="з",xOe="Ż",COe="ż",wOe="ℨ",_Oe="​",SOe="Ζ",kOe="ζ",POe="𝔷",TOe="ℨ",AOe="Ж",ROe="ж",EOe="⇝",$Oe="𝕫",IOe="ℤ",OOe="𝒵",MOe="𝓏",zOe="‍",FOe="‌",DOe={Aacute:xte,aacute:Cte,Abreve:wte,abreve:_te,ac:Ste,acd:kte,acE:Pte,Acirc:Tte,acirc:Ate,acute:Rte,Acy:Ete,acy:$te,AElig:Ite,aelig:Ote,af:Mte,Afr:zte,afr:Fte,Agrave:Dte,agrave:Lte,alefsym:Bte,aleph:Nte,Alpha:Hte,alpha:jte,Amacr:Ute,amacr:Vte,amalg:Wte,amp:qte,AMP:Kte,andand:Gte,And:Xte,and:Yte,andd:Qte,andslope:Jte,andv:Zte,ang:ene,ange:tne,angle:nne,angmsdaa:one,angmsdab:rne,angmsdac:ine,angmsdad:ane,angmsdae:sne,angmsdaf:lne,angmsdag:cne,angmsdah:une,angmsd:dne,angrt:fne,angrtvb:hne,angrtvbd:pne,angsph:mne,angst:gne,angzarr:vne,Aogon:bne,aogon:yne,Aopf:xne,aopf:Cne,apacir:wne,ap:_ne,apE:Sne,ape:kne,apid:Pne,apos:Tne,ApplyFunction:Ane,approx:Rne,approxeq:Ene,Aring:$ne,aring:Ine,Ascr:One,ascr:Mne,Assign:zne,ast:Fne,asymp:Dne,asympeq:Lne,Atilde:Bne,atilde:Nne,Auml:Hne,auml:jne,awconint:Une,awint:Vne,backcong:Wne,backepsilon:qne,backprime:Kne,backsim:Gne,backsimeq:Xne,Backslash:Yne,Barv:Qne,barvee:Jne,barwed:Zne,Barwed:eoe,barwedge:toe,bbrk:noe,bbrktbrk:ooe,bcong:roe,Bcy:ioe,bcy:aoe,bdquo:soe,becaus:loe,because:coe,Because:uoe,bemptyv:doe,bepsi:foe,bernou:hoe,Bernoullis:poe,Beta:moe,beta:goe,beth:voe,between:boe,Bfr:yoe,bfr:xoe,bigcap:Coe,bigcirc:woe,bigcup:_oe,bigodot:Soe,bigoplus:koe,bigotimes:Poe,bigsqcup:Toe,bigstar:Aoe,bigtriangledown:Roe,bigtriangleup:Eoe,biguplus:$oe,bigvee:Ioe,bigwedge:Ooe,bkarow:Moe,blacklozenge:zoe,blacksquare:Foe,blacktriangle:Doe,blacktriangledown:Loe,blacktriangleleft:Boe,blacktriangleright:Noe,blank:Hoe,blk12:joe,blk14:Uoe,blk34:Voe,block:Woe,bne:qoe,bnequiv:Koe,bNot:Goe,bnot:Xoe,Bopf:Yoe,bopf:Qoe,bot:Joe,bottom:Zoe,bowtie:ere,boxbox:tre,boxdl:nre,boxdL:ore,boxDl:rre,boxDL:ire,boxdr:are,boxdR:sre,boxDr:lre,boxDR:cre,boxh:ure,boxH:dre,boxhd:fre,boxHd:hre,boxhD:pre,boxHD:mre,boxhu:gre,boxHu:vre,boxhU:bre,boxHU:yre,boxminus:xre,boxplus:Cre,boxtimes:wre,boxul:_re,boxuL:Sre,boxUl:kre,boxUL:Pre,boxur:Tre,boxuR:Are,boxUr:Rre,boxUR:Ere,boxv:$re,boxV:Ire,boxvh:Ore,boxvH:Mre,boxVh:zre,boxVH:Fre,boxvl:Dre,boxvL:Lre,boxVl:Bre,boxVL:Nre,boxvr:Hre,boxvR:jre,boxVr:Ure,boxVR:Vre,bprime:Wre,breve:qre,Breve:Kre,brvbar:Gre,bscr:Xre,Bscr:Yre,bsemi:Qre,bsim:Jre,bsime:Zre,bsolb:eie,bsol:tie,bsolhsub:nie,bull:oie,bullet:rie,bump:iie,bumpE:aie,bumpe:sie,Bumpeq:lie,bumpeq:cie,Cacute:uie,cacute:die,capand:fie,capbrcup:hie,capcap:pie,cap:mie,Cap:gie,capcup:vie,capdot:bie,CapitalDifferentialD:yie,caps:xie,caret:Cie,caron:wie,Cayleys:_ie,ccaps:Sie,Ccaron:kie,ccaron:Pie,Ccedil:Tie,ccedil:Aie,Ccirc:Rie,ccirc:Eie,Cconint:$ie,ccups:Iie,ccupssm:Oie,Cdot:Mie,cdot:zie,cedil:Fie,Cedilla:Die,cemptyv:Lie,cent:Bie,centerdot:Nie,CenterDot:Hie,cfr:jie,Cfr:Uie,CHcy:Vie,chcy:Wie,check:qie,checkmark:Kie,Chi:Gie,chi:Xie,circ:Yie,circeq:Qie,circlearrowleft:Jie,circlearrowright:Zie,circledast:eae,circledcirc:tae,circleddash:nae,CircleDot:oae,circledR:rae,circledS:iae,CircleMinus:aae,CirclePlus:sae,CircleTimes:lae,cir:cae,cirE:uae,cire:dae,cirfnint:fae,cirmid:hae,cirscir:pae,ClockwiseContourIntegral:mae,CloseCurlyDoubleQuote:gae,CloseCurlyQuote:vae,clubs:bae,clubsuit:yae,colon:xae,Colon:Cae,Colone:wae,colone:_ae,coloneq:Sae,comma:kae,commat:Pae,comp:Tae,compfn:Aae,complement:Rae,complexes:Eae,cong:$ae,congdot:Iae,Congruent:Oae,conint:Mae,Conint:zae,ContourIntegral:Fae,copf:Dae,Copf:Lae,coprod:Bae,Coproduct:Nae,copy:Hae,COPY:jae,copysr:Uae,CounterClockwiseContourIntegral:Vae,crarr:Wae,cross:qae,Cross:Kae,Cscr:Gae,cscr:Xae,csub:Yae,csube:Qae,csup:Jae,csupe:Zae,ctdot:ese,cudarrl:tse,cudarrr:nse,cuepr:ose,cuesc:rse,cularr:ise,cularrp:ase,cupbrcap:sse,cupcap:lse,CupCap:cse,cup:use,Cup:dse,cupcup:fse,cupdot:hse,cupor:pse,cups:mse,curarr:gse,curarrm:vse,curlyeqprec:bse,curlyeqsucc:yse,curlyvee:xse,curlywedge:Cse,curren:wse,curvearrowleft:_se,curvearrowright:Sse,cuvee:kse,cuwed:Pse,cwconint:Tse,cwint:Ase,cylcty:Rse,dagger:Ese,Dagger:$se,daleth:Ise,darr:Ose,Darr:Mse,dArr:zse,dash:Fse,Dashv:Dse,dashv:Lse,dbkarow:Bse,dblac:Nse,Dcaron:Hse,dcaron:jse,Dcy:Use,dcy:Vse,ddagger:Wse,ddarr:qse,DD:Kse,dd:Gse,DDotrahd:Xse,ddotseq:Yse,deg:Qse,Del:Jse,Delta:Zse,delta:ele,demptyv:tle,dfisht:nle,Dfr:ole,dfr:rle,dHar:ile,dharl:ale,dharr:sle,DiacriticalAcute:lle,DiacriticalDot:cle,DiacriticalDoubleAcute:ule,DiacriticalGrave:dle,DiacriticalTilde:fle,diam:hle,diamond:ple,Diamond:mle,diamondsuit:gle,diams:vle,die:ble,DifferentialD:yle,digamma:xle,disin:Cle,div:wle,divide:_le,divideontimes:Sle,divonx:kle,DJcy:Ple,djcy:Tle,dlcorn:Ale,dlcrop:Rle,dollar:Ele,Dopf:$le,dopf:Ile,Dot:Ole,dot:Mle,DotDot:zle,doteq:Fle,doteqdot:Dle,DotEqual:Lle,dotminus:Ble,dotplus:Nle,dotsquare:Hle,doublebarwedge:jle,DoubleContourIntegral:Ule,DoubleDot:Vle,DoubleDownArrow:Wle,DoubleLeftArrow:qle,DoubleLeftRightArrow:Kle,DoubleLeftTee:Gle,DoubleLongLeftArrow:Xle,DoubleLongLeftRightArrow:Yle,DoubleLongRightArrow:Qle,DoubleRightArrow:Jle,DoubleRightTee:Zle,DoubleUpArrow:ece,DoubleUpDownArrow:tce,DoubleVerticalBar:nce,DownArrowBar:oce,downarrow:rce,DownArrow:ice,Downarrow:ace,DownArrowUpArrow:sce,DownBreve:lce,downdownarrows:cce,downharpoonleft:uce,downharpoonright:dce,DownLeftRightVector:fce,DownLeftTeeVector:hce,DownLeftVectorBar:pce,DownLeftVector:mce,DownRightTeeVector:gce,DownRightVectorBar:vce,DownRightVector:bce,DownTeeArrow:yce,DownTee:xce,drbkarow:Cce,drcorn:wce,drcrop:_ce,Dscr:Sce,dscr:kce,DScy:Pce,dscy:Tce,dsol:Ace,Dstrok:Rce,dstrok:Ece,dtdot:$ce,dtri:Ice,dtrif:Oce,duarr:Mce,duhar:zce,dwangle:Fce,DZcy:Dce,dzcy:Lce,dzigrarr:Bce,Eacute:Nce,eacute:Hce,easter:jce,Ecaron:Uce,ecaron:Vce,Ecirc:Wce,ecirc:qce,ecir:Kce,ecolon:Gce,Ecy:Xce,ecy:Yce,eDDot:Qce,Edot:Jce,edot:Zce,eDot:eue,ee:tue,efDot:nue,Efr:oue,efr:rue,eg:iue,Egrave:aue,egrave:sue,egs:lue,egsdot:cue,el:uue,Element:due,elinters:fue,ell:hue,els:pue,elsdot:mue,Emacr:gue,emacr:vue,empty:bue,emptyset:yue,EmptySmallSquare:xue,emptyv:Cue,EmptyVerySmallSquare:wue,emsp13:_ue,emsp14:Sue,emsp:kue,ENG:Pue,eng:Tue,ensp:Aue,Eogon:Rue,eogon:Eue,Eopf:$ue,eopf:Iue,epar:Oue,eparsl:Mue,eplus:zue,epsi:Fue,Epsilon:Due,epsilon:Lue,epsiv:Bue,eqcirc:Nue,eqcolon:Hue,eqsim:jue,eqslantgtr:Uue,eqslantless:Vue,Equal:Wue,equals:que,EqualTilde:Kue,equest:Gue,Equilibrium:Xue,equiv:Yue,equivDD:Que,eqvparsl:Jue,erarr:Zue,erDot:ede,escr:tde,Escr:nde,esdot:ode,Esim:rde,esim:ide,Eta:ade,eta:sde,ETH:lde,eth:cde,Euml:ude,euml:dde,euro:fde,excl:hde,exist:pde,Exists:mde,expectation:gde,exponentiale:vde,ExponentialE:bde,fallingdotseq:yde,Fcy:xde,fcy:Cde,female:wde,ffilig:_de,fflig:Sde,ffllig:kde,Ffr:Pde,ffr:Tde,filig:Ade,FilledSmallSquare:Rde,FilledVerySmallSquare:Ede,fjlig:$de,flat:Ide,fllig:Ode,fltns:Mde,fnof:zde,Fopf:Fde,fopf:Dde,forall:Lde,ForAll:Bde,fork:Nde,forkv:Hde,Fouriertrf:jde,fpartint:Ude,frac12:Vde,frac13:Wde,frac14:qde,frac15:Kde,frac16:Gde,frac18:Xde,frac23:Yde,frac25:Qde,frac34:Jde,frac35:Zde,frac38:efe,frac45:tfe,frac56:nfe,frac58:ofe,frac78:rfe,frasl:ife,frown:afe,fscr:sfe,Fscr:lfe,gacute:cfe,Gamma:ufe,gamma:dfe,Gammad:ffe,gammad:hfe,gap:pfe,Gbreve:mfe,gbreve:gfe,Gcedil:vfe,Gcirc:bfe,gcirc:yfe,Gcy:xfe,gcy:Cfe,Gdot:wfe,gdot:_fe,ge:Sfe,gE:kfe,gEl:Pfe,gel:Tfe,geq:Afe,geqq:Rfe,geqslant:Efe,gescc:$fe,ges:Ife,gesdot:Ofe,gesdoto:Mfe,gesdotol:zfe,gesl:Ffe,gesles:Dfe,Gfr:Lfe,gfr:Bfe,gg:Nfe,Gg:Hfe,ggg:jfe,gimel:Ufe,GJcy:Vfe,gjcy:Wfe,gla:qfe,gl:Kfe,glE:Gfe,glj:Xfe,gnap:Yfe,gnapprox:Qfe,gne:Jfe,gnE:Zfe,gneq:ehe,gneqq:the,gnsim:nhe,Gopf:ohe,gopf:rhe,grave:ihe,GreaterEqual:ahe,GreaterEqualLess:she,GreaterFullEqual:lhe,GreaterGreater:che,GreaterLess:uhe,GreaterSlantEqual:dhe,GreaterTilde:fhe,Gscr:hhe,gscr:phe,gsim:mhe,gsime:ghe,gsiml:vhe,gtcc:bhe,gtcir:yhe,gt:xhe,GT:Che,Gt:whe,gtdot:_he,gtlPar:She,gtquest:khe,gtrapprox:Phe,gtrarr:The,gtrdot:Ahe,gtreqless:Rhe,gtreqqless:Ehe,gtrless:$he,gtrsim:Ihe,gvertneqq:Ohe,gvnE:Mhe,Hacek:zhe,hairsp:Fhe,half:Dhe,hamilt:Lhe,HARDcy:Bhe,hardcy:Nhe,harrcir:Hhe,harr:jhe,hArr:Uhe,harrw:Vhe,Hat:Whe,hbar:qhe,Hcirc:Khe,hcirc:Ghe,hearts:Xhe,heartsuit:Yhe,hellip:Qhe,hercon:Jhe,hfr:Zhe,Hfr:epe,HilbertSpace:tpe,hksearow:npe,hkswarow:ope,hoarr:rpe,homtht:ipe,hookleftarrow:ape,hookrightarrow:spe,hopf:lpe,Hopf:cpe,horbar:upe,HorizontalLine:dpe,hscr:fpe,Hscr:hpe,hslash:ppe,Hstrok:mpe,hstrok:gpe,HumpDownHump:vpe,HumpEqual:bpe,hybull:ype,hyphen:xpe,Iacute:Cpe,iacute:wpe,ic:_pe,Icirc:Spe,icirc:kpe,Icy:Ppe,icy:Tpe,Idot:Ape,IEcy:Rpe,iecy:Epe,iexcl:$pe,iff:Ipe,ifr:Ope,Ifr:Mpe,Igrave:zpe,igrave:Fpe,ii:Dpe,iiiint:Lpe,iiint:Bpe,iinfin:Npe,iiota:Hpe,IJlig:jpe,ijlig:Upe,Imacr:Vpe,imacr:Wpe,image:qpe,ImaginaryI:Kpe,imagline:Gpe,imagpart:Xpe,imath:Ype,Im:Qpe,imof:Jpe,imped:Zpe,Implies:eme,incare:tme,in:"∈",infin:nme,infintie:ome,inodot:rme,intcal:ime,int:ame,Int:sme,integers:lme,Integral:cme,intercal:ume,Intersection:dme,intlarhk:fme,intprod:hme,InvisibleComma:pme,InvisibleTimes:mme,IOcy:gme,iocy:vme,Iogon:bme,iogon:yme,Iopf:xme,iopf:Cme,Iota:wme,iota:_me,iprod:Sme,iquest:kme,iscr:Pme,Iscr:Tme,isin:Ame,isindot:Rme,isinE:Eme,isins:$me,isinsv:Ime,isinv:Ome,it:Mme,Itilde:zme,itilde:Fme,Iukcy:Dme,iukcy:Lme,Iuml:Bme,iuml:Nme,Jcirc:Hme,jcirc:jme,Jcy:Ume,jcy:Vme,Jfr:Wme,jfr:qme,jmath:Kme,Jopf:Gme,jopf:Xme,Jscr:Yme,jscr:Qme,Jsercy:Jme,jsercy:Zme,Jukcy:ege,jukcy:tge,Kappa:nge,kappa:oge,kappav:rge,Kcedil:ige,kcedil:age,Kcy:sge,kcy:lge,Kfr:cge,kfr:uge,kgreen:dge,KHcy:fge,khcy:hge,KJcy:pge,kjcy:mge,Kopf:gge,kopf:vge,Kscr:bge,kscr:yge,lAarr:xge,Lacute:Cge,lacute:wge,laemptyv:_ge,lagran:Sge,Lambda:kge,lambda:Pge,lang:Tge,Lang:Age,langd:Rge,langle:Ege,lap:$ge,Laplacetrf:Ige,laquo:Oge,larrb:Mge,larrbfs:zge,larr:Fge,Larr:Dge,lArr:Lge,larrfs:Bge,larrhk:Nge,larrlp:Hge,larrpl:jge,larrsim:Uge,larrtl:Vge,latail:Wge,lAtail:qge,lat:Kge,late:Gge,lates:Xge,lbarr:Yge,lBarr:Qge,lbbrk:Jge,lbrace:Zge,lbrack:eve,lbrke:tve,lbrksld:nve,lbrkslu:ove,Lcaron:rve,lcaron:ive,Lcedil:ave,lcedil:sve,lceil:lve,lcub:cve,Lcy:uve,lcy:dve,ldca:fve,ldquo:hve,ldquor:pve,ldrdhar:mve,ldrushar:gve,ldsh:vve,le:bve,lE:yve,LeftAngleBracket:xve,LeftArrowBar:Cve,leftarrow:wve,LeftArrow:_ve,Leftarrow:Sve,LeftArrowRightArrow:kve,leftarrowtail:Pve,LeftCeiling:Tve,LeftDoubleBracket:Ave,LeftDownTeeVector:Rve,LeftDownVectorBar:Eve,LeftDownVector:$ve,LeftFloor:Ive,leftharpoondown:Ove,leftharpoonup:Mve,leftleftarrows:zve,leftrightarrow:Fve,LeftRightArrow:Dve,Leftrightarrow:Lve,leftrightarrows:Bve,leftrightharpoons:Nve,leftrightsquigarrow:Hve,LeftRightVector:jve,LeftTeeArrow:Uve,LeftTee:Vve,LeftTeeVector:Wve,leftthreetimes:qve,LeftTriangleBar:Kve,LeftTriangle:Gve,LeftTriangleEqual:Xve,LeftUpDownVector:Yve,LeftUpTeeVector:Qve,LeftUpVectorBar:Jve,LeftUpVector:Zve,LeftVectorBar:ebe,LeftVector:tbe,lEg:nbe,leg:obe,leq:rbe,leqq:ibe,leqslant:abe,lescc:sbe,les:lbe,lesdot:cbe,lesdoto:ube,lesdotor:dbe,lesg:fbe,lesges:hbe,lessapprox:pbe,lessdot:mbe,lesseqgtr:gbe,lesseqqgtr:vbe,LessEqualGreater:bbe,LessFullEqual:ybe,LessGreater:xbe,lessgtr:Cbe,LessLess:wbe,lesssim:_be,LessSlantEqual:Sbe,LessTilde:kbe,lfisht:Pbe,lfloor:Tbe,Lfr:Abe,lfr:Rbe,lg:Ebe,lgE:$be,lHar:Ibe,lhard:Obe,lharu:Mbe,lharul:zbe,lhblk:Fbe,LJcy:Dbe,ljcy:Lbe,llarr:Bbe,ll:Nbe,Ll:Hbe,llcorner:jbe,Lleftarrow:Ube,llhard:Vbe,lltri:Wbe,Lmidot:qbe,lmidot:Kbe,lmoustache:Gbe,lmoust:Xbe,lnap:Ybe,lnapprox:Qbe,lne:Jbe,lnE:Zbe,lneq:e0e,lneqq:t0e,lnsim:n0e,loang:o0e,loarr:r0e,lobrk:i0e,longleftarrow:a0e,LongLeftArrow:s0e,Longleftarrow:l0e,longleftrightarrow:c0e,LongLeftRightArrow:u0e,Longleftrightarrow:d0e,longmapsto:f0e,longrightarrow:h0e,LongRightArrow:p0e,Longrightarrow:m0e,looparrowleft:g0e,looparrowright:v0e,lopar:b0e,Lopf:y0e,lopf:x0e,loplus:C0e,lotimes:w0e,lowast:_0e,lowbar:S0e,LowerLeftArrow:k0e,LowerRightArrow:P0e,loz:T0e,lozenge:A0e,lozf:R0e,lpar:E0e,lparlt:$0e,lrarr:I0e,lrcorner:O0e,lrhar:M0e,lrhard:z0e,lrm:F0e,lrtri:D0e,lsaquo:L0e,lscr:B0e,Lscr:N0e,lsh:H0e,Lsh:j0e,lsim:U0e,lsime:V0e,lsimg:W0e,lsqb:q0e,lsquo:K0e,lsquor:G0e,Lstrok:X0e,lstrok:Y0e,ltcc:Q0e,ltcir:J0e,lt:Z0e,LT:e1e,Lt:t1e,ltdot:n1e,lthree:o1e,ltimes:r1e,ltlarr:i1e,ltquest:a1e,ltri:s1e,ltrie:l1e,ltrif:c1e,ltrPar:u1e,lurdshar:d1e,luruhar:f1e,lvertneqq:h1e,lvnE:p1e,macr:m1e,male:g1e,malt:v1e,maltese:b1e,Map:"⤅",map:y1e,mapsto:x1e,mapstodown:C1e,mapstoleft:w1e,mapstoup:_1e,marker:S1e,mcomma:k1e,Mcy:P1e,mcy:T1e,mdash:A1e,mDDot:R1e,measuredangle:E1e,MediumSpace:$1e,Mellintrf:I1e,Mfr:O1e,mfr:M1e,mho:z1e,micro:F1e,midast:D1e,midcir:L1e,mid:B1e,middot:N1e,minusb:H1e,minus:j1e,minusd:U1e,minusdu:V1e,MinusPlus:W1e,mlcp:q1e,mldr:K1e,mnplus:G1e,models:X1e,Mopf:Y1e,mopf:Q1e,mp:J1e,mscr:Z1e,Mscr:eye,mstpos:tye,Mu:nye,mu:oye,multimap:rye,mumap:iye,nabla:aye,Nacute:sye,nacute:lye,nang:cye,nap:uye,napE:dye,napid:fye,napos:hye,napprox:pye,natural:mye,naturals:gye,natur:vye,nbsp:bye,nbump:yye,nbumpe:xye,ncap:Cye,Ncaron:wye,ncaron:_ye,Ncedil:Sye,ncedil:kye,ncong:Pye,ncongdot:Tye,ncup:Aye,Ncy:Rye,ncy:Eye,ndash:$ye,nearhk:Iye,nearr:Oye,neArr:Mye,nearrow:zye,ne:Fye,nedot:Dye,NegativeMediumSpace:Lye,NegativeThickSpace:Bye,NegativeThinSpace:Nye,NegativeVeryThinSpace:Hye,nequiv:jye,nesear:Uye,nesim:Vye,NestedGreaterGreater:Wye,NestedLessLess:qye,NewLine:Kye,nexist:Gye,nexists:Xye,Nfr:Yye,nfr:Qye,ngE:Jye,nge:Zye,ngeq:exe,ngeqq:txe,ngeqslant:nxe,nges:oxe,nGg:rxe,ngsim:ixe,nGt:axe,ngt:sxe,ngtr:lxe,nGtv:cxe,nharr:uxe,nhArr:dxe,nhpar:fxe,ni:hxe,nis:pxe,nisd:mxe,niv:gxe,NJcy:vxe,njcy:bxe,nlarr:yxe,nlArr:xxe,nldr:Cxe,nlE:wxe,nle:_xe,nleftarrow:Sxe,nLeftarrow:kxe,nleftrightarrow:Pxe,nLeftrightarrow:Txe,nleq:Axe,nleqq:Rxe,nleqslant:Exe,nles:$xe,nless:Ixe,nLl:Oxe,nlsim:Mxe,nLt:zxe,nlt:Fxe,nltri:Dxe,nltrie:Lxe,nLtv:Bxe,nmid:Nxe,NoBreak:Hxe,NonBreakingSpace:jxe,nopf:Uxe,Nopf:Vxe,Not:Wxe,not:qxe,NotCongruent:Kxe,NotCupCap:Gxe,NotDoubleVerticalBar:Xxe,NotElement:Yxe,NotEqual:Qxe,NotEqualTilde:Jxe,NotExists:Zxe,NotGreater:eCe,NotGreaterEqual:tCe,NotGreaterFullEqual:nCe,NotGreaterGreater:oCe,NotGreaterLess:rCe,NotGreaterSlantEqual:iCe,NotGreaterTilde:aCe,NotHumpDownHump:sCe,NotHumpEqual:lCe,notin:cCe,notindot:uCe,notinE:dCe,notinva:fCe,notinvb:hCe,notinvc:pCe,NotLeftTriangleBar:mCe,NotLeftTriangle:gCe,NotLeftTriangleEqual:vCe,NotLess:bCe,NotLessEqual:yCe,NotLessGreater:xCe,NotLessLess:CCe,NotLessSlantEqual:wCe,NotLessTilde:_Ce,NotNestedGreaterGreater:SCe,NotNestedLessLess:kCe,notni:PCe,notniva:TCe,notnivb:ACe,notnivc:RCe,NotPrecedes:ECe,NotPrecedesEqual:$Ce,NotPrecedesSlantEqual:ICe,NotReverseElement:OCe,NotRightTriangleBar:MCe,NotRightTriangle:zCe,NotRightTriangleEqual:FCe,NotSquareSubset:DCe,NotSquareSubsetEqual:LCe,NotSquareSuperset:BCe,NotSquareSupersetEqual:NCe,NotSubset:HCe,NotSubsetEqual:jCe,NotSucceeds:UCe,NotSucceedsEqual:VCe,NotSucceedsSlantEqual:WCe,NotSucceedsTilde:qCe,NotSuperset:KCe,NotSupersetEqual:GCe,NotTilde:XCe,NotTildeEqual:YCe,NotTildeFullEqual:QCe,NotTildeTilde:JCe,NotVerticalBar:ZCe,nparallel:ewe,npar:twe,nparsl:nwe,npart:owe,npolint:rwe,npr:iwe,nprcue:awe,nprec:swe,npreceq:lwe,npre:cwe,nrarrc:uwe,nrarr:dwe,nrArr:fwe,nrarrw:hwe,nrightarrow:pwe,nRightarrow:mwe,nrtri:gwe,nrtrie:vwe,nsc:bwe,nsccue:ywe,nsce:xwe,Nscr:Cwe,nscr:wwe,nshortmid:_we,nshortparallel:Swe,nsim:kwe,nsime:Pwe,nsimeq:Twe,nsmid:Awe,nspar:Rwe,nsqsube:Ewe,nsqsupe:$we,nsub:Iwe,nsubE:Owe,nsube:Mwe,nsubset:zwe,nsubseteq:Fwe,nsubseteqq:Dwe,nsucc:Lwe,nsucceq:Bwe,nsup:Nwe,nsupE:Hwe,nsupe:jwe,nsupset:Uwe,nsupseteq:Vwe,nsupseteqq:Wwe,ntgl:qwe,Ntilde:Kwe,ntilde:Gwe,ntlg:Xwe,ntriangleleft:Ywe,ntrianglelefteq:Qwe,ntriangleright:Jwe,ntrianglerighteq:Zwe,Nu:e_e,nu:t_e,num:n_e,numero:o_e,numsp:r_e,nvap:i_e,nvdash:a_e,nvDash:s_e,nVdash:l_e,nVDash:c_e,nvge:u_e,nvgt:d_e,nvHarr:f_e,nvinfin:h_e,nvlArr:p_e,nvle:m_e,nvlt:g_e,nvltrie:v_e,nvrArr:b_e,nvrtrie:y_e,nvsim:x_e,nwarhk:C_e,nwarr:w_e,nwArr:__e,nwarrow:S_e,nwnear:k_e,Oacute:P_e,oacute:T_e,oast:A_e,Ocirc:R_e,ocirc:E_e,ocir:$_e,Ocy:I_e,ocy:O_e,odash:M_e,Odblac:z_e,odblac:F_e,odiv:D_e,odot:L_e,odsold:B_e,OElig:N_e,oelig:H_e,ofcir:j_e,Ofr:U_e,ofr:V_e,ogon:W_e,Ograve:q_e,ograve:K_e,ogt:G_e,ohbar:X_e,ohm:Y_e,oint:Q_e,olarr:J_e,olcir:Z_e,olcross:eSe,oline:tSe,olt:nSe,Omacr:oSe,omacr:rSe,Omega:iSe,omega:aSe,Omicron:sSe,omicron:lSe,omid:cSe,ominus:uSe,Oopf:dSe,oopf:fSe,opar:hSe,OpenCurlyDoubleQuote:pSe,OpenCurlyQuote:mSe,operp:gSe,oplus:vSe,orarr:bSe,Or:ySe,or:xSe,ord:CSe,order:wSe,orderof:_Se,ordf:SSe,ordm:kSe,origof:PSe,oror:TSe,orslope:ASe,orv:RSe,oS:ESe,Oscr:$Se,oscr:ISe,Oslash:OSe,oslash:MSe,osol:zSe,Otilde:FSe,otilde:DSe,otimesas:LSe,Otimes:BSe,otimes:NSe,Ouml:HSe,ouml:jSe,ovbar:USe,OverBar:VSe,OverBrace:WSe,OverBracket:qSe,OverParenthesis:KSe,para:GSe,parallel:XSe,par:YSe,parsim:QSe,parsl:JSe,part:ZSe,PartialD:e2e,Pcy:t2e,pcy:n2e,percnt:o2e,period:r2e,permil:i2e,perp:a2e,pertenk:s2e,Pfr:l2e,pfr:c2e,Phi:u2e,phi:d2e,phiv:f2e,phmmat:h2e,phone:p2e,Pi:m2e,pi:g2e,pitchfork:v2e,piv:b2e,planck:y2e,planckh:x2e,plankv:C2e,plusacir:w2e,plusb:_2e,pluscir:S2e,plus:k2e,plusdo:P2e,plusdu:T2e,pluse:A2e,PlusMinus:R2e,plusmn:E2e,plussim:$2e,plustwo:I2e,pm:O2e,Poincareplane:M2e,pointint:z2e,popf:F2e,Popf:D2e,pound:L2e,prap:B2e,Pr:N2e,pr:H2e,prcue:j2e,precapprox:U2e,prec:V2e,preccurlyeq:W2e,Precedes:q2e,PrecedesEqual:K2e,PrecedesSlantEqual:G2e,PrecedesTilde:X2e,preceq:Y2e,precnapprox:Q2e,precneqq:J2e,precnsim:Z2e,pre:eke,prE:tke,precsim:nke,prime:oke,Prime:rke,primes:ike,prnap:ake,prnE:ske,prnsim:lke,prod:cke,Product:uke,profalar:dke,profline:fke,profsurf:hke,prop:pke,Proportional:mke,Proportion:gke,propto:vke,prsim:bke,prurel:yke,Pscr:xke,pscr:Cke,Psi:wke,psi:_ke,puncsp:Ske,Qfr:kke,qfr:Pke,qint:Tke,qopf:Ake,Qopf:Rke,qprime:Eke,Qscr:$ke,qscr:Ike,quaternions:Oke,quatint:Mke,quest:zke,questeq:Fke,quot:Dke,QUOT:Lke,rAarr:Bke,race:Nke,Racute:Hke,racute:jke,radic:Uke,raemptyv:Vke,rang:Wke,Rang:qke,rangd:Kke,range:Gke,rangle:Xke,raquo:Yke,rarrap:Qke,rarrb:Jke,rarrbfs:Zke,rarrc:e3e,rarr:t3e,Rarr:n3e,rArr:o3e,rarrfs:r3e,rarrhk:i3e,rarrlp:a3e,rarrpl:s3e,rarrsim:l3e,Rarrtl:c3e,rarrtl:u3e,rarrw:d3e,ratail:f3e,rAtail:h3e,ratio:p3e,rationals:m3e,rbarr:g3e,rBarr:v3e,RBarr:b3e,rbbrk:y3e,rbrace:x3e,rbrack:C3e,rbrke:w3e,rbrksld:_3e,rbrkslu:S3e,Rcaron:k3e,rcaron:P3e,Rcedil:T3e,rcedil:A3e,rceil:R3e,rcub:E3e,Rcy:$3e,rcy:I3e,rdca:O3e,rdldhar:M3e,rdquo:z3e,rdquor:F3e,rdsh:D3e,real:L3e,realine:B3e,realpart:N3e,reals:H3e,Re:j3e,rect:U3e,reg:V3e,REG:W3e,ReverseElement:q3e,ReverseEquilibrium:K3e,ReverseUpEquilibrium:G3e,rfisht:X3e,rfloor:Y3e,rfr:Q3e,Rfr:J3e,rHar:Z3e,rhard:ePe,rharu:tPe,rharul:nPe,Rho:oPe,rho:rPe,rhov:iPe,RightAngleBracket:aPe,RightArrowBar:sPe,rightarrow:lPe,RightArrow:cPe,Rightarrow:uPe,RightArrowLeftArrow:dPe,rightarrowtail:fPe,RightCeiling:hPe,RightDoubleBracket:pPe,RightDownTeeVector:mPe,RightDownVectorBar:gPe,RightDownVector:vPe,RightFloor:bPe,rightharpoondown:yPe,rightharpoonup:xPe,rightleftarrows:CPe,rightleftharpoons:wPe,rightrightarrows:_Pe,rightsquigarrow:SPe,RightTeeArrow:kPe,RightTee:PPe,RightTeeVector:TPe,rightthreetimes:APe,RightTriangleBar:RPe,RightTriangle:EPe,RightTriangleEqual:$Pe,RightUpDownVector:IPe,RightUpTeeVector:OPe,RightUpVectorBar:MPe,RightUpVector:zPe,RightVectorBar:FPe,RightVector:DPe,ring:LPe,risingdotseq:BPe,rlarr:NPe,rlhar:HPe,rlm:jPe,rmoustache:UPe,rmoust:VPe,rnmid:WPe,roang:qPe,roarr:KPe,robrk:GPe,ropar:XPe,ropf:YPe,Ropf:QPe,roplus:JPe,rotimes:ZPe,RoundImplies:eTe,rpar:tTe,rpargt:nTe,rppolint:oTe,rrarr:rTe,Rrightarrow:iTe,rsaquo:aTe,rscr:sTe,Rscr:lTe,rsh:cTe,Rsh:uTe,rsqb:dTe,rsquo:fTe,rsquor:hTe,rthree:pTe,rtimes:mTe,rtri:gTe,rtrie:vTe,rtrif:bTe,rtriltri:yTe,RuleDelayed:xTe,ruluhar:CTe,rx:wTe,Sacute:_Te,sacute:STe,sbquo:kTe,scap:PTe,Scaron:TTe,scaron:ATe,Sc:RTe,sc:ETe,sccue:$Te,sce:ITe,scE:OTe,Scedil:MTe,scedil:zTe,Scirc:FTe,scirc:DTe,scnap:LTe,scnE:BTe,scnsim:NTe,scpolint:HTe,scsim:jTe,Scy:UTe,scy:VTe,sdotb:WTe,sdot:qTe,sdote:KTe,searhk:GTe,searr:XTe,seArr:YTe,searrow:QTe,sect:JTe,semi:ZTe,seswar:eAe,setminus:tAe,setmn:nAe,sext:oAe,Sfr:rAe,sfr:iAe,sfrown:aAe,sharp:sAe,SHCHcy:lAe,shchcy:cAe,SHcy:uAe,shcy:dAe,ShortDownArrow:fAe,ShortLeftArrow:hAe,shortmid:pAe,shortparallel:mAe,ShortRightArrow:gAe,ShortUpArrow:vAe,shy:bAe,Sigma:yAe,sigma:xAe,sigmaf:CAe,sigmav:wAe,sim:_Ae,simdot:SAe,sime:kAe,simeq:PAe,simg:TAe,simgE:AAe,siml:RAe,simlE:EAe,simne:$Ae,simplus:IAe,simrarr:OAe,slarr:MAe,SmallCircle:zAe,smallsetminus:FAe,smashp:DAe,smeparsl:LAe,smid:BAe,smile:NAe,smt:HAe,smte:jAe,smtes:UAe,SOFTcy:VAe,softcy:WAe,solbar:qAe,solb:KAe,sol:GAe,Sopf:XAe,sopf:YAe,spades:QAe,spadesuit:JAe,spar:ZAe,sqcap:eRe,sqcaps:tRe,sqcup:nRe,sqcups:oRe,Sqrt:rRe,sqsub:iRe,sqsube:aRe,sqsubset:sRe,sqsubseteq:lRe,sqsup:cRe,sqsupe:uRe,sqsupset:dRe,sqsupseteq:fRe,square:hRe,Square:pRe,SquareIntersection:mRe,SquareSubset:gRe,SquareSubsetEqual:vRe,SquareSuperset:bRe,SquareSupersetEqual:yRe,SquareUnion:xRe,squarf:CRe,squ:wRe,squf:_Re,srarr:SRe,Sscr:kRe,sscr:PRe,ssetmn:TRe,ssmile:ARe,sstarf:RRe,Star:ERe,star:$Re,starf:IRe,straightepsilon:ORe,straightphi:MRe,strns:zRe,sub:FRe,Sub:DRe,subdot:LRe,subE:BRe,sube:NRe,subedot:HRe,submult:jRe,subnE:URe,subne:VRe,subplus:WRe,subrarr:qRe,subset:KRe,Subset:GRe,subseteq:XRe,subseteqq:YRe,SubsetEqual:QRe,subsetneq:JRe,subsetneqq:ZRe,subsim:e4e,subsub:t4e,subsup:n4e,succapprox:o4e,succ:r4e,succcurlyeq:i4e,Succeeds:a4e,SucceedsEqual:s4e,SucceedsSlantEqual:l4e,SucceedsTilde:c4e,succeq:u4e,succnapprox:d4e,succneqq:f4e,succnsim:h4e,succsim:p4e,SuchThat:m4e,sum:g4e,Sum:v4e,sung:b4e,sup1:y4e,sup2:x4e,sup3:C4e,sup:w4e,Sup:_4e,supdot:S4e,supdsub:k4e,supE:P4e,supe:T4e,supedot:A4e,Superset:R4e,SupersetEqual:E4e,suphsol:$4e,suphsub:I4e,suplarr:O4e,supmult:M4e,supnE:z4e,supne:F4e,supplus:D4e,supset:L4e,Supset:B4e,supseteq:N4e,supseteqq:H4e,supsetneq:j4e,supsetneqq:U4e,supsim:V4e,supsub:W4e,supsup:q4e,swarhk:K4e,swarr:G4e,swArr:X4e,swarrow:Y4e,swnwar:Q4e,szlig:J4e,Tab:Z4e,target:eEe,Tau:tEe,tau:nEe,tbrk:oEe,Tcaron:rEe,tcaron:iEe,Tcedil:aEe,tcedil:sEe,Tcy:lEe,tcy:cEe,tdot:uEe,telrec:dEe,Tfr:fEe,tfr:hEe,there4:pEe,therefore:mEe,Therefore:gEe,Theta:vEe,theta:bEe,thetasym:yEe,thetav:xEe,thickapprox:CEe,thicksim:wEe,ThickSpace:_Ee,ThinSpace:SEe,thinsp:kEe,thkap:PEe,thksim:TEe,THORN:AEe,thorn:REe,tilde:EEe,Tilde:$Ee,TildeEqual:IEe,TildeFullEqual:OEe,TildeTilde:MEe,timesbar:zEe,timesb:FEe,times:DEe,timesd:LEe,tint:BEe,toea:NEe,topbot:HEe,topcir:jEe,top:UEe,Topf:VEe,topf:WEe,topfork:qEe,tosa:KEe,tprime:GEe,trade:XEe,TRADE:YEe,triangle:QEe,triangledown:JEe,triangleleft:ZEe,trianglelefteq:e5e,triangleq:t5e,triangleright:n5e,trianglerighteq:o5e,tridot:r5e,trie:i5e,triminus:a5e,TripleDot:s5e,triplus:l5e,trisb:c5e,tritime:u5e,trpezium:d5e,Tscr:f5e,tscr:h5e,TScy:p5e,tscy:m5e,TSHcy:g5e,tshcy:v5e,Tstrok:b5e,tstrok:y5e,twixt:x5e,twoheadleftarrow:C5e,twoheadrightarrow:w5e,Uacute:_5e,uacute:S5e,uarr:k5e,Uarr:P5e,uArr:T5e,Uarrocir:A5e,Ubrcy:R5e,ubrcy:E5e,Ubreve:$5e,ubreve:I5e,Ucirc:O5e,ucirc:M5e,Ucy:z5e,ucy:F5e,udarr:D5e,Udblac:L5e,udblac:B5e,udhar:N5e,ufisht:H5e,Ufr:j5e,ufr:U5e,Ugrave:V5e,ugrave:W5e,uHar:q5e,uharl:K5e,uharr:G5e,uhblk:X5e,ulcorn:Y5e,ulcorner:Q5e,ulcrop:J5e,ultri:Z5e,Umacr:e$e,umacr:t$e,uml:n$e,UnderBar:o$e,UnderBrace:r$e,UnderBracket:i$e,UnderParenthesis:a$e,Union:s$e,UnionPlus:l$e,Uogon:c$e,uogon:u$e,Uopf:d$e,uopf:f$e,UpArrowBar:h$e,uparrow:p$e,UpArrow:m$e,Uparrow:g$e,UpArrowDownArrow:v$e,updownarrow:b$e,UpDownArrow:y$e,Updownarrow:x$e,UpEquilibrium:C$e,upharpoonleft:w$e,upharpoonright:_$e,uplus:S$e,UpperLeftArrow:k$e,UpperRightArrow:P$e,upsi:T$e,Upsi:A$e,upsih:R$e,Upsilon:E$e,upsilon:$$e,UpTeeArrow:I$e,UpTee:O$e,upuparrows:M$e,urcorn:z$e,urcorner:F$e,urcrop:D$e,Uring:L$e,uring:B$e,urtri:N$e,Uscr:H$e,uscr:j$e,utdot:U$e,Utilde:V$e,utilde:W$e,utri:q$e,utrif:K$e,uuarr:G$e,Uuml:X$e,uuml:Y$e,uwangle:Q$e,vangrt:J$e,varepsilon:Z$e,varkappa:eIe,varnothing:tIe,varphi:nIe,varpi:oIe,varpropto:rIe,varr:iIe,vArr:aIe,varrho:sIe,varsigma:lIe,varsubsetneq:cIe,varsubsetneqq:uIe,varsupsetneq:dIe,varsupsetneqq:fIe,vartheta:hIe,vartriangleleft:pIe,vartriangleright:mIe,vBar:gIe,Vbar:vIe,vBarv:bIe,Vcy:yIe,vcy:xIe,vdash:CIe,vDash:wIe,Vdash:_Ie,VDash:SIe,Vdashl:kIe,veebar:PIe,vee:TIe,Vee:AIe,veeeq:RIe,vellip:EIe,verbar:$Ie,Verbar:IIe,vert:OIe,Vert:MIe,VerticalBar:zIe,VerticalLine:FIe,VerticalSeparator:DIe,VerticalTilde:LIe,VeryThinSpace:BIe,Vfr:NIe,vfr:HIe,vltri:jIe,vnsub:UIe,vnsup:VIe,Vopf:WIe,vopf:qIe,vprop:KIe,vrtri:GIe,Vscr:XIe,vscr:YIe,vsubnE:QIe,vsubne:JIe,vsupnE:ZIe,vsupne:e8e,Vvdash:t8e,vzigzag:n8e,Wcirc:o8e,wcirc:r8e,wedbar:i8e,wedge:a8e,Wedge:s8e,wedgeq:l8e,weierp:c8e,Wfr:u8e,wfr:d8e,Wopf:f8e,wopf:h8e,wp:p8e,wr:m8e,wreath:g8e,Wscr:v8e,wscr:b8e,xcap:y8e,xcirc:x8e,xcup:C8e,xdtri:w8e,Xfr:_8e,xfr:S8e,xharr:k8e,xhArr:P8e,Xi:T8e,xi:A8e,xlarr:R8e,xlArr:E8e,xmap:$8e,xnis:I8e,xodot:O8e,Xopf:M8e,xopf:z8e,xoplus:F8e,xotime:D8e,xrarr:L8e,xrArr:B8e,Xscr:N8e,xscr:H8e,xsqcup:j8e,xuplus:U8e,xutri:V8e,xvee:W8e,xwedge:q8e,Yacute:K8e,yacute:G8e,YAcy:X8e,yacy:Y8e,Ycirc:Q8e,ycirc:J8e,Ycy:Z8e,ycy:eOe,yen:tOe,Yfr:nOe,yfr:oOe,YIcy:rOe,yicy:iOe,Yopf:aOe,yopf:sOe,Yscr:lOe,yscr:cOe,YUcy:uOe,yucy:dOe,yuml:fOe,Yuml:hOe,Zacute:pOe,zacute:mOe,Zcaron:gOe,zcaron:vOe,Zcy:bOe,zcy:yOe,Zdot:xOe,zdot:COe,zeetrf:wOe,ZeroWidthSpace:_Oe,Zeta:SOe,zeta:kOe,zfr:POe,Zfr:TOe,ZHcy:AOe,zhcy:ROe,zigrarr:EOe,zopf:$Oe,Zopf:IOe,Zscr:OOe,zscr:MOe,zwj:zOe,zwnj:FOe};var vk=DOe,Km=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Qa={},A1={};function LOe(e){var t,n,o=A1[e];if(o)return o;for(o=A1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t"u"&&(n=!0),s=LOe(t),o=0,r=e.length;o=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1=56320&&a<=57343)){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(e[o])}return l}Xu.defaultChars=";/?:@&=+$,-_.!~*'()#";Xu.componentChars="-_.!~*'()";var BOe=Xu,R1={};function NOe(e){var t,n,o=R1[e];if(o)return o;for(o=R1[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),o.push(n);for(t=0;t=55296&&u<=57343?d+="���":d+=String.fromCharCode(u),r+=6;continue}if((a&248)===240&&r+91114111?d+="����":(u-=65536,d+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}d+="�"}return d})}Yu.defaultChars=";/?:@&=+$,#";Yu.componentChars="";var HOe=Yu,jOe=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function Wc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var UOe=/^([a-z0-9.+-]+:)/i,VOe=/:[0-9]*$/,WOe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,qOe=["<",">",'"',"`"," ","\r",` +`," "],KOe=["{","}","|","\\","^","`"].concat(qOe),GOe=["'"].concat(KOe),E1=["%","/","?",";","#"].concat(GOe),$1=["/","?","#"],XOe=255,I1=/^[+a-z0-9A-Z_-]{0,63}$/,YOe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O1={javascript:!0,"javascript:":!0},M1={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function QOe(e,t){if(e&&e instanceof Wc)return e;var n=new Wc;return n.parse(e,t),n}Wc.prototype.parse=function(e,t){var n,o,r,i,a,s=e;if(s=s.trim(),!t&&e.split("#").length===1){var l=WOe.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=UOe.exec(s);if(c&&(c=c[0],r=c.toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(c&&O1[c])&&(s=s.substr(2),this.slashes=!0)),!O1[c]&&(a||c&&!M1[c])){var u=-1;for(n=0;n<$1.length;n++)i=s.indexOf($1[n]),i!==-1&&(u===-1||i127?b+="x":b+=m[w];if(!b.match(I1)){var _=g.slice(0,n),S=g.slice(n+1),y=m.match(YOe);y&&(_.push(y[1]),S.unshift(y[2])),S.length&&(s=S.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>XOe&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=s.indexOf("#");x!==-1&&(this.hash=s.substr(x),s=s.slice(0,x));var k=s.indexOf("?");return k!==-1&&(this.search=s.substr(k),s=s.slice(0,k)),s&&(this.pathname=s),M1[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Wc.prototype.parseHost=function(e){var t=VOe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var JOe=QOe;Qa.encode=BOe;Qa.decode=HOe;Qa.format=jOe;Qa.parse=JOe;var hi={},mf,z1;function bk(){return z1||(z1=1,mf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),mf}var gf,F1;function yk(){return F1||(F1=1,gf=/[\0-\x1F\x7F-\x9F]/),gf}var vf,D1;function ZOe(){return D1||(D1=1,vf=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),vf}var bf,L1;function xk(){return L1||(L1=1,bf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),bf}var B1;function eMe(){return B1||(B1=1,hi.Any=bk(),hi.Cc=yk(),hi.Cf=ZOe(),hi.P=Km,hi.Z=xk()),hi}(function(e){function t(B){return Object.prototype.toString.call(B)}function n(B){return t(B)==="[object String]"}var o=Object.prototype.hasOwnProperty;function r(B,D){return o.call(B,D)}function i(B){var D=Array.prototype.slice.call(arguments,1);return D.forEach(function(L){if(L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(X){B[X]=L[X]})}}),B}function a(B,D,L){return[].concat(B.slice(0,D),L,B.slice(D+1))}function s(B){return!(B>=55296&&B<=57343||B>=64976&&B<=65007||(B&65535)===65535||(B&65535)===65534||B>=0&&B<=8||B===11||B>=14&&B<=31||B>=127&&B<=159||B>1114111)}function l(B){if(B>65535){B-=65536;var D=55296+(B>>10),L=56320+(B&1023);return String.fromCharCode(D,L)}return String.fromCharCode(B)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=vk;function p(B,D){var L;return r(h,D)?h[D]:D.charCodeAt(0)===35&&f.test(D)&&(L=D[1].toLowerCase()==="x"?parseInt(D.slice(2),16):parseInt(D.slice(1),10),s(L))?l(L):B}function g(B){return B.indexOf("\\")<0?B:B.replace(c,"$1")}function m(B){return B.indexOf("\\")<0&&B.indexOf("&")<0?B:B.replace(d,function(D,L,X){return L||p(D,X)})}var b=/[&<>"]/,w=/[&<>"]/g,C={"&":"&","<":"<",">":">",'"':"""};function _(B){return C[B]}function S(B){return b.test(B)?B.replace(w,_):B}var y=/[.?*+^$[\]\\(){}|-]/g;function x(B){return B.replace(y,"\\$&")}function k(B){switch(B){case 9:case 32:return!0}return!1}function P(B){if(B>=8192&&B<=8202)return!0;switch(B){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var T=Km;function $(B){return T.test(B)}function E(B){switch(B){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(B){return B=B.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(B=B.replace(/ẞ/g,"ß")),B.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Qa,e.lib.ucmicro=eMe(),e.assign=i,e.isString=n,e.has=r,e.unescapeMd=g,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=S,e.arrayReplaceAt=a,e.isSpace=k,e.isWhiteSpace=P,e.isMdAsciiPunct=E,e.isPunctChar=$,e.escapeRE=x,e.normalizeReference=G})(Lt);var Qu={},tMe=function(t,n,o){var r,i,a,s,l=-1,c=t.posMax,u=t.pos;for(t.pos=n+1,r=1;t.pos32))return s;if(r===41){if(i===0)break;i--}a++}return n===a||i!==0||(s.str=N1(t.slice(n,a)),s.pos=a,s.ok=!0),s},oMe=Lt.unescapeAll,rMe=function(t,n,o){var r,i,a=0,s=n,l={ok:!1,pos:0,lines:0,str:""};if(s>=o||(i=t.charCodeAt(s),i!==34&&i!==39&&i!==40))return l;for(s++,i===40&&(i=41);s"+Di(i.content)+""};Yo.code_block=function(e,t,n,o,r){var i=e[t];return""+Di(e[t].content)+` +`};Yo.fence=function(e,t,n,o,r){var i=e[t],a=i.info?aMe(i.info).trim():"",s="",l="",c,u,d,f,h;return a&&(d=a.split(/(\s+)/g),s=d[0],l=d.slice(2).join("")),n.highlight?c=n.highlight(i.content,s,l)||Di(i.content):c=Di(i.content),c.indexOf(""+c+` `):"
"+c+`
`};Yo.image=function(e,t,n,o,r){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)};Yo.hardbreak=function(e,t,n){return n.xhtmlOut?`
@@ -3810,9 +3810,9 @@ ${t} `};Yo.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};Yo.text=function(e,t){return zi(e[t].content)};Yo.html_block=function(e,t){return e[t].content};Yo.html_inline=function(e,t){return e[t].content};function Xa(){this.rules=YOe({},Yo)}Xa.prototype.renderAttrs=function(t){var n,o,r;if(!t.attrs)return"";for(r="",n=0,o=t.attrs.length;n -`:">",i)};Xa.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a\s]/i.test(e)}function aMe(e){return/^<\/a\s*>/i.test(e)}var sMe=function(t){var n,o,r,i,a,s,l,c,u,d,f,h,p,g,m,b,w=t.tokens,C;if(t.md.options.linkify){for(o=0,r=w.length;o=0;n--){if(s=i[n],s.type==="link_close"){for(n--;i[n].level!==s.level&&i[n].type!=="link_open";)n--;continue}if(s.type==="html_inline"&&(iMe(s.content)&&p>0&&p--,aMe(s.content)&&p++),!(p>0)&&s.type==="text"&&t.md.linkify.test(s.content)){for(u=s.content,C=t.md.linkify.match(u),l=[],h=s.level,f=0,C.length>0&&C[0].index===0&&n>0&&i[n-1].type==="text_special"&&(C=C.slice(1)),c=0;cf&&(a=new t.Token("text","",0),a.content=u.slice(f,d),a.level=h,l.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",m]],a.level=h++,a.markup="linkify",a.info="auto",l.push(a),a=new t.Token("text","",0),a.content=b,a.level=h,l.push(a),a=new t.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",l.push(a),f=C[c].lastIndex);f=0;t--)n=e[t],n.type==="text"&&!o&&(n.content=n.content.replace(cMe,dMe)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function hMe(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!o&&pk.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var pMe=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(lMe.test(t.tokens[n].content)&&fMe(t.tokens[n].children),pk.test(t.tokens[n].content)&&hMe(t.tokens[n].children))},M1=Lt.isWhiteSpace,z1=Lt.isPunctChar,F1=Lt.isMdAsciiPunct,mMe=/['"]/,D1=/['"]/g,L1="’";function Yl(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function gMe(e,t){var n,o,r,i,a,s,l,c,u,d,f,h,p,g,m,b,w,C,_,S,y;for(_=[],n=0;n=0&&!(_[w].level<=l);w--);if(_.length=w+1,o.type==="text"){r=o.content,a=0,s=r.length;e:for(;a=0)u=r.charCodeAt(i.index-1);else for(w=n-1;w>=0&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w--)if(e[w].content){u=e[w].content.charCodeAt(e[w].content.length-1);break}if(d=32,a=48&&u<=57&&(b=m=!1),m&&b&&(m=f,b=h),!m&&!b){C&&(o.content=Yl(o.content,i.index,L1));continue}if(b){for(w=_.length-1;w>=0&&(c=_[w],!(_[w].level=0;n--)t.tokens[n].type!=="inline"||!mMe.test(t.tokens[n].content)||gMe(t.tokens[n].children,t)},bMe=function(t){var n,o,r,i,a,s,l=t.tokens;for(n=0,o=l.length;n=0&&(o=this.attrs[n][1]),o};Ya.prototype.attrJoin=function(t,n){var o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var jm=Ya,yMe=jm;function mk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}mk.prototype.Token=yMe;var xMe=mk,CMe=Hm,pf=[["normalize",tMe],["block",nMe],["inline",oMe],["linkify",sMe],["replacements",pMe],["smartquotes",vMe],["text_join",bMe]];function Um(){this.ruler=new CMe;for(var e=0;eo||(u=n+1,t.sCount[u]=4||(s=t.bMarks[u]+t.tShift[u],s>=t.eMarks[u])||(S=t.src.charCodeAt(s++),S!==124&&S!==45&&S!==58)||s>=t.eMarks[u]||(y=t.src.charCodeAt(s++),y!==124&&y!==45&&y!==58&&!mf(y))||S===45&&mf(y))return!1;for(;s=4||(d=B1(a),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),f=d.length,f===0||f!==p.length))return!1;if(r)return!0;for(w=t.parentType,t.parentType="table",_=t.md.block.ruler.getRules("blockquote"),h=t.push("table_open","table",1),h.map=m=[n,0],h=t.push("thead_open","thead",1),h.map=[n,n+1],h=t.push("tr_open","tr",1),h.map=[n,n+1],l=0;l=4)break;for(d=B1(a),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),u===n+2&&(h=t.push("tbody_open","tbody",1),h.map=b=[n+2,0]),h=t.push("tr_open","tr",1),h.map=[u,u+1],l=0;l=4){r++,i=r;continue}break}return t.line=i,a=t.push("code_block","code",0),a.content=t.getLines(n,i,4+t.blkIndent,!1)+` -`,a.map=[n,t.line],!0},kMe=function(t,n,o,r){var i,a,s,l,c,u,d,f=!1,h=t.bMarks[n]+t.tShift[n],p=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>p||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(c=h,h=t.skipChars(h,i),a=h-c,a<3)||(d=t.src.slice(c,h),s=t.src.slice(h,p),i===96&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(l=n;l++,!(l>=o||(h=c=t.bMarks[l]+t.tShift[l],p=t.eMarks[l],h=4)&&(h=t.skipChars(h,i),!(h-c=4||t.src.charCodeAt(T)!==62)return!1;if(r)return!0;for(p=[],g=[],w=[],C=[],y=t.md.block.ruler.getRules("blockquote"),b=t.parentType,t.parentType="blockquote",f=n;f=R));f++){if(t.src.charCodeAt(T++)===62&&!P){for(l=t.sCount[f]+1,t.src.charCodeAt(T)===32?(T++,l++,i=!1,_=!0):t.src.charCodeAt(T)===9?(_=!0,(t.bsCount[f]+l)%4===3?(T++,l++,i=!1):i=!0):_=!1,h=l,p.push(t.bMarks[f]),t.bMarks[f]=T;T=R,g.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(_?1:0),w.push(t.sCount[f]),t.sCount[f]=h-l,C.push(t.tShift[f]),t.tShift[f]=T-t.bMarks[f];continue}if(u)break;for(S=!1,s=0,c=y.length;s",x.map=d=[n,0],t.md.block.tokenize(t,n,f),x=t.push("blockquote_close","blockquote",-1),x.markup=">",t.lineMax=k,t.parentType=b,d[1]=t.line,s=0;s=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r=4||t.listIndent>=0&&t.sCount[M]-t.listIndent>=4&&t.sCount[M]=t.blkIndent&&(K=!0),(T=H1(t,M))>=0){if(d=!0,E=t.bMarks[M]+t.tShift[M],b=Number(t.src.slice(E,T-1)),K&&b!==1)return!1}else if((T=N1(t,M))>=0)d=!1;else return!1;if(K&&t.skipSpaces(T)>=t.eMarks[M])return!1;if(r)return!0;for(m=t.src.charCodeAt(T-1),g=t.tokens.length,d?(B=t.push("ordered_list_open","ol",1),b!==1&&(B.attrs=[["start",b]])):B=t.push("bullet_list_open","ul",1),B.map=p=[M,0],B.markup=String.fromCharCode(m),R=!1,D=t.md.block.ruler.getRules("list"),S=t.parentType,t.parentType="list";M=w?c=1:c=C-u,c>4&&(c=1),l=u+c,B=t.push("list_item_open","li",1),B.markup=String.fromCharCode(m),B.map=f=[M,0],d&&(B.info=t.src.slice(E,T-1)),P=t.tight,x=t.tShift[M],y=t.sCount[M],_=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[M]=a-t.bMarks[M],t.sCount[M]=C,a>=w&&t.isEmpty(M+1)?t.line=Math.min(t.line+2,o):t.md.block.tokenize(t,M,o,!0),(!t.tight||R)&&(V=!1),R=t.line-M>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=_,t.tShift[M]=x,t.sCount[M]=y,t.tight=P,B=t.push("list_item_close","li",-1),B.markup=String.fromCharCode(m),M=t.line,f[1]=M,M>=o||t.sCount[M]=4)break;for(q=!1,s=0,h=D.length;s=4||t.src.charCodeAt(y)!==91)return!1;for(;++y3)&&!(t.sCount[P]<0)){for(w=!1,u=0,d=C.length;u"u"&&(t.env.references={}),typeof t.env.references[f]>"u"&&(t.env.references[f]={title:_,href:c}),t.parentType=p,t.line=n+S+1),!0)},MMe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ku={},zMe="[a-zA-Z_:][a-zA-Z0-9:._-]*",FMe="[^\"'=<>`\\x00-\\x20]+",DMe="'[^']*'",LMe='"[^"]*"',BMe="(?:"+FMe+"|"+DMe+"|"+LMe+")",NMe="(?:\\s+"+zMe+"(?:\\s*=\\s*"+BMe+")?)",vk="<[A-Za-z][A-Za-z0-9\\-]*"+NMe+"*\\s*\\/?>",bk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",HMe="|",jMe="<[?][\\s\\S]*?[?]>",UMe="]*>",VMe="",WMe=new RegExp("^(?:"+vk+"|"+bk+"|"+HMe+"|"+jMe+"|"+UMe+"|"+VMe+")"),qMe=new RegExp("^(?:"+vk+"|"+bk+")");Ku.HTML_TAG_RE=WMe;Ku.HTML_OPEN_CLOSE_TAG_RE=qMe;var KMe=MMe,GMe=Ku.HTML_OPEN_CLOSE_TAG_RE,ra=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(GMe.source+"\\s*$"),/^$/,!1]],XMe=function(t,n,o,r){var i,a,s,l,c=t.bMarks[n]+t.tShift[n],u=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(c)!==60)return!1;for(l=t.src.slice(c,u),i=0;i=4||(i=t.src.charCodeAt(c),i!==35||c>=u))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&j1(t.src.charCodeAt(s-1))&&(u=s),t.line=n+1,l=t.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[n,t.line],l=t.push("inline","",0),l.content=t.src.slice(c,u).trim(),l.map=[n,t.line],l.children=[],l=t.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a)),!0)},QMe=function(t,n,o){var r,i,a,s,l,c,u,d,f,h=n+1,p,g=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(p=t.parentType,t.parentType="paragraph";h3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c=u)))){d=f===61?1:2;break}if(!(t.sCount[h]<0)){for(i=!1,a=0,s=g.length;a3)&&!(t.sCount[u]<0)){for(i=!1,a=0,s=d.length;a0&&this.level++,this.tokens.push(o),o};Qo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Qo.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Gu(this.src.charCodeAt(--t)))return t+1;return t};Qo.prototype.skipChars=function(t,n){for(var o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Qo.prototype.getLines=function(t,n,o,r){var i,a,s,l,c,u,d,f=t;if(t>=n)return"";for(u=new Array(n-t),i=0;fo?u[i]=new Array(a-o+1).join(" ")+this.src.slice(l,c):u[i]=this.src.slice(l,c)}return u.join("")};Qo.prototype.Token=yk;var ZMe=Qo,e6e=Hm,Jl=[["table",_Me,["paragraph","reference"]],["code",SMe],["fence",kMe,["paragraph","reference","blockquote","list"]],["blockquote",TMe,["paragraph","reference","blockquote","list"]],["hr",RMe,["paragraph","reference","blockquote","list"]],["list",$Me,["paragraph","reference","blockquote"]],["reference",OMe],["html_block",XMe,["paragraph","reference","blockquote"]],["heading",YMe,["paragraph","reference","blockquote"]],["lheading",QMe],["paragraph",JMe]];function Xu(){this.ruler=new e6e;for(var e=0;e=n||e.sCount[l]=u){e.line=n;break}for(i=e.line,r=0;r=e.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),l=e.line,l0||(o=t.pos,r=t.posMax,o+3>r)||t.src.charCodeAt(o)!==58||t.src.charCodeAt(o+1)!==47||t.src.charCodeAt(o+2)!==47||(i=t.pending.match(r6e),!i)||(a=i[1],s=t.md.linkify.matchAtStart(t.src.slice(o-a.length)),!s)||(l=s.url,l.length<=a.length)||(l=l.replace(/\*+$/,""),c=t.md.normalizeLink(l),!t.md.validateLink(c))?!1:(n||(t.pending=t.pending.slice(0,-a.length),u=t.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=t.push("text","",0),u.content=t.md.normalizeLinkText(l),u=t.push("link_close","a",-1),u.markup="linkify",u.info="auto"),t.pos+=l.length-a.length,!0)},a6e=Lt.isSpace,s6e=function(t,n){var o,r,i,a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;if(o=t.pending.length-1,r=t.posMax,!n)if(o>=0&&t.pending.charCodeAt(o)===32)if(o>=1&&t.pending.charCodeAt(o-1)===32){for(i=o-1;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a?@[]^_`{|}~-".split("").forEach(function(e){Vm[e.charCodeAt(0)]=1});var c6e=function(t,n){var o,r,i,a,s,l=t.pos,c=t.posMax;if(t.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(o=t.src.charCodeAt(l),o===10){for(n||t.push("hardbreak","br",0),l++;l=55296&&o<=56319&&l+1=56320&&r<=57343&&(a+=t.src[l+1],l++)),i="\\"+a,n||(s=t.push("text_special","",0),o<256&&Vm[o]!==0?s.content=a:s.content=i,s.markup=i,s.info="escape"),t.pos=l+1,!0},u6e=function(t,n){var o,r,i,a,s,l,c,u,d=t.pos,f=t.src.charCodeAt(d);if(f!==96)return!1;for(o=d,d++,r=t.posMax;d=0;n--)o=t[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=t[o.end],s=n>0&&t[n-1].end===o.end+1&&t[n-1].marker===o.marker&&t[n-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token],i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",i=e.tokens[r.token],i.type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[o.end+1].token].content="",n--))}Qu.postProcess=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(W1(t,t.delimiters),n=0;n=g)return!1;if(m=l,c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),c.ok){for(f=t.md.normalizeLink(c.str),t.md.validateLink(f)?l=c.pos:f="",m=l;l=g||t.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof t.env.references>"u")return!1;if(l=0?i=t.src.slice(m,l++):l=a+1):l=a+1,i||(i=t.src.slice(s,a)),u=t.env.references[d6e(i)],!u)return t.pos=p,!1;f=u.href,h=u.title}return n||(t.pos=s,t.posMax=a,d=t.push("link_open","a",1),d.attrs=o=[["href",f]],h&&o.push(["title",h]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,d=t.push("link_close","a",-1)),t.pos=l,t.posMax=g,!0},h6e=Lt.normalizeReference,bf=Lt.isSpace,p6e=function(t,n){var o,r,i,a,s,l,c,u,d,f,h,p,g,m="",b=t.pos,w=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(l=t.pos+2,s=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),s<0))return!1;if(c=s+1,c=w)return!1;for(g=c,d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),d.ok&&(m=t.md.normalizeLink(d.str),t.md.validateLink(m)?c=d.pos:m=""),g=c;c=w||t.src.charCodeAt(c)!==41)return t.pos=b,!1;c++}else{if(typeof t.env.references>"u")return!1;if(c=0?a=t.src.slice(g,c++):c=s+1):c=s+1,a||(a=t.src.slice(l,s)),u=t.env.references[h6e(a)],!u)return t.pos=b,!1;m=u.href,f=u.title}return n||(i=t.src.slice(l,s),t.md.inline.parse(i,t.md,t.env,p=[]),h=t.push("image","img",0),h.attrs=o=[["src",m],["alt",""]],h.children=p,h.content=i,f&&o.push(["title",f])),t.pos=c,t.posMax=w,!0},m6e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,g6e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,v6e=function(t,n){var o,r,i,a,s,l,c=t.pos;if(t.src.charCodeAt(c)!==60)return!1;for(s=t.pos,l=t.posMax;;){if(++c>=l||(a=t.src.charCodeAt(c),a===60))return!1;if(a===62)break}return o=t.src.slice(s+1,c),g6e.test(o)?(r=t.md.normalizeLink(o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):m6e.test(o)?(r=t.md.normalizeLink("mailto:"+o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):!1},b6e=Ku.HTML_TAG_RE;function y6e(e){return/^\s]/i.test(e)}function x6e(e){return/^<\/a\s*>/i.test(e)}function C6e(e){var t=e|32;return t>=97&&t<=122}var w6e=function(t,n){var o,r,i,a,s=t.pos;return!t.md.options.html||(i=t.posMax,t.src.charCodeAt(s)!==60||s+2>=i)||(o=t.src.charCodeAt(s+1),o!==33&&o!==63&&o!==47&&!C6e(o))||(r=t.src.slice(s).match(b6e),!r)?!1:(n||(a=t.push("html_inline","",0),a.content=r[0],y6e(a.content)&&t.linkLevel++,x6e(a.content)&&t.linkLevel--),t.pos+=r[0].length,!0)},q1=uk,_6e=Lt.has,S6e=Lt.isValidEntityCode,K1=Lt.fromCodePoint,k6e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,P6e=/^&([a-z][a-z0-9]{1,31});/i,T6e=function(t,n){var o,r,i,a,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38||s+1>=l)return!1;if(o=t.src.charCodeAt(s+1),o===35){if(i=t.src.slice(s).match(k6e),i)return n||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=t.push("text_special","",0),a.content=S6e(r)?K1(r):K1(65533),a.markup=i[0],a.info="entity"),t.pos+=i[0].length,!0}else if(i=t.src.slice(s).match(P6e),i&&_6e(q1,i[1]))return n||(a=t.push("text_special","",0),a.content=q1[i[1]],a.markup=i[0],a.info="entity"),t.pos+=i[0].length,!0;return!1};function G1(e){var t,n,o,r,i,a,s,l,c={},u=e.length;if(u){var d=0,f=-2,h=[];for(t=0;ti;n-=h[n]+1)if(r=e[n],r.marker===o.marker&&r.open&&r.end<0&&(s=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(s=!0),!s)){l=n>0&&!e[n-1].open?h[n-1]+1:0,h[t]=t-n+l,h[n]=l,o.open=!1,r.end=t,r.close=!1,a=-1,f=-2;break}a!==-1&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var E6e=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(G1(t.delimiters),n=0;n0&&r++,i[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};bl.prototype.scanDelims=function(e,t){var n=e,o,r,i,a,s,l,c,u,d,f=!0,h=!0,p=this.posMax,g=this.src.charCodeAt(e);for(o=e>0?this.src.charCodeAt(e-1):32;n=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;t||e.pos++,s[o]=e.pos};yl.prototype.tokenize=function(e){for(var t,n,o,r=this.ruler.getRules(""),i=r.length,a=e.posMax,s=e.md.options.maxNesting;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(t){if(e.pos>=a)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};yl.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),i=this.ruler2.getRules(""),a=i.length,r=0;r|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Cf}function jh(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function Ju(e){return Object.prototype.toString.call(e)}function O6e(e){return Ju(e)==="[object String]"}function M6e(e){return Ju(e)==="[object Object]"}function z6e(e){return Ju(e)==="[object RegExp]"}function ey(e){return Ju(e)==="[object Function]"}function F6e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xk={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function D6e(e){return Object.keys(e||{}).reduce(function(t,n){return t||xk.hasOwnProperty(n)},!1)}var L6e={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},B6e="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",N6e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function H6e(e){e.__index__=-1,e.__text_cache__=""}function j6e(e){return function(t,n){var o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function ty(){return function(e,t){t.normalize(e)}}function Hc(e){var t=e.re=I6e()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(B6e),n.push(t.src_xn),t.src_tlds=n.join("|");function o(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var r=[];e.__compiled__={};function i(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){var l=e.__schemas__[s];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[s]=c,M6e(l)){z6e(l.validate)?c.validate=j6e(l.validate):ey(l.validate)?c.validate=l.validate:i(s,l),ey(l.normalize)?c.normalize=l.normalize:l.normalize?i(s,l):c.normalize=ty();return}if(O6e(l)){r.push(s);return}i(s,l)}}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:ty()};var a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(F6e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),H6e(e)}function U6e(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function Uh(e,t){var n=new U6e(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function oo(e,t){if(!(this instanceof oo))return new oo(e,t);t||D6e(e)&&(t=e,e={}),this.__opts__=jh({},xk,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=jh({},L6e,e),this.__compiled__={},this.__tlds__=N6e,this.__tlds_replaced__=!1,this.re={},Hc(this)}oo.prototype.add=function(t,n){return this.__schemas__[t]=n,Hc(this),this};oo.prototype.set=function(t){return this.__opts__=jh(this.__opts__,t),this};oo.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,o,r,i,a,s,l,c,u;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};oo.prototype.pretest=function(t){return this.re.pretest.test(t)};oo.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};oo.prototype.match=function(t){var n=0,o=[];this.__index__>=0&&this.__text_cache__===t&&(o.push(Uh(this,n)),n=this.__last_index__);for(var r=n?t.slice(n):t;this.test(r);)o.push(Uh(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};oo.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var n=this.re.schema_at_start.exec(t);if(!n)return null;var o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Uh(this,0)):null};oo.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),Hc(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Hc(this),this)};oo.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};oo.prototype.onCompile=function(){};var V6e=oo;const va=2147483647,jo=36,qm=1,nl=26,W6e=38,q6e=700,Ck=72,wk=128,_k="-",K6e=/^xn--/,G6e=/[^\0-\x7F]/,X6e=/[\x2E\u3002\uFF0E\uFF61]/g,Y6e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wf=jo-qm,Uo=Math.floor,_f=String.fromCharCode;function Mr(e){throw new RangeError(Y6e[e])}function Q6e(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function Sk(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(X6e,".");const r=e.split("."),i=Q6e(r,t).join(".");return o+i}function Km(e){const t=[];let n=0;const o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),J6e=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:jo},ny=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Pk=function(e,t,n){let o=0;for(e=n?Uo(e/q6e):e>>1,e+=Uo(e/t);e>wf*nl>>1;o+=jo)e=Uo(e/wf);return Uo(o+(wf+1)*e/(e+W6e))},Gm=function(e){const t=[],n=e.length;let o=0,r=wk,i=Ck,a=e.lastIndexOf(_k);a<0&&(a=0);for(let s=0;s=128&&Mr("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Mr("invalid-input");const f=J6e(e.charCodeAt(s++));f>=jo&&Mr("invalid-input"),f>Uo((va-o)/u)&&Mr("overflow"),o+=f*u;const h=d<=i?qm:d>=i+nl?nl:d-i;if(fUo(va/p)&&Mr("overflow"),u*=p}const c=t.length+1;i=Pk(o-l,c,l==0),Uo(o/c)>va-r&&Mr("overflow"),r+=Uo(o/c),o%=c,t.splice(o++,0,r)}return String.fromCodePoint(...t)},Xm=function(e){const t=[];e=Km(e);const n=e.length;let o=wk,r=0,i=Ck;for(const l of e)l<128&&t.push(_f(l));const a=t.length;let s=a;for(a&&t.push(_k);s=o&&uUo((va-r)/c)&&Mr("overflow"),r+=(l-o)*c,o=l;for(const u of e)if(uva&&Mr("overflow"),u===o){let d=r;for(let f=jo;;f+=jo){const h=f<=i?qm:f>=i+nl?nl:f-i;if(d=0))try{t.hostname=Rk.toASCII(t.hostname)}catch{}return yi.encode(yi.format(t))}function gze(e){var t=yi.parse(e,!0);if(t.hostname&&(!t.protocol||Ak.indexOf(t.protocol)>=0))try{t.hostname=Rk.toUnicode(t.hostname)}catch{}return yi.decode(yi.format(t),yi.decode.defaultChars+"%")}function po(e,t){if(!(this instanceof po))return new po(e,t);t||Is.isString(e)||(t=e||{},e="default"),this.inline=new cze,this.block=new lze,this.core=new sze,this.renderer=new aze,this.linkify=new uze,this.validateLink=pze,this.normalizeLink=mze,this.normalizeLinkText=gze,this.utils=Is,this.helpers=Is.assign({},ize),this.options={},this.configure(e),t&&this.set(t)}po.prototype.set=function(e){return Is.assign(this.options,e),this};po.prototype.configure=function(e){var t=this,n;if(Is.isString(e)&&(n=e,e=dze[n],!e))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(o){e.components[o].rules&&t[o].ruler.enableOnly(e.components[o].rules),e.components[o].rules2&&t[o].ruler2.enableOnly(e.components[o].rules2)}),this};po.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};po.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};po.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};po.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};po.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};po.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};po.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var vze=po,bze=vze;const Zu=kp(bze),yze={xmlns:"http://www.w3.org/2000/svg",id:"Layer_1",viewBox:"0 0 442.19 323.31"},xze=Y("path",{d:"m72.8 140.45-12.7 145.1h42.41l8.99-102.69h.04l3.67-42.41zM124.16 37.75h-42.4l-5.57 63.61h42.4zM318.36 285.56h42.08l5.57-63.61H323.9z",class:"cls-2"},null,-1),Cze=Y("path",{d:"M382.09 37.76H340l-10.84 123.9H221.09l-14.14 161.65 85.83-121.47h145.89l3.52-40.18h-70.94z",class:"cls-2"},null,-1),wze=Y("path",{d:"M149.41 121.47H3.52L0 161.66h221.09L235.23 0z",style:{fill:"#ffbc00"}},null,-1);function _ze(e,t){return ge(),ze("svg",yze,[Y("defs",null,[(ge(),We(xa("style"),null,{default:me(()=>[nt(".cls-2{fill:#000}@media (prefers-color-scheme:dark){.cls-2{fill:#fff}}")]),_:1}))]),xze,Cze,wze])}const Sze={render:_ze};var Os=(e=>(e[e.PENDING=0]="PENDING",e[e.PROCESSING=1]="PROCESSING",e[e.CANCELLED=2]="CANCELLED",e[e.COMPLETED=3]="COMPLETED",e[e.DISCOUNTED=4]="DISCOUNTED",e))(Os||{});const kze={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},$k={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"},Pze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEVGpf9Do/8AZ+VIp/83m/1Lqf8AZeQmkfkymPs7nf4Cg/L1+f48n/80mvwtlfrx9/4cjPcZivX3+v4BaeQBgPEAbeg+oP/v9v4BauYBfvDn8f3u9f1Bov8/of8AZeMqlPr4+/4Oh/Qjj/ggjvcAXsoAcOnt8/0BcusIhfM4nf7l8PwSh/QAe+4AduwAee3k7/zz+P/6/P4BYMwBfO/i7vwvlvsAdevp8f3h7Prk7vsAYtLp8/0Wivb9/v7g7P0BZ+Dd6/zc6vwAYM77/f6Ns9yUuOAAZNXr9P7a6PmcvuIBaOKXu+CPtt+RtNva6fzS4vYAZdnV5fjA1++20OvY5/re6vzX5vjI3fS50u0AZdzU4/euyuixy+elxOWXudzL3vK91e2dvN+Ut9sAYdCzzemoxube6vnG2/HF2e+qyOmgweTW5vrK3/XC2fGsyOeMstvs8vvS5PnP4fXM4PXO3/PH3PPE2/O20e6zzuywzOoAcObC2O+jw+agwOGbu91AfdGmxugHYa3z9/zQ4/fN4faiweMAbuKaveEAZt4CX63Y6Py50+/B1usBdun////o8Png6ve91vG71PC80+qty+oAeOoAc+fY5PTS4fPJ2+8Bf+260ekAbeWsx+QAad4AbNjf7P3i7Pjd6PbA1/MAe+yyzesAduYwlPcZiPErkvYmj/WoxeOkwuJDn/wijPMNhPAXhO4AfOm3z+iFrNkAadIvdNBWqP1ztfwuiOoAcd44edElbs/W5PakyfVdo/IrjvF+sO1QmOtTkOC32f1OpP2Cu/q51veu0PeKuvI4kfCbwO6Su+4hie4KgOwGdeITZ80caLKgzP7C3v1erP3L4/xyrvNHmPGvzu5yqOw8kesQf+kggehGjuaBrOIeeeFnmdpXjdcCaNYQZK+TxfzB2vc6l/Vnp/GkxvBjouxbmumIsuhknOQ4g+Iuf+J6pNdzoNIcas5omMwmbbSax/hGnPVTn/MRd+d1pOF9qOBDht4NZc0yfNgYc9hfkcg4d7owc7j13NKGAAAKFElEQVRo3uzUP2gTURzA8RMjJlzj6RsM5BRPhQPjkGQIyXFGBIdzURDESRzEQVDw/LOJQw6XiFwEBwUR/DPkjyQGhMSliZI/rRohSRvBNbXipNjW0T+/e7kber73ajNkEL+06aP58fvwrn+4TRNoMsjGCTQhhIMPy1rHgRsdOPcBPvGQ68D9b31tmED/ELJjAnE7JxC3fa2mnMP4U9zUFEzAy5TrAOHDxrkNo4P9HvEAUzsIbzkbAWHm6wUaFd9aQ5VGosoY4nzsmodMc76yjz20oYFQjzGzBuKpItM0+xxT2bdgIKlfZCD7WPn8C2YS6vkYQ565gxJChyoe6gTnYbbYsBBTqPrpM8WGhCQkVr3UCTbiXzkGCCg3m1TFXxWRJCFjYVzEWxMBsepRjWIfWQiaWaQjflbZajQ5Sq56ySPeloEQGOjGCkyQYyLe7LJ9kcPJfpE8UpxHOD7xPUtFvKyybRMTEN+KkSZiLYPHhqEPsrQ1HNNYvGQCMep8MxaL+X3FZrMyV6k0i0WPF74BF+ERDxnGbH485HsYiFFRaXmu1WvM33wYDgaD4YPH5vszC9VKKwDACJnOxmhIjFH+k5C0CUhQUdRKghB+QUIozttFjI+LWcoebgu9bKEVdQic5IRG8fhJOcjxlTxlEROpLyejQDi5CAw4REQQHtXGQfL1djJKINyCELGMgD4o7KIgu+jlX99Irn0LEMAARHxbz5MXcQyj8D7xtwRGZqjIZmr5Uk12EVQBIx9fF8ibGEihNOAlN0EGgAgExOPvx0A6sy6BQYAh366VxkCmo/TnJKwiMJIZlApkZA+1Ur0dRSQBWg2AAMn6bKdA3MRCXl+SkGPAfVyCQwgRARuarE93SmRkL7Xc+4RzCySeO3VVIF5CPvfgWhyuAenteom4iY5szdV0+zmhzNfucOmo+IcgBjLPl4ZLXxRR1jRVv/JhGxnZSq08MOx/gOh0KpVKd+/zf/wghKfDdCo1vB6QVVXPHHmV20vaREdK5VneTvyRtpTnEZtwDOgrfuebCsVDjz7ltq4PyZWnkY0EHMRFyLKDxMGIh5SX5W1EZButXKeN7N8n/vownU4v3YqsEiBNPNWFd7pPtXg8GAxl3pRzpFUM5MUFAKyEiP78V/fnddEWbEDTZFUOnvnZ/XVRAQIQZaazTqT84YRhCTjx3q27LkKWVav41TtXg6PCypMXZOQApdyzV4rghP/kRMgW4BMD1kNSNdW6BRRWLn94tp+wi9tP691n3RZwWNDsxyQ7Ai5kpyROvnpGWsXtJgfIS9FFiJiAr2dPgeQmwmEl8fjTu/2EZb8pJ3uYJsIADDu7uJgY4+RijLE41JC7mJB20glT6A8pxmpCTgyotaD8NHFA4oC59DBcr1w00uPayaQ2cShJUWBQgcBosVQmI/g3OKiDDr7f992f7d3AE0rb5Xnu/e564DhK9OX8gP+ljfWJI4eaCyfO55/03fvx43LvM8EunKGc5TlpacOaAg+DRDwo1RcnzAKw7gT/5Na9ePXqrZscEo4CgZPW6iW3JSc9KG2/njhmjmDgPoDz53BS5HfhmEATHR2cUNsuubg8I2pl0DnC9V6zBCuAuYgwXVHdIgc9UN+HmkZYBccGu4AGIrH3qovLK3JYXeao3n5e3RPUTl5zgUDkwsVl9fA+IuW9DBJGAdin5NzAcfB3BCKRABKB4IXqXnlfka1k0jqm1gKPAMAOYgdBQlhZco0cdkctv00CFByHxJ/BH8/ziLAAJpj+zmBn51Q4ul5WW2Xekd2k85QAj4ZVmHNOQIIwNTUQ3a3vI6LX3yTNDQB65rdOiWyIBFmDBqbC4fBAfGRbP9oaOeqOvj2ftBNWo8OxIUhhE5AgjYH4fKXcKmuK+J+vvnuFd1WuTJ6yn1ZWMCawDdBTTD/ldvxOo6x6R1ji5ZuQEPvpP+qXG1HehD2qSESApYfZkkMfCt0G9xOfZZeI38HqIpfJZKRPfr8uLmt5nucMcPGCEAwKFyhEHo1GB0KAuOPETpicHEpsFXV/M87Iu4+ZDJ9JbdV1v17ck/IcEAhBAXoK7IDZnXIwBAZjiSW3yGmL1Y+ZfD5fa2wWZV0vbkmSACy9KY8D2C8CyFOGnBADd66tb+qnm7EjzxfRkNZ3ni6gIhffSpqmWXrTDjXk91Op1GSKuWPUDe4SbqTXdmTdM9L2UstL0trfFy+eLiCyuaZFTb9lh97DDv2NeULX9e9iW0ukzWBjF42uP2iQiPhrV6tGq9WqqU+BoWGqTxj2a8wN4J8mPAJj38S2ZsyIrxLD+XxgDVEu7owoDv/w8NDwYCJB9JDbdly5ZX9I6RltZGWvSPtyVdOUFaPhy36fzgHoCQkCuXZA3Ol0ugtQOVOPmHR3r2R9LREfI/tZUZQcIgtZ0eeTs9/6c7h8pocc9Pf3Q0/tV64we08Ps48SarXRQq1Q6Ps6DsH/GBFxnESUr6yBr41ZGjD1adBF/QBy2LsBkRcKhbGZsRmD3r7fXpF28cFKTskpXxbGxXby9fHKbGKW+W096CEYesgJvTO9121uXvqwmW1vjvyjjIx5EwXjOPwp+g007gwdHI2YWDXpeMkBF6AmvQ52adKEVHQpLm42jQSkH0AnPZOLLk3Hu4H1kosFx7NXz6lVr0N/7ytCQBz6DCR/As/z8ueQcquR/bQvnxVvfNJ9f6C/DOlvNvZ6mMoMkQh+5O1r++LLxezFG191+JtU3wpOf0L1n73Dl8v1Os9fheDLxUdlJ5KiKNrdsq3r+un971TqEOPktAl9CwGD+E8A0YNKpVIGPE/812dR+MKjkorgR6b/P+lkRT/+fH/BOGu2jEDPcdQe6GGHPx9DtfGs3O6L3H1zdL1JuPl5/+vpyuhTP+f5ff01qFar+XwDFHYRxb9mMjaSRCRnTxBpUQyj7/tB4D+DHn6qZ2MpiCttJ5LcoFlTebFEBP4+LWzP34W+B7+v9/zFeFh1pSnJMNuIaU3TmbVbRgUNDo1Op9Pt8r0eAsF2BJaViD675fw8G6IoqQ9H+yKKZuVkhhk7LGcY6HAcjXTRwB8QRbGhqoIgSKBUIu6ALO3gbglIgvhgmfsipnVMKow9cp3XyUDkQAeQTg8ZgAwgmQgSQQAqkFa7kQMPU8PCSCWRSOA6rrnOfDnIFllBFX1UQEtezQviwwaDwXz+z3Hd2nBqmQdhENlWjqzjtJxhNiRoa23bi/F4PASj0agWYQSGAE8sFra93rwm5+IjQSWXluVMxs98HIZ5724OkRgIYSgMdyp6gRhUD4LJDAIRFRu9l8mx+8os7LAMSMR+/r0fEZpGUCF2zTlGlErqsv69pHREXUcCCbuZolRSkHrdHzRHgVHOJkMk9IhEmNm9pE5xKTeqauZC4QaRAQFS4H/W6I1VXjCIEIVpZOyAVDwnFZ3CGKENXu8NHhT5bLAn8t3gB5tRcTnQFMqEAAAAAElFTkSuQmCC",Tze="data:image/png;base64,UklGRiYGAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSJ4CAAABkAVJsmlb8847eLZt27Zt27Zt27ZtG9e2bdv39tNZe++17vNPREwA/dOZo6hWhOxFssnRaNra4w+M3CJNqvLX1D7cxeDukVWTazDpXKDXrxFvXaOg9x1TDg99iOzM17Ak6Ddgc2dA0hCeZoL1k2zImMbPGvABrORlP7jBHi40l8ARzquVy/MEXOFhLqWKGYAzfCqiTGV7cAfbCko09IUA8KonX8cICIGwdnINToQgiO8vz9QMCIP0iXKsgNx8AEuk7YZg2C5BfQ7C4ZSKJdcDZAK4UyR7iSq1a1Uuri3+EZkCgt0jk1JTE8OdfJFJ8PoTsW7ZP5APx45dffiYRFTTlQfjkkQb+RhJRKXNlXuej4iW8TGaiKjAa6Wu6oiIVnBE2W8qc4h+yBVlOa7EehKBaLN8s0kQWiBT8ggShsak6ktL1xfdjQSiXhEIfLFzUrdm9es37zlt37sw+DQjoahCu0LEXLxDCRJM6f84fDIDYybV/XTx0o4xkab6sL0fQwRY+aOA19v6V8rK9sPCrRccPHhoT2meah08ePDArKYFiP+ClSqUlEXc0h5J8fGDuWozdpTE0YNys5WKAjCSLfeg0aMkjm3DVAsybmCjdYCxmm0tZKzFUtQg0E+iv98gCfm90YPY+/v6+0kMNCjKQup8eaXmJKm1e5DUnHml5lPTL7y21f4PrZVq9WF/Ky0n6qbb7AFsVWorAPttTdWKqRpusAYAx+1FlSq63REArDc0VClRZ5VZOgC3/W11xKGu7X43AOlmq+rIVGOJYSoAr6OdchC3OTod9QKQarikhqTi8z8kA/A70yM3cZ67xxk/AMkf5hdnUhkBCLrULx8Jma/fpSAARioWuhR+c0ghErjQkJvhl4hZXYCEL6Bm+5cSVlA4IGIDAAAwGQCdASpQAFAAPkEaikOioaEa2ed8KAQEtgBbJur/YPxm64bFPaPyH5r3ezvr+QGYz+G/on+Z/p35Z9rD8o+wB+lvmZ+p3+Af3D+5ewD9b/2v94D0Af9X1AP8H/uvVU/zfsMfsV7AH7O+mR7Gn7ifuB7V2Yn/RLToBFaF49vT657i4FNhTFMPtqGBnLHb4B0mdEFIcp89CJvbbCPD4/QeZhwQQzZ8BxgBYJstiZqMBJD6z585YDHszJsSre6r3yMDyPrDGOzaYTcIIILf8uoSangA/uHNmzlTvvlp4WxismwIwhrpTbKk5HA99Zt/tjf//B1f/wjF//4Oz7Ro8qdwrGruK80gZGdfcjEjVmeAY3UNq/bKHbPJeZyPGePUJYsf1pTxUT+M/1yY9sp5QEaUI/nWbM+hrV4Wv2GCz8YHB1EU6uczvWjFJmo/ILHBjfR2dpCGtC7aaJrcU2802eJTgxsCLzPMTBp+iLQAcf1z34AZndAHu/MsTUnzhvX5iBLRl0rcsyt8px9H3DpVdPqz9F30dKwOAKELHB71muyZVCqSi6Ijvf/Z3WEYi+Jy9gg4gwMX75I/kfFsZTr7B6AUO5g/bTvaEq7oh9QTCrGVLPJY2tIyTiFf6+rnBPHuJQFG2ntz1V2ZE3kFqOf1JYkNtmTx5bM42JZLzDv8lK+cZlqBMuGj5tTqsUlkszMA9vYVj/+YQXiow3o8IGtvSD8Z9yp7r5vAB/RBYfyMXHGCD2/Vj9Krhqkp9w11usppHaLv4fZw8b3KwrMeg4xklboK6/9Fk8fH9jbQr2Gh3gBR1O00KEtl0DoRpGMbFooOH7dbaaubWVWnZJSKjwKIyP/s2PwjLOOynzDVSVfh9QzyYBAtiUl2qfMRoRAekN+1zwxjUnBZz1zVVnum4pxFz4O/ytYWZA4AKd06/BG2+/aqSmflFZELL5IvsKadrnEUwQiAtJkrfXIu0S5ATyAZ8U7ztY9txpPVO65FVvH6NJPkeoxN4DJMkkeJyGkxeZyTOKOXTYLyG410M+lef83/R1x+Fufa2JlrS4UJj9uQp/8XdI+6n2yYec5INem5wZ3l+51bAhgdYqwdZhQ4nrP/8zviDM+SQAmVegbwNZIXMtlySH9p0fzgvNUc4nPYjSzoYgAAAA==",Eze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAB7FBMVEVFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lHcExr5uSJAAAApHRSTlP/9/1D/u1CWC8ucnhZ6/xaRFdxb+p5Avtw6Ol3+AT65ezz5w8VgE0G9dkeJgvM1u/uUj16FyqyydO529+RLX0QU4ufvOCS+ZfkxWJnKGsJNxwrDDA1OgHy16j0W0UWNMPm44Gv2Jrd4qmP9rjHjtGYg4i2u6HKz10+JDMZXBh/HUEiSyxQX0Buc1QgSU4aoMTxq7UFbHtRMjwDCA0SShHOtCc2AIfjeMgAAAAJcEhZcwAALiMAAC4jAXilP3YAAALsSURBVGje7dnnUxpBFADwBwgYMIaIgEhTukiJAmqMMfYWW4w9lvTeeze9996b/2gYFO7EW7LIvsuY8L4ww+7jd+yyFZgXISCH5JBVi3xT6mQWXEQ/1WqAkBoVudkQglhMIiL+niDEoxAPGdhjBWTkmssIgIt4qmqBCykKsq3FC8jIlpJNALiIXtYqBWTk0aEQpEYeW6T/bh0AMjLzsgOQkS9hGwAy4pgAQEdGJkVAqgxADGbIemkO+fvIR8drdGSmJTDxHhdx6rpi2d1ORMTifh7P9n5IvqVkjfTuK1/Ilsi4wVjIFHH01SeyJQpuzbWTCHvmyOi9I9wz8xC91mY2myWpYZbU3ckY8TXLeQ/JQ+b1vZopjUYWD8XCiyYWN3yZbrj7rx5f0hJ8hNWu/vJBMyAjznBXap+yRiy3Zpf/cBgjlZ1jkB7xv9OFdTp1LEwmdSJMalU17SHo89YKwSHAQz61W4WHidxEh0RrCGsrD6kuJw3GMSpk6BUpn4esyyNVojs6RIspkB1ExECFbN8gApIvF6G5ckgOISMFRIRwZvQ8bnBVIiP5Z2Pz0NE5TMSp2xUvu5AhIqVHLO7uxTItGlJ5IjljZ4goaZEh/tpUgoOMLFmbUJArJ0uXlBWxQrjTr+fhuZQy9sjtZ97UMhVjZNkVFXtkVHFGqAJTZLBZeAlniOi/BghlHLImW+Qt8QOoEBkVQtxSsUTKxEDW/gdI0apCIA1SIgai/WeQ+2IgpmT+8As05LQ/ka8CNMTaHo1Epqcjvh4bHgJg3DseDI63WQET+XNQIsU5hBFyoLPx+m5X46lA1kgpsaStejF9cCMNUrAi5Fgy/0kHGpLhBEk+zsUGHKtFa2UI1Q6SDiFefsMDdt/ETrNbKcsS2UmBbM4WsVF0PCKiorkelFFc4KRrrj6Kjj98MVmpKc1grCGO0gHuXxnivHL+abLSpQpSpe/w84fwwmd8o+dO38O1wm1R7+bdAjTtFz7Fz/76DY+rJdzy4R8QAAAAAElFTkSuQmCC",Rze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABdCAYAAABTl8MxAAAAAXNSR0IArs4c6QAAEtRJREFUeF7tXXlwlOd9flZ7n1rtSisJ3UIcuk8kGSHMZYNjY+PaLq3bSYbU6djTdNKZpjOdNq2dmU4zjRN3WjexY5ohxsZxjF2gNGDuUwgE4j5tjO77lvaSVrtb/16xqgwrfceeYvr7B2b0fd97PO/z/s73XYnX6/UiisXtdqOlswcH687h5t0m9A8Ng3ocZ9AjJyMVjy8rRXHuIsik0igeBf+uSaIVEFonYzY7dh44iqP1jZhwuWYd1eLMNLz6R88j2RI/74GJSkBo8ls6uvHeJ3vQ3NHFa3mplUo8/+QqPLF8GTRqFWIkEl7vRdtDUQUIsWJkzIaDdWex91gdnOMTguZLGhODjJQk/MWfvIhEswlKhVzQ+9HwcNQAQqxoau/CB3v2405Tq+i5kUgkiNVpsXHNCtSWlyBWr0VMTIzo74X7xagAZHBkFKcbr2DPkVMYtdqCMgfEjsWZ6Xhpwxpkp6XMG7ZEFBCXaxJ329rx2YFjuHm3Ga7JyaCA4fsI6RGT0YAnaqqwuqoMRr0OxKBologBMjJmxdGzjThY1wBiiMfjCdk8qZQKLMlMx+an1yEzJRlymSxkbQX64bADMj7hQmtXN3buP4rbTS1wOMcDHQOv94ktcbEGrKkux7cefww6jYbXe+F+KGyAEAOGx2y43dSOzt4+HDh1BsOjY+EeL4gt6cmJ+PPNm5CxICns7XM1GBZAJt1uNHX0YGLSDY1KBbfHg+7+Afz34eNo7ewGeePhFNIjeq0GT69ajm89vhwqhSKczc/ZVsgBsdqd+KqtCwa9HjExkmml6vF6MT4+jrrGKzjRcAF2hzPsk0K6JH1BEl7dvAmZqclhb99fgyEFpHtgGCNWB1QqJWazbWgr6xkYxKf7D6GlowvhDq0RWzQqJV54cjXW11ZBIY+sMxkSQMicbe8bYmzg65TRtnbiXCMO1dWD3g+3UD+XZKXjlRc3Ii05CZGyjoMKCG1DI6M2tPYMsJWu12kgk8oEDa6rdwA79x9Ee3dP2HULLYJYvQ6b1q3E2uoKZgCE228JCiA0+bTC23oGMDJmBwHjExqUVqMWFOybcE2irvEyjp87z3RLKH0Uf0yUSqUoWJSN72x6CkkJ5rD6LQED4vF4YXeOo6W7D+PjLvhLrkilMcyqoZwF3xXHdEv/ID77/DAzk8cnhAUag7HlmWINLPRSVZwPnUbNu++BtC0aECIBsaJ/aBS9Q6Ps/3MJAUFsUauUoKgsX7E5nGi4ch1nGi9jZGyMmczhFLlMirycbPzps+uRmmQJeb5FFCC0JZGH3dE7BJqwmVsU12TJZFJo1Sq2DfBlC4Hd0d2Lw3XncK+tHc7x8Hj3M8eSYDLiubUrsby0kLE9VCIYENekG/faOtDS1QejwQDab4UKhTGUAtlCjLTabGi8cZuxZWg0tPEvf2OiRVSWv4QBk522QBDT+c6RIEAopXqorgGH6y+wyOyyogLk5Sxk25BQIbOSwNSqVJDL+bOF2u3o6cOx+vP4oql5ztSu0D7xfd5ijsP6FRRBLg86W3gDQqzYsfcgvmhqhfO+giWdkJmagtplZYiLjRVkSfkGT2xRKORsG+Prs5BVZ7U7cP2Luzh0+izTLeEWGnvewiy8vPFJpCVZePedq5+cgFAa9fCZ8/j9iToMDI8+5EnTKifbfVVVBbLSUkWZiMQWAoMsGSGe8uSkG32DQ9h/4jRufdUUfvM4JoblWzbUVmNNdQXrf6AyJyAdvX147+PduNfWOc0Kfw2SclYqFMjJSMPqxyqhVYvr2NR35IL8FjKzHU4nY8u+Y6cxZgtOxpHvxPr6vCgjDVteeAYplgQWsxMrfgGhfbr+0nXs2HsAw2NW3iuP/A2DTodnVq/EgkQLbyvqwc4TW/RaYWxxuz0YGhnF7kNHcaephXefxU7cg++RKW/QafHSU2uxorwIVAUjRh4CpHdgCO/v2ofLt7+Ey+Xf0Zvb3wALl1QU5jPdwlcvPPjNKb9FDo2av5dPltiEawIXb9zGgZNnws4WGgP5Lfk52XjlpWdByp+vae8b/zQg5HA1XL2J7bv3s+rAYEhivBnPrl0Fc5xR9Odo5ekEsoWUfv/gMHYfPo4795rCHkGmwVJt2JY/eBq1FSWCzGOJx+Px0rb0u32HcfL85aAXGpBJu7KiHKUFuczMFbO7+rx8oQVwlC5uuHoDR+rOwmq3hx0YGmtp3hK89vLziNXpeQVZJR09fd63tv0WLZ3dolcx14u0bWWkLMCGlTXQaTWCVszMb1MsjCwZ8vb5bgXEFoqF7T1yAs0dnZh0TfqNt3GNIZC/xxtj8eMffA8WUxznZyR/99a73i+axRemcbYw4wFSequrK5GdnsrMW76TOrONaUtMgN9C71O4hdhy/Ox5VjMc7ghyTVkR/uo7mzmnS/LyX/+jl8Ld4RICYnF2JmrKS5hFJiTQ+BBbtGpBEeQptvRjz6FjaOvqDquXTxWU77z+N5BzZCQlL3z/b70SAdHXYABHqzw+zojaZeVsKxNbgysmJkb9p8DomYtXcPbyVQwOjwRjSJzfUMqk+Ke//C7S09PntDwlG1/5gVep0XJ+MBQPqFUqFC1djPKCXOi1WlFbGPWLdItWIyyCTGyhipdDdWfxVUtbSNlCbXnGHfiHV7+NoqKiOQOykhXP/qHXlJQCuVIlekICAYssL4vZhJqKUmSlpojewhhbFPfzLVIB+Ra7Axeu3cSpCxeZYxls8bjdcNptkHrdeP37f4aSkpK5AanesMkrlcmhizNBazAiRkQ4PRiDoErCgsU5qCopBDFHrIhhiy/fcvB0Pe61tgeFLcQKt2uCgeGenGTb8ht8AKla/xzLusbESKHUaGBMSIIsQoVjNJnElrU11UhJtIjFhEWdKYJMfgtfo4GSbDa7A1du3cHR+gZQ7bFY8Xo8DAjXxDjo/ySCAaGXSNlKZTIYLclQabQIt7L3TQAVRVQWFaA0L5dNrBghp4y2Q6F+C8Xx+gaGsOvgUbR2dnGmph/sm3vSBYd1DLRVzawxEwWI7+PkyKl0esYWAigSIpPJmCP11KpaJPBwqGbr47SXr6J8C784AbHF6aSqyss4ef4i7A4H5xTQ5E847Bh3OqZZMfOlgABhH5JIQJNCCj9SVhirKlSrmHlM+iWQk7YUiSY9xbKTnNM79QDVHFOw9ROqE+vqBlXY+BNiA7FictIFdkTYjwQOiO+jVJhsNMGYkMhAioSQHsjJTMeax6pYMiwQoWJvjVopyKKkRNj+k3U41dD4zaoXYsW4E06blTNOFjxA7o+ezGJTcgoUSvEWUCATSe8aDXqsrq5i59PFFFf42qd3Kd8i9OBOa0cXduzdh4GhEaYjHDYrXOP8isSDDohP6RvMFujjTBFT+LSN5i9ayHItlJkUEw/zAUNMIcYI+cbk5CQrDD964hQ8Hv7HKEICiA8UhUrNdItUZIAwUKbQ+wkmE9avrEFivEnwSp/ZPuklqkGmbZELGFIPbo+bVVS+/i8/EzSMkAEyTXuZDLHxiVDr9BFzJskzLyvIY6GXQI6o+Y4kUCXJbBlOUuhUzkqFgRQL+/GbP48uQBhbYmKg1uphMCcwZ5JrhQkagYCH6fjA41UVSEoQf7UGmSu0HZIPJJN+ky1kbVHZkS8qTpU4UQmIb84IjFizhfkuYnPoAubf76NUrFddUsz0CyXBxAr1nw7wsAi0RIKJCRerwJ9ZUxz1gNDgKQamMcRCHxcPWYROIZH1RAHK6tJiJCfEg3wPoeJzCmnSqeaKWP/gqa55AYhP4csUSsTGW6DWkb8Qfr9l6kCnFsuK8pG/KIc5lnyFtqbB4VF0DwyyVK/JGIvUZMtD8bB5A4hv4DFSGTQGA2LNCaD/R0JI4VPya0VFKUuGzbWVsrCHy4W2rl5WDEE1XiSUcs5KXcBy+DNl3gHiYwuZxeakVChEVjIGCuRU8ZoONRVlWJSZ7jczSWDQ/SqtnT2s4mbm9vRIATKTLXqTCTqjOSIKn7Ywil8tycrEiooytup91iDlQVo7ujFqs02zYuYieCQBmalbzMmpkIsssQwGW3RaLdbX1rAz6XanE/daO1l4fbaj2I8sIP/HFikzj7VG4SWWgQIy7dBKpVhVtQxSqYwzIDgbIONfX6z2RjQ6hmImieUntDrEWZJZ6CW84oXTZmPZyNLiEk5HdlZAvj4f88ZPo9BTD2QyCYw4SxIDRyIR7i8IbdvjnpzKWbhcyMrIRFlJAIB8fcbxjTffEtSFkMeyBPVmlodZ6IVlJhPvZyaD77eQfnA5HXA67NOZvEABGRoZwU/f/qWgKZgXgPhGRM6kOXkB5ApVUMP6UzmLMbjpWMWMTF6ggJy9cBF7Pj/w6AJCI6PQizY2juVaqCwpEGE3S1AJjs3KEkkPSiCAjIyOYusHH2FgaEhQF+cVQ2aOTKnWsNCLQq3hVLr+ZoQAGHfYWSZvNnNWDCD0rb7+AfzPoSP48t49QWDQw/MWkCm2yKAzxkFnJLbwD70QCAQGFabNJUIBoczgV80tOHDsOHr6+gWDMe8B8TmTVBtmiLdwlrlSMRoBQQUHvsK0YABCmUSzQY/TDQ24euMWO1wq9j6vec2Q6cmkwj0KVOoNLAnmr8x1qjDNCvqXr3AxhAp57HY72tvbMDg0yFhBufRA5NEA5P4MUH4lPiXDb9iFtin7mLAi6ayMDJSWlPq96IAmvrevDzdu3WRXeQTrPshHChCyuuJT0/2WILmcTtitwgBZkJSM6srKbwQ7aSuyO+y4fuMmunt7GCPEbk/+mPT/gMyxv1DufMO6J6C6X2VPLOjo7MTVG9cxMTERkuNuvAGh4wjBXAmB7LOzvRtshlA7xlgjMjPSGRNa29phJZ8lhHdxqRRyfudDap950TvXj6WEYoKFfjMUgAjtQ6DPU6Xkj17bwn2C6pmXt3j7BgYDbS+k7z8KgKRazPjh976NpUuXzn3G8LUf/r334rXrIZ3QQD/+KABSU5yL7/7xS0hNTZ0zAiE5Wd/g/dFPfsZumY5Wme+AKOQybHluPZ5ctxZ6vX7OaZYMjYx4//lf/wNnL1wKytm6UIA6nwGRS6Uoz8vB5o1Pse2Kq2qf3XVCnui7v9mBhouXMRyBuwy5QJyPgNA5R51GhdysNGxYuZydvtVquY+fT98GZLPbcenqDXzw6S7c/vIuKG8cLTLfAFHK5chISsDy0gIU5C5BVlYWdDp+v+7zjfuyyA7v7R/A7n0HsOfzQxgeefhKv0iANF8AoXqBWJ0G5UtzUF1WjKVLFsNkMnFepzFzTv3eKEeHHK/duoN3tn2AL+81By2eIxbM+QCIQiZDRnICakoLUVpUgLS0NGg0GsG1aLPeuUhsIf+E2PLx7r1wROD3PXwARjMgxAqdWoXK/MWoLClEbu5SmE0mdrRBzPEMzltJKQdALPnJv/0CTS1tYhd5QO9FKyBUXb8g3oR1VaUoLixERkY61HQlYQCX+XACQjNJbBm1WvGb3+7Ef/3+AAvAhVOiERC1UoGqgsXs6ENeXm5ArODUIbNNNsW8rt24jTd/+Ss0t7aHDZNoAyQlYYoVpcVFyMzMZKwQsz35m0BeDHnwxTGrFe9t/wi79x0M+h2N/joZLYCQk1dZsBgrK8uQn5cHs9nM6egJXbWiAKFGKGxdf+ES3t667f4tB6H7GYlIA0JOXqIpFmurSlFeUsz8imCyQvSW5Q/t7t4+bP3wYxw/fYadxQtFbiVSgLD7HeUylC9dyK4kzM/Pg8ViCTorggoIfYyOC1M139v/+T4IoEALAh4EPhKA0Pn1BKMBq5YVoby4CNnZ2Sz0ESxdMdtWJnrL8vfBzu4e/PvWbWi8cg1WW/DuyQ0nILQ9qVUKFC7MxPLyIhTm5zNWcF1eKVRXhAUQaoSuNTpWV4/tn3yGlraOoKRFwwUIsSLRbMSKknyUFRUiOzuLhcsD8SuEAhVUhsxsvLm1De9//BlOnWtgbAlEQg0Iu8mBfg8kOx015cUoyMtFYmIiFBG4DCFkgBAA5OUfO12PD3fuQnNb26z3TXGBFUpAaPUvMMfhsZI8lBcXIjtrihVceQuuPov9e0gB8Xn55ER++OkunDhzDhTmFyqhAoQqQYoXZaG6tBCF9y0opVLYXVpCx8L1fMgBoQ6wnyiy2dBw6Qre3fYh81uEmMfBBoS2KPIraksLUF5SFHFWBN3s5ULd93f6jdvu3l68+/4OnGloZFsaHwkmIORXFOZkoKasGEWFBcyCioSuCJuVxTXB7DcQHQ6crG/Ar7Z/hJ7ePk62BAMQOiwXbzRgTWUxSgoLsCgnh2XxwmlBcc0N/T0sW5a/jrAf9OofwM/f2YpzjZfmjIkFCghd5VeQnYbaZSUoKihAUlIS8ytC7eTxAeDBZyIGiE+3UF3t3oNH8Itfb2d6xp8EAojZoMPKskJUlhUjJycn7H6FUFD+F99EwWJISrZpAAAAAElFTkSuQmCC",Aze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC+lBMVEX///////7+//79//+ZfOn//v+UfumXe+f9/f9crPCZe+n7/P5Lu/Fmo+/8/v6cd+b5+f339/1ooO32+v16lOuYfeqgduqZeedQuPFVs/Bfqe92q+1xme10l+1+j+yOg+qdd+n6/v7x9/318PxStfJJvO9Qte93l+uQf+nq9PzX0PRiqu5vnO2Bje2IiOv8+v719f3y9P3y7ftPtvJNt/BVsu9Lue6Hiu2RgOubfeqbeeqXgOideuigd+f69/7w+v3z+f3n6/vf8Prp4vnH6fjp3/jA5/fXyfRZr/JHvvFXr/FrwO9Rve/Due9fsu9lpu9fvu5Yse61o+xum+uLheqJkemgdOmnkuiUe+j3/P71/P75+/7u8/318vvj7/rc6/jb1/VXsvLHwPFzye5ipu2Mhu2ymux7kOyEjOmeg+emieagfuXo9/zk9fvn8Pvt6frw6PrY7/nV7Pnr5vnJ5Pfm3PfE1/a72PTO0fSz0/NKvfJeru+Twu5roO66su1osO3Eru2Nq+1qq+yMpetyoOuCm+utneqajOipjeehiOeihOeLhualfebx8Pvp7vrN7Pni5fnV5/fQ5vfg3vfV4/bD4Pa54vXPy/OCz/KnyfK0xvLTw/K+x/GzvvGHyfCpwfB6xu+guu/Kue+Mte97ku9pue7ItO68qe5ztO2ur+1Yu+yXsuxuseuKmOuqpOqWouqtk+mWk+iKjObs9/3n5fm55fa+3vbX3Pbk1/a02/Xg1PWv3/Oc3POt1/PWwPOS1vKj1PKd0fKtyvLPw/GcyPCKw/B7ve9Cve+Hue9pxO6Cwu5zwe6Dt+62sO6Zr+6ese1/r+2Eoe2Truyfq+yapuyCpuy6n+uOnuuZm+uYleuwlepypumhkeiSi+iRhefQ1/XR3PTay/SWy/O60PKZz/KPyvLIxvCVuu9bt++Lve13ue2zt+2msO2Ro+2ms+ysqux6luzDp+t5oOqmmuqNhuqxoumkn+m1nemviufl+fqo2/S6v/Cuue2yuOxBqZCiAAAHmUlEQVRo3u2ZZ1ATQRSAd+9ISALpxJgASYBAAoGIIEW6ShdRpAjYBQTF3nvvYu+9995777333nvvbcbNJSjqDBIu+0u/yeQ2JHnfvvf2lpsLsAG4QYr/4IYkAW6aNcPrQNEz1x3Kis4AWGm+I+FAXMKOZgAf5Igs17i4uC5xWW0gwITT+BquXbrEoYfroUgewILTlsW2trauroaHbY1oLO1HjrJIkjBxYoK/ra0/BgsJWeMXVyhbtkKNz+GZ46v6+6NRpMUlILKGwVE10glCRuuZboZxa0tbKlet4FvW7UgbBoQkAzSf7qb29Z3pbtk1Fj5dplarj7SG0HTaI4vabVeGJS2MbX5qtaxofZrPlKllD6MJyzlgm3kymWxeJFnkT63n+TWUHWluOUnmPRQwcROrSGoQjkv0S0ra6WSpPMC4xIYNG94W/3be7Eryi59nsf3F+TA7Nv5xZfhbA9z3x8fG3raxUCbru7LZXddDgvh11qhgsbE921ho+T5is9n7wiEC/IK4G7sre69lutJOx2b3bAf/lIDRPbuyl1a2yFXTXpRIN7FJQqKVxSjcazK7yeXybZZofb2Fcrmu3c9FlZHBKpSA0X3k8qPOgD4ddTr5QWdIUmGbj98xceLW6GYkMqBHxMFsXZ/R9B21u2XrsjsTVD8ytxzy93f1t03IWpdhmkF29exJBKRdLXtudfv6VD/C7/q5VfB1c/NVuz3cmQmh8V2uBeo1jlud+4g62XnbusbGJx7edXd/YlLDxE3U/DO6GaZA10FMQpLOhKEj9ZfK2Y/bRRC8NZ2XstkLK0OqXlyuqCNNB4yYw+VeGWUYEbuzq9uPIiCDALzOOl31zkiMzPbdRXt5NCUt7Lmik+5GnUg0iSBIBlpVa46KuA+oGkbM6S46GEFTMrZfd9GD2tR+eM6zXwdIFY7kzUj27E31m5wkEtm3oCnpkOyZvJsqTItTjpqbJonTDEfH3uWNi1jUvd9YQI/dyZ6eHahR+Wdz7aYaJUB83G7uceP/F5Rqvw40N65ZDp6vxxqHT728ztYBFBtSvRTTWNTyGn7O02EypCURL0GSesZxp9UBAYuGoQFrzMWAnNQNxl3ZubeDwwweSrDUUCHOuQNqpt7LlTlD399v4NFjYEqO8piAcgDBEgeHWTa0UqnTF3XYGRrjrb2qZWqZwcHMwEDtm5bwR0EdlohpSYafcnQ8LTZJQNSAYGsOh2PFCX7XFpggZ6BPeNOSVDqlcTwuAIXUndJ4SH5+0/Mx3uAH0zSavuUBLUl/jeZEbVAIhGGtoqJahRWd+GQ7+hI7uxPFXvUgiV3fOnQluSiTv0gu0JQsU+SeKV4yLdfuGb1yDV+mUJwVg2IgvubOXUFPUueCQrHCu9iN5zmahpDeEr7gpSh+noIzXl4rhtGRlF+U57WsU7Gri9cp1Svvm7D0DsGTvIDUTiwGo7ie8Cak5uV9KfXFPby/Wh8wlQeRpNhcpq4OWD2htJIxq/T6F8K/XrpB4SJ9wKWRsFR9ES4fOnTVyJJ8de2qgJRFAkiWQuIxNGVoNaIkEkajnJxrDUAp8H6fknKpEigRLS+9TVkuKIWkwXWl8hgLlAhWD+Xba2PMd7COKQOve5gzo2rm92TY1cDAgS1BCWk5UKt9421+tYIDtQOEJT5tl2sDB1YxW9KIydT2MLUEAlDOpe1vxnJ1yxVtipbJjIHmtmQBk8lsZIzmUsWjWs1aAz0A/CXVWjWreVRxMZogmlN6NbO3rQFMCXMCyxi/SbB1OpM5oMg1CQTCd+np6RUHF5omMCWcBSwzJXVrSSTMxii+dXq6tbVVRYlEEtyI8VNC7Am2tkJYI5rUqjl7AfpAYzPPFOgzGMXgSK2tJFYca4MFvWoSw4KF73sMNhnQgcORSjkVKwatNHfDbzVEKg0JCUHf5+cPvrxgT0xTDidoyOxhpjxnD+FU5Kyc0qtx0yZ8qTQoKCgESQa5mClpiyR8fn7Txr2mbGwZRkA4n68KUfFXzt8cFbV59kopPyjIKgYwwnzax/T6MKhJiJSvUpkvaUrFbxWG+gARwOcyP0RVRsUPLcjn81VIqDqP3jMABcg0/8Og/EE+ZvZEGOUj4KEj9YJ6rnKZH1pGFVqmTCg/DT2FnvcpXNIkOjLQQt8sBLRp9aoARUeElklLK5jvQsktTrmNrz4WpKWlhRZ87BVlQxBIggOWT/tb27ffau/CMpURG7AwPE6HUQLx5QE/rdu6NTocp4R0isxyPXAgIWsEga9UZHQNf1uEa9UR+IpVuSr6eWNxgm9Z6lcNPPB2+smS7o2InI4OmwAm1uyPj98XDqD74aT4fWKAh/o9DTehAQnX62IXugM8oLvAC1tQvekjRze28TCqD/cklQC6nWdfD+Chnr3oSn3KdkV0sg7AQ8Qcz+Q7EEBwJzl5lg3AxFSNZokzAM6nHTUdAC5G9rfrfxOAGy9f9h0OcFH7uSL3aZj3mdy503gEwAW695h6o1OeYtlIiE0CBS/0+osX9fonNgQ+CRhzLUefoly1FiAJNmx6aAOVykYsAqcEtL0qYQ6oC5EDJ3usBrcHuBHW3M4A2KkrBNiBEAL8QPAP8x0ZyfbHp+5ubwAAAABJRU5ErkJggg==",$ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAClFBMVEUaI1MeJVcdJ1geKFscJVQfKV0eKVkbJFYbJVUeKFoZI1EfJlgcJVcaJFIdJlcCgeoAdeQeKVseJlUAcOIAZt0Ae+gdJFUBU9MCh+4ATtEcI1IBlPMDjO4Aat8BVtUBbeMAWNYAQ8wAZNsAWtgAUNEAfegAeecdKFkaI1QBf+cBXdkdJFQBjvEAd+YAc+QAP8kDiewAZd0BYNoATdEASs8ARcwAhOwAbOEAYtwCWNcCSc0BmvYCgusBZ94BUdIEkfECiu4BgOgZJVcAYNwAlvUCj+8Ehe0AfOobKV0BhuwBXdoBW9gATM8CkvIAkPEBVNQAR80BQsoAQcoZKFwYJVUCnfcFj/EAaN8ZLGUYK2EcI1MCceQAauEYL2cAmPcCX9sBXdcAR8sWO3sWL3kCnvoAmfUAdOIAV9QXKW0cKWEYKl0YJVsaJ1oDYdQCStAPfc0BPcUEQL8WVZgYPHcZN3EZM2sFl/UClfUBfuoGadcBSc8HY84FO7cPVK4SOpEVLnMBi/AAcOQJiuESYrITXK8MQqoLOqcOQKQOMY0XN3sYP3oXNXUXJl8Bh/AEle4IkOYJgN8EctwPgNEMYL4Sc70RTaoQRqQSUZ8LNJ0URYEWPYETNX0WOHkWJ2MCmvgJhOQAcuIHfOEIed4LhtoLgNkGbdgKX8cESccRd8YNasMSbsIJVL8QZ74CObwNW7kTZ7YUaa4KRK4QWasQS6cSWKUUWaAOQJ0SP5YQN5YWRIkSOIcSLIEXMncVKWgXMWMKiugEddgCVNAFW88EWM0GVskGUMUFTMMFQsIMU7cIP7IHOa8UYKkNM6QPOp4QTZ0USJUYTpMRM4UUK3gVMW0AeukPhNEPdNAET8UCSL8IRroKTbkOMJjfGjaeAAAJHklEQVRo3u2Z91/TQBjGA1ZoC01pkFIDyhBoS5GNokVGWUVxtihDUBmCgKAMle3ee++999577739Z3wvZ5u2pLVq+M2Hz901b+7yzfNeEjIIWW9u9QJZrZOxrV3JuFtOiEyGIdCysX+B9HbgpDc/AoiVA6chMhtXMoeQXqwgPb2cE/S06e9wJEB6XBgiElmGuCOO1+OYiHtJRKDKzc12AEQcQ9xEjmPsEvxy4MQxxXEML7FOnBZOwd+IE8LtSzatqqpKjyM8Q9gZyv/Rfqr9aj4i8grBLnCZtnVGVNS4qKu9e/EOYY+zslPAGBc0s+wvnOA9ZfcZ1bYFajACjLFBQQmv9G4ii75Ma1nYsLkQaATeW6ihoJotrJ+ymYBISEiY8rXMDUbgYVDjM4ItoG5RAkJoCAj/wjVbsNymLR6LGGOGxucu0Zt64fVKaNzMRenq6qqEqOUGAOKUyp4gxJj43Ny4I2UO+gEEZF7Cjm0gSu6RYCQIuYjPjevbN3mJzMNZCHJpgih/hTghSsYIMOoYRHLIo5uU0g5ByUIstke4OiE3USfYqIuL6xuSnOw7uv9mPdqY83IOol9SVwcuQkJ8fSsrAwc83Em5ufIOmXYOu0CIwAEjwi/oPXoCkgwuIFGVlYAIH35/mYeI/3Qt8kVzEcjYGB4bm7hJxr8Tt07f0cAYghCTgBEzfRnFO8S161F/YECmYtMBEdNnQkc1yTcEDq/AQOwiODimz7AJE6eXuor4hICUHjcfTEYuMKLfxIDBHdVKXiEgSnYhfVJ6IsPo129wgPe8Q6Uk3xCSXHY/0WQDGEWRXh3VFMkrBGS4EBwMCHAR4O3tHenlta6UcuUbQq1o6zOByVRR0dSpXgPDfBbKeHfi0WsTQmAXXmE+Ptl3l1N8Q0TUshbIFHYR5pMdGipdoCfJv4E4uu7pO8AF2BgINkLT1Oq0fdvllHMQD0uRLghkJbSMW5edLV4mF3OkUumgVQtrSYvutkMhQpJMS7g4KXSAdQxkXGSHpkmlSYOyVn0uJl1JJ8b+AURE7jwU5hMKk5EGiByFYu7aJiHPEFDteR+fNOwiJzo1NWJPqdw+hCT/HOIB0jTeVacxCEV0qn/EqD2NjiB/7gTLcP5XpqL9/SMyUw42e/KZLixSWLo/K0uhSAUb40eN8juuJ/mHUFSvBatQpiBVKSNHprx1cekJiKZxrb8/sjHSz8+vvhhml28IiKxdEBEBNvz8ZmesbsAxniEg4fI9kClAzNKuv01BgH8IqHYBZCpjVkXFrAZPNsozhG6cPzujQqvNW18sxxHeISDRmZKKCm2eljXSAxB503pteXnexgLSAwf4h4Co5hf1RxsK4CpPOnfcuxCetoI4rjkFqwQqo95g9LQ+RX4NNQ82b8qFcvEk3LtJIEC1RX6w0PErMPUQMq2c2RaKy5llTwq2CK2QWc+2BG6whLYQudBTX1Dc3NTUuLxJCc5tBmN5ujDLQgSBXYcWL1tAUIsK1CDUsrWu+e3Zo/XrD8yfv3r1mrPFGnCAB7L7ai9itYZgfgvQb2iETItrgaag4WAmnHglJSXa3XnleWd19L9CULHyISw+Ex3BXApnZ5RUaHeXr2kibAaDWIADEAtB67ERDMk/mZqKLrgp6DKCzvHV2/4G4o4h3V1AkRsuwv9Y/N8JY7RrGmmBzQYwio2gJc50CbAT3F+Ia6FAdW0fuluIBgrGzC7ZqEfr8UY0co1GI5SjP7lAIIfKMYRTdPExaVJS0iCFQgE5Qxi/+aUAwHInapubi/MLDLU6IxygEgldqNEIgCxHDAySC1jZgRi3ZKvTkqSAyVJgN5kN7i7m1cs3HjhwsP7o8ZMLFl7c8uba9tIVTQg6zaAkSUpDCQQURf0Wotq+Ljt7jpS5xcrJUaTOnRtxvMA8jlg+P09bkuGXMn5uqiIpTb1v/7pDLW2HD5942rFp8+Yr17sMABH8DkLnb/AK+5idrVbjOzl0s9hYaB6n21iep62YPTLTPzo6S5qm9gnzivQOmDghJjFx0vABgfceLyqrFfwWInztDbfWA9Gt9RyEycnJueRpTrKm+hNAMvwQRJElVYcCZK/34H7D+iROCh8wpL9vSNyRTsPvIMTOlnlFpmcEdRpgco7ly9mZrK4HyCy/UTaQPmZI37qhrwyOIXTB6YCAefC4gzEwN0n7S1WWPS7lIUhKpr/CChITHDsZQfr2jatLWKqjHUGMb1r6BaDHz0jmoQoo6i06tMLkRXO7vlybYQWJtIbktrbO7HLgxL1wRdsweOUwGNwUIQxQTuZrrPqIt63ZXQIQSNcgBBmIJh5DcLpyh04JWrzSPkS162kMPK4Pw4/rRYiybjubLGxF8GJWRndIHzMkvjUhKGqpu12I8crkdPatAPOsC8myESTMxgme+PTwXxBwEtTeZQ9Cr3gIr4JiLTCRG/LZ1WzC7nBChrOQsVEvV5oglhIINdWbJqNXc+nYDUzNvJZSmugu46XMkbbpYiG5DGTGDZWk+0hIVuc906szRIGZ6ffakwtCV58ZP747JNwSErXVnRPSdYJ5Qcdg0hPRAXC6QCVUcVAk+QvvRKSuYtOFJ94K8pITYljEvmpElGB4DyjmhhAq3bZja3OykqRzsuE8KQpAl5XY8AGB5jkZF7VU0h1SKLmemxyS7Is4KGnD0xMTN+tQPy4nhERcu+Jaw8XzC09v2HC4ra1tOmhyYCC+rIxJCBr3/JaYA1L1LY55UQ6U/phyIl8CccKOJIU0sHQ1huqCguIPH27u2HG9s/PK5ctLFp171t6+tUrFMaRmcSt8uWBeM2MzIx7sEAPCvlRCdNJoCAlILJbQYjFNqFRGXU3Nyl0rdVy7Rb8bmzAFvizEMxRfMFN52VhY6BDS/TzAQlRouIwEwfcL5jsMwoweXfn9FsGzJLva4bsY4oAblDPfLzuMvENWPodPY+jDFcaEPH7nTvAu4dIZUfgL3JjW1vgji7pUEv4hkpqlp2aAZoKeXS2roWkI8k/RVd248f59VdWtXTUSGkT0iGgNHHnokKfFNG3UqYgekUBl5tE6gPS4VCriv/7rvxiJf4krbmq5fkvEEmhx0LblDcLVsgEeIBLkxA5EYr0xCer7E/a5ifsRqUkJAAAAAElFTkSuQmCC",Ize="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC8VBMVEX///////7+//+2afRfle+yavNhlO9yjPBrj/Cic/CYefC3aPP9+/2ncPGWevD8/f5kk/CfdfCqb/Bdlu6vbfNvjfBbmO7+//79/P53ifB/hfBpkO+5aPRYmPCTe/B8hvB0ivClc/COffGxa/OcdvBnkvBclO58hO7+/f+tvPOKf/Cmb+78+P/BsfN6h/GFgvCRfPB5iO9nju5ziO6Ree6/1PaAgu+xau9Ylu52h+7fw/isbfOwafK0yvHRuvGad/FjlPBsjvCddfBvju+Xeu+fce+Ifu5lkO36/v71+v2vuvPJrfO3ZvOsb/GCg/CqbfC4Z/DMme9nke+ic++/oe5wi+6Gg+5tjO2VeO25ZPS8tPO7xfGBhPB2iu6adO6kcO5qje3z6PrEr/Oua/OwbfG0aPF5iPCgdPDInO/Fju9+hu+Oe++MfO6QuO2Wt+2cs+1XmO34+/74+Pzk7vqyufS1t/TatvO4tfPNvPF3he/Dnu6DgO6Xd+6hsO1dlOygc+z38Py3tvTbs/SpvvOrb/OxzPG4x/G+w/HXt/FflPHHi/CHgfC2afCBsO+Ere6Xte2qbu12m+z5/f719/3v9f359P3K3fe6tfPHrvOkcvGdc++6o+5xiu6Ofe6ubO5gku1gmuz9/f3W5/jozvfa2/bH2Pbdu/W10/PLrPPJv/K/s/LMq/KtzPGgvPHVufHLpfFkkPGpb/FbmPBdlvDNkfC6jO+Hse6kru6wfu6enO2HqOx0qOvy8fzp8fvn5fry4Prv2frq1frl4vnq2vnR4PjW4ffW0/fk0vfkyPbhy/XUwvXev/W9zvPGr/PBw/JVmvK9a/HRnfDAdPCLtu+rr+9tjO+Tve7AfO6Cou1mou1mle2ciu2ocu23be2ml+y0e+yJjuq0hOrd6/vb6/ng2ffYpvS4aPS6v/PIuPPNq/PIzPKixPGWsPG5qvFpkPHCgfHEmvDEhPCZg/Coy++4pu9rpe+8ie+pmu5tlex8oOuVkusvF8k2AAAGQklEQVRo3u3ZZVhTURzH8XOvTKcwhpswVFKHTKc4EAGdioJiMUBULERRFAWDsDGwAwu7u7u7u7u7u1tf+T/n7t5d1MdHONvz+GLfl7zgw7mX83sIZM2aNWv/VwzDIEsHiF1ZjYUdNn7Qpk2P92mQJdv3vhl04ZgllcyOUS4uLk/Cr+5FlmvhbUCgqEHIci0ZHeVia+vi0uy8M7JYg9pF2RKkgXkR58mT5SYkcLQtzryI5uDazZvXHtSwJiQfFG5GhGGOb9Pq9ZHbjiOuHoGj85kdib+vHa8wGAz343kkMJ9EYl4EndDekikMQwzjl+RE2uVEWCpkWSutbMh6hUL7XEAkOBOiyty/cG9ZKqR+K0+ZTKaQaVcakTkJORDG7uTbc+cunI+nQhp6egIjICPmJJQsWVIiqcIjJ2+H4wHomEmD1AIFEpDxhiIE6cAh8VfD4W6CsoQOaViwYEHPVst4JLIIjkcWcnfTpdkmO3MiCj1G2hqRyu1s82EkahTFu59Wq3AiIA0b1kcsQbQKvV4vQiRwM4GhQk7P4JBaRmSNVjFErx+iF5CSHBJOg7SZURiXKEYUCoWhbQc7hiBV4CgQIGzekbiQEKwAggjSSrZeAUX2ERCJhBrpW1ONlRnTEKnaHxAyMx0pkHJ9axYKVhcOiTMhkBjBt0ZCjxRSh5iQAb8j5HJSIU1rghKsjjvNI54ynIAEJpAFCKRGoLg2PFJwOl4zLY/MSShSBBi6k/i7YaRmXxECA+CpbcQhR28ZEvgFoED83ezt7QnCCgjMDCD4A5mbI4mScAzRIDqM2DfFCIuRxIJ4A6YDwmL16LZIfdu2c9ZOzt2PDvKJaRrEIK4VyTqdGzD+5YyPK04NtwbOYnxcrGb/u7t3v/SYnKtfKOYvurR9+9Q9yFjzTrNBsXcDhOWQ4BCM1Gpkp0JcafHxmfBVQf96Ds2LewEBGRk/FiGWYTgkuYTOTUB6xQXDrUlMNCEsy336XBzlwD3v2NiIiIDtu/DXRpASJUok6wSkabBaDU+MIHntaW+fYsViI2JjjiDyXqaGAYIZAYGbCWs2gwKZfwkQKCLgDHf8nmFhZTDSaQWP2BcKxoehQORbe/skJbm7F/sbglPPzDviDIivLyDew3kkpgyuU3OExEgwHdIeI+4CkhGThZEwI7Lc3x6iQ+T9KrVs7+ODEUSQgRkxMVlZYsSNKH1n2jF5Ryq0LFq0vQgJiClfvnxWlgiBgPlEiYDiI0agmLCpiHREpyNK02cMFeKBlUotOKR7QGwERjKMyK47ZMz8bx6gQWYV8MCKgHgnxUYAk9HTOJ+LbnZK1iV/OCFX5ebFs5PSd6cyKgFpDIqHgHTzToIFgJ0xIirVnuZf77x+5Ixyg0ysei07+9VhOSI5d23cuADkUUGMABMwEPFp0tJy+dLTVt9wcFi3LnsKjzQJ/QVxJ4qAkGem0uQKWXyjenUHBy+vHZO4xwWIo6MIqVcJriYg3t1RXmPkXUrlJ8i3QwhXp2trqSNWGpsQXx/3YkkUCErbAggo0dEVjScBBMqJwALQIHXHlhoJCMQjflJpjRqOjk2G8UhLsyD5cWJEKkJKk5lp79u7GzUCGZFxfsWxUqO1CIF8K1EiNhCP1AEEJxUhHngCqJAxgOAEpHZ0TmRWgQIEqUeDBG1UKm2UNjYmxMsLI1WNCF4AOEsFMyBKZU6kuB+PkAXwKECLODk5mZAutaPx3RQjoXA3aZENThCPyLvMdcCIV20xAsosCiT1omuKqysg86bwCFkAARncWhpKFqA0yntLgzakABK0M53hkFI2eMwcBMQPX03HUCpk0hZX1w0pKfOWskhAIIwggnAzc7kJDYLSr1x3mrdzaSqH1CEINFdAyAKE0iEo9eGUQ7s1jIpDOpci91+MEOUyHcIwoj9UTjAiNv2HItIpWABAirc+hSgDQ4zA/ReQ9O+1i7+RSv2upSPqxIhSjKgWZ0evi/bLXsyaEwlSwq3hEUizYPWOHasPs2ZE5J2DnDCi7L9KeGfzJ06UI8isCCyAEiMMI3xnMGZF6lwhCBxmqMX+18cwq1LOuuJgy8CwUA8+c8jYSchisaqK112DUlJ2LkCWTLXg5ZaLH9NVlv6faGqqcWwsH4usWbNm7f/pJ40LCPiotLN6AAAAAElFTkSuQmCC",Oze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEX////9/f38+/v5+fj6+vr09fT29vb49/f8/Pz3+Pju7u7y8vIHWenx8fDt7ewJZOvw8PAVfvH08/MUe/EGYOkPcO4HXekmsfwWgfILZ+wJbu4kpfsQc+7m5uYJae0hmvcJWuspuP4ekvYbkPQLa+zq6ukjxf8nwv8hl/fr6+smyP8kvf8LXukotf4oz/8HZusJYerh4eAjofkMa+8Mcu4Zh/URde8ag/Po6OgUePHd3d0s1v8djvYObu4HV+fW1tcq0/4nqfwknfgelvYfivQWw/8mrv4hqPsDgO0mq/0Nee8iyv8drPsnp/sNr/ohovoBnvUClPIjwP8jrf0Fh+nj5OM94P8z2P8jzf843f4Uyf4GqPkcifUOgfAEiO8MYusG2f0Dg/AOfe8v0f4C0/0Muvwgn/kXhPQCjvARdvAD3/4Ds/IWr/gCeesD1vcUh/Dk6e6gwOza2toA2f0Tv/0Fo/gBmfMYjPIGjunx+PvW4OoDgePS09MJ5f8W0P9C4f7x8/SHr+sgeOrg5ughZ+LP0NAx2/8i0/8Mzv8E0fcfnffr8/Y2pfXV5fTp7vCTuOs0gOkLZuZ0oeU4eeNK5v8T1//l9fsQtfvZ7/hPv/MumvLP4vDD3O+pzu/K3e7d4+zH1ehUiOLO1twj2P4ou/y53vdMsPV+wvMQsfOV2fK20O9truy71+p8r+o/m+lmlOIg4/9FyfmE3/VuyvXh6/TF6PRZzvMxsvGTw+8tjuwFcOoVcOlNkOhEgeYxcuOAqd/FztEywfkEufnK7fih3PSVzfIMu/Lb5/C35O+Fuu4jcegVYeTHx8kw5P142fe91fGr1/APnvACqu9Moe6sxuofgul70uilvti6y9Y76f8P3v4Gxfhauvfm8PZq4vaP4vVBuPWAzPFxvPFAqu5moexfreq1xuDZ3d+Uu9ubtMhC5v8MyP5P2vtW4vkem/ir5vWe5PWr3vU1zvM7ku9s0uhboeas0t04id2xwtNI1/OUz+Bsrd96odS6wcVzvuN1vNeI7X81AAAQf0lEQVRo3uzXfUzMcRwHcNzd7552t5/zBxvNaB1p2mo7TtfmyMOMPJRKedhZp4idJk9nyNaUW/FXcSGsRwlTuS7/6QFnUwtj8tCDh6EHkZiYh/f3+z1dHqbu5D9vf/in/V69P5/vt9/dsP/5nwEz/Mf8G2DYj/+GmmLAz2HUkBH9BMkIFsnQDq6PoA8XCqQCRMgYZ8UhqoECQrPVVlCLFNis6Rwg6jBoKGrAMNcUl2dXTcjP9/OrqiotL7Y94sRSIRiWoRiVuaC8ZfTUqRMm+Pn5hU0KU6vVpeWORxwHhhKeKzDYtIQ15XYQMAgyaZJ6klo9ZUp3vU0h4gRCCVP+7nJIzLUt4aNHQ6FI2Hdk4cLS14dUKCNhP/dXTQ632heFE+UXZEVs2UWm0HhcBEZRaHj4vHn9EAQGlBX+/vVWucjjLqwGM2YtAPJTExDE8I+tv9ineIQgEvOV0PmzZi1gCBQgMICwIrH62OZDcg6KZ1XYHXyTMTYUSPgCF8JWAoMi+t43vGv7Hm3EWrhkbCibF0Py/cLCnAg1kI4ahUgsYIon19BcFDiWIlBolan5SJjahej0uqiyRCjkVqK9B9MqyABC5wUEyW690tBQ3Fo6Rf29iE4XFdXrkPUt3/1pmR/HBQYyhKy+pfV4itbHxzfxWHGp2oWkptZfVABxvwq96gUZcYFLnFXmLShsSNH6KpUymYz3dVRQREeKREd3OHgV2YoHTSTSoldAoNDVPzzrpfWV8QqVSqRS8LYKen5hpEZHR5cdYlXcVMg7yvrkVVzcEraV8MKzXj5KXi7ixGIxx4nkUPTOIpGRncdkck5AEHdXIsmZ/CpudiDdSmhGjpeWGuS9KJWKOXlXqZ4Z0cmRyV1K3rl6t9ceMn72bChkLUUniYEH4T0lIe9gLr0slhooEplclsiTU+z+uKy3Q8aPBxMHpvA49gFDwF6FVKnpAMKM5KZjMhWZF+LeSgqOhkyGQssURfjAELPHMEW8rxlLZ0Zyp0Op4DyY14hK78kIYeIysHVehSJ4ikup6UhlRmZm5msfnpwvd5uYS7xDnMjsZ7u8lAoVfaOzkLVw6U1OAylLlKncWgoMKIdve0+c6FQqI7RKBU6vVNAXHLB9r6MjwbS1AWm6ppRzbiL4XQ++BcKYo2ci2PntH5FIYUuuq6trbGxra2vstOG3ELjZBHu/5O1NEOT2qQDcRNx2Bc/LeB7/K3hEebDzAkKcxkyHVqaSCt1sMiJnjjcUJCTk2fOggJRdNseb2tpiktoGx4ldKVptSlPCHhpIXdgaJ5C4hYwQVq4KJiFMyfuPd3squvV6vNRXxMTMnRtW1ZJd3ppzFghLQkKzly/uoztVhksE0uub58wJDqZt7N0Wi9FozMpKS/P3XxgT0z5369Z11dWj7fb2pARnygJ8eHaRBl9EwJ3bPAfZEQxoo4UgSTDS9KiCLkRZd2Tx4k2Lqx9YTAaDIenu8whfBTvkg96IdF9JvGYVFNTxvmqxmJKSDAaC6Mm8gKyjyOKVSPUDo8nYkxvkpZRTZLCXRChOfxo/XaNZBWhV8FWLyQQjKy9PFxu792dk29JtGx9YKi7PDPCRiQTC4cggatBpPXo3Zjqi0WiAwHAiev3eAxTZyhAY25Yit7I/70cVFdkKMpBBj5bY2nyUIvHxGs0OiiTdvw9ER5CYX5Dty0I+fUAVnv6VxCMGMjAsc1en5ebIMTTx0zcTxJBw/0JeXpRO1w9xGduXLdt5/kVuhBJ/4Ab6MOn8WmVtTk0y3hxJQqWrOD8ESU2NitLtZfNyIcxYtn79jk+ncO05bIXmT99HJMKapiyDgSIsQGAQBEnbazzQ3u5C2LAosmb5+RzcSOkfv3yxT7/mro68LAOajOrLaZMJRl1vRc9dBJc/u7Rqa3U1EGcRQgBZs/xSZaLij1++2Lk63Byly8PlsjiRGchNU3dvz8f39y7v3717JpKbe+/9xy/Z9k20CBsWDGTtnXPXVBw7YmB+u3MY+HigS8vKMhpP0+dPm7Zhw7hLX19+vrF/98wtW4KCAmiCtmyZefnDVztBmEEEZPXmkoP4SAOF5vfGt17NNabNKozjSunAt6Ut0FZa24LSGqs1LbbY2gjEMUWJZlFG4ochEZcRsi1QPshkC4HSxQUGpW2iDhgXo9uEAVGJjruXIAGMqIOwxJnoNnGLiVGXOeMt/p9zerUx0S/+tyVLOO/7e//n8pznebZPkHpyyL6a+yEdpAoRo6TRXVCp17uY9PrKAnfJ+a/2fQ4jMQYgVVWXuyTMC7eSvB4vfULF03Mvthzds+ejGgI4VNDKVTDcuFPMLEnFpSLIZK5K98/vfrBv3+fPxxiPPgpIJiixmzrRCPOBDJfU0rJnzxf1Dh0A2qKiIuPvHx9pLHDJhAyJmAuZqmCq/PX0y4xCEIbgkMzLSxJxhPJ3Iy+8RVUHCqinW44ePfrFQZVDVVRkhwzDHx926ynxitzylEIK7Rf373/5NCifPwkGCFBNTU1mTfYYKhYRp8QxSKk/vH831ZvgtLQA8tl0ERhGu0Fjnf+lBIEJSbUoNTXSxhEr+k4+vn8/IMA8uQuAAwcOgJGN315/tyQtkcKNpH/4JpWbxMG9dPS7n0ZX7HajQaORy+WrCwSR8BNASk8ViRWfPlQBCsOcvn7jAKkcwq6s6xlRiEGJnzBer799J4mBQHnz5/Mhg1GjsYKhVA+z20Icl9yJxN0Xyx4HBJTT+y5dvQoKh2Df15XPLkUTzngjP7yPehN9AMLc+fA7Z9wlE1bGqLYp83ybblx8YchNHNJ/qawMGGbmtz8+3rwxzSA4Wdj5M35Kz+OtsDr3OLoAJAI9/E4/TtyVGY0cDItSLS2eKClwCQhLMSetpzp23gYIYR6/grO6NTftgHR85/cM8GoVijJS30DxDHHS8TOVOHdDIbJhYxDflhtxHNlIdE36Lu3duRNWSJd+OXK4sWC9hygqrpmx7oiVOCP3kAh0z1Pvf6pHAWpqD9rkNqXaYpFKmRUTRdiokeXcDlC4lz/fA0Pv8ni1Wi0RsC21sEL3ZBwk9Ud05CJ67et2HApBZl732ZRKtToPEKwKv13TuZFb+sfv4hQszLHNwyUUDyaD01qS3Uh//ArKXqIQxPe30W3guuf24wOoeCgTHRwmBmxI89TYYEgUMM3pxEibHL0DkDDlm/dKGispjx3oMRiNeD/JMNsQl+2R+w+/4gTqbNy7qDcJGWKxRCJ4VtU0VcV5UotldYFlVpgBpADixd7S0u87OjqoOj52BUEHj2RJMtoChqhW1li1GoP8iLffG9bxAZS5WUjbs2AFJjBXeRabzTq/VaCX0e5HKdc/np9fWprLvcAIiwd4pC9k1YRlDfgFKryjENEi+ibQraRTDWaBytw0sUThWWUMtdImt1qHkdwLrIBYul7fRPkryorvO3qvHG6sNOOzUHq3Tiix661M8qBMwaY3UlW9fWtMJ1xUVeGDEQQHh6URiMZgnKBlkWSJJ0dzagubgMkvhZgRqlrxRJonYKuulpOqlcPtAnZKFNJ5gXqMj0AVj7x7xsTCbSqqQrGw7gPEYoERQGaCoMiEhrGNnBxnIWGg3k0yQt+MJ0RrPqUFstkQjOYGsSgxyEsXKgBgkIqTWBJcOoihoEgagsXwoayWazTYlzML2Krtbd5ySpVqkVwC8xs3QsETT3TNq9VqJWSzKUPN8ZCULy9UVDyG9hxUdrLZRDU5QjpOg1gYmGOThdkCxOFdePXVBa+jLptRnKCMny9xV5p4awVndHI+T81ksahDzbJESBkQD1HLqQxOqOeDSwPPpElk6z4lLbuBToDK4Q1OzGgduvvLaximduoKnXX2Vawo7pqX0tkFRP13SOcFdDMBKYOOYU0ieTOsKBoWVpVyBilSqXR1RissgfJANrlxLhxhNw0/pHjT2qqUC3FibjABIr4ICBC3kc668DPe30intW+esMgDNFsUlKxKq5VwDl15OW7a65gsimmornm4aStmwo7Mk2J3xSB41+ITEADQzpPN/KJNZ8XQtgzz0JxSrrHbYUSDqYYrWh6ilM/+wiYrnJyk35wyOQeAlGOKg6YESOrrx8IQdJ62nzULbAunh62YtkJWgmiUiC9qzJ0mTLmxySYLFwfbJ2jDtVmkzAShVj0yIStuulJeOclM7CRGxyWkzfw5FqYyZPr1kMFu1CgpkLGtZqDJc4SuUoR3CQwCpYjWfbTghIGd+SFzwolPaT11H9PevXu35+aOexqokyIiIbgI5nb/isEQsFHQpzBms1phxYtsjIwIEgoPmN9O/wodEYs6j1Q80SBLiF3pIjRnibGdGLmlvaMjk9RLgQBZWhubm7Frqm2YCwR9Cz8204du/L756rd6mSKDtQy/HJnw4QMA4W5WPWYBX5oSg6R2XtwOABFy0ecoze/9ZvlEf1dXV9+aZ2zWq9NqjRq5DXdkMZsxRKfpQ9DGbNB/or+vr6//RNvsipUiVjW80CkpHm42K/hRiGaosLI9xkAXIr9px9S1a9emNjay6+7XqbR2jbyaFoVBlGCQKKHz9kDeGY0B0Z3nNpDF4vOY2WylxyDpos5TuQmMBx/cXVhYW5tTVYMaRacqsmsCcnwjD8qBA4cO7dq1i+WlSIIcDi2sGjUGRqm2kJmJQbMirsPK86htXefCCMbIf3D37t2FtTk5yGwfqGMQPl8UNAJE4BD6BDh1IDE3UrrJKHATGjIxI/GJBLb4tk+PAcEZ6HXsAKPQSZDyB+4niAHzhSAOyPSug5xR9WxVGAJKEZIHg4FTbD4PMeK73rysFrUu9tJUkQ8OYYzMbOSEBMHKy202tSVw6CBEkHpWJ2Rn1xFFBQpSZ547+9pwu0bbifFJvajzLLKDCGMHJotDsnW6MASLMv/7wvhB0jP1z9RX0c8zuRVUMlQCMIpvYdAsk/DQlJgMI4J0Lvbm35EPEYMg/B1YWLwCkMB8cOvwkfNjhKmHnDlEoeKVVoUVMzBjXWkbNAmsLwUG9LeGSuvIuXzqcYGBBeFG8KG0rlprIBTc+tbtdjd+e2ZsvKm+sN5JI6owIhsQjAEGkMCcp4GlO9xHohOipGV1LV9ramoiSHS2UAFji64M+4cq9UiRSZVDZ69P1dc6a8kKUSiRBwSrMh8cMrOaTJRUNeKvnCLu7F8e3+EsZAwnN+LQeWfHRppNZrPZROkrZDYNri2fm3JWVRGEBsEucoCe4Eg7hmQkMTgF4pSs7j7P6LmpHc4c2jqZGz2zl/0jzS4Tb6dKWrOy8FsikSi6l9bOjs72bGDVYFbn9c5d9gy4ZDKFohU3BTGSK9OoF1S23Uv9JzzLy21tfs/IUHODWSYDQSHJopjJhfySGrfdgwMjHn8b5F8/0+wym1Eh0yhRMoMU7cGjsEVSmyEI3QIkY++XSAiwjbW4UyFW/m6jz5EgL2ejumUCxD+E8ilO4IxkLyhs6XG8N4OLAGSBAOwCZKMgkFDRhwdSR7pVzAlAJPpI9oIX3ML/TYkEQLhJDwAfETeQOcLUkTCOIzAuyUeymZTwlECgiSIOksQregzkIqv/4j80xD/OUfQUFCNgTKLww5SIooSkbleymX8Q/1lsWPLAf4Ug0Zh/9SSn/ncElPihyR6SvyjpFwb+//oLYHj/LyqNdWsAAAAASUVORK5CYII=",Mze="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAFwAXAMBIgACEQEDEQH/xAAbAAACAgMBAAAAAAAAAAAAAAAABgQFAgMHAf/EAEAQAAEDAwIDBAUJBAsAAAAAAAEAAgMEBRESIQYxURNBYXEigZGhwQcUFSMkkrHC0TI1UvAWQkNiY3J0orKz4f/EABkBAAMBAQEAAAAAAAAAAAAAAAACBAMBBf/EACQRAAICAQIFBQAAAAAAAAAAAAABAhEDEjETITJBUQQUIiMz/9oADAMBAAIRAxEAPwDuKEIQAKPHXUctVJSR1cD6mLHaQtkBezIyMt5jYqQuAfKXTPj45rJImuMk0jCzTnVq0tG3q0rqVgd/QuY8HniqkhY2turuyxnsJgJXNHi87jyyUydtcnHP0jL91g/Kn4UjJ5ooakJZZd7hSnM2iqjHMEBr/URt6setSqbi/h+cY+laaJ42dHO8RuaehDsJXBrcaOSMti8QodPdbdUuDaavpZnHkI5muJ9hUxKOCEIQAIQhAAkS822E8WVNdLpdoa1zHfwEsAd/ta37xT2UlXU9pPWu73zaDnpqDT7gVpj6rM8rajS7mAlw+GAbOly946NGPjgepWGsDRnm7l7MqipnOkuUs2fQDQxu3QnPwU+onDaiJo/s2F59mB/PiqE01aI5RcXTN1PIJJaiM7gP29g/Vcy+USkNHeY5Ym7VTMkDveDg+4tXQbUXmaR7xjtJHOH+UgYUHiC1S3O70HYQ9o+HtHAZGxIbvulk/jaNMUfsSYqcD8Jurr/QOrgfqnCqdGP6rWEEZPUu0jHn0XdUr8D2qS3w1ktc0MrppcOYDnRE3IYM9+fSd5uI7k0KW7LZVfx2BCEIOAhCEACQ65xllcRqx28kp08yGh5/HSnKouNDTP0VNZTwv56ZJWtPsJXPpL5aKZ9LV1dRE5gB1BkrS5pc7ngHfHRMr0uheWuOrYvG2csL2Ubi9sEun03Z15jaSQfPO3LcjZaJbTUR656naJoc+TS7LnAD9kePTyVtbrrZ5aRj6K4URgI9HRK0AeruWVbXUUtO+NtdS4cMHEzf1WGuSN+HGTK6UTNuPZyRRsMQDD2ZOnIaDgZ6BwHq8cDGC40lFd/tNRHFJ2ZLBIcBwzvvy7lFdc4hWfaK2l0mQ+mZAMkjJPPHIAexVf0hb5uI6jtqmkfFoY0apGlp5k/iqsVOFEmZaMtjZaby2634imb9njp3gyA+i92pnLrj4pjStaLla2Vxd8/o2hsJA+uaAMkePgmhrg5oc0gg7gjvSSSTpD423G2eoQhKOC1VM8dLTy1E7tMUTC97ugAyVtSn8ode6ntUdIzI+cP+sdjYMbgnfxOkeWUsnpTZ1K3RTWCrkuD7lVzjEktXqI56fq2YHqGB6la6W9B7FQ8HkOo6xzSCDVHcH/DYr9eRNty5lVIx0MPNjfYsTHHjJjZ90LYsJTiN58Cks6VNJUht/qKfYRSsbob3BzQDt4kE/dVxgdEtVYdG19fG0l9PVB3ojJIDGZA826h61cm7W8HHzuP3p2r2AmFocMEDCsuF6smKW3SHMlMRo8Yzy9nLy09UuS323xjaVzz0ZG4/BRrfdKgXSG40tHWvjDtLhHSyODmHZwyG+GfMBbencoz25CTScTpSF4F6vTJgXhXqCgBNd+9ruetWP+qMLNYP/e93b3irHvhjPxWa8fN+jKo9KBRbjKIqV3V2wW+WWOFmuV7WN6kpcuNf87m9DIjbs0H8VmOkWdoayakn1tDmumO3kAPgpLqamGQ2Fod1I2UTh1wdRPHf2r/xKnuJaSzSXuJyOi69wCOnjG5hYD3eir7hhwdb5C3l28g96U7jcexYYm7Snng50j9UxcDHNhaes8v/ADKq9H1syzdIwoQheiTghCEAUlbw82orJ6qKuqKd85a57WNYWlwaG53GeQHf3KDNwtXPyGXtzR40/wCjgmlCzeKEnbQynJdxGm4Hr3nUbrDIer4HD85Wh3BN1b+xPRu83ub+UroCEvt8fgbiz8iRRcK3imiAE1G14c47SOI3JP8ACpEvDl6mbg3CljH9xjv/ABN6Fz22LwHFkIv9Bq487nTg/wCncfzpn4etbrPa2Uck7Z3Ne9xe1mgHU4nlk9eqs0J44oQdxQrm5bghCFoKf//Z",zze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAw1BMVEUD2sUAAAAC3McA2sUI28YBBAMA3cgCCAcDCwoGtaMFExIB1MAHIx8C18IDzroEwK0Nd2sGFxUB0LwGxLEKn5ADx7MLSEELQDoJNTAIJiIGHxsJ3cgLkoQNZlwMXVQI1cEJsaAKo5QKnI0LjoAMhnkLc2cMYFcKRj8JMSwILSgHGxkEEA4CzLgHuqcLin0LfXEMbGELTUYH0r4CyrcDvqsHrZwKqJgNWVELv6wNgnYMVU4Cwq8Mb2QKOzUJOTMIKiYMl4iTAtRRAAAC2ElEQVRo3u2Y6W7qMBCFkxnjQGmahUDZoQtQUgqUQgvd6Ps/1a10E0ImNdK1fX9U8vl7pDOx83k8iWVkZGRkZGRk9JsFvNPh8LPV+baYegmGXtf3u55VzAK3MvcXUR1QdRn1Xrtk26X2sgbUqrwG35Yz3a2YWo31pZ3oYw1566qVOKX+hUoVDBv2QZPZcRRs9wenNFLZMN51bFHU0s50fw3yRdxH+0hnURbF6vtja+qBNFn1ln2suyyKb+5z1ktVdsfAi+2c+oeozrWTc5xbUFxJFjVPo/hzOW+1h7JVBg07r/MKJPVrLWJdzpgkXTcOiWocjkSPONIcY/hIo/zDMd0T60yWY6ic06grSKyvjK8MPinBTZlENdMm5mbHUZFjdHs0qj/4G8Wekr6mzjHUmySqnHLMN7GtiWN+dSbiGBclXRxbfknAMa4edXHMLhpCjh9aFL6I6+OYJ1a3TDl+08dxPeW4CJ8sx4MxjRoPMIHvo8Axk1xK7Y5yfAOJ9Rzo4hj+ieMnjRyjiON3S5bjCY26BSHHG239eFK1RBwvJYtglR7JzxDTUYDW76PkSuYObexpklsAfMcld6tNN/4ZRLs1rTFN731E+pf6PIkjYScujgFLV+5OiYRn0fI1nUXwhF2F6+oqWH0p9EcXk6bWVL7nKb10YkF3rGligWG7eP0J6fVAE73+CXq5pv47ofRmWqL+iUgPvRSf03divJGkty++3T813e5sXpy3hXPKqyS9D+Ivh+t7PfRa7F1EL64munpvSLe9EbJ0jQGdHlB23DoX9d5O5Gia5+GtXaBXUCQecun/N036jZVdxwGlV1bYEw3sGF6q0ps9b0z+32RW1zmidw2WgnaHw+gscgausl4QREo10N0FSdCC7AibjZMHaH1ZakJr2GvGwV1vYyGx2CB6nQbxx2jNLFUBXnjbGcIPFsen7TYEsDQIAfCUZWRkZGRkZGT0f/UHAS86LuyGKlcAAAAASUVORK5CYII=",Fze=["innerHTML"],Dze={class:"w-16 flex justify-center"},Lze={class:"text-gray-500"},Bze={class:"w-16 flex justify-center"},Nze={class:"text-gray-500"},Hze=["onClick"],jze={class:"w-16 flex justify-center"},Uze=["src"],Vze={class:"text-gray-500"},Wze={class:"p-2.5 text-center"},qze={class:"font-bold mb-3"},Kze={class:"mb-5 space-x-4"},Gze={class:"text-center"},Xze={class:"mt-2.5 text-center"},Yze={class:"mb-1 md:mb-10"},Qze={key:0,class:"mb-2.5"},Jze={class:"font-bold"},Zze=["onClick"],eFe={class:"carousel-img flex flex-col justify-between p-5",style:{background:"rgba(0, 0, 0, 0.5) !important"}},tFe={class:"text-xl"},nFe={class:"text-base font-semibold color-[hsla(0,0%,100%,.75)]"},oFe={class:"text-block mb-4 pt-5 text-xl font-semibold"},rFe={key:0,class:"mb-4 text-sm text-gray-500"},iFe={key:1,class:"mb-4 text-sm font-semibold text-red-500"},aFe={key:2,class:"mb-4 text-sm text-gray-500"},sFe={class:"text-gray-500"},lFe={class:"flex items-center justify-between"},cFe={class:""},uFe={class:"text-base"},dFe={class:"text-sm text-gray-500"},fFe={class:"flex items-center justify-between"},hFe={class:"text-base"},pFe={class:"text-sm text-gray-500"},mFe={class:"flex items-center justify-between"},gFe={class:"text-base"},vFe={class:"text-sm text-gray-500"},bFe={class:"flex items-center justify-between"},yFe={class:"text-base"},xFe={class:"text-sm text-gray-500"},CFe=xe({__name:"index",setup(e){const t=G=>mn.global.t(G),n=TQ(),o=new Zu({html:!0}),r=G=>o.render(G),i=Tn(),a=Ji(),s=navigator.userAgent.toLowerCase();let l="unknown";s.includes("windows")?l="windows":s.includes("iphone")||s.includes("ipad")?l="ios":s.includes("macintosh")?l="mac":s.includes("android")&&(l="android");const c=U(!1),u=U();jt(()=>{});const d=U(!1),f=U(!1),h=U(""),p=U(["auto"]),g=[{label:"自动",type:"auto"},{label:"全部",type:"all"},{label:"Anytls",type:"anytls"},{label:"Vless",type:"vless"},{label:"Hy1",type:"hysteria"},{label:"Hy2",type:"hysteria2"},{label:"Shadowsocks",type:"shadowsocks"},{label:"Vmess",type:"vmess"},{label:"Trojan",type:"trojan"}],m=U([]);function b(G){if(G==="auto"||G==="all"&&p.value.includes("all"))p.value=["auto"];else if(G==="all"&&!p.value.includes("all"))p.value=m.value.map(ne=>ne.type).filter(ne=>ne!=="auto");else{const ne=p.value.includes(G);p.value=ne?p.value.filter(ce=>ce!==G):[...p.value.filter(ce=>ce!=="auto"),G],_$(m.value.map(ce=>ce.type).filter(ce=>ce!=="auto"&&ce!=="all"),p.value)?p.value.push("all"):p.value=p.value.filter(ce=>ce!=="all")}p.value.length===0&&(p.value=["auto"]),C()}const w=(G,ne)=>{if(!G)return"";const X=new URL(G);return Object.entries(ne).forEach(([ce,L])=>{X.searchParams.set(ce,L)}),X.toString()},C=()=>{var ce;const G=(ce=y.value)==null?void 0:ce.subscribe_url;if(!G)return;const ne=p.value;let X="auto";ne.includes("all")?X="all":ne.includes("auto")||(X=ne.join(",")),h.value=w(G,{types:X})};function _(G){console.log(G),window.location.href=G}function S(G){return btoa(unescape(encodeURIComponent(G)))}const y=I(()=>a.subscribe),x=I(()=>{var be;const G=(be=y.value)==null?void 0:be.subscribe_url,ne=encodeURIComponent(i.title||"");if(!G)return[];const X=encodeURIComponent(G),ce=S(G).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return[{name:"复制订阅链接",icon:"icon-fluent:copy-24-filled",iconType:"component",platforms:["windows","mac","ios","android","unknown"],url:"copy"},{name:"Clash",icon:Pze,iconType:"img",platforms:["windows"],url:`clash://install-config?url=${X}&name=${ne}`},{name:"Clash Meta",icon:Tze,iconType:"img",platforms:["mac","android"],url:`clash://install-config?url=${X}&name=${ne}`},{name:"Hiddify",icon:Eze,iconType:"img",platforms:["mac","android","windows","ios"],url:`hiddify://import/${G}#${ne}`},{name:"SingBox",icon:Rze,iconType:"img",platforms:["android","mac","ios"],url:`sing-box://import-remote-profile?url=${X}#${ne}`},{name:"Shadowrocket",icon:Aze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`shadowrocket://add/sub://${ce}?remark=${ne}`},{name:"QuantumultX",icon:$ze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`quantumult-x://add-resource?remote-resource=${X}&opt=policy`},{name:"Surge",icon:Ize,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`surge:///install-config?url=${X}&name=${ne}`},{name:"Stash",icon:Oze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`stash://install-config?url=${X}&name=${ne}`},{name:"NekoBox",icon:Mze,iconType:"img",platforms:["android"],url:`clash://install-config?url=${X}&name=${ne}`},{name:"Surfboard",icon:zze,iconType:"img",platforms:["android"],url:`surfboard:///install-config?url=${X}&name=${ne}`}].filter(Oe=>Oe.platforms.includes(l)||l==="unknown")}),P=G=>{var ne;(ne=y.value)!=null&&ne.subscribe_url&&(G.url==="copy"?qs(y.value.subscribe_url):_(G.url))},k=()=>{var G;h.value=((G=y.value)==null?void 0:G.subscribe_url)||"",f.value=!0},T=I(()=>{var ce,L,be;const G=(ce=y.value)==null?void 0:ce.transfer_enable,ne=((L=y.value)==null?void 0:L.u)||0,X=((be=y.value)==null?void 0:be.d)||0;return G?Math.floor((ne+X)/G*100):0}),{errorColor:R,warningColor:E,successColor:q,primaryColor:D}=n.value,B=I(()=>{const G=T.value;return G>=100?R:G>=70?E:q});async function M(){var be,Oe;if(!await window.$dialog.confirm({title:t("确定重置当前已用流量?"),type:"info",content:t("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。"),showIcon:!1}))return;const ne=(be=await Bm())==null?void 0:be.data,X=ne==null?void 0:ne.find(je=>je.status===Os.PENDING);if(X)if(await window.$dialog.confirm({title:t("注意"),type:"info",content:t("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:t("确认取消"),negativeText:t("返回我的订单"),showIcon:!1})){const F=X.trade_no;if(!await Hu(F))return}else{Gt.push("order");return}const ce=(Oe=y.value)==null?void 0:Oe.plan_id;if(!ce)return;const{data:L}=await ak(ce,"reset_price");L&&Gt.push("order/"+L)}const K=U([]),V=U([0,0,0]),ae=U(),pe=U(),Z=async()=>{const{data:G}=await PJ();K.value=G;const ne=G.find(X=>{var ce;return(ce=X.tags)==null?void 0:ce.includes("弹窗")});ne&&(c.value=!0,u.value=ne)},N=async()=>{const{data:G}=await SJ();G&&(V.value=G)},O=async()=>{const{data:G}=await ik();if(!G)return;ae.value=G;const ne=[...new Set(G.map(X=>X.type==="hysteria"&&X.version===2?"hysteria2":X.type))];pe.value=ne,m.value=g.filter(X=>ne.includes(X.type)||["auto","all"].includes(X.type))},ee=async()=>{await Promise.all([Z(),a.getUserSubscribe(),N(),O()])};return hn(()=>{ee()}),(G,ne)=>{const X=ni,ce=$m,L=ute,be=ite,Oe=Am,je=Yi,F=zt,A=vo,re=ml,we=X2,oe=pl,ve=Ti,ke=qU,$=vl,H=Qi,te=UY,Ce=ete,de=Xee,ue=Vee,ie=Bee,fe=Mee,Fe=bo;return ge(),We(Fe,{"show-footer":!1},{default:me(()=>{var De,Me,Ne,et;return[se(X,{show:c.value,"onUpdate:show":ne[0]||(ne[0]=$e=>c.value=$e),class:"mx-2.5 max-w-full w-150 md:mx-auto",preset:"card",title:(De=u.value)==null?void 0:De.title,size:"huge",bordered:!1,"content-style":"padding-top:0",segmented:{content:!1}},{default:me(()=>{var $e;return[Y("div",{innerHTML:r((($e=u.value)==null?void 0:$e.content)||""),class:"markdown-body custom-html-style"},null,8,Fze)]}),_:1},8,["show","title"]),se(X,{show:d.value,"onUpdate:show":ne[3]||(ne[3]=$e=>d.value=$e),"transform-origin":"center","auto-focus":!1,"display-directive":"show","trap-focus":!1},{default:me(()=>[se(A,{class:"max-w-full w-75",bordered:!1,size:"huge","content-style":"padding:0"},{default:me(()=>[se(Oe,{hoverable:""},{default:me(()=>{var $e;return[($e=pe.value)!=null&&$e.includes("hysteria2")?(ge(),We(ce,{key:0,class:"p-0!"},{default:me(()=>[Y("div",{class:"flex cursor-pointer items-center p-2.5",onClick:ne[1]||(ne[1]=Xe=>{var gt;return Se(qs)(((gt=y.value)==null?void 0:gt.subscribe_url)+"&types=hysteria2")})},[Y("div",Dze,[se(Se(Xo),{size:"30"},{default:me(()=>[(ge(),We(xa(Se(Sze))))]),_:1})]),Y("div",Lze,he(G.$t("复制HY2订阅地址")),1)])]),_:1})):Ct("",!0),se(ce,{class:"p-0!"},{default:me(()=>[Y("div",{class:"flex cursor-pointer items-center p-2.5",onClick:k},[Y("div",Bze,[se(L,{class:"text-3xl text-gray-600"})]),Y("div",Nze,he(G.$t("扫描二维码订阅")),1)])]),_:1}),(ge(!0),ze(rt,null,Fn(x.value,Xe=>(ge(),ze(rt,{key:Xe.name},[Xe.platforms.includes(Se(l))?(ge(),We(ce,{key:0,class:"p-0!"},{default:me(()=>[Y("div",{class:"flex cursor-pointer items-center p-2.5",onClick:gt=>P(Xe)},[Y("div",jze,[Xe.iconType==="img"?(ge(),ze("img",{key:0,src:Xe.icon,class:qn(["h-8 w-8",Xe.iconClass])},null,10,Uze)):(ge(),We(Se(Xo),{key:1,size:"30",class:"text-gray-600"},{default:me(()=>[Xe.icon==="icon-fluent:copy-24-filled"?(ge(),We(be,{key:0})):(ge(),We(xa(Xe.icon),{key:1}))]),_:2},1024))]),Y("div",Vze,he(Xe.name==="复制订阅链接"?G.$t("复制订阅地址"):G.$t("导入到")+" "+Xe.name),1)],8,Hze)]),_:2},1024)):Ct("",!0)],64))),128))]}),_:1}),se(je,{class:"m-0!"}),Y("div",Wze,[se(F,{type:"primary",class:"w-full",size:"large",onClick:ne[2]||(ne[2]=$e=>G.$router.push("/knowledge"))},{default:me(()=>[nt(he(G.$t("不会使用,查看使用教程")),1)]),_:1})])]),_:1})]),_:1},8,["show"]),se(X,{show:f.value,"onUpdate:show":ne[4]||(ne[4]=$e=>f.value=$e)},{default:me(()=>[se(A,{class:"w-75"},{default:me(()=>[Y("div",qze,he(G.$t("选择协议"))+":",1),Y("div",Kze,[(ge(!0),ze(rt,null,Fn(m.value,$e=>(ge(),We(re,{key:$e.type,value:$e.type,checked:p.value.includes($e.type),onClick:Xe=>b($e.type)},{default:me(()=>[nt(he(G.$t($e.label)),1)]),_:2},1032,["value","checked","onClick"]))),128))]),Y("div",Gze,[se(we,{value:h.value,"icon-src":Se(i).logo,size:140,color:Se(D),style:{"box-sizing":"content-box"}},null,8,["value","icon-src","color"])]),Y("div",Xze,he(G.$t("使用支持扫码的客户端进行订阅")),1)]),_:1})]),_:1},8,["show"]),Y("div",Yze,[V.value[1]&&V.value[1]>0||V.value[0]&&V.value[0]>0?(ge(),ze("div",Qze,[V.value[1]&&V.value[1]>0?(ge(),We(oe,{key:0,type:"warning","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:me(()=>[nt(he(V.value[1])+" "+he(G.$t("条工单正在处理中"))+" ",1),se(F,{strong:"",text:"",onClick:ne[5]||(ne[5]=$e=>Se(Gt).push("/ticket"))},{default:me(()=>[nt(he(G.$t("立即查看")),1)]),_:1})]),_:1})):Ct("",!0),V.value[0]&&V.value[0]>0?(ge(),We(oe,{key:1,type:"error","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:me(()=>[nt(he(G.$t("还有没支付的订单"))+" ",1),se(F,{text:"",strong:"",onClick:ne[6]||(ne[6]=$e=>Se(Gt).push("/order"))},{default:me(()=>[nt(he(G.$t("立即支付")),1)]),_:1})]),_:1})):Ct("",!0),!((Me=y.value)!=null&&Me.expired_at&&(((Ne=y.value)==null?void 0:Ne.expired_at)||0)>Date.now()/1e3)&&T.value>=70?(ge(),We(oe,{key:2,type:"info","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:me(()=>[nt(he(G.$tc("当前已使用流量达{rate}%",{rate:T.value}))+" ",1),se(F,{text:"",onClick:ne[7]||(ne[7]=$e=>M())},{default:me(()=>[Y("span",Jze,he(G.$t("重置已用流量")),1)]),_:1})]),_:1})):Ct("",!0)])):Ct("",!0),dn(se(A,{class:"w-full cursor-pointer overflow-hidden rounded-md text-white transition hover:opacity-75",bordered:!1,"content-style":"padding: 0"},{default:me(()=>[se(ke,{autoplay:""},{default:me(()=>[(ge(!0),ze(rt,null,Fn(K.value,$e=>(ge(),ze("div",{key:$e.id,class:"",style:Fi($e.img_url?`background:url(${$e.img_url}) no-repeat;background-size: cover `:`background:url(${Se(i).$state.assets_path}/images/background.svg)`),onClick:Xe=>(c.value=!0,u.value=$e)},[Y("div",eFe,[Y("div",null,[se(ve,{bordered:!1,class:"bg-orange-600 text-xs text-white"},{default:me(()=>[nt(he(G.$t("公告")),1)]),_:1})]),Y("div",null,[Y("p",tFe,he($e.title),1),Y("p",nFe,he(Se(Wo)($e.created_at)),1)])])],12,Zze))),128))]),_:1})]),_:1},512),[[Mn,((et=K.value)==null?void 0:et.length)>0]]),se(A,{title:G.$t("我的订阅"),class:"mt-1 rounded-md md:mt-5"},{default:me(()=>{var $e,Xe,gt,Q,ye,Ae,qe,Qe,Je,tt,it,vt,an,Ft,_e,Be;return[y.value?($e=y.value)!=null&&$e.plan_id?(ge(),ze(rt,{key:1},[Y("div",oFe,he((gt=(Xe=y.value)==null?void 0:Xe.plan)==null?void 0:gt.name),1),((Q=y.value)==null?void 0:Q.expired_at)===null?(ge(),ze("div",rFe,he(G.$t("该订阅长期有效")),1)):(ye=y.value)!=null&&ye.expired_at&&(((Ae=y.value)==null?void 0:Ae.expired_at)??0)(((tt=y.value)==null?void 0:tt.reset_day)||0)?(ge(),ze(rt,{key:0},[nt(he(G.$tc("已用流量将在 {reset_day} 日后重置",{reset_day:(it=y.value)==null?void 0:it.reset_day})),1)],64)):Ct("",!0)])),se(te,{type:"line",percentage:T.value,processing:"",color:B.value},null,8,["percentage","color"]),Y("div",null,he(G.$tc("已用 {used} / 总计 {total}",{used:Se(ua)(((((vt=y.value)==null?void 0:vt.u)||0)+(((an=y.value)==null?void 0:an.d)||0))/1024/1024/1024)+" GB",total:Se(ua)((((Ft=y.value)==null?void 0:Ft.transfer_enable)||0)/1024/1024/1024)+" GB"})),1),(_e=y.value)!=null&&_e.expired_at&&(((Be=y.value)==null?void 0:Be.expired_at)||0)Se(Gt).push("/plan/"+Se(a).plan_id))},{default:me(()=>[nt(he(G.$t("续费订阅")),1)]),_:1})):T.value>=70?(ge(),We(F,{key:4,type:"primary",class:"mt-5",onClick:ne[9]||(ne[9]=Ze=>M())},{default:me(()=>[nt(he(G.$t("重置已用流量")),1)]),_:1})):Ct("",!0)],64)):(ge(),ze("div",{key:2,class:"cursor-pointer pt-5 text-center",onClick:ne[10]||(ne[10]=Ze=>Se(Gt).push("/plan"))},[se(Ce,{class:"text-4xl"}),Y("div",sFe,he(G.$t("购买订阅")),1)])):(ge(),We(H,{key:0},{default:me(()=>[se($,{height:"20px",width:"33%"}),se($,{height:"20px",width:"66%"}),se($,{height:"20px"})]),_:1}))]}),_:1},8,["title"]),se(A,{title:G.$t("捷径"),class:"mt-5 rounded-md","content-style":"padding: 0"},{default:me(()=>[se(Oe,{hoverable:"",clickable:""},{default:me(()=>[se(ce,{class:"flex flex cursor-pointer justify-between p-5 hover:bg-gray-100",onClick:ne[11]||(ne[11]=$e=>Se(Gt).push("/knowledge"))},{default:me(()=>[Y("div",lFe,[Y("div",cFe,[Y("div",uFe,he(G.$t("查看教程")),1),Y("div",dFe,he(G.$t("学习如何使用"))+" "+he(Se(i).title),1)]),Y("div",null,[se(de,{class:"text-3xl text-gray-500-500"})])])]),_:1}),se(ce,{class:"flex cursor-pointer justify-between p-5 hover:bg-gray-100",onClick:ne[12]||(ne[12]=$e=>d.value=!0)},{default:me(()=>[Y("div",fFe,[Y("div",null,[Y("div",hFe,he(G.$t("一键订阅")),1),Y("div",pFe,he(G.$t("快速将节点导入对应客户端进行使用")),1)]),Y("div",null,[se(ue,{class:"text-3xl text-gray-500-500"})])])]),_:1}),se(ce,{class:"flex cursor-pointer justify-between p-5",onClick:ne[13]||(ne[13]=$e=>Se(a).plan_id?Se(Gt).push("/plan/"+Se(a).plan_id):Se(Gt).push("/plan"))},{default:me(()=>{var $e;return[Y("div",mFe,[Y("div",null,[Y("div",gFe,he(($e=y.value)!=null&&$e.plan_id?G.$t("续费订阅"):G.$t("购买订阅")),1),Y("div",vFe,he(G.$t("对您当前的订阅进行购买")),1)]),Y("div",null,[se(ie,{class:"text-3xl text-gray-500-500"})])])]}),_:1}),se(ce,{class:"flex cursor-pointer justify-between p-5",onClick:ne[14]||(ne[14]=$e=>G.$router.push("/ticket"))},{default:me(()=>[Y("div",bFe,[Y("div",null,[Y("div",yFe,he(G.$t("遇到问题")),1),Y("div",xFe,he(G.$t("遇到问题可以通过工单与我们沟通")),1)]),Y("div",null,[se(fe,{class:"text-3xl text-gray-500-500"})])])]),_:1})]),_:1})]),_:1},8,["title"])])]}),_:1})}}}),wFe=Uu(CFe,[["__scopeId","data-v-94f2350e"]]),_Fe=Object.freeze(Object.defineProperty({__proto__:null,default:wFe},Symbol.toStringTag,{value:"Module"})),SFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},kFe=Y("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372m159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8c-.1-4.4-3.7-8-8.1-8"},null,-1),PFe=[kFe];function TFe(e,t){return ge(),ze("svg",SFe,[...PFe])}const EFe={name:"ant-design-pay-circle-outlined",render:TFe},RFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},AFe=Y("path",{fill:"currentColor",d:"M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7M157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9c43.6-18.4 89.9-27.8 137.6-27.8c47.8 0 94.1 9.3 137.6 27.8c42.1 17.8 79.9 43.4 112.4 75.9c10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82C277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8M934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4a352.6 352.6 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.6 352.6 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942C747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2"},null,-1),$Fe=[AFe];function IFe(e,t){return ge(),ze("svg",RFe,[...$Fe])}const OFe={name:"ant-design-transaction-outlined",render:IFe},MFe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},zFe=Y("path",{fill:"currentColor",d:"M19 17v2H7v-2s0-4 6-4s6 4 6 4m-3-9a3 3 0 1 0-3 3a3 3 0 0 0 3-3m3.2 5.06A5.6 5.6 0 0 1 21 17v2h3v-2s0-3.45-4.8-3.94M18 5a2.9 2.9 0 0 0-.89.14a5 5 0 0 1 0 5.72A2.9 2.9 0 0 0 18 11a3 3 0 0 0 0-6M8 10H5V7H3v3H0v2h3v3h2v-3h3Z"},null,-1),FFe=[zFe];function DFe(e,t){return ge(),ze("svg",MFe,[...FFe])}const LFe={name:"mdi-invite",render:DFe},BFe={class:"text-5xl font-normal"},NFe={class:"ml-2.5 text-xl text-gray-500 md:ml-5"},HFe={class:"text-gray-500"},jFe={class:"flex justify-between pb-1 pt-1"},UFe={class:"flex justify-between pb-1 pt-1"},VFe={key:0},WFe={key:1},qFe={class:"flex justify-between pb-1 pt-1"},KFe={class:"flex justify-between pb-1 pt-1"},GFe={class:"mt-2.5"},XFe={class:"mb-1"},YFe={class:"mt-2.5"},QFe={class:"mb-1"},JFe={class:"flex justify-end"},ZFe={class:"mt-2.5"},eDe={class:"mb-1"},tDe={class:"mt-2.5"},nDe={class:"mb-1"},oDe={class:"flex justify-end"},rDe=xe({__name:"index",setup(e){const t=Tn(),n=y=>mn.global.t(y),o=[{title:n("邀请码"),key:"code",render(y){const x=`${window.location.protocol}//${window.location.host}/#/register?code=${y.code}`;return v("div",[v("span",y.code),v(zt,{size:"small",onClick:()=>qs(x),quaternary:!0,type:"info"},{default:()=>n("复制链接")})])}},{title:n("创建时间"),key:"created_at",fixed:"right",align:"right",render(y){return Wo(y.created_at)}}],r=[{title:n("发放时间"),key:"created_at",render(y){return Wo(y.created_at)}},{title:n("佣金"),key:"get_amount",fixed:"right",align:"right",render(y){return sn(y.get_amount)}}],i=U(),a=U([]);async function s(){const y=await AJ(),{data:x}=y;i.value=x.codes,a.value=x.stat}const l=U([]),c=to({page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,50,100,150],onChange:y=>{c.page=y,u()},onUpdatePageSize:y=>{c.pageSize=y,c.page=1,u()}});async function u(){const y=await $J(c.page,c.pageSize),{data:x}=y;l.value=x}const d=U(!1);async function f(){d.value=!0;const{data:y}=await IJ();y===!0&&(window.$message.success(n("已生成")),S()),d.value=!1}const h=U(!1),p=U(),g=U(!1);async function m(){g.value=!0;const y=p.value;if(typeof y!="number"){window.$message.error(n("请输入正确的划转金额")),g.value=!1;return}const{data:x}=await OJ(y*100);x===!0&&(window.$message.success(n("划转成功")),h.value=!1,s()),g.value=!1}const b=U(!1),w=to({method:null,account:null}),C=U(!1);async function _(){if(C.value=!0,!w.method){window.$message.error(n("提现方式不能为空")),C.value=!1;return}if(!w.account){window.$message.error(n("提现账号不能为空")),C.value=!1;return}const y=w.method,x=w.account,{data:P}=await MJ({withdraw_method:y,withdraw_account:x});P===!0&&Gt.push("/ticket"),C.value=!1}function S(){s(),u()}return hn(()=>{S()}),(y,x)=>{const P=LFe,k=vV,T=OFe,R=EFe,E=Qi,q=vo,D=Du,B=pl,M=dr,K=DX,V=ni,ae=ck,pe=Ou,Z=bo;return ge(),We(Z,null,{default:me(()=>[se(q,{title:y.$t("我的邀请"),class:"rounded-md"},{"header-extra":me(()=>[se(P,{class:"text-4xl text-gray-500"})]),default:me(()=>{var N;return[Y("div",null,[Y("span",BFe,[se(k,{from:0,to:parseFloat(Se(sn)(a.value[4])),active:!0,precision:2,duration:500},null,8,["to"])]),Y("span",NFe,he((N=Se(t).appConfig)==null?void 0:N.currency),1)]),Y("div",HFe,he(y.$t("当前剩余佣金")),1),se(E,{class:"mt-2.5"},{default:me(()=>{var O;return[se(Se(zt),{size:"small",type:"primary",onClick:x[0]||(x[0]=ee=>h.value=!0)},{icon:me(()=>[se(T)]),default:me(()=>[nt(" "+he(y.$t("划转")),1)]),_:1}),(O=Se(t).appConfig)!=null&&O.withdraw_close?Ct("",!0):(ge(),We(Se(zt),{key:0,size:"small",type:"primary",onClick:x[1]||(x[1]=ee=>b.value=!0)},{icon:me(()=>[se(R)]),default:me(()=>[nt(" "+he(y.$t("推广佣金提现")),1)]),_:1}))]}),_:1})]}),_:1},8,["title"]),se(q,{class:"mt-4 rounded-md"},{default:me(()=>{var N,O,ee,G,ne,X;return[Y("div",jFe,[Y("div",null,he(y.$t("已注册用户数")),1),Y("div",null,he(y.$tc("{number} 人",{number:a.value[0]})),1)]),Y("div",UFe,[Y("div",null,he(y.$t("佣金比例")),1),(N=Se(t).appConfig)!=null&&N.commission_distribution_enable?(ge(),ze("div",VFe,he(`${Math.floor((((O=Se(t).appConfig)==null?void 0:O.commission_distribution_l1)||0)*a.value[3]/100)}%,${Math.floor((((ee=Se(t).appConfig)==null?void 0:ee.commission_distribution_l2)||0)*a.value[3]/100)}%,${Math.floor((((G=Se(t).appConfig)==null?void 0:G.commission_distribution_l3)||0)*a.value[3]/100)}%`),1)):(ge(),ze("div",WFe,he(a.value[3])+"%",1))]),Y("div",qFe,[Y("div",null,he(y.$t("确认中的佣金")),1),Y("div",null,he((ne=Se(t).appConfig)==null?void 0:ne.currency_symbol)+" "+he(Se(sn)(a.value[2])),1)]),Y("div",KFe,[Y("div",null,he(y.$t("累计获得佣金")),1),Y("div",null,he((X=Se(t).appConfig)==null?void 0:X.currency_symbol)+" "+he(Se(sn)(a.value[1])),1)])]}),_:1}),se(q,{title:y.$t("邀请码管理"),class:"mt-4 rounded-md"},{"header-extra":me(()=>[se(Se(zt),{size:"small",type:"primary",round:"",loading:d.value,onClick:f},{default:me(()=>[nt(he(y.$t("生成邀请码")),1)]),_:1},8,["loading"])]),default:me(()=>[se(D,{columns:o,data:i.value,bordered:!0},null,8,["data"])]),_:1},8,["title"]),se(q,{title:y.$t("佣金发放记录"),class:"mt-4 rounded-md"},{default:me(()=>[se(D,{columns:r,data:l.value,pagination:c},null,8,["data","pagination"])]),_:1},8,["title"]),se(V,{show:h.value,"onUpdate:show":x[6]||(x[6]=N=>h.value=N)},{default:me(()=>[se(q,{title:y.$t("划转"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-2.5 max-w-full w-150 md:mx-auto",closable:"",onClose:x[5]||(x[5]=N=>h.value=!1)},{footer:me(()=>[Y("div",JFe,[Y("div",null,[se(Se(zt),{onClick:x[3]||(x[3]=N=>h.value=!1)},{default:me(()=>[nt(he(y.$t("取消")),1)]),_:1}),se(Se(zt),{type:"primary",class:"ml-2.5",onClick:x[4]||(x[4]=N=>m()),loading:g.value,disabled:g.value},{default:me(()=>[nt(he(y.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:me(()=>[se(B,{type:"warning"},{default:me(()=>[nt(he(y.$tc("划转后的余额仅用于{title}消费使用",{title:Se(t).title})),1)]),_:1}),Y("div",GFe,[Y("div",XFe,he(y.$t("当前推广佣金余额")),1),se(M,{placeholder:Se(sn)(a.value[4]),type:"number",disabled:""},null,8,["placeholder"])]),Y("div",YFe,[Y("div",QFe,he(y.$t("划转金额")),1),se(K,{value:p.value,"onUpdate:value":x[2]||(x[2]=N=>p.value=N),min:0,placeholder:y.$t("请输入需要划转到余额的金额"),clearable:""},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),se(V,{show:b.value,"onUpdate:show":x[12]||(x[12]=N=>b.value=N)},{default:me(()=>[se(q,{title:y.$t("推广佣金划转至余额"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-2.5 max-w-full w-150 md:mx-auto"},{"header-extra":me(()=>[se(Se(zt),{class:"h-auto p-0.5",tertiary:"",size:"large",onClick:x[7]||(x[7]=N=>b.value=!1)},{icon:me(()=>[se(ae,{class:"cursor-pointer opacity-85"})]),_:1})]),footer:me(()=>[Y("div",oDe,[Y("div",null,[se(Se(zt),{onClick:x[10]||(x[10]=N=>b.value=!1)},{default:me(()=>[nt(he(y.$t("取消")),1)]),_:1}),se(Se(zt),{type:"primary",class:"ml-2.5",onClick:x[11]||(x[11]=N=>_()),loading:C.value,disabled:C.value},{default:me(()=>[nt(he(y.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:me(()=>{var N;return[Y("div",ZFe,[Y("div",eDe,he(y.$t("提现方式")),1),se(pe,{value:w.method,"onUpdate:value":x[8]||(x[8]=O=>w.method=O),options:(N=Se(t).appConfig)==null?void 0:N.withdraw_methods.map(O=>({label:O,value:O})),placeholder:y.$t("请选择提现方式")},null,8,["value","options","placeholder"])]),Y("div",tDe,[Y("div",nDe,he(y.$t("提现账号")),1),se(M,{value:w.account,"onUpdate:value":x[9]||(x[9]=O=>w.account=O),placeholder:y.$t("请输入提现账号"),type:"string"},null,8,["value","placeholder"])])]}),_:1},8,["title"])]),_:1},8,["show"])]),_:1})}}}),iDe=Object.freeze(Object.defineProperty({__proto__:null,default:rDe},Symbol.toStringTag,{value:"Module"})),aDe={class:""},sDe={class:"mb-1 text-base font-semibold"},lDe={class:"text-xs text-gray-500"},cDe=["innerHTML"],uDe=xe({__name:"index",setup(e){const t=Tn(),n=new Zu({html:!0}),o=f=>n.render(f);window.copy=f=>qs(f),window.jump=f=>a(f);const r=U(!1),i=U();async function a(f){const{data:h}=await GJ(f,t.lang);h&&(i.value=h),r.value=!0}const s=U(""),l=U(!0),c=U();async function u(){l.value=!0;const f=s.value,{data:h}=await KJ(f,t.lang);c.value=h,l.value=!1}function d(){u()}return hn(()=>{d()}),(f,h)=>{const p=dr,g=zt,m=gm,b=vl,w=Qi,C=$m,_=Am,S=vo,y=iK,x=x2,P=bo;return ge(),We(P,{"show-footer":!1},{default:me(()=>[se(m,null,{default:me(()=>[se(p,{placeholder:f.$t("使用文档"),value:s.value,"onUpdate:value":h[0]||(h[0]=k=>s.value=k),onKeyup:h[1]||(h[1]=Cs(k=>d(),["enter"]))},null,8,["placeholder","value"]),se(g,{type:"primary",ghost:"",onClick:h[2]||(h[2]=k=>d())},{default:me(()=>[nt(he(f.$t("搜索")),1)]),_:1})]),_:1}),l.value?(ge(),We(w,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(b,{height:"20px",width:"33%"}),se(b,{height:"20px",width:"66%"}),se(b,{height:"20px"})]),_:1})):Ct("",!0),(ge(!0),ze(rt,null,Fn(c.value,(k,T)=>(ge(),We(S,{key:T,title:T,class:"mt-5 rounded-md",contentStyle:"padding:0"},{default:me(()=>[se(_,{clickable:"",hoverable:""},{default:me(()=>[(ge(!0),ze(rt,null,Fn(k,R=>(ge(),We(C,{key:R.id,onClick:E=>a(R.id)},{default:me(()=>[Y("div",aDe,[Y("div",sDe,he(R.title),1),Y("div",lDe,he(f.$t("最后更新"))+" "+he(Se(Op)(R.updated_at)),1)])]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1032,["title"]))),128)),se(x,{show:r.value,"onUpdate:show":h[3]||(h[3]=k=>r.value=k),width:"80%",placement:"right"},{default:me(()=>{var k;return[se(y,{title:(k=i.value)==null?void 0:k.title,closable:""},{default:me(()=>{var T;return[Y("div",{innerHTML:o(((T=i.value)==null?void 0:T.body)||""),class:"custom-html-style markdown-body"},null,8,cDe)]}),_:1},8,["title"])]}),_:1},8,["show"])]),_:1})}}}),dDe=Object.freeze(Object.defineProperty({__proto__:null,default:uDe},Symbol.toStringTag,{value:"Module"})),fDe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},hDe=Y("path",{fill:"currentColor",d:"M11 18h2v-2h-2zm1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-14a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2a2 2 0 0 1 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5a4 4 0 0 0-4-4"},null,-1),pDe=[hDe];function mDe(e,t){return ge(),ze("svg",fDe,[...pDe])}const gDe={name:"mdi-help-circle-outline",render:mDe},vDe={class:"flex"},bDe={class:"flex-[1]"},yDe={class:"flex flex-[2] flex-shrink-0 text-center"},xDe={class:"flex flex-1 items-center justify-center"},CDe={class:"flex flex-1 items-center justify-center"},wDe={class:"flex-1"},_De={class:"flex"},SDe={class:"flex-[1] break-anywhere"},kDe={class:"flex flex-[2] flex-shrink-0 items-center text-center"},PDe={class:"flex flex-[1] items-center justify-center"},TDe={class:"flex-[1]"},EDe={class:"flex-[1]"},RDe={key:0},ADe={key:1},$De=xe({__name:"index",setup(e){const t=U([]),n=U(!0);async function o(){n.value=!0;const r=await ik(),{data:i}=r;t.value=i,n.value=!1}return hn(()=>{o()}),(r,i)=>{const a=vl,s=Qi,l=gDe,c=zu,u=Ti,d=$m,f=Am,h=Qc("router-link"),p=pl,g=bo;return ge(),We(g,null,{default:me(()=>[n.value?(ge(),We(s,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(a,{height:"20px",width:"33%"}),se(a,{height:"20px",width:"66%"}),se(a,{height:"20px"})]),_:1})):t.value.length>0?(ge(),We(f,{key:1,clickable:"",hoverable:""},{header:me(()=>[Y("div",vDe,[Y("div",bDe,he(r.$t("名称")),1),Y("div",yDe,[Y("div",xDe,[nt(he(r.$t("状态"))+" ",1),se(c,{placement:"bottom",trigger:"hover"},{trigger:me(()=>[se(l,{class:"ml-1 text-base"})]),default:me(()=>[Y("span",null,he(r.$t("五分钟内节点在线情况")),1)]),_:1})]),Y("div",CDe,[nt(he(r.$t("倍率"))+" ",1),se(c,{placement:"bottom",trigger:"hover"},{trigger:me(()=>[se(l,{class:"ml-1 text-base"})]),default:me(()=>[Y("span",null,he(r.$t("使用的流量将乘以倍率进行扣除")),1)]),_:1})]),Y("div",wDe,he(r.$t("标签")),1)])])]),default:me(()=>[(ge(!0),ze(rt,null,Fn(t.value,m=>(ge(),We(d,{key:m.id},{default:me(()=>[Y("div",_De,[Y("div",SDe,he(m.name),1),Y("div",kDe,[Y("div",PDe,[Y("div",{class:qn(["h-1.5 w-1.5 rounded-full",m.is_online?"bg-blue-500":"bg-red-500"])},null,2)]),Y("div",TDe,[se(u,{size:"small",round:"",class:""},{default:me(()=>[nt(he(m.rate)+" x ",1)]),_:2},1024)]),Y("div",EDe,[m.tags&&m.tags.length>0?(ge(),ze("div",RDe,[(ge(!0),ze(rt,null,Fn(m.tags,b=>(ge(),We(u,{size:"small",round:"",key:b},{default:me(()=>[nt(he(b),1)]),_:2},1024))),128))])):(ge(),ze("span",ADe,"-"))])])])]),_:2},1024))),128))]),_:1})):(ge(),We(p,{key:2,type:"info"},{default:me(()=>[Y("div",null,[nt(he(r.$t("没有可用节点,如果您未订阅或已过期请"))+" ",1),se(h,{class:"font-semibold",to:"/plan"},{default:me(()=>[nt(he(r.$t("订阅")),1)]),_:1}),nt("。 ")])]),_:1}))]),_:1})}}}),IDe=Object.freeze(Object.defineProperty({__proto__:null,default:$De},Symbol.toStringTag,{value:"Module"})),ODe=xe({__name:"index",setup(e){const t=s=>mn.global.t(s),n=[{title:t("# 订单号"),key:"trade_no",render(s){return v(zt,{text:!0,class:"color-primary",onClick:()=>Gt.push(`/order/${s.trade_no}`)},{default:()=>s.trade_no})}},{title:t("周期"),key:"period",render(s){return v(Ti,{round:!0,size:"small"},{default:()=>t($k[s.period])})}},{title:t("订单金额"),key:"total_amount",render(s){return sn(s.total_amount)}},{title:t("订单状态"),key:"status",render(s){const l=t(kze[s.status]),c=v("div",{class:["h-1.5 w-1.5 rounded-full mr-1.2",s.status===3?"bg-green-500":"bg-red-500"]});return v("div",{class:"flex items-center"},[c,l])}},{title:t("创建时间"),key:"created_at",render(s){return Wo(s.created_at)}},{title:t("操作"),key:"actions",fixed:"right",render(s){const l=v(zt,{text:!0,type:"primary",onClick:()=>Gt.push(`/order/${s.trade_no}`)},{default:()=>t("查看详情")}),c=v(zt,{text:!0,type:"primary",disabled:s.status!==0,onClick:()=>o(s.trade_no)},{default:()=>t("取消")}),u=v(Yi,{vertical:!0});return v("div",[l,u,c])}}];async function o(s){window.$dialog.confirm({title:t("注意"),type:"info",content:t("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:l}=await Hu(s);l===!0&&(window.$message.success(t("取消成功")),a())}})}const r=U([]);async function i(){const s=await Bm(),{data:l}=s;r.value=l}async function a(){i()}return hn(()=>{a()}),(s,l)=>{const c=Du,u=bo;return ge(),We(u,null,{default:me(()=>[se(c,{columns:n,data:r.value,bordered:!1,"scroll-x":800},null,8,["data"])]),_:1})}}}),MDe=Object.freeze(Object.defineProperty({__proto__:null,default:ODe},Symbol.toStringTag,{value:"Module"})),zDe={class:"inline-block",viewBox:"0 0 48 48",width:"1em",height:"1em"},FDe=Y("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[Y("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6S6 14.059 6 24s8.059 18 18 18m0 2c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20"}),Y("path",{d:"M34.67 16.259a1 1 0 0 1 .072 1.412L21.386 32.432l-8.076-7.709a1 1 0 0 1 1.38-1.446l6.59 6.29L33.259 16.33a1 1 0 0 1 1.413-.07"})],-1),DDe=[FDe];function LDe(e,t){return ge(),ze("svg",zDe,[...DDe])}const Ik={name:"healthicons-yes-outline",render:LDe},BDe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},NDe=Y("path",{fill:"currentColor",d:"M952.08 1.552L529.039 116.144c-10.752 2.88-34.096 2.848-44.815-.16L72.08 1.776C35.295-8.352-.336 18.176-.336 56.048V834.16c0 32.096 24.335 62.785 55.311 71.409l412.16 114.224c11.025 3.055 25.217 4.751 39.937 4.751c10.095 0 25.007-.784 38.72-4.528l423.023-114.592c31.056-8.4 55.504-39.024 55.504-71.248V56.048c.016-37.84-35.616-64.464-72.24-54.496zM479.999 956.943L71.071 843.887c-3.088-.847-7.408-6.496-7.408-9.712V66.143L467.135 177.68c3.904 1.088 8.288 1.936 12.864 2.656zm480.336-122.767c0 3.152-5.184 8.655-8.256 9.503L544 954.207v-775.92c.592-.144 1.2-.224 1.792-.384L960.32 65.775v768.4h.016zM641.999 366.303c2.88 0 5.81-.367 8.69-1.184l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.128 16.815 23.344 30.783 23.344m.002 192.001c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473c-4.783-17.008-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.457c3.968 14.127 16.815 23.36 30.783 23.36m.002 192c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16L633.38 687.487c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.113 16.815 23.345 30.783 23.345M394.629 303.487l-223.934-63.025c-16.912-4.72-34.688 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.937 63.024a31.8 31.8 0 0 0 8.687 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999l-223.934-63.025c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999L170.699 624.46c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-17.008-5.12-34.657-22.16-39.473"},null,-1),HDe=[NDe];function jDe(e,t){return ge(),ze("svg",BDe,[...HDe])}const UDe={name:"simple-line-icons-book-open",render:jDe},VDe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},WDe=Y("path",{fill:"currentColor",d:"M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8m-.615 12.66h-1.34l-3.24-4.54l1.341-1.25l2.569 2.4l5.141-5.931l1.34.94z"},null,-1),qDe=[WDe];function KDe(e,t){return ge(),ze("svg",VDe,[...qDe])}const GDe={name:"dashicons-yes-alt",render:KDe},XDe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},YDe=Y("path",{fill:"currentColor",d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8s-8-3.58-8-8s3.58-8 8-8m1.13 9.38l.35-6.46H8.52l.35 6.46zm-.09 3.36c.24-.23.37-.55.37-.96c0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35s-.82.12-1.07.35s-.37.55-.37.97c0 .41.13.73.38.96c.26.23.61.34 1.06.34s.8-.11 1.05-.34"},null,-1),QDe=[YDe];function JDe(e,t){return ge(),ze("svg",XDe,[...QDe])}const ZDe={name:"dashicons-warning",render:JDe},eLe={class:"relative max-w-full w-75",style:{"padding-bottom":"100%"}},tLe={class:"p-2.5 text-center"},nLe={key:1,class:"flex flex-wrap"},oLe={class:"w-full md:flex-[2]"},rLe={key:2,class:"mt-2.5 text-xl"},iLe={key:3,class:"text-sm text-[rgba(0,0,0,0.45)]"},aLe={class:"flex"},sLe={class:"flex-[1] text-gray-400"},lLe={class:"flex-[2]"},cLe={class:"flex"},uLe={class:"mt-1 flex-[1] text-gray-400"},dLe={class:"flex-[2]"},fLe={class:"flex"},hLe={class:"mb-1 mt-1 flex-[1] text-gray-400"},pLe={class:"flex-[2]"},mLe={class:"flex"},gLe={class:"flex-[1] text-gray-400"},vLe={class:"flex-[2]"},bLe={key:0,class:"flex"},yLe={class:"flex-[1] text-gray-400"},xLe={class:"flex-[2]"},CLe={key:1,class:"flex"},wLe={class:"flex-[1] text-gray-400"},_Le={class:"flex-[2]"},SLe={key:2,class:"flex"},kLe={class:"flex-[1] text-gray-400"},PLe={class:"flex-[2]"},TLe={key:3,class:"flex"},ELe={class:"flex-[1] text-gray-400"},RLe={class:"flex-[2]"},ALe={key:4,class:"flex"},$Le={class:"flex-[1] text-gray-400"},ILe={class:"flex-[2]"},OLe={class:"flex"},MLe={class:"mt-1 flex-[1] text-gray-400"},zLe={class:"flex-[2]"},FLe=["onClick"],DLe={class:"flex-[1] whitespace-nowrap"},LLe={class:"flex-[1]"},BLe=["src"],NLe={key:0,class:"w-full md:flex-[1] md:pl-5"},HLe={class:"mt-5 rounded-md bg-gray-800 p-5 text-white"},jLe={class:"text-lg font-semibold"},ULe={class:"flex border-gray-600 border-b pb-4 pt-4"},VLe={class:"flex-[2]"},WLe={class:"flex-[1] text-right color-#f8f9fa"},qLe={key:0,class:"border-[#646669] border-b pb-4 pt-4"},KLe={class:"color-#f8f9fa41"},GLe={class:"pt-4 text-right"},XLe={key:1,class:"border-[#646669] border-b pb-4 pt-4"},YLe={class:"color-#f8f9fa41"},QLe={class:"pt-4 text-right"},JLe={key:2,class:"border-[#646669] border-b pb-4 pt-4"},ZLe={class:"color-#f8f9fa41"},eBe={class:"pt-4 text-right"},tBe={key:3,class:"border-[#646669] border-b pb-4 pt-4"},nBe={class:"color-#f8f9fa41"},oBe={class:"pt-4 text-right"},rBe={key:4,class:"border-[#646669] border-b pb-4 pt-4"},iBe={class:"color-#f8f9fa41"},aBe={class:"pt-4 text-right"},sBe={class:"pb-4 pt-4"},lBe={class:"color-#f8f9fa41"},cBe={class:"text-4xl font-semibold"},uBe=xe({__name:"detail",setup(e){const t=Tn(),n=Ji(),o=za(),r=x=>mn.global.t(x);function i(x){switch(x){case 1:return{icon:"info",title:r("开通中"),subTitle:r("订单系统正在进行处理,请稍等1-3分钟。")};case 2:return{icon:"info",title:r("已取消"),subTitle:r("订单由于超时支付已被取消。")};case 3:case 4:return{icon:"info",title:r("已完成"),subTitle:r("订单已支付并开通。")}}return{icon:"error",title:r("意料之外"),subTitle:r("意料之外的状态")}}async function a(){window.$dialog.confirm({title:r("注意"),type:"info",content:r("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:x}=await Hu(s.value);x===!0&&(window.$message.success(r("取消成功")),y())}})}const s=U(""),l=U(),c=U(),u=U(!0);async function d(){u.value=!0;const{data:x}=await EJ(s.value);l.value=x,clearInterval(c.value),x.status===Os.PENDING&&p(),[Os.PENDING,Os.PROCESSING].includes(x.status)&&(c.value=setInterval(_,1500)),u.value=!1}const f=U([]),h=U(0);async function p(){const{data:x}=await LJ();f.value=x}function g(){var P,k,T,R,E;return(((P=l.value)==null?void 0:P.plan[l.value.period])||0)-(((k=l.value)==null?void 0:k.balance_amount)||0)-(((T=l.value)==null?void 0:T.surplus_amount)||0)+(((R=l.value)==null?void 0:R.refund_amount)||0)-(((E=l.value)==null?void 0:E.discount_amount)||0)}function m(){const x=f.value[h.value];return(x!=null&&x.handling_fee_percent||x!=null&&x.handling_fee_fixed)&&g()?g()*parseFloat(x.handling_fee_percent||"0")/100+((x==null?void 0:x.handling_fee_fixed)||0):0}async function b(){const x=f.value[h.value],{data:P,type:k}=await BJ(s.value,x==null?void 0:x.id);P&&(P===!0?(window.$message.info(r("支付成功")),setTimeout(()=>{S()},500)):k===0?(w.value=!0,C.value=P):k===1&&(window.$message.info(r("正在前往收银台")),setTimeout(()=>{window.location.href=P},500)))}const w=U(!1),C=U("");async function _(){var P;const{data:x}=await RJ(s.value);x!==((P=l.value)==null?void 0:P.status)&&S()}async function S(){y(),n.getUserInfo()}async function y(){d(),w.value=!1}return hn(()=>{typeof o.params.trade_no=="string"&&(s.value=o.params.trade_no),y()}),Oa(()=>{clearInterval(c.value)}),(x,P)=>{const k=X2,T=Yi,R=vo,E=ni,q=vl,D=Qi,B=ZDe,M=GDe,K=UDe,V=zt,ae=Ik,pe=bo;return ge(),We(pe,null,{default:me(()=>{var Z,N,O,ee,G,ne,X,ce,L,be,Oe,je,F,A,re,we,oe,ve,ke,$,H,te,Ce,de,ue,ie;return[se(E,{show:w.value,"onUpdate:show":P[0]||(P[0]=fe=>w.value=fe),onOnAfterLeave:P[1]||(P[1]=fe=>C.value="")},{default:me(()=>[se(R,{"content-style":"padding:10px",class:"w-auto",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:me(()=>[Y("div",eLe,[C.value?(ge(),We(k,{key:0,value:C.value,class:"pay-qrcode absolute h-full! w-full!",size:"400"},null,8,["value"])):Ct("",!0)]),se(T,{class:"m-0!"}),Y("div",tLe,he(x.$t("等待支付中")),1)]),_:1})]),_:1},8,["show"]),u.value?(ge(),We(D,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(q,{height:"20px",width:"33%"}),se(q,{height:"20px",width:"66%"}),se(q,{height:"20px"})]),_:1})):(ge(),ze("div",nLe,[Y("div",oLe,[((Z=l.value)==null?void 0:Z.status)!==0?(ge(),We(R,{key:0,class:"flex text-center","items-center":"","border-rounded-5":""},{default:me(()=>{var fe,Fe,De,Me,Ne,et;return[((fe=l.value)==null?void 0:fe.status)===2?(ge(),We(B,{key:0,class:"text-9xl color-#f9a314"})):Ct("",!0),((Fe=l.value)==null?void 0:Fe.status)===3||((De=l.value)==null?void 0:De.status)==4?(ge(),We(M,{key:1,class:"text-9xl color-#48bc19"})):Ct("",!0),(Me=l.value)!=null&&Me.status?(ge(),ze("div",rLe,he(i(l.value.status).title),1)):Ct("",!0),(Ne=l.value)!=null&&Ne.status?(ge(),ze("div",iLe,he(i(l.value.status).subTitle),1)):Ct("",!0),((et=l.value)==null?void 0:et.status)===3?(ge(),We(V,{key:4,"icon-placement":"left",strong:"",color:"#db4619",size:"small",round:"",class:"mt-8",onClick:P[2]||(P[2]=$e=>x.$router.push("/knowledge"))},{icon:me(()=>[se(K)]),default:me(()=>[nt(" "+he(x.$t("查看使用教程")),1)]),_:1})):Ct("",!0)]}),_:1})):Ct("",!0),se(R,{class:"mt-5 rounded-md",title:x.$t("商品信息")},{default:me(()=>{var fe,Fe,De;return[Y("div",aLe,[Y("div",sLe,he(x.$t("产品名称"))+":",1),Y("div",lLe,he((fe=l.value)==null?void 0:fe.plan.name),1)]),Y("div",cLe,[Y("div",uLe,he(x.$t("类型/周期"))+":",1),Y("div",dLe,he((Fe=l.value)!=null&&Fe.period?x.$t(Se($k)[l.value.period]):""),1)]),Y("div",fLe,[Y("div",hLe,he(x.$t("产品流量"))+":",1),Y("div",pLe,he((De=l.value)==null?void 0:De.plan.transfer_enable)+" GB",1)])]}),_:1},8,["title"]),se(R,{class:"mt-5 rounded-md",title:x.$t("订单信息")},{"header-extra":me(()=>{var fe;return[((fe=l.value)==null?void 0:fe.status)===0?(ge(),We(V,{key:0,color:"#db4619",size:"small",round:"",strong:"",onClick:P[3]||(P[3]=Fe=>a())},{default:me(()=>[nt(he(x.$t("关闭订单")),1)]),_:1})):Ct("",!0)]}),default:me(()=>{var fe,Fe,De,Me,Ne,et,$e,Xe,gt,Q,ye;return[Y("div",mLe,[Y("div",gLe,he(x.$t("订单号"))+":",1),Y("div",vLe,he((fe=l.value)==null?void 0:fe.trade_no),1)]),(Fe=l.value)!=null&&Fe.discount_amount&&((De=l.value)==null?void 0:De.discount_amount)>0?(ge(),ze("div",bLe,[Y("div",yLe,he(x.$t("优惠金额")),1),Y("div",xLe,he(Se(sn)(l.value.discount_amount)),1)])):Ct("",!0),(Me=l.value)!=null&&Me.surplus_amount&&((Ne=l.value)==null?void 0:Ne.surplus_amount)>0?(ge(),ze("div",CLe,[Y("div",wLe,he(x.$t("旧订阅折抵金额")),1),Y("div",_Le,he(Se(sn)(l.value.surplus_amount)),1)])):Ct("",!0),(et=l.value)!=null&&et.refund_amount&&(($e=l.value)==null?void 0:$e.refund_amount)>0?(ge(),ze("div",SLe,[Y("div",kLe,he(x.$t("退款金额")),1),Y("div",PLe,he(Se(sn)(l.value.refund_amount)),1)])):Ct("",!0),(Xe=l.value)!=null&&Xe.balance_amount&&((gt=l.value)==null?void 0:gt.balance_amount)>0?(ge(),ze("div",TLe,[Y("div",ELe,he(x.$t("余额支付 ")),1),Y("div",RLe,he(Se(sn)(l.value.balance_amount)),1)])):Ct("",!0),((Q=l.value)==null?void 0:Q.status)===0&&m()>0?(ge(),ze("div",ALe,[Y("div",$Le,he(x.$t("支付手续费"))+":",1),Y("div",ILe,he(Se(sn)(m())),1)])):Ct("",!0),Y("div",OLe,[Y("div",MLe,he(x.$t("创建时间"))+":",1),Y("div",zLe,he(Se(Wo)((ye=l.value)==null?void 0:ye.created_at)),1)])]}),_:1},8,["title"]),((N=l.value)==null?void 0:N.status)===0?(ge(),We(R,{key:1,title:x.$t("支付方式"),class:"mt-5","content-style":"padding:0"},{default:me(()=>[(ge(!0),ze(rt,null,Fn(f.value,(fe,Fe)=>(ge(),ze("div",{key:fe.id,class:qn(["border-2 rounded-md p-5 border-solid flex",h.value===Fe?"border-primary":"border-transparent"]),onClick:De=>h.value=Fe},[Y("div",DLe,he(fe.name),1),Y("div",LLe,[Y("img",{class:"max-h-8",src:fe.icon},null,8,BLe)])],10,FLe))),128))]),_:1},8,["title"])):Ct("",!0)]),((O=l.value)==null?void 0:O.status)===0?(ge(),ze("div",NLe,[Y("div",HLe,[Y("div",jLe,he(x.$t("订单总额")),1),Y("div",ULe,[Y("div",VLe,he((ee=l.value)==null?void 0:ee.plan.name),1),Y("div",WLe,he((G=Se(t).appConfig)==null?void 0:G.currency_symbol)+he(((ne=l.value)==null?void 0:ne.period)&&Se(sn)((X=l.value)==null?void 0:X.plan[l.value.period])),1)]),(ce=l.value)!=null&&ce.surplus_amount&&((L=l.value)==null?void 0:L.surplus_amount)>0?(ge(),ze("div",qLe,[Y("div",KLe,he(x.$t("折抵")),1),Y("div",GLe," - "+he((be=Se(t).appConfig)==null?void 0:be.currency_symbol)+he(Se(sn)((Oe=l.value)==null?void 0:Oe.surplus_amount)),1)])):Ct("",!0),(je=l.value)!=null&&je.discount_amount&&((F=l.value)==null?void 0:F.discount_amount)>0?(ge(),ze("div",XLe,[Y("div",YLe,he(x.$t("折扣")),1),Y("div",QLe," - "+he((A=Se(t).appConfig)==null?void 0:A.currency_symbol)+he(Se(sn)((re=l.value)==null?void 0:re.discount_amount)),1)])):Ct("",!0),(we=l.value)!=null&&we.refund_amount&&((oe=l.value)==null?void 0:oe.refund_amount)>0?(ge(),ze("div",JLe,[Y("div",ZLe,he(x.$t("退款")),1),Y("div",eBe," - "+he((ve=Se(t).appConfig)==null?void 0:ve.currency_symbol)+he(Se(sn)((ke=l.value)==null?void 0:ke.refund_amount)),1)])):Ct("",!0),($=l.value)!=null&&$.balance_amount&&((H=l.value)==null?void 0:H.balance_amount)>0?(ge(),ze("div",tBe,[Y("div",nBe,he(x.$t("余额支付")),1),Y("div",oBe," - "+he((te=Se(t).appConfig)==null?void 0:te.currency_symbol)+he(Se(sn)((Ce=l.value)==null?void 0:Ce.balance_amount)),1)])):Ct("",!0),m()>0?(ge(),ze("div",rBe,[Y("div",iBe,he(x.$t("支付手续费")),1),Y("div",aBe," + "+he((de=Se(t).appConfig)==null?void 0:de.currency_symbol)+he(Se(sn)(m())),1)])):Ct("",!0),Y("div",sBe,[Y("div",lBe,he(x.$t("总计")),1),Y("div",cBe,he((ue=Se(t).appConfig)==null?void 0:ue.currency_symbol)+" "+he(Se(sn)(g()+m()))+" "+he((ie=Se(t).appConfig)==null?void 0:ie.currency),1)]),se(V,{type:"primary",class:"w-full text-white","icon-placement":"left",strong:"",onClick:P[4]||(P[4]=fe=>b())},{icon:me(()=>[se(ae)]),default:me(()=>[nt(" "+he(x.$t("结账")),1)]),_:1})])])):Ct("",!0)]))]}),_:1})}}}),dBe=Object.freeze(Object.defineProperty({__proto__:null,default:uBe},Symbol.toStringTag,{value:"Module"})),fBe={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},hBe=Y("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),pBe=Y("path",{fill:"currentColor",d:"m32.283 16.302l1.414 1.415l-15.98 15.98l-1.414-1.414z"},null,-1),mBe=Y("path",{fill:"currentColor",d:"m17.717 16.302l15.98 15.98l-1.414 1.415l-15.98-15.98z"},null,-1),gBe=[hBe,pBe,mBe];function vBe(e,t){return ge(),ze("svg",fBe,[...gBe])}const Ok={name:"ei-close-o",render:vBe},bBe={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},yBe=Y("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),xBe=Y("path",{fill:"currentColor",d:"m23 32.4l-8.7-8.7l1.4-1.4l7.3 7.3l11.3-11.3l1.4 1.4z"},null,-1),CBe=[yBe,xBe];function wBe(e,t){return ge(),ze("svg",bBe,[...CBe])}const Mk={name:"ei-check",render:wBe},_Be={class:"ml-auto mr-auto max-w-1200 w-full"},SBe={class:"m-3 mb-1 mt-1 text-3xl font-normal"},kBe={class:"card-container mt-2.5 md:mt-10"},PBe=["onClick"],TBe={class:"vertical-bottom"},EBe={class:"text-3xl font-semibold"},RBe={class:"pl-1 text-base text-gray-500"},ABe={key:0},$Be=["innerHTML"],IBe=xe({__name:"index",setup(e){const t=Tn(),n=d=>mn.global.t(d),o=new Zu({html:!0}),r=d=>o.render(d),i=U(0),a=[{value:0,label:n("全部")},{value:1,label:n("按周期")},{value:2,label:n("按流量")}],s=U([]),l=U([]);ft([l,i],d=>{s.value=d[0].filter(f=>{if(d[1]===0)return 1;if(d[1]===1)return!((f.onetime_price||0)>0);if(d[1]===2)return(f.onetime_price||0)>0})});async function c(){const{data:d}=await TJ();d.forEach(f=>{const h=u(f);f.price=h.price,f.cycle=h.cycle}),l.value=d}hn(()=>{c()});function u(d){return d.onetime_price!==null?{price:d.onetime_price/100,cycle:n("一次性")}:d.month_price!==null?{price:d.month_price/100,cycle:n("月付")}:d.quarter_price!==null?{price:d.quarter_price/100,cycle:n("季付")}:d.half_year_price!==null?{price:d.half_year_price/100,cycle:n("半年付")}:d.year_price!==null?{price:d.year_price/100,cycle:n("年付")}:d.two_year_price!==null?{price:d.two_year_price/100,cycle:n("两年付")}:d.three_year_price!==null?{price:d.three_year_price/100,cycle:n("三年付")}:{price:0,cycle:n("错误")}}return(d,f)=>{const h=sW,p=XS,g=Mk,m=Ok,b=Xo,w=zt,C=vo,_=bo;return ge(),We(_,null,{default:me(()=>[Y("div",_Be,[Y("h2",SBe,he(d.$t("选择最适合你的计划")),1),se(p,{value:i.value,"onUpdate:value":f[0]||(f[0]=S=>i.value=S),name:"plan_select",class:""},{default:me(()=>[(ge(),ze(rt,null,Fn(a,S=>se(h,{key:S.value,value:S.value,label:S.label,style:{background:"--n-color"}},null,8,["value","label"])),64))]),_:1},8,["value"]),Y("section",kBe,[(ge(!0),ze(rt,null,Fn(s.value,S=>(ge(),ze("div",{class:"card-item min-w-75 cursor-pointer",key:S.id,onClick:y=>d.$router.push("/plan/"+S.id)},[se(C,{title:S.name,hoverable:"",class:"max-w-full w-375"},{"header-extra":me(()=>{var y;return[Y("div",TBe,[Y("span",EBe,he((y=Se(t).appConfig)==null?void 0:y.currency_symbol)+" "+he(S.price),1),Y("span",RBe," /"+he(S.cycle),1)])]}),action:me(()=>[se(w,{strong:"",secondary:"",type:"primary"},{default:me(()=>[nt(he(d.$t("立即订阅")),1)]),_:1})]),default:me(()=>[Se(fA)(S.content)?(ge(),ze("div",ABe,[(ge(!0),ze(rt,null,Fn(JSON.parse(S.content),(y,x)=>(ge(),ze("div",{key:x,class:qn(["vertical-center flex items-center",y.support?"":"opacity-30"])},[se(b,{size:"30",class:"flex items-center text-[--primary-color]"},{default:me(()=>[y.support?(ge(),We(g,{key:0})):(ge(),We(m,{key:1}))]),_:2},1024),Y("div",null,he(y.feature),1)],2))),128))])):(ge(),ze("div",{key:1,innerHTML:r(S.content||""),class:"markdown-body"},null,8,$Be))]),_:2},1032,["title"])],8,PBe))),128))])])]),_:1})}}}),OBe=Uu(IBe,[["__scopeId","data-v-16d7c058"]]),MBe=Object.freeze(Object.defineProperty({__proto__:null,default:OBe},Symbol.toStringTag,{value:"Module"})),zBe={class:"inline-block",viewBox:"0 0 576 512",width:"1em",height:"1em"},FBe=Y("path",{fill:"currentColor",d:"M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64v-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6v-64c0-35.3-28.7-64-64-64zm64 112v160c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16m-32-16c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v192c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32z"},null,-1),DBe=[FBe];function LBe(e,t){return ge(),ze("svg",zBe,[...DBe])}const BBe={name:"fa6-solid-ticket",render:LBe},NBe={key:1,class:"grid grid-cols-1 lg:grid-cols-2 gap-5 mt-5"},HBe={class:"space-y-5"},jBe={key:0},UBe=["innerHTML"],VBe=["onClick"],WBe={class:"space-y-5"},qBe={class:"bg-gray-800 rounded-lg p-5 text-white"},KBe={class:"flex items-center gap-3"},GBe=["placeholder"],XBe={class:"bg-gray-800 rounded-lg p-5 text-white space-y-4"},YBe={class:"text-lg font-semibold"},QBe={class:"flex justify-between items-center py-3 border-b border-gray-600"},JBe={class:"font-semibold"},ZBe={key:0,class:"flex justify-between items-center py-3 border-b border-gray-600"},e9e={class:"text-gray-300"},t9e={class:"text-sm text-gray-400"},n9e={class:"font-semibold text-green-400"},o9e={class:"py-3"},r9e={class:"text-gray-300 mb-2"},i9e={class:"text-3xl font-bold"},a9e=xe({__name:"detail",setup(e){const t=Tn(),n=Ji(),o=za(),r=V=>mn.global.t(V),i=U(Number(o.params.plan_id)),a=U(),s=U(!0),l=U(),c=U(0),u={month_price:r("月付"),quarter_price:r("季付"),half_year_price:r("半年付"),year_price:r("年付"),two_year_price:r("两年付"),three_year_price:r("三年付"),onetime_price:r("一次性"),reset_price:r("流量重置包")},d=U(""),f=U(!1),h=U(),p=U(!1),g=I(()=>a.value?Object.entries(u).filter(([V])=>a.value[V]!==null&&a.value[V]!==void 0).map(([V,ae])=>({name:ae,key:V})):[]),m=I(()=>{var V;return((V=t.appConfig)==null?void 0:V.currency_symbol)||"¥"}),b=I(()=>{var V;return(V=g.value[c.value])==null?void 0:V.key}),w=I(()=>!a.value||!b.value?0:a.value[b.value]||0),C=I(()=>{if(!h.value||!w.value)return 0;const{type:V,value:ae}=h.value;return V===1?ae:Math.floor(ae*w.value/100)}),_=I(()=>Math.max(0,w.value-C.value)),S=I(()=>{var ae;const V=(ae=a.value)==null?void 0:ae.content;if(!V)return!1;try{return JSON.parse(V),!0}catch{return!1}}),y=I(()=>{var V;if(!S.value)return[];try{return JSON.parse(((V=a.value)==null?void 0:V.content)||"[]")}catch{return[]}}),x=I(()=>{var ae;return S.value||!((ae=a.value)!=null&&ae.content)?"":new Zu({html:!0}).render(a.value.content)}),P=V=>{var ae;return sn(((ae=a.value)==null?void 0:ae[V])||0)},k=async()=>{if(d.value.trim()){f.value=!0;try{const{data:V}=await HJ(d.value,i.value);V&&(h.value=V,window.$message.success(r("优惠券验证成功")))}catch{h.value=void 0}finally{f.value=!1}}},T=async()=>{var ae;const V=(ae=l.value)==null?void 0:ae.find(pe=>pe.status===0);if(V)return R(V.trade_no);if(E())return q();await D()},R=V=>{window.$dialog.confirm({title:r("注意"),type:"info",content:r("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:r("确认取消"),negativeText:r("返回我的订单"),async confirm(){const{data:ae}=await Hu(V);ae&&await D()},cancel:()=>Gt.push("/order")})},E=()=>n.plan_id&&n.plan_id!=i.value&&(n.expired_at===null||n.expired_at>=Math.floor(Date.now()/1e3)),q=()=>{window.$dialog.confirm({title:r("注意"),type:"info",content:r("请注意,变更订阅会导致当前订阅被覆盖。"),confirm:()=>D()})},D=async()=>{var V;if(b.value){p.value=!0;try{const{data:ae}=await ak(i.value,b.value,(V=h.value)==null?void 0:V.code);ae&&(window.$message.success(r("订单提交成功,正在跳转支付")),setTimeout(()=>Gt.push("/order/"+ae),500))}finally{p.value=!1}}},B=async()=>{s.value=!0;try{const{data:V}=await NJ(i.value);V?a.value=V:Gt.push("/plan")}finally{s.value=!1}},M=async()=>{const{data:V}=await Bm();l.value=V};return hn(async()=>{await Promise.all([B(),M()])}),(V,ae)=>{const pe=vl,Z=Qi,N=Mk,O=Ok,ee=Xo,G=vo,ne=Yi,X=BBe,ce=zt,L=Ik,be=bo;return ge(),We(be,null,{default:me(()=>{var Oe,je,F;return[s.value?(ge(),We(Z,{key:0,vertical:"",class:"mt-5"},{default:me(()=>[se(pe,{height:"20px",width:"33%"}),se(pe,{height:"20px",width:"66%"}),se(pe,{height:"20px"})]),_:1})):(ge(),ze("div",NBe,[Y("div",HBe,[se(G,{title:(Oe=a.value)==null?void 0:Oe.name,class:"rounded-lg"},{default:me(()=>[S.value?(ge(),ze("div",jBe,[(ge(!0),ze(rt,null,Fn(y.value,(A,re)=>(ge(),ze("div",{key:re,class:qn(["flex items-center gap-3 py-2",A.support?"":"opacity-50"])},[se(ee,{size:"20",class:qn(A.support?"text-green-500":"text-red-500")},{default:me(()=>[A.support?(ge(),We(N,{key:0})):(ge(),We(O,{key:1}))]),_:2},1032,["class"]),Y("span",null,he(A.feature),1)],2))),128))])):(ge(),ze("div",{key:1,innerHTML:x.value,class:"markdown-body"},null,8,UBe))]),_:1},8,["title"]),se(G,{title:V.$t("付款周期"),class:"rounded-lg","content-style":"padding:0"},{default:me(()=>[(ge(!0),ze(rt,null,Fn(g.value,(A,re)=>(ge(),ze("div",{key:A.key},[Y("div",{class:qn(["flex justify-between items-center p-5 text-base cursor-pointer border-2 transition-all duration-200 border-solid rounded-lg"," dark:hover:bg-primary/20",re===c.value?"border-primary dark:bg-primary/20":"border-transparent"]),onClick:we=>c.value=re},[Y("div",{class:qn(["font-medium transition-colors",re===c.value?" dark:text-primary-400":"text-gray-900 dark:text-gray-100"])},he(A.name),3),Y("div",{class:qn(["text-lg font-semibold transition-colors",re===c.value?"text-primary-600 dark:text-primary-400":"text-gray-700 dark:text-gray-300"])},he(m.value)+he(P(A.key)),3)],10,VBe),red.value=A),placeholder:r("有优惠券?"),class:"flex-1 bg-transparent border-none outline-none text-white placeholder-gray-400"},null,8,GBe),[[AT,d.value]]),se(ce,{type:"primary",loading:f.value,disabled:f.value||!d.value.trim(),onClick:k},{icon:me(()=>[se(X)]),default:me(()=>[nt(" "+he(V.$t("验证")),1)]),_:1},8,["loading","disabled"])])]),Y("div",XBe,[Y("h3",YBe,he(V.$t("订单总额")),1),Y("div",QBe,[Y("span",null,he((je=a.value)==null?void 0:je.name),1),Y("span",JBe,he(m.value)+he(P(b.value)),1)]),h.value&&C.value>0?(ge(),ze("div",ZBe,[Y("div",null,[Y("div",e9e,he(V.$t("折扣")),1),Y("div",t9e,he(h.value.name),1)]),Y("span",n9e,"-"+he(m.value)+he(Se(sn)(C.value)),1)])):Ct("",!0),Y("div",o9e,[Y("div",r9e,he(V.$t("总计")),1),Y("div",i9e,he(m.value)+he(Se(sn)(_.value))+" "+he((F=Se(t).appConfig)==null?void 0:F.currency),1)]),se(ce,{type:"primary",size:"large",class:"w-full",loading:p.value,disabled:p.value,onClick:T},{icon:me(()=>[se(L)]),default:me(()=>[nt(" "+he(V.$t("下单")),1)]),_:1},8,["loading","disabled"])])])]))]}),_:1})}}}),s9e=Object.freeze(Object.defineProperty({__proto__:null,default:a9e},Symbol.toStringTag,{value:"Module"})),l9e={class:"inline-block",viewBox:"0 0 256 256",width:"1em",height:"1em"},c9e=Y("path",{fill:"currentColor",d:"M216 64H56a8 8 0 0 1 0-16h136a8 8 0 0 0 0-16H56a24 24 0 0 0-24 24v128a24 24 0 0 0 24 24h160a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16m-36 80a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),u9e=[c9e];function d9e(e,t){return ge(),ze("svg",l9e,[...u9e])}const f9e={name:"ph-wallet-fill",render:d9e},h9e={class:"text-5xl font-normal"},p9e={class:"ml-5 text-xl text-gray-500"},m9e={class:"text-gray-500"},g9e={class:"mt-2.5 max-w-125"},v9e={class:"mt-2.5 max-w-125"},b9e={class:"mt-2.5 max-w-125"},y9e={class:"mt-2.5 max-w-125"},x9e={class:"mb-1"},C9e={class:"mt-2.5 max-w-125"},w9e={class:"mb-1"},_9e={class:"m-0 pb-2.5 pt-2.5 text-xl"},S9e={class:"mt-5"},k9e=["href"],P9e={class:"mt-5"},T9e={class:"m-0 pb-2.5 pt-2.5 text-xl"},E9e={class:"mt-5"},R9e={class:"flex justify-end"},A9e=xe({__name:"index",setup(e){const t=Ji(),n=Tn(),o=C=>mn.global.t(C),r=U(""),i=U(""),a=U(""),s=U(!1);async function l(){if(s.value=!0,i.value!==a.value){window.$message.error(o("两次新密码输入不同"));return}const{data:C}=await zJ(r.value,i.value);C===!0&&window.$message.success(o("密码修改成功")),s.value=!1}const c=U(!1),u=U(!1);async function d(C){if(C==="expire"){const{data:_}=await y1({remind_expire:c.value?1:0});_===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),c.value=!c.value)}else if(C==="traffic"){const{data:_}=await y1({remind_traffic:u.value?1:0});_===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),u.value=!u.value)}}const f=U(),h=U(!1);async function p(){const{data:C}=await XJ();C&&(f.value=C)}function g(C){window.location.href=C}const m=U(!1);async function b(){const{data:C}=await FJ();C&&window.$message.success(o("重置成功"))}async function w(){t.getUserInfo(),c.value=!!t.remind_expire,u.value=!!t.remind_traffic}return hn(()=>{w()}),(C,_)=>{const S=f9e,y=vo,x=dr,P=zt,k=wQ,T=pl,R=Yi,E=vQ,q=ni,D=bo;return ge(),We(D,null,{default:me(()=>{var B,M,K,V;return[se(y,{title:C.$t("我的钱包"),class:"rounded-md"},{"header-extra":me(()=>[se(S,{class:"text-4xl text-gray-500"})]),default:me(()=>{var ae;return[Y("div",null,[Y("span",h9e,he(Se(sn)(Se(t).balance)),1),Y("span",p9e,he((ae=Se(n).appConfig)==null?void 0:ae.currency),1)]),Y("div",m9e,he(C.$t("账户余额(仅消费)")),1)]}),_:1},8,["title"]),se(y,{title:C.$t("修改密码"),class:"mt-5 rounded-md"},{default:me(()=>[Y("div",g9e,[Y("label",null,he(C.$t("旧密码")),1),se(x,{type:"password",value:r.value,"onUpdate:value":_[0]||(_[0]=ae=>r.value=ae),placeholder:C.$t("请输入旧密码"),maxlength:32},null,8,["value","placeholder"])]),Y("div",v9e,[Y("label",null,he(C.$t("新密码")),1),se(x,{type:"password",value:i.value,"onUpdate:value":_[1]||(_[1]=ae=>i.value=ae),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),Y("div",b9e,[Y("label",null,he(C.$t("新密码")),1),se(x,{type:"password",value:a.value,"onUpdate:value":_[2]||(_[2]=ae=>a.value=ae),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),se(P,{class:"mt-5",type:"primary",onClick:l,loading:s.value,disabled:s.value},{default:me(()=>[nt(he(C.$t("保存")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title"]),se(y,{title:C.$t("通知"),class:"mt-5 rounded-md"},{default:me(()=>[Y("div",y9e,[Y("div",x9e,he(C.$t("到期邮件提醒")),1),se(k,{value:c.value,"onUpdate:value":[_[3]||(_[3]=ae=>c.value=ae),_[4]||(_[4]=ae=>d("expire"))]},null,8,["value"])]),Y("div",C9e,[Y("div",w9e,he(C.$t("流量邮件提醒")),1),se(k,{value:u.value,"onUpdate:value":[_[5]||(_[5]=ae=>u.value=ae),_[6]||(_[6]=ae=>d("traffic"))]},null,8,["value"])])]),_:1},8,["title"]),(M=(B=Se(n))==null?void 0:B.appConfig)!=null&&M.is_telegram?(ge(),We(y,{key:0,title:C.$t("绑定Telegram"),class:"mt-5 rounded-md"},{"header-extra":me(()=>[se(P,{type:"primary",round:"",disabled:Se(t).userInfo.telegram_id,onClick:_[7]||(_[7]=ae=>(h.value=!0,p(),Se(t).getUserSubscribe()))},{default:me(()=>[nt(he(Se(t).userInfo.telegram_id?C.$t("已绑定"):C.$t("立即开始")),1)]),_:1},8,["disabled"])]),_:1},8,["title"])):Ct("",!0),(V=(K=Se(n))==null?void 0:K.appConfig)!=null&&V.telegram_discuss_link?(ge(),We(y,{key:1,title:C.$t("Telegram 讨论组"),class:"mt-5 rounded-md"},{"header-extra":me(()=>[se(P,{type:"primary",round:"",onClick:_[8]||(_[8]=ae=>{var pe,Z;return g((Z=(pe=Se(n))==null?void 0:pe.appConfig)==null?void 0:Z.telegram_discuss_link)})},{default:me(()=>[nt(he(C.$t("立即加入")),1)]),_:1})]),_:1},8,["title"])):Ct("",!0),se(y,{title:C.$t("重置订阅信息"),class:"mt-5 rounded-md"},{default:me(()=>[se(T,{type:"warning"},{default:me(()=>[nt(he(C.$t("当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。")),1)]),_:1}),se(P,{type:"error",size:"small",class:"mt-2.5",onClick:_[9]||(_[9]=ae=>m.value=!0)},{default:me(()=>[nt(he(C.$t("重置")),1)]),_:1})]),_:1},8,["title"]),se(q,{title:C.$t("绑定Telegram"),preset:"card",show:h.value,"onUpdate:show":_[12]||(_[12]=ae=>h.value=ae),class:"mx-2.5 max-w-full w-150 md:mx-auto",footerStyle:"padding: 10px 16px",segmented:{content:!0,footer:!0}},{footer:me(()=>[Y("div",R9e,[se(P,{type:"primary",onClick:_[11]||(_[11]=ae=>h.value=!1)},{default:me(()=>[nt(he(C.$t("我知道了")),1)]),_:1})])]),default:me(()=>{var ae,pe,Z;return[f.value&&Se(t).subscribe?(ge(),ze(rt,{key:0},[Y("div",null,[Y("h2",_9e,he(C.$t("第一步")),1),se(R,{class:"m-0!"}),Y("div",S9e,[nt(he(C.$t("打开Telegram搜索"))+" ",1),Y("a",{href:"https://t.me/"+((ae=f.value)==null?void 0:ae.username)},"@"+he((pe=f.value)==null?void 0:pe.username),9,k9e)])]),Y("div",P9e,[Y("h2",T9e,he(C.$t("第二步")),1),se(R,{class:"m-0!"}),Y("div",E9e,he(C.$t("向机器人发送你的")),1),Y("code",{class:"cursor-pointer",onClick:_[10]||(_[10]=N=>{var O;return Se(qs)("/bind "+((O=Se(t).subscribe)==null?void 0:O.subscribe_url))})},"/bind "+he((Z=Se(t).subscribe)==null?void 0:Z.subscribe_url),1)])],64)):(ge(),We(E,{key:1,size:"large"}))]}),_:1},8,["title","show"]),se(q,{show:m.value,"onUpdate:show":_[13]||(_[13]=ae=>m.value=ae),preset:"dialog",title:C.$t("确定要重置订阅信息?"),content:C.$t("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。"),"positive-text":C.$t("确认"),"negative-text":C.$t("取消"),onPositiveClick:b},null,8,["show","title","content","positive-text","negative-text"])]}),_:1})}}}),$9e=Object.freeze(Object.defineProperty({__proto__:null,default:A9e},Symbol.toStringTag,{value:"Module"})),I9e={class:"flex justify-end"},O9e=xe({__name:"index",setup(e){const t=h=>mn.global.t(h),n=[{label:t("低"),value:0},{label:t("中"),value:1},{label:t("高"),value:2}],o=[{title:t("主题"),key:"subject"},{title:t("工单级别"),key:"u",render(h){return n[h.level].label}},{title:t("工单状态"),key:"status",render(h){const p=v("div",{class:["h-1.5 w-1.5 rounded-full mr-1.3",h.status===1?"bg-green-500":h.reply_status===0?"bg-blue-500":"bg-red-500"]}),g=h.status===1?t("已关闭"):h.reply_status===0?t("已回复"):t("待回复");return v("div",{class:"flex items-center"},[p,g])}},{title:t("创建时间"),key:"created_at",render(h){return Wo(h.created_at)}},{title:t("最后回复时间"),key:"updated_at",render(h){return Wo(h.updated_at)}},{title:t("操作"),key:"actions",fixed:"right",render(h){const p=v(zt,{text:!0,type:"primary",onClick:()=>Gt.push(`/ticket/${h.id}`)},{default:()=>t("查看")}),g=v(zt,{text:!0,type:"primary",disabled:h.status===1,onClick:()=>c(h.id)},{default:()=>t("关闭")}),m=v(Yi,{vertical:!0});return v("div",[p,m,g])}}],r=U(!1),i=U(""),a=U(),s=U("");async function l(){const{data:h}=await UJ(i.value,a.value,s.value);h===!0&&(window.$message.success(t("创建成功")),f(),r.value=!1)}async function c(h){const{data:p}=await VJ(h);p&&(window.$message.success(t("关闭成功")),f())}const u=U([]);async function d(){const{data:h}=await jJ();u.value=h}function f(){d()}return hn(()=>{f()}),(h,p)=>{const g=dr,m=Ou,b=Qi,w=vo,C=ni,_=Du,S=bo;return ge(),We(S,null,{default:me(()=>[se(C,{show:r.value,"onUpdate:show":p[6]||(p[6]=y=>r.value=y)},{default:me(()=>[se(w,{title:h.$t("新的工单"),class:"mx-2.5 max-w-full w-150 md:mx-auto",segmented:{content:!0,footer:!0},closable:"",onClose:p[5]||(p[5]=y=>r.value=!1)},{footer:me(()=>[Y("div",I9e,[se(b,null,{default:me(()=>[se(Se(zt),{onClick:p[3]||(p[3]=y=>r.value=!1)},{default:me(()=>[nt(he(h.$t("取消")),1)]),_:1}),se(Se(zt),{type:"primary",onClick:p[4]||(p[4]=y=>l())},{default:me(()=>[nt(he(h.$t("确认")),1)]),_:1})]),_:1})])]),default:me(()=>[Y("div",null,[Y("label",null,he(h.$t("主题")),1),se(g,{value:i.value,"onUpdate:value":p[0]||(p[0]=y=>i.value=y),class:"mt-1",placeholder:h.$t("请输入工单主题")},null,8,["value","placeholder"])]),Y("div",null,[Y("label",null,he(h.$t("工单级别")),1),se(m,{value:a.value,"onUpdate:value":p[1]||(p[1]=y=>a.value=y),options:n,placeholder:h.$t("请选项工单等级"),class:"mt-1"},null,8,["value","placeholder"])]),Y("div",null,[Y("label",null,he(h.$t("消息")),1),se(g,{value:s.value,"onUpdate:value":p[2]||(p[2]=y=>s.value=y),type:"textarea",placeholder:h.$t("请描述你遇到的问题"),round:"",class:"mt-1"},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),se(w,{class:"rounded-md",title:h.$t("工单历史")},{"header-extra":me(()=>[se(Se(zt),{type:"primary",round:"",onClick:p[7]||(p[7]=y=>r.value=!0)},{default:me(()=>[nt(he(h.$t("新的工单")),1)]),_:1})]),default:me(()=>[se(_,{columns:o,data:u.value,"scroll-x":800},null,8,["data"])]),_:1},8,["title"])]),_:1})}}}),M9e=Object.freeze(Object.defineProperty({__proto__:null,default:O9e},Symbol.toStringTag,{value:"Module"})),z9e={class:"relative",style:{height:"calc(100% - 70px)"}},F9e={class:"mb-2 mt-2 text-sm text-gray-500"},D9e={class:"mb-2 inline-block rounded-md bg-gray-50 pb-8 pl-4 pr-4 pt-2"},L9e=xe({__name:"detail",setup(e){const t=za(),n=h=>mn.global.t(h),o=U("");async function r(){const{data:h}=await qJ(i.value,o.value);h===!0&&(window.$message.success(n("回复成功")),o.value="",f())}const i=U(),a=U();async function s(){const{data:h}=await WJ(i.value);h&&(a.value=h)}const l=U(null),c=U(null),u=async()=>{const h=l.value,p=c.value;h&&p&&h.scrollBy({top:p.scrollHeight,behavior:"auto"})},d=U();async function f(){await s(),await Ht(),u(),d.value=setInterval(s,2e3)}return hn(()=>{i.value=t.params.ticket_id,f()}),(h,p)=>{const g=lQ,m=dr,b=zt,w=gm,C=vo,_=bo;return ge(),We(_,null,{default:me(()=>{var S;return[se(C,{title:(S=a.value)==null?void 0:S.subject,class:"h-full overflow-hidden"},{default:me(()=>[Y("div",z9e,[se(g,{class:"absolute right-0 h-full",ref_key:"scrollbarRef",ref:l},{default:me(()=>{var y;return[Y("div",{ref_key:"scrollContainerRef",ref:c},[(ge(!0),ze(rt,null,Fn((y=a.value)==null?void 0:y.message,x=>(ge(),ze("div",{key:x.id,class:qn([x.is_me?"text-right":"text-left"])},[Y("div",F9e,he(Se(Wo)(x.created_at)),1),Y("div",D9e,he(x.message),1)],2))),128))],512)]}),_:1},512)]),se(w,{size:"large",class:"mt-8"},{default:me(()=>[se(m,{type:"text",size:"large",placeholder:h.$t("输入内容回复工单"),autofocus:!0,value:o.value,"onUpdate:value":p[0]||(p[0]=y=>o.value=y),onKeyup:p[1]||(p[1]=Cs(y=>r(),["enter"]))},null,8,["placeholder","value"]),se(b,{type:"primary",size:"large",onClick:p[2]||(p[2]=y=>r())},{default:me(()=>[nt(he(h.$t("回复")),1)]),_:1})]),_:1})]),_:1},8,["title"])]}),_:1})}}}),B9e=Object.freeze(Object.defineProperty({__proto__:null,default:L9e},Symbol.toStringTag,{value:"Module"})),N9e=xe({__name:"index",setup(e){const t=i=>mn.global.t(i),n=[{title:t("记录时间"),key:"record_at",render(i){return Op(i.record_at)}},{title:t("实际上行"),key:"u",render(i){return ks(i.u/parseFloat(i.server_rate))}},{title:t("实际下行"),key:"d",render(i){return ks(i.d/parseFloat(i.server_rate))}},{title:t("扣费倍率"),key:"server_rate",render(i){return v(Ti,{size:"small",round:!0},{default:()=>i.server_rate+" x"})}},{title(){const i=v(zu,{placement:"bottom",trigger:"hover"},{trigger:()=>v(tl("mdi-help-circle-outline",{size:16})),default:()=>t("公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量")});return v("div",{class:"flex items-center"},[t("总计"),i])},key:"total",fixed:"right",render(i){return ks(i.d+i.u)}}],o=U([]);async function r(){const{data:i}=await DJ();o.value=i}return hn(()=>{r()}),(i,a)=>{const s=pl,l=Du,c=vo,u=bo;return ge(),We(u,null,{default:me(()=>[se(c,{class:"rounded-md"},{default:me(()=>[se(s,{type:"info",bordered:!1,class:"mb-5"},{default:me(()=>[nt(he(i.$t("流量明细仅保留近月数据以供查询。")),1)]),_:1}),se(l,{columns:n,data:o.value,"scroll-x":600},null,8,["data"])]),_:1})]),_:1})}}}),H9e=Object.freeze(Object.defineProperty({__proto__:null,default:N9e},Symbol.toStringTag,{value:"Module"})),j9e={name:"NOTFOUND"},U9e={"h-full":"",flex:""};function V9e(e,t,n,o,r,i){const a=zt,s=iQ;return ge(),ze("div",U9e,[se(s,{"m-auto":"",status:"404",title:"404 Not Found",description:""},{footer:me(()=>[se(a,null,{default:me(()=>[nt("Find some fun")]),_:1})]),_:1})])}const W9e=Uu(j9e,[["render",V9e]]),q9e=Object.freeze(Object.defineProperty({__proto__:null,default:W9e},Symbol.toStringTag,{value:"Module"})),K9e={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},G9e=Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[Y("path",{d:"M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2S2 6.477 2 12"}),Y("path",{d:"M13 2.05S16 6 16 12s-3 9.95-3 9.95m-2 0S8 18 8 12s3-9.95 3-9.95M2.63 15.5h18.74m-18.74-7h18.74"})],-1),X9e=[G9e];function Y9e(e,t){return ge(),ze("svg",K9e,[...X9e])}const Q9e={name:"iconoir-language",render:Y9e},J9e={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},Z9e=Y("path",{fill:"currentColor",d:"M26 30H14a2 2 0 0 1-2-2v-3h2v3h12V4H14v3h-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2"},null,-1),e7e=Y("path",{fill:"currentColor",d:"M14.59 20.59L18.17 17H4v-2h14.17l-3.58-3.59L16 10l6 6l-6 6z"},null,-1),t7e=[Z9e,e7e];function n7e(e,t){return ge(),ze("svg",J9e,[...t7e])}const o7e={name:"carbon-login",render:n7e},r7e=xe({__name:"vueRecaptcha",props:{sitekey:{type:String,required:!0},size:{type:String,required:!1,default:"normal"},theme:{type:String,required:!1,default:"light"},hl:{type:String,required:!1},loadingTimeout:{type:Number,required:!1,default:0}},emits:{verify:e=>e!=null&&e!="",error:e=>e,expire:null,fail:null},setup(e,{expose:t,emit:n}){const o=e,r=U(null);let i=null;t({execute:function(){window.grecaptcha.execute(i)},reset:function(){window.grecaptcha.reset(i)}});function a(){i=window.grecaptcha.render(r.value,{sitekey:o.sitekey,theme:o.theme,size:o.size,callback:s=>n("verify",s),"expired-callback":()=>n("expire"),"error-callback":()=>n("fail")})}return jt(()=>{window.grecaptcha==null?new Promise((s,l)=>{let c,u=!1;window.recaptchaReady=function(){u||(u=!0,clearTimeout(c),s())};const d="recaptcha-script",f=g=>()=>{var m;u||(u=!0,clearTimeout(c),(m=document.getElementById(d))==null||m.remove(),l(g))};o.loadingTimeout>0&&(c=setTimeout(f("timeout"),o.loadingTimeout));const h=window.document,p=h.createElement("script");p.id=d,p.onerror=f("error"),p.onabort=f("aborted"),p.setAttribute("src",`https://www.recaptcha.net/recaptcha/api.js?onload=recaptchaReady&render=explicit&hl=${o.hl}&_=${+new Date}`),h.head.appendChild(p)}).then(()=>{a()}).catch(s=>{n("error",s)}):a()}),(s,l)=>(ge(),ze("div",{ref_key:"recaptchaDiv",ref:r},null,512))}}),i7e=e=>_t({url:"/passport/auth/login",method:"post",data:e}),a7e=e=>_t.get("/passport/auth/token2Login?verify="+encodeURIComponent(e.verify)+"&redirect="+encodeURIComponent(e.redirect)),s7e=e=>_t({url:"/passport/auth/register",method:"post",data:e});function l7e(){return _t.get("/guest/comm/config")}function c7e(e,t){return _t.post("/passport/comm/sendEmailVerify",{email:e,recaptcha_data:t})}function u7e(e,t,n){return _t.post("/passport/auth/forget",{email:e,password:t,email_code:n})}const d7e={class:"p-6"},f7e={key:0,class:"text-center"},h7e=["src"],p7e={key:1,class:"text-center text-4xl font-normal",color:"#343a40"},m7e={class:"text-muted text-center text-sm font-normal",color:"#6c757d"},g7e={class:"mt-5 w-full"},v7e={class:"mt-5 w-full"},b7e={class:"mt-5 w-full"},y7e={class:"mt-5 w-full"},x7e={class:"mt-5 w-full"},C7e={class:"mt-5 w-full"},w7e=["innerHTML"],_7e={class:"mt-5 w-full"},S7e={class:"flex justify-between bg-[--n-color-embedded] px-6 py-4 text-gray-500"},k7e=xe({__name:"login",setup(e){const t=Tn(),n=Ox(),o=za(),r=k=>mn.global.t(k),i=to({email:"",email_code:"",password:"",confirm_password:"",confirm:"",invite_code:"",lock_invite_code:!1,suffix:""}),a=U(!0),s=I(()=>{var T;const k=(T=C.value)==null?void 0:T.tos_url;return"
"+mn.global.tc('我已阅读并同意 服务条款',{url:k})+"
"}),l=U(),c=U(),u=U(!1),d=U();function f(k){l.value=k,setTimeout(()=>{u.value=!1,c.value&&c.value.reset,d.value==="register"?(y(),d.value=""):d.value==="sendEmailVerify"&&(w(),d.value="")},500)}function h(){c.value&&c.value.reset()}function p(){c.value&&c.value.reset()}function g(){c.value&&c.value.reset&&c.value.reset()}const m=U(!1),b=U(0);async function w(){var R,E;if(i.email===""){window.$message.error(r("请输入邮箱地址"));return}if(m.value=!0,b.value>0){window.$message.warning(mn.global.tc("{second}秒后可重新发送",{second:b.value}));return}if((R=C.value)!=null&&R.is_recaptcha&&((E=C.value)!=null&&E.recaptcha_site_key)&&!l.value){u.value=!0,m.value=!1,d.value="sendEmailVerify";return}const k=i.suffix?`${i.email}${i.suffix}`:i.email,{data:T}=await c7e(k,l.value);if(T===!0){window.$message.success(r("发送成功")),b.value=60;const q=setInterval(()=>{b.value--,b.value===0&&clearInterval(q)},1e3);l.value=""}m.value=!1}const C=U();async function _(){var T,R;const{data:k}=await l7e();k&&(C.value=k,Zv(k.email_whitelist_suffix)&&(i.suffix=(T=k.email_whitelist_suffix)!=null&&T[0]?"@"+((R=k.email_whitelist_suffix)==null?void 0:R[0]):""),k.tos_url&&(a.value=!1))}const S=U(!1);async function y(){var q,D,B;const{email:k,password:T,confirm_password:R,email_code:E}=i;switch(x.value){case"login":{if(!k||!T){window.$message.warning(r("请输入用户名和密码"));return}S.value=!0;const{data:M}=await i7e({email:k,password:T.toString()});S.value=!1,M!=null&&M.auth_data&&(window.$message.success(r("登录成功")),cf(M==null?void 0:M.auth_data),n.push(((q=o.query.redirect)==null?void 0:q.toString())??"/dashboard"));break}case"register":{if(i.email===""){window.$message.error(r("请输入邮箱地址"));return}const{password:M,confirm_password:K,invite_code:V,email_code:ae}=i,pe=i.suffix?`${i.email}${i.suffix}`:i.email;if(!pe||!M){window.$message.warning(r("请输入账号密码"));return}if(M!==K){window.$message.warning(r("请确保两次密码输入一致"));return}if((D=C.value)!=null&&D.is_recaptcha&&((B=C.value)!=null&&B.recaptcha_site_key)&&!l.value){l.value||(u.value=!0),d.value="register";return}S.value=!0;const{data:Z}=await s7e({email:pe,password:M,invite_code:V,email_code:ae,recaptcha_data:l.value});S.value=!1,Z!=null&&Z.auth_data&&(window.$message.success(r("注册成功")),cf(Z.auth_data),n.push("/")),l.value="";break}case"forgetpassword":{if(k===""){window.$message.error(r("请输入邮箱地址"));return}if(!k||!T){window.$message.warning(r("请输入账号密码"));return}if(T!==R){window.$message.warning(r("请确保两次密码输入一致"));return}S.value=!0;const M=i.suffix?`${i.email}${i.suffix}`:i.email,{data:K}=await u7e(M,T,E);S.value=!1,K&&(window.$message.success(r("重置密码成功,正在返回登录")),setTimeout(()=>{n.push("/login")},500))}}}const x=I(()=>{const k=o.path;return k.includes("login")?"login":k.includes("register")?"register":k.includes("forgetpassword")?"forgetpassword":""}),P=async()=>{["register","forgetpassword"].includes(x.value)&&_(),o.query.code&&(i.lock_invite_code=!0,i.invite_code=o.query.code);const{verify:k,redirect:T}=o.query;if(k&&T){const{data:R}=await a7e({verify:k,redirect:T});R!=null&&R.auth_data&&(window.$message.success(r("登录成功")),cf(R==null?void 0:R.auth_data),n.push(T.toString()))}};return Yt(()=>{P()}),(k,T)=>{const R=ni,E=dr,q=Ou,D=gm,B=zt,M=ml,K=o7e,V=Qc("router-link"),ae=Yi,pe=Q9e,Z=Cm,N=vo;return ge(),ze(rt,null,[se(R,{show:u.value,"onUpdate:show":T[0]||(T[0]=O=>u.value=O)},{default:me(()=>{var O,ee,G;return[(O=C.value)!=null&&O.is_recaptcha&&((ee=C.value)!=null&&ee.recaptcha_site_key)?(ge(),We(Se(r7e),{key:0,sitekey:(G=C.value)==null?void 0:G.recaptcha_site_key,size:"normal",theme:"light","loading-timeout":3e4,onVerify:f,onExpire:h,onFail:p,onError:g,ref_key:"vueRecaptchaRef",ref:c},null,8,["sitekey"])):Ct("",!0)]}),_:1},8,["show"]),Y("div",{class:"wh-full flex items-center justify-center",style:Fi(Se(t).background_url&&`background:url(${Se(t).background_url}) no-repeat center center / cover;`)},[se(N,{class:"mx-auto max-w-md rounded-md bg-[--n-color] shadow-black","content-style":"padding: 0;"},{default:me(()=>{var O,ee,G;return[Y("div",d7e,[Se(t).logo?(ge(),ze("div",f7e,[Y("img",{src:Se(t).logo,class:"mb-1em max-w-full"},null,8,h7e)])):(ge(),ze("h1",p7e,he(Se(t).title),1)),Y("h5",m7e,he(Se(t).description||" "),1),Y("div",g7e,[se(D,null,{default:me(()=>{var ne,X,ce;return[se(E,{value:i.email,"onUpdate:value":T[1]||(T[1]=L=>i.email=L),autofocus:"",placeholder:k.$t("邮箱"),maxlength:40},null,8,["value","placeholder"]),["register","forgetpassword"].includes(x.value)&&Se(Zv)((ne=C.value)==null?void 0:ne.email_whitelist_suffix)?(ge(),We(q,{key:0,value:i.suffix,"onUpdate:value":T[2]||(T[2]=L=>i.suffix=L),options:((ce=(X=C.value)==null?void 0:X.email_whitelist_suffix)==null?void 0:ce.map(L=>({value:`@${L}`,label:`@${L}`})))||[],class:"flex-[1]","consistent-menu-width":!1},null,8,["value","options"])):Ct("",!0)]}),_:1})]),dn(Y("div",v7e,[se(D,{class:"flex"},{default:me(()=>[se(E,{value:i.email_code,"onUpdate:value":T[3]||(T[3]=ne=>i.email_code=ne),placeholder:k.$t("邮箱验证码")},null,8,["value","placeholder"]),se(B,{type:"primary",onClick:T[4]||(T[4]=ne=>w()),loading:m.value,disabled:m.value||b.value>0},{default:me(()=>[nt(he(b.value||k.$t("发送")),1)]),_:1},8,["loading","disabled"])]),_:1})],512),[[Mn,["register"].includes(x.value)&&((O=C.value)==null?void 0:O.is_email_verify)||["forgetpassword"].includes(x.value)]]),Y("div",b7e,[se(E,{value:i.password,"onUpdate:value":T[5]||(T[5]=ne=>i.password=ne),class:"",type:"password","show-password-on":"click",placeholder:k.$t("密码"),maxlength:40,onKeydown:T[6]||(T[6]=Cs(ne=>["login"].includes(x.value)&&y(),["enter"]))},null,8,["value","placeholder"])]),dn(Y("div",y7e,[se(E,{value:i.confirm_password,"onUpdate:value":T[7]||(T[7]=ne=>i.confirm_password=ne),type:"password","show-password-on":"click",placeholder:k.$t("再次输入密码"),maxlength:40,onKeydown:T[8]||(T[8]=Cs(ne=>["forgetpassword"].includes(x.value)&&y(),["enter"]))},null,8,["value","placeholder"])],512),[[Mn,["register","forgetpassword"].includes(x.value)]]),dn(Y("div",x7e,[se(E,{value:i.invite_code,"onUpdate:value":T[9]||(T[9]=ne=>i.invite_code=ne),placeholder:[k.$t("邀请码"),(ee=C.value)!=null&&ee.is_invite_force?`(${k.$t("必填")})`:`(${k.$t("选填")})`],maxlength:20,disabled:i.lock_invite_code,onKeydown:T[10]||(T[10]=Cs(ne=>y(),["enter"]))},null,8,["value","placeholder","disabled"])],512),[[Mn,["register"].includes(x.value)]]),dn(Y("div",C7e,[se(M,{checked:a.value,"onUpdate:checked":T[11]||(T[11]=ne=>a.value=ne),class:"text-bold text-base"},{default:me(()=>[Y("div",{innerHTML:s.value},null,8,w7e)]),_:1},8,["checked"])],512),[[Mn,["register"].includes(x.value)&&((G=C.value)==null?void 0:G.tos_url)]]),Y("div",_7e,[se(B,{class:"h-9 w-full rounded-md text-base",type:"primary","icon-placement":"left",onClick:T[12]||(T[12]=ne=>y()),loading:S.value,disabled:S.value||!a.value&&["register"].includes(x.value)},{icon:me(()=>[se(K)]),default:me(()=>[nt(" "+he(["login"].includes(x.value)?k.$t("登入"):["register"].includes(x.value)?k.$t("注册"):k.$t("重置密码")),1)]),_:1},8,["loading","disabled"])])]),Y("div",S7e,[Y("div",null,[["login"].includes(x.value)?(ge(),ze(rt,{key:0},[se(V,{to:"/register",class:"text-gray-500"},{default:me(()=>[nt(he(k.$t("注册")),1)]),_:1}),se(ae,{vertical:""}),se(V,{to:"/forgetpassword",class:"text-gray-500"},{default:me(()=>[nt(he(k.$t("忘记密码")),1)]),_:1})],64)):(ge(),We(V,{key:1,to:"/login",class:"text-gray-500"},{default:me(()=>[nt(he(k.$t("返回登入")),1)]),_:1}))]),Y("div",null,[se(Z,{value:Se(t).lang,"onUpdate:value":T[13]||(T[13]=ne=>Se(t).lang=ne),options:Object.entries(Se(ih)).map(([ne,X])=>({label:X,value:ne})),trigger:"click","on-update:value":Se(t).switchLang},{default:me(()=>[se(B,{text:"","icon-placement":"left"},{icon:me(()=>[se(pe)]),default:me(()=>[nt(" "+he(Se(ih)[Se(t).lang]),1)]),_:1})]),_:1},8,["value","options","on-update:value"])])])]}),_:1})],4)],64)}}}),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:k7e},Symbol.toStringTag,{value:"Module"})),P7e={请求失败:"Request failed",月付:"Monthly",季付:"Quarterly",半年付:"Semi-Annually",年付:"Annually",两年付:"Biennially",三年付:"Triennially",一次性:"One Time",重置流量包:"Data Reset Package",待支付:"Pending Payment",开通中:"Pending Active",已取消:"Canceled",已完成:"Completed",已折抵:"Converted",待确认:"Pending",发放中:"Confirming",已发放:"Completed",无效:"Invalid",个人中心:"User Center",登出:"Logout",搜索:"Search",仪表盘:"Dashboard",订阅:"Subscription",我的订阅:"My Subscription",购买订阅:"Purchase Subscription",财务:"Billing",我的订单:"My Orders",我的邀请:"My Invitation",用户:"Account",我的工单:"My Tickets",流量明细:"Transfer Data Details",使用文档:"Knowledge Base",绑定Telegram获取更多服务:"Not link to Telegram yet",点击这里进行绑定:"Please click here to link to Telegram",公告:"Announcements",总览:"Overview",该订阅长期有效:"The subscription is valid for an unlimited time",已过期:"Expired","已用 {used} / 总计 {total}":"{used} Used / Total {total}",查看订阅:"View Subscription",邮箱:"Email",邮箱验证码:"Email verification code",发送:"Send",重置密码:"Reset Password",返回登入:"Back to Login",邀请码:"Invitation Code",复制链接:"Copy Link",完成时间:"Complete Time",佣金:"Commission",已注册用户数:"Registered users",佣金比例:"Commission rate",确认中的佣金:"Pending commission","佣金将会在确认后会到达你的佣金账户。":"The commission will reach your commission account after review.",邀请码管理:"Invitation Code Management",生成邀请码:"Generate invitation code",佣金发放记录:"Commission Income Record",复制成功:"Copied successfully",密码:"Password",登入:"Login",注册:"Register",忘记密码:"Forgot password","# 订单号":"Order Number #",周期:"Type / Cycle",订单金额:"Order Amount",订单状态:"Order Status",创建时间:"Creation Time",操作:"Action",查看详情:"View Details",请选择支付方式:"Please select a payment method",请检查信用卡支付信息:"Please check credit card payment information",订单详情:"Order Details",折扣:"Discount",折抵:"Converted",退款:"Refund",支付方式:"Payment Method",填写信用卡支付信息:"Please fill in credit card payment information","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"We will not collect your credit card information, credit card number and other details only use to verify the current transaction.",订单总额:"Order Total",总计:"Total",结账:"Checkout",等待支付中:"Waiting for payment","订单系统正在进行处理,请稍等1-3分钟。":"Order system is being processed, please wait 1 to 3 minutes.","订单由于超时支付已被取消。":"The order has been canceled due to overtime payment.","订单已支付并开通。":"The order has been paid and the service is activated.",选择订阅:"Select a Subscription",立即订阅:"Subscribe now",配置订阅:"Configure Subscription",付款周期:"Payment Cycle","有优惠券?":"Have coupons?",验证:"Verify",下单:"Order","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Attention please, change subscription will overwrite your current subscription.",该订阅无法续费:"This subscription cannot be renewed",选择其他订阅:"Choose another subscription",我的钱包:"My Wallet","账户余额(仅消费)":"Account Balance (For billing only)","推广佣金(可提现)":"Invitation Commission (Can be used to withdraw)",钱包组成部分:"Wallet Details",划转:"Transfer",推广佣金提现:"Invitation Commission Withdrawal",修改密码:"Change Password",保存:"Save",旧密码:"Old Password",新密码:"New Password",请输入旧密码:"Please enter the old password",请输入新密码:"Please enter the new password",通知:"Notification",到期邮件提醒:"Subscription expiration email reminder",流量邮件提醒:"Insufficient transfer data email alert",绑定Telegram:"Link to Telegram",立即开始:"Start Now",重置订阅信息:"Reset Subscription",重置:"Reset","确定要重置订阅信息?":"Do you want to reset subscription?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"In case of your account information or subscription leak, this option is for reset. After resetting your UUID and subscription will change, you need to re-subscribe.",重置成功:"Reset successfully",两次新密码输入不同:"Two new passwords entered do not match",两次密码输入不同:"The passwords entered do not match","邀请码(选填)":"Invitation code (Optional)",'我已阅读并同意 服务条款':'I have read and agree to the terms of service',请同意服务条款:"Please agree to the terms of service",名称:"Name",标签:"Tags",状态:"Status",节点五分钟内节点在线情况:"Access Point online status in the last 5 minutes",倍率:"Rate",使用的流量将乘以倍率进行扣除:"The transfer data usage will be multiplied by the transfer data rate deducted.",更多操作:"Action","没有可用节点,如果您未订阅或已过期请":"No access points are available. If you have not subscribed or the subscription has expired, please","确定重置当前已用流量?":"Are you sure to reset your current data usage?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'Click "Confirm" and you will be redirected to the payment page. The system will empty your current month"s usage after your purchase.',确定:"Confirm",低:"Low",中:"Medium",高:"High",主题:"Subject",工单级别:"Ticket Priority",工单状态:"Ticket Status",最后回复:"Last Reply",已关闭:"Closed",待回复:"Pending Reply",已回复:"Replied",查看:"View",关闭:"Cancel",新的工单:"My Tickets",确认:"Confirm",请输入工单主题:"Please enter a subject",工单等级:"Ticket Priority",请选择工单等级:"Please select the ticket priority",消息:"Message",请描述你遇到的问题:"Please describe the problem you encountered",记录时间:"Record Time",实际上行:"Actual Upload",实际下行:"Actual Download",合计:"Total","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Formula: (Actual Upload + Actual Download) x Deduction Rate = Deduct Transfer Data",复制订阅地址:"Copy Subscription URL",导入到:"Export to",一键订阅:"Quick Subscription",复制订阅:"Copy Subscription URL",推广佣金划转至余额:"Transfer Invitation Commission to Account Balance","划转后的余额仅用于{title}消费使用":"The transferred balance will be used for {title} payments only",当前推广佣金余额:"Current invitation balance",划转金额:"Transfer amount",请输入需要划转到余额的金额:"Please enter the amount to be transferred to the balance","输入内容回复工单...":"Please enter to reply to the ticket...",申请提现:"Apply For Withdrawal",取消:"Cancel",提现方式:"Withdrawal Method",请选择提现方式:"Please select a withdrawal method",提现账号:"Withdrawal Account",请输入提现账号:"Please enter the withdrawal account",我知道了:"I got it",第一步:"First Step",第二步:"Second Step",打开Telegram搜索:"Open Telegram and Search ",向机器人发送你的:"Send the following command to bot","最后更新: {date}":"Last Updated: {date}",还有没支付的订单:"There are still unpaid orders",立即支付:"Pay Now",条工单正在处理中:"tickets are in process",立即查看:"View Now",节点状态:"Access Point Status",商品信息:"Product Information",产品名称:"Product Name","类型/周期":"Type / Cycle",产品流量:"Product Transfer Data",订单信息:"Order Details",关闭订单:"Close order",订单号:"Order Number",优惠金额:"Discount amount",旧订阅折抵金额:"Old subscription converted amount",退款金额:"Refunded amount",余额支付:"Balance payment",工单历史:"Ticket History","已用流量将在 {reset_day} 日后重置":"Used data will reset after {reset_day} days",已用流量已在今日重置:"Data usage has been reset today",重置已用流量:"Reset used data",查看节点状态:"View Access Point status","当前已使用流量达{rate}%":"Currently used data up to {rate}%",节点名称:"Access Point Name","于 {date} 到期,距离到期还有 {day} 天。":"Will expire on {date}, {day} days before expiration.","Telegram 讨论组":"Telegram Discussion Group",立即加入:"Join Now","该订阅无法续费,仅允许新用户购买":"This subscription cannot be renewed and is only available to new users.",重置当月流量:"Reset current month usage","流量明细仅保留近月数据以供查询。":'Only keep the most recent month"s usage for checking the transfer data details.',扣费倍率:"Fee deduction rate",支付手续费:"Payment fee",续费订阅:"Renewal Subscription",学习如何使用:"Learn how to use",快速将节点导入对应客户端进行使用:"Quickly export subscription into the client app",对您当前的订阅进行续费:"Renew your current subscription",对您当前的订阅进行购买:"Purchase your current subscription",捷径:"Shortcut","不会使用,查看使用教程":"I am a newbie, view the tutorial",使用支持扫码的客户端进行订阅:"Use a client app that supports scanning QR code to subscribe",扫描二维码订阅:"Scan QR code to subscribe",续费:"Renewal",购买:"Purchase",查看教程:"View Tutorial",注意:"Attention","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"You still have an unpaid order. You need to cancel it before purchasing. Are you sure you want to cancel the previous order?",确定取消:"Confirm Cancel",返回我的订单:"Back to My Order","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"If you have already paid, canceling the order may cause the payment to fail. Are you sure you want to cancel the order?",选择最适合你的计划:"Choose the right plan for you",全部:"All",按周期:"By Cycle",遇到问题:"I have a problem",遇到问题可以通过工单与我们沟通:"If you have any problems, you can contact us via ticket",按流量:"Pay As You Go",搜索文档:"Search Documents",技术支持:"Technical Support",当前剩余佣金:"Current commission remaining",三级分销比例:"Three-level Distribution Ratio",累计获得佣金:"Cumulative commission earned","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"The users you invite to re-invite users will be divided according to the order amount multiplied by the distribution level.",发放时间:"Commission Time","{number} 人":"{number} people","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"If your subscription address or account is leaked and misused by others, you can reset your subscription information here to prevent unnecessary losses.",再次输入密码:"Enter password again",返回登陆:"Return to Login",选填:"Optional",必填:"Required",最后回复时间:"Last Reply Time",请选项工单等级:"Please Select Ticket Priority",回复:"Reply",输入内容回复工单:"Enter Content to Reply to Ticket",已生成:"Generated",选择协议:"Select Protocol",自动:"Automatic",流量重置包:"Data Reset Package",复制失败:"Copy failed",提示:"Notification","确认退出?":"Confirm Logout?",已退出登录:"Logged out successfully",请输入邮箱地址:"Enter email address","{second}秒后可重新发送":"Resend available in {second} seconds",发送成功:"Sent successfully",请输入账号密码:"Enter account and password",请确保两次密码输入一致:"Ensure password entries match",注册成功:"Registration successful","重置密码成功,正在返回登录":"Password reset successful, returning to login",确认取消:"Confirm Cancel","请注意,变更订阅会导致当前订阅被覆盖。":"Please note that changing the subscription will overwrite the current subscription.","订单提交成功,正在跳转支付":"Order submitted successfully, redirecting to payment.",回复成功:"Reply Successful",工单详情:"Ticket Details",登录成功:"Login Successful","确定退出?":"Are you sure you want to exit?",支付成功:"Payment Successful",正在前往收银台:"Proceeding to Checkout",请输入正确的划转金额:"Please enter the correct transfer amount",划转成功:"Transfer Successful",提现方式不能为空:"Withdrawal method cannot be empty",提现账号不能为空:"Withdrawal account cannot be empty",已绑定:"Already Bound",创建成功:"Creation successful",关闭成功:"Shutdown successful"},zk=Object.freeze(Object.defineProperty({__proto__:null,default:P7e},Symbol.toStringTag,{value:"Module"})),T7e={请求失败:"درخواست انجام نشد",月付:"ماهانه",季付:"سه ماهه",半年付:"نیم سال",年付:"سالانه",两年付:"دو سال",三年付:"سه سال",一次性:"یک‌باره",重置流量包:"بازنشانی بسته های داده",待支付:"در انتظار پرداخت",开通中:"ایجاید",已取消:"صرف نظر شد",已完成:"به پایان رسید",已折抵:"تخفیف داده شده است",待确认:"در حال بررسی",发放中:"صدور",已发放:"صادر شده",无效:"نامعتبر",个人中心:"پروفایل",登出:"خروج",搜索:"جستجو",仪表盘:"داشبرد",订阅:"اشتراک",我的订阅:"اشتراک من",购买订阅:"خرید اشتراک",财务:"امور مالی",我的订单:"درخواست های من",我的邀请:"دعوتنامه های من",用户:"کاربر",我的工单:"درخواست های من",流量明细:"جزئیات\\nعبورو مرور در\\nمحیط آموزشی",使用文档:"کار با مستندات",绑定Telegram获取更多服务:"برای خدمات بیشتر تلگرام را ببندید",点击这里进行绑定:"برای اتصال اینجا را کلیک کنید",公告:"هشدارها",总览:"بررسی کلی",该订阅长期有效:"این اشتراک برای مدت طولانی معتبر است",已过期:"منقضی شده","已用 {used} / 总计 {total}":"استفاده شده {used} / مجموع {total}",查看订阅:"مشاهده عضویت ها",邮箱:"ایمیل",邮箱验证码:"کد تایید ایمیل شما",发送:"ارسال",重置密码:"بازنشانی رمز عبور",返回登入:"بازگشت به صفحه ورود",邀请码:"کد دعوت شما",复制链接:"کپی‌کردن لینک",完成时间:"زمان پایان",佣金:"کمیسیون",已注册用户数:"تعداد کاربران ثبت نام شده",佣金比例:"نرخ کمیسیون",确认中的佣金:"کمیسیون تایید شده","佣金将会在确认后会到达你的佣金账户。":"کمیسیون پس از تایید به حساب کمیسیون شما واریز خواهد شد",邀请码管理:"مدیریت کد دعوت",生成邀请码:"یک کد دعوت ایجاد کنید",佣金发放记录:"سابقه پرداخت کمیسیون",复制成功:"آدرس URL با موفقیت کپی شد",密码:"رمز عبور",登入:"ورود",注册:"ثبت‌نام",忘记密码:"رمز عبور فراموش شده","# 订单号":"# شماره سفارش",周期:"چرخه",订单金额:"مقدار سفارش",订单状态:"وضعیت سفارش",创建时间:"ساختن",操作:"عملیات",查看详情:"مشاهده جزئیات",请选择支付方式:"لطفا نوع پرداخت را انتخاب کنید",请检查信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید",订单详情:"اطلاعات سفارش",折扣:"ذخیره",折抵:"折抵",退款:"بازگشت هزینه",支付方式:"روش پرداخت",填写信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"اطلاعات کارت اعتباری شما فقط برای بدهی فعلی استفاده می شود، سیستم آن را ذخیره نمی کند، که ما فکر می کنیم امن ترین است.",订单总额:"مجموع سفارش",总计:"مجموع",结账:"پرداخت",等待支付中:"در انتظار پرداخت","订单系统正在进行处理,请稍等1-3分钟。":"سیستم سفارش در حال پردازش است، لطفا 1-3 دقیقه صبر کنید.","订单由于超时支付已被取消。":"سفارش به دلیل پرداخت اضافه کاری لغو شده است","订单已支付并开通。":"سفارش پرداخت و باز شد.",选择订阅:"انتخاب اشتراک",立即订阅:"همین حالا مشترک شوید",配置订阅:"پیکربندی اشتراک",付款周期:"چرخه پرداخت","有优惠券?":"یک کوپن دارید؟",验证:"تأیید",下单:"ایجاد سفارش","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"لطفاً توجه داشته باشید، تغییر یک اشتراک باعث می‌شود که اشتراک فعلی توسط اشتراک جدید بازنویسی شود.",该订阅无法续费:"این اشتراک قابل تمدید نیست",选择其他订阅:"اشتراک دیگری را انتخاب کنید",我的钱包:"کیف پول من","账户余额(仅消费)":"موجودی حساب (فقط خرج کردن)","推广佣金(可提现)":"کمیسیون ارتقاء (قابل برداشت)",钱包组成部分:"اجزای کیف پول",划转:"منتقل کردن",推广佣金提现:"انصراف کمیسیون ارتقاء",修改密码:"تغییر کلمه عبور",保存:"ذخیره کردن",旧密码:"گذرواژه قدیمی",新密码:"رمز عبور جدید",请输入旧密码:", رمز عبور مورد نیاز است",请输入新密码:"گذاشتن گذرواژه",通知:"اعلانات",到期邮件提醒:"یادآوری ایمیل انقضا",流量邮件提醒:"یادآوری ایمیل ترافیک",绑定Telegram:"تلگرام را ببندید",立即开始:"امروز شروع کنید",重置订阅信息:"بازنشانی اطلاعات اشتراک",重置:"تغییر","确定要重置订阅信息?":"آیا مطمئن هستید که می خواهید اطلاعات اشتراک خود را بازنشانی کنید؟","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"اگر آدرس یا اطلاعات اشتراک شما لو رفته باشد، این کار را می توان انجام داد. پس از تنظیم مجدد، Uuid و اشتراک شما تغییر خواهد کرد و باید دوباره مشترک شوید.",重置成功:"بازنشانی با موفقیت انجام شد",两次新密码输入不同:"رمز جدید را دو بار وارد کنید",两次密码输入不同:"رمز جدید را دو بار وارد کنید","邀请码(选填)":"کد دعوت (اختیاری)",'我已阅读并同意 服务条款':"من شرایط خدمات را خوانده‌ام و با آن موافقم",请同意服务条款:"لطفاً با شرایط خدمات موافقت کنید",名称:"نام ویژگی محصول",标签:"برچسب‌ها",状态:"وضعیت",节点五分钟内节点在线情况:"وضعیت آنلاین گره را در عرض پنج دقیقه ثبت کنید",倍率:"بزرگنمایی",使用的流量将乘以倍率进行扣除:"جریان استفاده شده در ضریب برای کسر ضرب خواهد شد",更多操作:"اکشن های بیشتر","没有可用节点,如果您未订阅或已过期请":"هیچ گره ای در دسترس نیست، اگر مشترک نیستید یا منقضی شده اید، لطفاً","确定重置当前已用流量?":"آیا مطمئن هستید که می خواهید داده های استفاده شده فعلی را بازنشانی کنید؟","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"برای رفتن به صندوقدار روی 'OK' کلیک کنید. پس از پرداخت سفارش، سیستم اطلاعاتی را که برای ماه استفاده کرده اید پاک می کند.",确定:"تأیید",低:"پایین",中:"متوسط",高:"بالا",主题:"موضوع",工单级别:"سطح بلیط",工单状态:"وضعیت درخواست",最后回复:"آخرین پاسخ",已关闭:"پایان‌یافته",待回复:"در انتظار پاسخ",已回复:"پاسخ داده",查看:"بازدیدها",关闭:"بستن",新的工单:"سفارش کار جدید",确认:"تاييدات",请输入工单主题:"لطفا موضوع بلیط را وارد کنید",工单等级:"سطح سفارش کار",请选择工单等级:"لطفا سطح بلیط را انتخاب کنید",消息:"پیام ها",请描述你遇到的问题:"لطفا مشکلی که با آن مواجه شدید را شرح دهید",记录时间:"زمان ضبط",实际上行:"نقطه ضعف واقعی",实际下行:"نقطه ضعف واقعی",合计:"تعداد ارزش‌ها","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"فرمول: (خط واقعی + پایین دست واقعی) x نرخ کسر = ترافیک کسر شده",复制订阅地址:"آدرس اشتراک را کپی کنید",导入到:"واردات در:",一键订阅:"اشتراک با یک کلیک",复制订阅:"اشتراک را کپی کنید",推广佣金划转至余额:"کمیسیون ارتقاء به موجودی منتقل می شود","划转后的余额仅用于{title}消费使用":"موجودی منتقل شده فقط برای مصرف {title} استفاده می شود",当前推广佣金余额:"موجودی کمیسیون ترفیع فعلی",划转金额:"مقدار انتقال",请输入需要划转到余额的金额:"لطفا مبلغی را که باید به موجودی منتقل شود وارد کنید","输入内容回复工单...":"برای پاسخ به تیکت محتوا را وارد کنید...",申请提现:"برای انصراف اقدام کنید",取消:"انصراف",提现方式:"روش برداشت",请选择提现方式:"لطفاً یک روش برداشت را انتخاب کنید",提现账号:"حساب برداشت",请输入提现账号:"لطفا حساب برداشت را وارد کنید",我知道了:"می فهمم",第一步:"گام ۱",第二步:"گام ۲",打开Telegram搜索:"جستجوی تلگرام را باز کنید",向机器人发送你的:"ربات های خود را بفرستید","最后更新: {date}":"آخرین به روز رسانی: {date}",还有没支付的订单:"هنوز سفارشات پرداخت نشده وجود دارد",立即支付:"اکنون پرداخت کنید",条工单正在处理中:"بلیط در حال پردازش است",立即查看:"آن را در عمل ببینید",节点状态:"وضعیت گره",商品信息:"مشتریان ثبت نام شده",产品名称:"عنوان کالا","类型/周期":"نوع/چرخه",产品流量:"جریان محصول",订单信息:"اطلاعات سفارش",关闭订单:"سفارش بستن",订单号:"شماره سفارش",优惠金额:"قیمت با تخفیف",旧订阅折抵金额:"مبلغ تخفیف اشتراک قدیمی",退款金额:"کل مبلغ مسترد شده",余额支付:"پرداخت مانده",工单历史:"تاریخچه بلیط","已用流量将在 {reset_day} 日后重置":"داده‌های استفاده شده ظرف {reset_day} روز بازنشانی می‌شوند",已用流量已在今日重置:"امروز بازنشانی داده استفاده شده است",重置已用流量:"بازنشانی داده های استفاده شده",查看节点状态:"مشاهده وضعیت گره","当前已使用流量达{rate}%":"ترافیک استفاده شده در حال حاضر در {rate}%",节点名称:"نام گره","于 {date} 到期,距离到期还有 {day} 天。":"در {date} منقضی می‌شود که {day} روز دیگر است.","Telegram 讨论组":"گروه گفتگوی تلگرام",立即加入:"حالا پیوستن","该订阅无法续费,仅允许新用户购买":"این اشتراک قابل تمدید نیست، فقط کاربران جدید مجاز به خرید آن هستند",重置当月流量:"بازنشانی ترافیک ماه جاری","流量明细仅保留近月数据以供查询。":"جزئیات ترافیک فقط داده های ماه های اخیر را برای پرس و جو حفظ می کند.",扣费倍率:"نرخ کسر",支付手续费:"پرداخت هزینه های پردازش",续费订阅:"تمدید اشتراک",学习如何使用:"نحوه استفاده را یاد بگیرید",快速将节点导入对应客户端进行使用:"به سرعت گره ها را برای استفاده به مشتری مربوطه وارد کنید",对您当前的订阅进行续费:"با اشتراک فعلی خود خرید کنید",对您当前的订阅进行购买:"با اشتراک فعلی خود خرید کنید",捷径:"میانبر","不会使用,查看使用教程":"استفاده نمی شود، به آموزش مراجعه کنید",使用支持扫码的客户端进行订阅:"برای اشتراک از کلاینتی استفاده کنید که از کد اسکن پشتیبانی می کند",扫描二维码订阅:"برای اشتراک، کد QR را اسکن کنید",续费:"تمدید",购买:"خرید",查看教程:"مشاهده آموزش",注意:"یادداشت!","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"هنوز سفارشات ناتمام دارید. قبل از خرید باید آن را لغو کنید. آیا مطمئن هستید که می‌خواهید سفارش قبلی را لغو کنید؟",确定取消:"تایید لغو",返回我的订单:"بازگشت به سفارش من","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"اگر قبلاً پرداخت کرده‌اید، لغو سفارش ممکن است باعث عدم موفقیت در پرداخت شود. آیا مطمئن هستید که می‌خواهید سفارش را لغو کنید؟",选择最适合你的计划:"طرحی را انتخاب کنید که مناسب شما باشد",全部:"تمام",按周期:"توسط چرخه",遇到问题:"ما یک مشکل داریم",遇到问题可以通过工单与我们沟通:"در صورت بروز مشکل می توانید از طریق تیکت با ما در ارتباط باشید",按流量:"با جریان",搜索文档:"جستجوی اسناد",技术支持:"دریافت پشتیبانی",当前剩余佣金:"کمیسیون فعلی باقی مانده",三级分销比例:"نسبت توزیع سه لایه",累计获得佣金:"کمیسیون انباشته شده","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"کاربرانی که برای دعوت مجدد از کاربران دعوت می کنید بر اساس نسبت مقدار سفارش ضرب در سطح توزیع تقسیم می شوند.",发放时间:"زمان پرداخت","{number} 人":"{number} نفر","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"در صورت انتشار آدرس یا حساب اشتراک شما و سوء استفاده از آن توسط دیگران، می‌توانید اطلاعات اشتراک خود را در اینجا بازنشانی کنید تا از زیان‌های غیرضروری جلوگیری شود.",再次输入密码:"ورود مجدد رمز عبور",返回登陆:"بازگشت به ورود",选填:"اختیاری",必填:"الزامی",最后回复时间:"زمان آخرین پاسخ",请选项工单等级:"لطفاً اولویت تیکت را انتخاب کنید",回复:"پاسخ",输入内容回复工单:"محتوا را برای پاسخ به تیکت وارد کنید",已生成:"تولید شده",选择协议:"انتخاب پروتکل",自动:"خودکار",流量重置包:"بسته بازنشانی داده",复制失败:"کپی ناموفق بود",提示:"اطلاع","确认退出?":"تأیید خروج?",已退出登录:"با موفقیت خارج شده",请输入邮箱地址:"آدرس ایمیل را وارد کنید","{second}秒后可重新发送":"{second} ثانیه دیگر می‌توانید مجدداً ارسال کنید",发送成功:"با موفقیت ارسال شد",请输入账号密码:"نام کاربری و رمز عبور را وارد کنید",请确保两次密码输入一致:"اطمینان حاصل کنید که ورودهای رمز عبور مطابقت دارند",注册成功:"ثبت نام با موفقیت انجام شد","重置密码成功,正在返回登录":"با موفقیت رمز عبور بازنشانی شد، در حال بازگشت به صفحه ورود",确认取消:"تایید لغو","请注意,变更订阅会导致当前订阅被覆盖。":"لطفاً توجه داشته باشید که تغییر اشتراک موجب ایجاد اشتراک فعلی می‌شود.","订单提交成功,正在跳转支付":"سفارش با موفقیت ثبت شد، به پرداخت هدایت می‌شود.",回复成功:"پاسخ با موفقیت ارسال شد",工单详情:"جزئیات تیکت",登录成功:"ورود موفقیت‌آمیز","确定退出?":"آیا مطمئن هستید که می‌خواهید خارج شوید؟",支付成功:"پرداخت موفق",正在前往收银台:"در حال رفتن به صندوق پرداخت",请输入正确的划转金额:"لطفا مبلغ انتقال صحیح را وارد کنید",划转成功:"انتقال موفق",提现方式不能为空:"روش برداشت نمی‌تواند خالی باشد",提现账号不能为空:"حساب برداشت نمی‌تواند خالی باشد",已绑定:"قبلاً متصل شده",创建成功:"ایجاد موفقیت‌آمیز",关闭成功:"خاموش کردن موفق"},Fk=Object.freeze(Object.defineProperty({__proto__:null,default:T7e},Symbol.toStringTag,{value:"Module"})),E7e={请求失败:"リクエストエラー",月付:"月間プラン",季付:"3か月プラン",半年付:"半年プラン",年付:"年間プラン",两年付:"2年プラン",三年付:"3年プラン",一次性:"一括払い",重置流量包:"使用済みデータをリセット",待支付:"お支払い待ち",开通中:"開通中",已取消:"キャンセル済み",已完成:"済み",已折抵:"控除済み",待确认:"承認待ち",发放中:"処理中",已发放:"処理済み",无效:"無効",个人中心:"会員メニュー",登出:"ログアウト",搜索:"検索",仪表盘:"ダッシュボード",订阅:"サブスクリプションプラン",我的订阅:"マイプラン",购买订阅:"プランの購入",财务:"ファイナンス",我的订单:"注文履歴",我的邀请:"招待リスト",用户:"ユーザー",我的工单:"お問い合わせ",流量明细:"データ通信明細",使用文档:"ナレッジベース",绑定Telegram获取更多服务:"Telegramと連携し各種便利な通知を受け取ろう",点击这里进行绑定:"こちらをクリックして連携開始",公告:"お知らせ",总览:"概要",该订阅长期有效:"時間制限なし",已过期:"期限切れ","已用 {used} / 总计 {total}":"使用済み {used} / 合計 {total}",查看订阅:"プランを表示",邮箱:"E-mail アドレス",邮箱验证码:"確認コード",发送:"送信",重置密码:"パスワードを変更",返回登入:"ログインページへ戻る",邀请码:"招待コード",复制链接:"URLをコピー",完成时间:"完了日時",佣金:"コミッション金額",已注册用户数:"登録済みユーザー数",佣金比例:"コミッションレート",确认中的佣金:"承認待ちのコミッション","佣金将会在确认后会到达你的佣金账户。":"コミッションは承認処理完了後にカウントされます",邀请码管理:"招待コードの管理",生成邀请码:"招待コードを生成",佣金发放记录:"コミッション履歴",复制成功:"クリップボードにコピーされました",密码:"パスワード",登入:"ログイン",注册:"新規登録",忘记密码:"パスワードをお忘れの方","# 订单号":"受注番号",周期:"サイクル",订单金额:"ご注文金額",订单状态:"ご注文状況",创建时间:"作成日時",操作:"アクション",查看详情:"詳細を表示",请选择支付方式:"支払い方法をお選びください",请检查信用卡支付信息:"クレジットカード決済情報をご確認ください",订单详情:"ご注文詳細",折扣:"割引",折抵:"控除",退款:"払い戻し",支付方式:"お支払い方法",填写信用卡支付信息:"クレジットカード決済情報をご入力ください。","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"お客様のカード情報は今回限りリクエストされ、記録に残ることはございません",订单总额:"ご注文の合計金額",总计:"合計金額",结账:"チェックアウト",等待支付中:"お支払い待ち","订单系统正在进行处理,请稍等1-3分钟。":"システム処理中です、しばらくお待ちください","订单由于超时支付已被取消。":"ご注文はキャンセルされました","订单已支付并开通。":"お支払いが完了しました、プランはご利用可能です",选择订阅:"プランをお選びください",立即订阅:"今すぐ購入",配置订阅:"プランの内訳",付款周期:"お支払いサイクル","有优惠券?":"キャンペーンコード",验证:"確定",下单:"チェックアウト","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"プランを変更なされます場合は、既存のプランが新規プランによって上書きされます、ご注意下さい",该订阅无法续费:"該当プランは継続利用できません",选择其他订阅:"その他のプランを選択",我的钱包:"マイウォレット","账户余额(仅消费)":"残高(サービスの購入のみ)","推广佣金(可提现)":"招待によるコミッション(出金可)",钱包组成部分:"ウォレットの内訳",划转:"お振替",推广佣金提现:"コミッションのお引き出し",修改密码:"パスワードの変更",保存:"変更を保存",旧密码:"現在のパスワード",新密码:"新しいパスワード",请输入旧密码:"現在のパスワードをご入力ください",请输入新密码:"新しいパスワードをご入力ください",通知:"お知らせ",到期邮件提醒:"期限切れ前にメールで通知",流量邮件提醒:"データ量不足時にメールで通知",绑定Telegram:"Telegramと連携",立即开始:"今すぐ連携開始",重置订阅信息:"サブスクリプションURLの変更",重置:"変更","确定要重置订阅信息?":"サブスクリプションURLをご変更なされますか?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"サブスクリプションのURL及び情報が外部に漏れた場合にご操作ください。操作後はUUIDやURLが変更され、再度サブスクリプションのインポートが必要になります。",重置成功:"変更完了",两次新密码输入不同:"ご入力されました新しいパスワードが一致しません",两次密码输入不同:"ご入力されましたパスワードが一致しません","邀请码(选填)":"招待コード (オプション)",'我已阅读并同意 服务条款':"ご利用規約に同意します",请同意服务条款:"ご利用規約に同意してください",名称:"名称",标签:"ラベル",状态:"ステータス",节点五分钟内节点在线情况:"5分間のオンラインステータス",倍率:"適応レート",使用的流量将乘以倍率进行扣除:"通信量は該当レートに基き計算されます",更多操作:"アクション","没有可用节点,如果您未订阅或已过期请":"ご利用可能なサーバーがありません,プランの期限切れまたは購入なされていない場合は","确定重置当前已用流量?":"利用済みデータ量をリセットしますか?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"「確定」をクリックし次のページへ移動,お支払い後に当月分のデータ通信量は即時リセットされます",确定:"確定",低:"低",中:"中",高:"高",主题:"タイトル",工单级别:"プライオリティ",工单状态:"進捗状況",最后回复:"最終回答日時",已关闭:"終了",待回复:"対応待ち",已回复:"回答済み",查看:"閲覧",关闭:"終了",新的工单:"新規お問い合わせ",确认:"確定",请输入工单主题:"お問い合わせタイトルをご入力ください",工单等级:"ご希望のプライオリティ",请选择工单等级:"ご希望のプライオリティをお選びください",消息:"メッセージ",请描述你遇到的问题:"お問い合わせ内容をご入力ください",记录时间:"記録日時",实际上行:"アップロード",实际下行:"ダウンロード",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"計算式:(アップロード + ダウンロード) x 適応レート = 使用済みデータ通信量",复制订阅地址:"サブスクリプションのURLをコピー",导入到:"インポート先:",一键订阅:"ワンクリックインポート",复制订阅:"サブスクリプションのURLをコピー",推广佣金划转至余额:"コミッションを残高へ振替","划转后的余额仅用于{title}消费使用":"振替済みの残高は{title}でのみご利用可能です",当前推广佣金余额:"現在のコミッション金額",划转金额:"振替金額",请输入需要划转到余额的金额:"振替金額をご入力ください","输入内容回复工单...":"お問い合わせ内容をご入力ください...",申请提现:"出金申請",取消:"キャンセル",提现方式:"お振込み先",请选择提现方式:"お振込み先をお選びください",提现账号:"お振り込み先口座",请输入提现账号:"お振込み先口座をご入力ください",我知道了:"了解",第一步:"ステップその1",第二步:"ステップその2",打开Telegram搜索:"Telegramを起動後に右記内容を入力し検索",向机器人发送你的:"テレグラムボットへ下記内容を送信","最后更新: {date}":"最終更新日: {date}",还有没支付的订单:"未払いのご注文があります",立即支付:"チェックアウト",条工单正在处理中:"件のお問い合わせ",立即查看:"閲覧",节点状态:"サーバーステータス",商品信息:"プラン詳細",产品名称:"プラン名","类型/周期":"サイクル",产品流量:"ご利用可能データ量",订单信息:"オーダー情報",关闭订单:"注文をキャンセル",订单号:"受注番号",优惠金额:"'割引額",旧订阅折抵金额:"既存プラン控除額",退款金额:"返金額",余额支付:"残高ご利用分",工单历史:"お問い合わせ履歴","已用流量将在 {reset_day} 日后重置":"利用済みデータ量は {reset_day} 日後にリセットします",已用流量已在今日重置:"利用済みデータ量は本日リセットされました",重置已用流量:"利用済みデータ量をリセット",查看节点状态:"接続先サーバのステータス","当前已使用流量达{rate}%":"データ使用量が{rate}%になりました",节点名称:"サーバー名","于 {date} 到期,距离到期还有 {day} 天。":"ご利用期限は {date} まで,期限まであと {day} 日","Telegram 讨论组":"Telegramグループ",立即加入:"今すぐ参加","该订阅无法续费,仅允许新用户购买":"該当プランは継続利用できません、新規ユーザーのみが購入可能です",重置当月流量:"使用済みデータ量のカウントリセット","流量明细仅保留近月数据以供查询。":"データ通信明細は当月分のみ表示されます",扣费倍率:"適応レート",支付手续费:"お支払い手数料",续费订阅:"購読更新",学习如何使用:"ご利用ガイド",快速将节点导入对应客户端进行使用:"最短ルートでサーバー情報をアプリにインポートして使用する",对您当前的订阅进行续费:"ご利用中のサブスクの継続料金を支払う",对您当前的订阅进行购买:"ご利用中のサブスクを再度購入する",捷径:"ショートカット","不会使用,查看使用教程":"ご利用方法がわからない方はナレッジベースをご閲覧ください",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"QRコードをスキャンしてサブスクを設定",续费:"更新",购买:"購入",查看教程:"チュートリアルを表示",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"まだ購入が完了していないオーダーがあります。購入前にそちらをキャンセルする必要がありますが、キャンセルしてよろしいですか?",确定取消:"キャンセル",返回我的订单:"注文履歴に戻る","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"もし既にお支払いが完了していると、注文をキャンセルすると支払いが失敗となる可能性があります。キャンセルしてもよろしいですか?",选择最适合你的计划:"あなたにピッタリのプランをお選びください",全部:"全て",按周期:"期間順",遇到问题:"何かお困りですか?",遇到问题可以通过工单与我们沟通:"何かお困りでしたら、お問い合わせからご連絡ください。",按流量:"データ通信量順",搜索文档:"ドキュメント内を検索",技术支持:"テクニカルサポート",当前剩余佣金:"コミッション残高",三级分销比例:"3ティア比率",累计获得佣金:"累計獲得コミッション金額","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"お客様に招待された方が更に別の方を招待された場合、お客様は支払われるオーダーからティア分配分の比率分を受け取ることができます。",发放时间:"手数料支払時間","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"購読アドレスまたはアカウントが漏れて他者に悪用された場合、不必要な損失を防ぐためにここで購読情報をリセットできます。",再次输入密码:"パスワードを再入力してください",返回登陆:"ログインに戻る",选填:"任意",必填:"必須",最后回复时间:"最終返信時刻",请选项工单等级:"チケットの優先度を選択してください",回复:"返信",输入内容回复工单:"チケットへの返信内容を入力",已生成:"生成済み",选择协议:"プロトコルの選択",自动:"自動",流量重置包:"データリセットパッケージ",复制失败:"コピーに失敗しました",提示:"通知","确认退出?":"ログアウトを確認?",已退出登录:"正常にログアウトしました",请输入邮箱地址:"メールアドレスを入力してください","{second}秒后可重新发送":"{second} 秒後に再送信可能",发送成功:"送信成功",请输入账号密码:"アカウントとパスワードを入力してください",请确保两次密码输入一致:"パスワードの入力が一致していることを確認してください",注册成功:"登録が成功しました","重置密码成功,正在返回登录":"パスワードのリセットが成功しました。ログインに戻っています",确认取消:"キャンセルの確認","请注意,变更订阅会导致当前订阅被覆盖。":"購読の変更は現在の購読を上書きします。","订单提交成功,正在跳转支付":"注文が成功裏に送信されました。支払いにリダイレクトしています。",回复成功:"返信が成功しました",工单详情:"チケットの詳細",登录成功:"ログイン成功","确定退出?":"本当に退出しますか?",支付成功:"支払い成功",正在前往收银台:"チェックアウトに進行中",请输入正确的划转金额:"正しい振替金額を入力してください",划转成功:"振替成功",提现方式不能为空:"出金方法は空にできません",提现账号不能为空:"出金口座を空にすることはできません",已绑定:"既にバインドされています",创建成功:"作成成功",关闭成功:"閉鎖成功"},Dk=Object.freeze(Object.defineProperty({__proto__:null,default:E7e},Symbol.toStringTag,{value:"Module"})),R7e={请求失败:"요청실패",月付:"월간",季付:"3개월간",半年付:"반년간",年付:"1년간",两年付:"2년마다",三年付:"3년마다",一次性:"한 번",重置流量包:"데이터 재설정 패키지",待支付:"지불 보류중",开通中:"보류 활성화",已取消:"취소 됨",已完成:"완료",已折抵:"변환",待确认:"보류중",发放中:"확인중",已发放:"완료",无效:"유효하지 않음",个人中心:"사용자 센터",登出:"로그아웃",搜索:"검색",仪表盘:"대시보드",订阅:"구독",我的订阅:"나의 구독",购买订阅:"구독 구매 내역",财务:"청구",我的订单:"나의 주문",我的邀请:"나의 초청",用户:"사용자 센터",我的工单:"나의 티켓",流量明细:"데이터 세부 정보 전송",使用文档:"사용 설명서",绑定Telegram获取更多服务:"텔레그램에 아직 연결되지 않았습니다",点击这里进行绑定:"텔레그램에 연결되도록 여기를 눌러주세요",公告:"발표",总览:"개요",该订阅长期有效:"구독은 무제한으로 유효합니다",已过期:"만료","已用 {used} / 总计 {total}":"{date}에 만료됩니다, 만료 {day}이 전, {reset_day}후 데이터 전송 재설정",查看订阅:"구독 보기",邮箱:"이메일",邮箱验证码:"이메일 확인 코드",发送:"보내기",重置密码:"비밀번호 재설정",返回登入:"로그인 다시하기",邀请码:"초청 코드",复制链接:"링크 복사",完成时间:"완료 시간",佣金:"수수료",已注册用户数:"등록 된 사용자들",佣金比例:"수수료율",确认中的佣金:"수수료 상태","佣金将会在确认后会到达你的佣金账户。":"수수료는 검토 후 수수료 계정에서 확인할 수 있습니다",邀请码管理:"초청 코드 관리",生成邀请码:"초청 코드 생성하기",佣金发放记录:"수수료 지불 기록",复制成功:"복사 성공",密码:"비밀번호",登入:"로그인",注册:"등록하기",忘记密码:"비밀번호를 잊으셨나요","# 订单号":"주문 번호 #",周期:"유형/기간",订单金额:"주문량",订单状态:"주문 상태",创建时间:"생성 시간",操作:"설정",查看详情:"세부사항 보기",请选择支付方式:"지불 방식을 선택 해주세요",请检查信用卡支付信息:"신용카드 지불 정보를 확인 해주세요",订单详情:"주문 세부사항",折扣:"할인",折抵:"변환",退款:"환불",支付方式:"지불 방식",填写信用卡支付信息:"신용카드 지불 정보를 적으세요","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"현재 거래를 확인하는 데 사용하는 귀하의 신용 카드 정보, 신용 카드 번호 및 기타 세부 정보를 수집하지 않습니다.",订单总额:"전체주문",总计:"전체",结账:"결제하기",等待支付中:"결제 대기 중","订单系统正在进行处理,请稍等1-3分钟。":"주문 시스템이 처리 중입니다. 1-3분 정도 기다려 주십시오.","订单由于超时支付已被取消。":"결제 시간 초과로 인해 주문이 취소되었습니다.","订单已支付并开通。":"주문이 결제되고 개통되었습니다.",选择订阅:"구독 선택하기",立即订阅:"지금 구독하기",配置订阅:"구독 환경 설정하기",付款周期:"지불 기간","有优惠券?":"쿠폰을 가지고 있나요?",验证:"확인",下单:"주문","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"주의하십시오. 구독을 변경하면 현재 구독을 덮어씁니다",该订阅无法续费:"이 구독은 갱신할 수 없습니다.",选择其他订阅:"다른 구독 선택",我的钱包:"나의 지갑","账户余额(仅消费)":"계정 잔액(결제 전용)","推广佣金(可提现)":"초청수수료(인출하는 데 사용할 수 있습니다)",钱包组成部分:"지갑 세부사항",划转:"이체하기",推广佣金提现:"초청 수수료 인출",修改密码:"비밀번호 변경",保存:"저장하기",旧密码:"이전 비밀번호",新密码:"새로운 비밀번호",请输入旧密码:"이전 비밀번호를 입력해주세요",请输入新密码:"새로운 비밀번호를 입력해주세요",通知:"공고",到期邮件提醒:"구독 만료 이메일 알림",流量邮件提醒:"불충분한 데이터 이메일 전송 알림",绑定Telegram:"탤레그램으로 연결",立即开始:"지금 시작하기",重置订阅信息:"구독 재설정하기",重置:"재설정","确定要重置订阅信息?":"구독을 재설정하시겠습니까?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"계정 정보나 구독이 누출된 경우 이 옵션은 UUID를 재설정하는 데 사용되며 재설정 후에 구독이 변경되므로 다시 구독해야 합니다.",重置成功:"재설정 성공",两次新密码输入不同:"입력한 두 개의 새 비밀번호가 일치하지 않습니다.",两次密码输入不同:"입력한 비밀번호가 일치하지 않습니다.","邀请码(选填)":"초청 코드(선택 사항)",'我已阅读并同意 服务条款':"을 읽었으며 이에 동의합니다 서비스 약관",请同意服务条款:"서비스 약관에 동의해주세요",名称:"이름",标签:"태그",状态:"설정",节点五分钟内节点在线情况:"지난 5분 동안의 액세스 포인트 온라인 상태",倍率:"요금",使用的流量将乘以倍率进行扣除:"사용된 전송 데이터에 전송 데이터 요금을 뺀 값을 곱합니다.",更多操作:"설정","没有可用节点,如果您未订阅或已过期请":"사용 가능한 액세스 포인트가 없습니다. 구독을 신청하지 않았거나 구독이 만료된 경우","确定重置当前已用流量?":"현재 사용 중인 데이터를 재설정 하시겠습니까?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'확인"을 클릭하면 결제 페이지로 이동됩니다. 주문이 완료되면 시스템에서 해당 월의 사용 데이터를 삭제합니다.',确定:"확인",低:"낮음",中:"중간",高:"높음",主题:"주제",工单级别:"티켓 우선 순위",工单状态:"티켓 상태",最后回复:"생성 시간",已关闭:"마지막 답장",待回复:"설정",已回复:"닫힘",查看:"보기",关闭:"닫기",新的工单:"새로운 티켓",确认:"확인",请输入工单主题:"제목을 입력하세요",工单等级:"티켓 우선순위",请选择工单等级:"티켓 우선순위를 선택해주세요",消息:"메세지",请描述你遇到的问题:"문제를 설명하십시오 발생한",记录时间:"기록 시간",实际上行:"실제 업로드",实际下行:"실제 다운로드",合计:"전체","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"공식: (실제 업로드 + 실제 다운로드) x 공제율 = 전송 데이터 공제",复制订阅地址:"구독 URL 복사",导入到:"내보내기",一键订阅:"빠른 구독",复制订阅:"구독 URL 복사",推广佣金划转至余额:"초청 수수료를 계좌 잔액으로 이체","划转后的余额仅用于{title}消费使用":"이체된 잔액은 {title} 소비에만 사용됩니다.",当前推广佣金余额:"현재 홍보 수수료 잔액",请输入需要划转到余额的金额:"잔액으로 이체할 금액을 입력하세요.",取消:"취소",提现方式:"인출 방법",请选择提现方式:"인출 방법을 선택해주세요",提现账号:"인출 계좌",请输入提现账号:"인출 계좌를 입력해주세요",我知道了:"알겠습니다.",第一步:"첫번째 단계",第二步:"두번째 단계",打开Telegram搜索:"텔레그램 열기 및 탐색",向机器人发送你的:"봇에 다음 명령을 보냅니다","最后更新: {date}":"마지막 업데이트{date}",还有没支付的订单:"미결제 주문이 있습니다",立即支付:"즉시 지불",条工单正在处理中:"티켓이 처리 중입니다",立即查看:"제목을 입력하세요",节点状态:"노드 상태",商品信息:"제품 정보",产品名称:"제품 명칭","类型/周期":"종류/기간",产品流量:"제품 데이터 용량",订单信息:"주문 정보",关闭订单:"주문 취소",订单号:"주문 번호",优惠金额:"할인 가격",旧订阅折抵金额:"기존 패키지 공제 금액",退款金额:"환불 금액",余额支付:"잔액 지불",工单历史:"티켓 기록","已用流量将在 {reset_day} 日后重置":"{reset_day}일 후에 사용한 데이터가 재설정됩니다",已用流量已在今日重置:"오늘 이미 사용한 데이터가 재설정되었습니다",重置已用流量:"사용한 데이터 재설정",查看节点状态:"노드 상태 확인","当前已使用流量达{rate}%":"현재 사용한 데이터 비율이 {rate}%에 도달했습니다",节点名称:"환불 금액","于 {date} 到期,距离到期还有 {day} 天。":"{day}까지, 만료 {day}일 전.","Telegram 讨论组":"텔레그램으로 문의하세요",立即加入:"지금 가입하세요","该订阅无法续费,仅允许新用户购买":"이 구독은 갱신할 수 없습니다. 신규 사용자만 구매할 수 있습니다.",重置当月流量:"이번 달 트래픽 초기화","流量明细仅保留近月数据以供查询。":"귀하의 트래픽 세부 정보는 최근 몇 달 동안만 유지됩니다",扣费倍率:"수수료 공제율",支付手续费:"수수료 지불",续费订阅:"구독 갱신",学习如何使用:"사용 방법 배우기",快速将节点导入对应客户端进行使用:"빠르게 노드를 해당 클라이언트로 가져와 사용하기",对您当前的订阅进行续费:"현재 구독 갱신",对您当前的订阅进行购买:"현재 구독 구매",捷径:"단축키","不会使用,查看使用教程":"사용 방법을 모르겠다면 사용 설명서 확인",使用支持扫码的客户端进行订阅:"스캔 가능한 클라이언트로 구독하기",扫描二维码订阅:"QR 코드 스캔하여 구독",续费:"갱신",购买:"구매",查看教程:"사용 설명서 보기",注意:"주의","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"미완료된 주문이 있습니다. 구매 전에 취소해야 합니다. 이전 주문을 취소하시겠습니까?",确定取消:"취소 확인",返回我的订单:"내 주문으로 돌아가기","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"이미 결제를 했을 경우 주문 취소는 결제 실패로 이어질 수 있습니다. 주문을 취소하시겠습니까?",选择最适合你的计划:"가장 적합한 요금제 선택",全部:"전체",按周期:"주기별",遇到问题:"문제 발생",遇到问题可以通过工单与我们沟通:"문제가 발생하면 서포트 티켓을 통해 문의하세요",按流量:"트래픽별",搜索文档:"문서 검색",技术支持:"기술 지원",当前剩余佣金:"현재 잔여 수수료",三级分销比例:"삼수준 분배 비율",累计获得佣金:"누적 수수료 획득","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"초대한 사용자가 다시 초대하면 주문 금액에 분배 비율을 곱하여 분배됩니다.",发放时间:"수수료 지급 시간","{number} 人":"{number} 명","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"구독 주소 또는 계정이 유출되어 다른 사람에게 남용되는 경우 여기에서 구독 정보를 재설정하여 불필요한 손실을 방지할 수 있습니다.",再次输入密码:"비밀번호를 다시 입력하세요",返回登陆:"로그인으로 돌아가기",选填:"선택 사항",必填:"필수",最后回复时间:"최근 답장 시간",请选项工单等级:"티켓 우선 순위 선택",回复:"답장",输入内容回复工单:"티켓에 대한 내용 입력",已生成:"생성됨",选择协议:"프로토콜 선택",自动:"자동",流量重置包:"데이터 리셋 패키지",复制失败:"복사 실패",提示:"알림","确认退出?":"로그아웃 확인?",已退出登录:"로그아웃 완료",请输入邮箱地址:"이메일 주소를 입력하세요","{second}秒后可重新发送":"{second} 초 후에 다시 전송 가능",发送成功:"전송 성공",请输入账号密码:"계정과 비밀번호를 입력하세요",请确保两次密码输入一致:"비밀번호 입력이 일치하는지 확인하세요",注册成功:"등록 성공","重置密码成功,正在返回登录":"비밀번호 재설정 성공, 로그인 페이지로 돌아가는 중",确认取消:"취소 확인","请注意,变更订阅会导致当前订阅被覆盖。":"구독 변경은 현재 구독을 덮어씁니다.","订单提交成功,正在跳转支付":"주문이 성공적으로 제출되었습니다. 지불로 이동 중입니다.",回复成功:"답장 성공",工单详情:"티켓 상세 정보",登录成功:"로그인 성공","确定退出?":"확실히 종료하시겠습니까?",支付成功:"결제 성공",正在前往收银台:"결제 진행 중",请输入正确的划转金额:"정확한 이체 금액을 입력하세요",划转成功:"이체 성공",提现方式不能为空:"출금 방식은 비워 둘 수 없습니다",提现账号不能为空:"출금 계좌는 비워 둘 수 없습니다",已绑定:"이미 연결됨",创建成功:"생성 성공",关闭成功:"종료 성공"},Lk=Object.freeze(Object.defineProperty({__proto__:null,default:R7e},Symbol.toStringTag,{value:"Module"})),A7e={请求失败:"Yêu Cầu Thất Bại",月付:"Tháng",季付:"Hàng Quý",半年付:"6 Tháng",年付:"Năm",两年付:"Hai Năm",三年付:"Ba Năm",一次性:"Dài Hạn",重置流量包:"Cập Nhật Dung Lượng",待支付:"Đợi Thanh Toán",开通中:"Đang xử lý",已取消:"Đã Hủy",已完成:"Thực Hiện",已折抵:"Quy Đổi",待确认:"Đợi Xác Nhận",发放中:"Đang Xác Nhận",已发放:"Hoàn Thành",无效:"Không Hợp Lệ",个人中心:"Trung Tâm Kiểm Soát",登出:"Đăng Xuất",搜索:"Tìm Kiếm",仪表盘:"Trang Chủ",订阅:"Gói Dịch Vụ",我的订阅:"Gói Dịch Vụ Của Tôi",购买订阅:"Mua Gói Dịch Vụ",财务:"Tài Chính",我的订单:"Đơn Hàng Của Tôi",我的邀请:"Lời Mời Của Tôi",用户:"Người Dùng",我的工单:"Liên Hệ Với Chúng Tôi",流量明细:"Chi Tiết Dung Lượng",使用文档:"Tài liệu sử dụng",绑定Telegram获取更多服务:"Liên kết Telegram thêm dịch vụ",点击这里进行绑定:"Ấn vào để liên kết",公告:"Thông Báo",总览:"Tổng Quat",该订阅长期有效:"Gói này có thời hạn dài",已过期:"Tài khoản hết hạn","已用 {used} / 总计 {total}":"Đã sử dụng {used} / Tổng dung lượng {total}",查看订阅:"Xem Dịch Vụ",邮箱:"E-mail",邮箱验证码:"Mã xác minh mail",发送:"Gửi",重置密码:"Đặt Lại Mật Khẩu",返回登入:"Về đăng nhập",邀请码:"Mã mời",复制链接:"Sao chép đường dẫn",完成时间:"Thời gian hoàn thành",佣金:"Tiền hoa hồng",已注册用户数:"Số người dùng đã đăng ký",佣金比例:"Tỷ lệ hoa hồng",确认中的佣金:"Hoa hồng đang xác nhận","佣金将会在确认后会到达你的佣金账户。":"Sau khi xác nhận tiền hoa hồng sẽ gửi đến tài khoản hoa hồng của bạn.",邀请码管理:"Quản lý mã mời",生成邀请码:"Tạo mã mời",佣金发放记录:"Hồ sơ hoa hồng",复制成功:"Sao chép thành công",密码:"Mật khẩu",登入:"Đăng nhập",注册:"Đăng ký",忘记密码:"Quên mật khẩu","# 订单号":"# Mã đơn hàng",周期:"Chu Kỳ",订单金额:"Tiền đơn hàng",订单状态:"Trạng thái đơn",创建时间:"Thời gian tạo",操作:"Thao tác",查看详情:"Xem chi tiết",请选择支付方式:"Chọn phương thức thanh toán",请检查信用卡支付信息:"Hãy kiểm tra thông tin thẻ thanh toán",订单详情:"Chi tiết đơn hàng",折扣:"Chiết khấu",折抵:"Giảm giá",退款:"Hoàn lại",支付方式:"Phương thức thanh toán",填写信用卡支付信息:"Điền thông tin Thẻ Tín Dụng","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"Thông tin thẻ tín dụng của bạn sẽ chỉ được sử dụng cho lần thanh toán này, hệ thống sẽ không lưu thông tin đó, chúng tôi nghĩ đây à cách an toàn nhất.",订单总额:"Tổng tiền đơn hàng",总计:"Tổng",结账:"Kết toán",等待支付中:"Đang chờ thanh toán","订单系统正在进行处理,请稍等1-3分钟。":"Hệ thống đang xử lý đơn hàng, vui lòng đợi 1-3p.","订单由于超时支付已被取消。":"Do quá giờ nên đã hủy đơn hàng.","订单已支付并开通。":"Đơn hàng đã thanh toán và mở.",选择订阅:"Chọn gói",立即订阅:"Mua gói ngay",配置订阅:"Thiết lập gói",付款周期:"Chu kỳ thanh toán","有优惠券?":"Có phiếu giảm giá?",验证:"Xác minh",下单:"Đặt hàng","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Việc thay đổi gói dịch vụ sẽ thay thế gói hiện tại bằng gói mới, xin lưu ý.",该订阅无法续费:"Gói này không thể gia hạn",选择其他订阅:"Chọn gói dịch vụ khác",我的钱包:"Ví tiền của tôi","账户余额(仅消费)":"Số dư tài khoản (Chỉ tiêu dùng)","推广佣金(可提现)":"Tiền hoa hồng giới thiệu (Được rút)",钱包组成部分:"Thành phần ví tiền",划转:"Chuyển khoản",推广佣金提现:"Rút tiền hoa hồng giới thiệu",修改密码:"Đổi mật khẩu",保存:"Lưu",旧密码:"Mật khẩu cũ",新密码:"Mật khẩu mới",请输入旧密码:"Hãy nhập mật khẩu cũ",请输入新密码:"Hãy nhập mật khẩu mới",通知:"Thông Báo",到期邮件提醒:"Mail nhắc đến hạn",流量邮件提醒:"Mail nhắc dung lượng",绑定Telegram:"Liên kết Telegram",立即开始:"Bắt Đầu",重置订阅信息:"Reset thông tin gói",重置:"Reset","确定要重置订阅信息?":"Xác nhận reset thông tin gói?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"Nếu địa chỉ hoặc thông tin gói dịch vụ của bạn bị tiết lộ có thể tiến hành thao tác này. Sau khi reset UUID sẽ thay đổi.",重置成功:"Reset thành công",两次新密码输入不同:"Mật khẩu mới xác nhận không khớp",两次密码输入不同:"Mật khẩu xác nhận không khớp","邀请码(选填)":"Mã mời(Điền)",'我已阅读并同意 服务条款':"Tôi đã đọc và đồng ý điều khoản dịch vụ",请同意服务条款:"Hãy đồng ý điều khoản dịch vụ",名称:"Tên",标签:"Nhãn",状态:"Trạng thái",节点五分钟内节点在线情况:"Node trạng thái online trong vòng 5 phút",倍率:"Bội số",使用的流量将乘以倍率进行扣除:"Dung lượng sử dụng nhân với bội số rồi khấu trừ",更多操作:"Thêm thao tác","没有可用节点,如果您未订阅或已过期请":"Chưa có node khả dụng, nếu bạn chưa mua gói hoặc đã hết hạn hãy","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"Ấn 「OK」 sẽ chuyển đến trang thanh toán, sau khi thanh toán đơn hàng hệ thống sẽ xóa dung lượng đã dùng tháng này của bạn.",确定:"OK",低:"Thấp",中:"Vừa",高:"Cao",主题:"Chủ Đề",工单级别:"Cấp độ",工单状态:"Trạng thái",最后回复:"Trả lời gần đây",已关闭:"Đã đóng",待回复:"Chờ trả lời",已回复:"Đã trả lời",查看:"Xem",关闭:"Đóng",新的工单:"Việc mới",确认:"OK",请输入工单主题:"Hãy nhập chủ đề công việc",工单等级:"Cấp độ công việc",请选择工单等级:"Hãy chọn cấp độ công việc",消息:"Thông tin",请描述你遇到的问题:"Hãy mô tả vấn đề gặp phải",记录时间:"Thời gian ghi",实际上行:"Upload thực tế",实际下行:"Download thực tế",合计:"Cộng","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Công thức: (upload thực tế + download thực tế) x bội số trừ phí = Dung lượng khấu trừ",复制订阅地址:"Sao chép liên kết",导入到:"Nhập vào",一键订阅:"Nhấp chuột để đồng bộ máy chủ",复制订阅:"Sao chép liên kết",推广佣金划转至余额:"Chuyển khoản hoa hồng giới thiệu đến số dư","划转后的余额仅用于{title}消费使用":"Số dư sau khi chuyển khoản chỉ dùng để tiêu dùng {title}",当前推广佣金余额:"Số dư hoa hồng giới thiệu hiện tại",划转金额:"Chuyển tiền",请输入需要划转到余额的金额:"Hãy nhậo số tiền muốn chuyển đến số dư","输入内容回复工单...":"Nhập nội dung trả lời công việc...",申请提现:"Yêu cầu rút tiền",取消:"Hủy",提现方式:"Phương thức rút tiền",请选择提现方式:"Hãy chọn phương thức rút tiền",提现账号:"Rút về tào khoản",请输入提现账号:"Hãy chọn tài khoản rút tiền",我知道了:"OK",第一步:"Bước 1",第二步:"Bước 2",打开Telegram搜索:"Mở Telegram tìm kiếm",向机器人发送你的:"Gửi cho bot","最后更新: {date}":"Cập nhật gần đây: {date}",还有没支付的订单:"Có đơn hàng chưa thanh toán",立即支付:"Thanh toán ngay",条工单正在处理中:" công việc đang xử lý",立即查看:"Xem Ngay",节点状态:"Trạng thái node",商品信息:"Thông tin",产品名称:"Tên sản phẩm","类型/周期":"Loại/Chu kỳ",产品流量:"Dung Lượng",订单信息:"Thông tin đơn hàng",关闭订单:"Đóng đơn hàng",订单号:"Mã đơn hàng",优惠金额:"Tiền ưu đãi",旧订阅折抵金额:"Tiền giảm giá gói cũ",退款金额:"Số tiền hoàn lại",余额支付:"Thanh toán số dư",工单历史:"Lịch sử đơn hàng","已用流量将在 {reset_day} 日后重置":"Dữ liệu đã sử dụng sẽ được đặt lại sau {reset_day} ngày",已用流量已在今日重置:"Dữ liệu đã sử dụng đã được đặt lại trong ngày hôm nay",重置已用流量:"Đặt lại dữ liệu đã sử dụng",查看节点状态:"Xem trạng thái nút","当前已使用流量达{rate}%":"Dữ liệu đã sử dụng hiện tại đạt {rate}%",节点名称:"Tên node","于 {date} 到期,距离到期还有 {day} 天。":"Hết hạn vào {date}, còn {day} ngày.","Telegram 讨论组":"Nhóm Telegram",立即加入:"Vào ngay","该订阅无法续费,仅允许新用户购买":"Đăng ký này không thể gia hạn, chỉ người dùng mới được phép mua",重置当月流量:"Đặt lại dung lượng tháng hiện tại","流量明细仅保留近月数据以供查询。":"Chi tiết dung lượng chỉ lưu dữ liệu của những tháng gần đây để truy vấn.",扣费倍率:"Tỷ lệ khấu trừ",支付手续费:"Phí thủ tục",续费订阅:"Gia hạn đăng ký",学习如何使用:"Hướng dẫn sử dụng",快速将节点导入对应客户端进行使用:"Bạn cần phải mua gói này",对您当前的订阅进行续费:"Gia hạn gói hiện tại",对您当前的订阅进行购买:"Mua gói bạn đã chọn",捷径:"Phím tắt","不会使用,查看使用教程":"Mua gói này nếu bạn đăng ký",使用支持扫码的客户端进行订阅:"Sử dụng ứng dụng quét mã để đăng ký",扫描二维码订阅:"Quét mã QR để đăng ký",续费:"Gia hạn",购买:"Mua",查看教程:"Xem hướng dẫn",注意:"Chú Ý","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"Bạn vẫn còn đơn đặt hàng chưa hoàn thành. Bạn cần hủy trước khi mua. Bạn có chắc chắn muốn hủy đơn đặt hàng trước đó không ?",确定取消:"Đúng/không",返回我的订单:"Quay lại đơn đặt hàng của tôi","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"Nếu bạn đã thanh toán, việc hủy đơn hàng có thể khiến việc thanh toán không thành công. Bạn có chắc chắn muốn hủy đơn hàng không ?",选择最适合你的计划:"Chọn kế hoạch phù hợp với bạn nhất",全部:"Tất cả",按周期:"Chu kỳ",遇到问题:"Chúng tôi có một vấn đề",遇到问题可以通过工单与我们沟通:"Nếu bạn gặp sự cố, bạn có thể liên lạc với chúng tôi thông qua ",按流量:"Theo lưu lượng",搜索文档:"Tìm kiếm tài liệu",技术支持:"Hỗ trợ kỹ thuật",当前剩余佣金:"Số dư hoa hồng hiện tại",三级分销比例:"Tỷ lệ phân phối cấp 3",累计获得佣金:"Tổng hoa hồng đã nhận","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"Người dùng bạn mời lại mời người dùng sẽ được chia theo tỷ lệ của số tiền đơn hàng nhân với cấp độ phân phối.",发放时间:"Thời gian thanh toán hoa hồng","{number} 人":"{number} người","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"Nếu địa chỉ đăng ký hoặc tài khoản của bạn bị rò rỉ và bị người khác lạm dụng, bạn có thể đặt lại thông tin đăng ký tại đây để tránh mất mát không cần thiết.",再次输入密码:"Nhập lại mật khẩu",返回登陆:"Quay lại Đăng nhập",选填:"Tùy chọn",必填:"Bắt buộc",最后回复时间:"Thời gian Trả lời Cuối cùng",请选项工单等级:"Vui lòng Chọn Mức độ Ưu tiên Công việc",回复:"Trả lời",输入内容回复工单:"Nhập Nội dung để Trả lời Công việc",已生成:"Đã tạo",选择协议:"Chọn Giao thức",自动:"Tự động",流量重置包:"Gói Reset Dữ liệu",复制失败:"Sao chép thất bại",提示:"Thông báo","确认退出?":"Xác nhận Đăng xuất?",已退出登录:"Đã đăng xuất thành công",请输入邮箱地址:"Nhập địa chỉ email","{second}秒后可重新发送":"Gửi lại sau {second} giây",发送成功:"Gửi thành công",请输入账号密码:"Nhập tên đăng nhập và mật khẩu",请确保两次密码输入一致:"Đảm bảo hai lần nhập mật khẩu giống nhau",注册成功:"Đăng ký thành công","重置密码成功,正在返回登录":"Đặt lại mật khẩu thành công, đang quay trở lại trang đăng nhập",确认取消:"Xác nhận Hủy","请注意,变更订阅会导致当前订阅被覆盖。":"Vui lòng lưu ý rằng thay đổi đăng ký sẽ ghi đè lên đăng ký hiện tại.","订单提交成功,正在跳转支付":"Đơn hàng đã được gửi thành công, đang chuyển hướng đến thanh toán.",回复成功:"Trả lời thành công",工单详情:"Chi tiết Ticket",登录成功:"Đăng nhập thành công","确定退出?":"Xác nhận thoát?",支付成功:"Thanh toán thành công",正在前往收银台:"Đang tiến hành thanh toán",请输入正确的划转金额:"Vui lòng nhập số tiền chuyển đúng",划转成功:"Chuyển khoản thành công",提现方式不能为空:"Phương thức rút tiền không được để trống",提现账号不能为空:"Tài khoản rút tiền không được để trống",已绑定:"Đã liên kết",创建成功:"Tạo thành công",关闭成功:"Đóng thành công"},Bk=Object.freeze(Object.defineProperty({__proto__:null,default:A7e},Symbol.toStringTag,{value:"Module"})),$7e={请求失败:"请求失败",月付:"月付",季付:"季付",半年付:"半年付",年付:"年付",两年付:"两年付",三年付:"三年付",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"开通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待确认",发放中:"发放中",已发放:"已发放",无效:"无效",个人中心:"个人中心",登出:"登出",搜索:"搜索",仪表盘:"仪表盘",订阅:"订阅",我的订阅:"我的订阅",购买订阅:"购买订阅",财务:"财务",我的订单:"我的订单",我的邀请:"我的邀请",用户:"用户",我的工单:"我的工单",流量明细:"流量明细",使用文档:"使用文档",绑定Telegram获取更多服务:"绑定 Telegram 获取更多服务",点击这里进行绑定:"点击这里进行绑定",公告:"公告",总览:"总览",该订阅长期有效:"该订阅长期有效",已过期:"已过期","已用 {used} / 总计 {total}":"已用 {used} / 总计 {total}",查看订阅:"查看订阅",邮箱:"邮箱",邮箱验证码:"邮箱验证码",发送:"发送",重置密码:"重置密码",返回登入:"返回登入",邀请码:"邀请码",复制链接:"复制链接",完成时间:"完成时间",佣金:"佣金",已注册用户数:"已注册用户数",佣金比例:"佣金比例",确认中的佣金:"确认中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金将会在确认后到达您的佣金账户。",邀请码管理:"邀请码管理",生成邀请码:"生成邀请码",佣金发放记录:"佣金发放记录",复制成功:"复制成功",密码:"密码",登入:"登入",注册:"注册",忘记密码:"忘记密码","# 订单号":"# 订单号",周期:"周期",订单金额:"订单金额",订单状态:"订单状态",创建时间:"创建时间",操作:"操作",查看详情:"查看详情",请选择支付方式:"请选择支付方式",请检查信用卡支付信息:"请检查信用卡支付信息",订单详情:"订单详情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填写信用卡支付信息","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡信息只会用于当次扣款,系统并不会保存,我们认为这是最安全的。",订单总额:"订单总额",总计:"总计",结账:"结账",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"订单系统正在进行处理,请等候 1-3 分钟。","订单由于超时支付已被取消。":"订单由于超时支付已被取消。","订单已支付并开通。":"订单已支付并开通。",选择订阅:"选择订阅",立即订阅:"立即订阅",配置订阅:"配置订阅",付款周期:"付款周期","有优惠券?":"有优惠券?",验证:"验证",下单:"下单","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"请注意,变更订阅会导致当前订阅被新订阅覆盖。",该订阅无法续费:"该订阅无法续费",选择其他订阅:"选择其它订阅",我的钱包:"我的钱包","账户余额(仅消费)":"账户余额(仅消费)","推广佣金(可提现)":"推广佣金(可提现)",钱包组成部分:"钱包组成部分",划转:"划转",推广佣金提现:"推广佣金提现",修改密码:"修改密码",保存:"保存",旧密码:"旧密码",新密码:"新密码",请输入旧密码:"请输入旧密码",请输入新密码:"请输入新密码",通知:"通知",到期邮件提醒:"到期邮件提醒",流量邮件提醒:"流量邮件提醒",绑定Telegram:"绑定 Telegram",立即开始:"立即开始",重置订阅信息:"重置订阅信息",重置:"重置","确定要重置订阅信息?":"确定要重置订阅信息?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的订阅地址或信息发生泄露可以执行此操作。重置后您的 UUID 及订阅将会变更,需要重新导入订阅。",重置成功:"重置成功",两次新密码输入不同:"两次新密码输入不同",两次密码输入不同:"两次密码输入不同","邀请码(选填)":"邀请码(选填)",'我已阅读并同意 服务条款':'我已阅读并同意 服务条款',请同意服务条款:"请同意服务条款",名称:"名称",标签:"标签",状态:"状态",节点五分钟内节点在线情况:"五分钟内节点在线情况",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量将乘以倍率进行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"没有可用节点,如果您未订阅或已过期请","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。",确定:"确定",低:"低",中:"中",高:"高",主题:"主题",工单级别:"工单级别",工单状态:"工单状态",最后回复:"最后回复",已关闭:"已关闭",待回复:"待回复",已回复:"已回复",查看:"查看",关闭:"关闭",新的工单:"新的工单",确认:"确认",请输入工单主题:"请输入工单主题",工单等级:"工单等级",请选择工单等级:"请选择工单等级",消息:"消息",请描述你遇到的问题:"请描述您遇到的问题",记录时间:"记录时间",实际上行:"实际上行",实际下行:"实际下行",合计:"合计","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量",复制订阅地址:"复制订阅地址",导入到:"导入到",一键订阅:"一键订阅",复制订阅:"复制订阅",推广佣金划转至余额:"推广佣金划转至余额","划转后的余额仅用于{title}消费使用":"划转后的余额仅用于{title}消费使用",当前推广佣金余额:"当前推广佣金余额",划转金额:"划转金额",请输入需要划转到余额的金额:"请输入需要划转到余额的金额","输入内容回复工单...":"输入内容回复工单...",申请提现:"申请提现",取消:"取消",提现方式:"提现方式",请选择提现方式:"请选择提现方式",提现账号:"提现账号",请输入提现账号:"请输入提现账号",我知道了:"我知道了",第一步:"第一步",第二步:"第二步",打开Telegram搜索:"打开 Telegram 搜索",向机器人发送你的:"向机器人发送您的",最后更新:"{date}",还有没支付的订单:"还有没支付的订单",立即支付:"立即支付",条工单正在处理中:"条工单正在处理中",立即查看:"立即查看",节点状态:"节点状态",商品信息:"商品信息",产品名称:"产品名称","类型/周期":"类型/周期",产品流量:"产品流量",订单信息:"订单信息",关闭订单:"关闭订单",订单号:"订单号",优惠金额:"优惠金额",旧订阅折抵金额:"旧订阅折抵金额",退款金额:"退款金额",余额支付:"余额支付",工单历史:"工单历史","已用流量将在 {reset_day} 日后重置":"已用流量将在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看节点状态","当前已使用流量达{rate}%":"当前已使用流量达 {rate}%",节点名称:"节点名称","于 {date} 到期,距离到期还有 {day} 天。":"于 {date} 到期,距离到期还有 {day} 天。","Telegram 讨论组":"Telegram 讨论组",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"该订阅无法续费,仅允许新用户购买",重置当月流量:"重置当月流量","流量明细仅保留近月数据以供查询。":"流量明细仅保留近一个月数据以供查询。",扣费倍率:"扣费倍率",支付手续费:"支付手续费",续费订阅:"续费订阅",学习如何使用:"学习如何使用",快速将节点导入对应客户端进行使用:"快速将节点导入对应客户端进行使用",对您当前的订阅进行续费:"对您当前的订阅进行续费",对您当前的订阅进行购买:"对您当前的订阅进行购买",捷径:"捷径","不会使用,查看使用教程":"不会使用,查看使用教程",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"扫描二维码订阅",续费:"续费",购买:"购买",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"确定取消",返回我的订单:"返回我的订单","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?",选择最适合你的计划:"选择最适合您的计划",全部:"全部",按周期:"按周期",遇到问题:"遇到问题",遇到问题可以通过工单与我们沟通:"遇到问题可以通过工单与我们沟通",按流量:"按流量",搜索文档:"搜索文档",技术支持:"技术支持",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。",再次输入密码:"再次输入密码",返回登陆:"返回登录",选填:"选填",必填:"必填",最后回复时间:"最后回复时间",请选项工单等级:"请选择工单优先级",回复:"回复",输入内容回复工单:"输入内容回复工单",已生成:"已生成",选择协议:"选择协议",自动:"自动",流量重置包:"流量重置包",复制失败:"复制失败",提示:"提示","确认退出?":"确认退出?",已退出登录:"已成功退出登录",请输入邮箱地址:"请输入邮箱地址","{second}秒后可重新发送":"{second}秒后可重新发送",发送成功:"发送成功",请输入账号密码:"请输入账号密码",请确保两次密码输入一致:"请确保两次密码输入一致",注册成功:"注册成功","重置密码成功,正在返回登录":"重置密码成功,正在返回登录",确认取消:"确认取消","请注意,变更订阅会导致当前订阅被覆盖。":"请注意,变更订阅会导致当前订阅被覆盖。","订单提交成功,正在跳转支付":"订单提交成功,正在跳转支付",回复成功:"回复成功",工单详情:"工单详情",登录成功:"登录成功","确定退出?":"确定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收银台",请输入正确的划转金额:"请输入正确的划转金额",划转成功:"划转成功",提现方式不能为空:"提现方式不能为空",提现账号不能为空:"提现账号不能为空",已绑定:"已绑定",创建成功:"创建成功",关闭成功:"关闭成功"},Nk=Object.freeze(Object.defineProperty({__proto__:null,default:$7e},Symbol.toStringTag,{value:"Module"})),I7e={请求失败:"請求失敗",月付:"月繳制",季付:"季繳",半年付:"半年缴",年付:"年繳",两年付:"兩年繳",三年付:"三年繳",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"開通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待確認",发放中:"發放中",已发放:"已發放",无效:"無效",个人中心:"您的帳戸",登出:"登出",搜索:"搜尋",仪表盘:"儀表板",订阅:"訂閱",我的订阅:"我的訂閱",购买订阅:"購買訂閱",财务:"財務",我的订单:"我的訂單",我的邀请:"我的邀請",用户:"使用者",我的工单:"我的工單",流量明细:"流量明細",使用文档:"說明文件",绑定Telegram获取更多服务:"綁定 Telegram 獲取更多服務",点击这里进行绑定:"點擊這裡進行綁定",公告:"公告",总览:"總覽",该订阅长期有效:"該訂閱長期有效",已过期:"已過期","已用 {used} / 总计 {total}":"已用 {used} / 總計 {total}",查看订阅:"查看訂閱",邮箱:"郵箱",邮箱验证码:"郵箱驗證碼",发送:"傳送",重置密码:"重設密碼",返回登入:"返回登錄",邀请码:"邀請碼",复制链接:"複製鏈接",完成时间:"完成時間",佣金:"佣金",已注册用户数:"已註冊用戶數",佣金比例:"佣金比例",确认中的佣金:"確認中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金將會在確認後到達您的佣金帳戶。",邀请码管理:"邀請碼管理",生成邀请码:"生成邀請碼",佣金发放记录:"佣金發放記錄",复制成功:"複製成功",密码:"密碼",登入:"登入",注册:"註冊",忘记密码:"忘記密碼","# 订单号":"# 訂單號",周期:"週期",订单金额:"訂單金額",订单状态:"訂單狀態",创建时间:"創建時間",操作:"操作",查看详情:"查看詳情",请选择支付方式:"請選擇支付方式",请检查信用卡支付信息:"請檢查信用卡支付資訊",订单详情:"訂單詳情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填寫信用卡支付資訊","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡資訊只會被用作當次扣款,系統並不會保存,我們認為這是最安全的。",订单总额:"訂單總額",总计:"總計",结账:"結賬",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"訂單系統正在進行處理,請稍等 1-3 分鐘。","订单由于超时支付已被取消。":"訂單由於支付超時已被取消","订单已支付并开通。":"訂單已支付並開通",选择订阅:"選擇訂閱",立即订阅:"立即訂閱",配置订阅:"配置訂閱",付款周期:"付款週期","有优惠券?":"有優惠券?",验证:"驗證",下单:"下單","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"請注意,變更訂閱會導致當前訂閱被新訂閱覆蓋。",该订阅无法续费:"該訂閱無法續費",选择其他订阅:"選擇其它訂閱",我的钱包:"我的錢包","账户余额(仅消费)":"賬戶餘額(僅消費)","推广佣金(可提现)":"推廣佣金(可提現)",钱包组成部分:"錢包組成部分",划转:"劃轉",推广佣金提现:"推廣佣金提現",修改密码:"修改密碼",保存:"儲存",旧密码:"舊密碼",新密码:"新密碼",请输入旧密码:"請輸入舊密碼",请输入新密码:"請輸入新密碼",通知:"通知",到期邮件提醒:"到期郵件提醒",流量邮件提醒:"流量郵件提醒",绑定Telegram:"綁定 Telegram",立即开始:"立即開始",重置订阅信息:"重置訂閲資訊",重置:"重置","确定要重置订阅信息?":"確定要重置訂閱資訊?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的訂閱位址或資訊發生洩露可以執行此操作。重置後您的 UUID 及訂閱將會變更,需要重新導入訂閱。",重置成功:"重置成功",两次新密码输入不同:"兩次新密碼輸入不同",两次密码输入不同:"兩次密碼輸入不同","邀请码(选填)":"邀請碼(選填)",'我已阅读并同意 服务条款':'我已閱讀並同意 服務條款',请同意服务条款:"請同意服務條款",名称:"名稱",标签:"標籤",状态:"狀態",节点五分钟内节点在线情况:"五分鐘內節點線上情況",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量將乘以倍率進行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"沒有可用節點,如果您未訂閱或已過期請","确定重置当前已用流量?":"確定重置當前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"點擊「確定」將會跳轉到收銀台,支付訂單後系統將會清空您當月已使用流量。",确定:"確定",低:"低",中:"中",高:"高",主题:"主題",工单级别:"工單級別",工单状态:"工單狀態",最后回复:"最新回復",已关闭:"已關閉",待回复:"待回復",已回复:"已回復",查看:"檢視",关闭:"關閉",新的工单:"新的工單",确认:"確認",请输入工单主题:"請輸入工單主題",工单等级:"工單等級",请选择工单等级:"請選擇工單等級",消息:"訊息",请描述你遇到的问题:"請描述您遇到的問題",记录时间:"記錄時間",实际上行:"實際上行",实际下行:"實際下行",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(實際上行 + 實際下行) x 扣費倍率 = 扣除流量",复制订阅地址:"複製訂閲位址",导入到:"导入到",一键订阅:"一鍵訂閲",复制订阅:"複製訂閲",推广佣金划转至余额:"推廣佣金劃轉至餘額","划转后的余额仅用于{title}消费使用":"劃轉后的餘額僅用於 {title} 消費使用",当前推广佣金余额:"當前推廣佣金餘額",划转金额:"劃轉金額",请输入需要划转到余额的金额:"請輸入需要劃轉到餘額的金額","输入内容回复工单...":"輸入内容回復工單…",申请提现:"申請提現",取消:"取消",提现方式:"提現方式",请选择提现方式:"請選擇提現方式",提现账号:"提現賬號",请输入提现账号:"請輸入提現賬號",我知道了:"我知道了",第一步:"步驟一",第二步:"步驟二",打开Telegram搜索:"打開 Telegram 並搜索",向机器人发送你的:"向機器人發送您的","最后更新: {date}":"最後更新: {date}",还有没支付的订单:"還有未支付的訂單",立即支付:"立即支付",条工单正在处理中:"條工單正在處理中",立即查看:"立即檢視",节点状态:"節點狀態",商品信息:"商品資訊",产品名称:"產品名稱","类型/周期":"類型/週期",产品流量:"產品流量",订单信息:"訂單信息",关闭订单:"關閉訂單",订单号:"訂單號",优惠金额:"優惠金額",旧订阅折抵金额:"舊訂閲折抵金額",退款金额:"退款金額",余额支付:"餘額支付",工单历史:"工單歷史","已用流量将在 {reset_day} 日后重置":"已用流量將在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看節點狀態","当前已使用流量达{rate}%":"當前已用流量達 {rate}%",节点名称:"節點名稱","于 {date} 到期,距离到期还有 {day} 天。":"於 {date} 到期,距離到期還有 {day} 天。","Telegram 讨论组":"Telegram 討論組",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"該訂閲無法續費,僅允許新用戶購買",重置当月流量:"重置當月流量","流量明细仅保留近月数据以供查询。":"流量明細僅保留近一個月資料以供查詢。",扣费倍率:"扣费倍率",支付手续费:"支付手續費",续费订阅:"續費訂閲",学习如何使用:"學習如何使用",快速将节点导入对应客户端进行使用:"快速將訂閲導入對應的客戶端進行使用",对您当前的订阅进行续费:"對您的當前訂閲進行續費",对您当前的订阅进行购买:"重新購買您的當前訂閲",捷径:"捷徑","不会使用,查看使用教程":"不會使用,檢視使用檔案",使用支持扫码的客户端进行订阅:"使用支持掃碼的客戶端進行訂閲",扫描二维码订阅:"掃描二維碼訂閲",续费:"續費",购买:"購買",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"確定取消",返回我的订单:"返回我的訂單","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已經付款,取消訂單可能會導致支付失敗,確定要取消訂單嗎?",选择最适合你的计划:"選擇最適合您的計劃",全部:"全部",按周期:"按週期",遇到问题:"遇到問題",遇到问题可以通过工单与我们沟通:"遇到問題您可以通過工單與我們溝通",按流量:"按流量",搜索文档:"搜尋文檔",技术支持:"技術支援",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"如果您的訂閱地址或帳戶洩漏並被他人濫用,您可以在此重置訂閱資訊,以避免不必要的損失。",再次输入密码:"請再次輸入密碼",返回登陆:"返回登入",选填:"選填",必填:"必填",最后回复时间:"最後回覆時間",请选项工单等级:"請選擇工單優先級",回复:"回覆",输入内容回复工单:"輸入內容回覆工單",已生成:"已生成",选择协议:"選擇協議",自动:"自動",流量重置包:"流量重置包",复制失败:"複製失敗",提示:"提示","确认退出?":"確認退出?",已退出登录:"已成功登出",请输入邮箱地址:"請輸入電子郵件地址","{second}秒后可重新发送":"{second} 秒後可重新發送",发送成功:"發送成功",请输入账号密码:"請輸入帳號和密碼",请确保两次密码输入一致:"請確保兩次密碼輸入一致",注册成功:"註冊成功","重置密码成功,正在返回登录":"重置密碼成功,正在返回登入",确认取消:"確認取消","请注意,变更订阅会导致当前订阅被覆盖。":"請注意,變更訂閱會導致目前的訂閱被覆蓋。","订单提交成功,正在跳转支付":"訂單提交成功,正在跳轉支付",回复成功:"回覆成功",工单详情:"工單詳情",登录成功:"登入成功","确定退出?":"確定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收銀台",请输入正确的划转金额:"請輸入正確的劃轉金額",划转成功:"劃轉成功",提现方式不能为空:"提現方式不能為空",提现账号不能为空:"提現帳號不能為空",已绑定:"已綁定",创建成功:"創建成功",关闭成功:"關閉成功"},Hk=Object.freeze(Object.defineProperty({__proto__:null,default:I7e},Symbol.toStringTag,{value:"Module"}))});export default O7e(); +`:">",i)};Ja.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a\s]/i.test(e)}function mMe(e){return/^<\/a\s*>/i.test(e)}var gMe=function(t){var n,o,r,i,a,s,l,c,u,d,f,h,p,g,m,b,w=t.tokens,C;if(t.md.options.linkify){for(o=0,r=w.length;o=0;n--){if(s=i[n],s.type==="link_close"){for(n--;i[n].level!==s.level&&i[n].type!=="link_open";)n--;continue}if(s.type==="html_inline"&&(pMe(s.content)&&p>0&&p--,mMe(s.content)&&p++),!(p>0)&&s.type==="text"&&t.md.linkify.test(s.content)){for(u=s.content,C=t.md.linkify.match(u),l=[],h=s.level,f=0,C.length>0&&C[0].index===0&&n>0&&i[n-1].type==="text_special"&&(C=C.slice(1)),c=0;cf&&(a=new t.Token("text","",0),a.content=u.slice(f,d),a.level=h,l.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",m]],a.level=h++,a.markup="linkify",a.info="auto",l.push(a),a=new t.Token("text","",0),a.content=b,a.level=h,l.push(a),a=new t.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",l.push(a),f=C[c].lastIndex);f=0;t--)n=e[t],n.type==="text"&&!o&&(n.content=n.content.replace(bMe,xMe)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function wMe(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!o&&Ck.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var _Me=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(vMe.test(t.tokens[n].content)&&CMe(t.tokens[n].children),Ck.test(t.tokens[n].content)&&wMe(t.tokens[n].children))},H1=Lt.isWhiteSpace,j1=Lt.isPunctChar,U1=Lt.isMdAsciiPunct,SMe=/['"]/,V1=/['"]/g,W1="’";function ec(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function kMe(e,t){var n,o,r,i,a,s,l,c,u,d,f,h,p,g,m,b,w,C,_,S,y;for(_=[],n=0;n=0&&!(_[w].level<=l);w--);if(_.length=w+1,o.type==="text"){r=o.content,a=0,s=r.length;e:for(;a=0)u=r.charCodeAt(i.index-1);else for(w=n-1;w>=0&&!(e[w].type==="softbreak"||e[w].type==="hardbreak");w--)if(e[w].content){u=e[w].content.charCodeAt(e[w].content.length-1);break}if(d=32,a=48&&u<=57&&(b=m=!1),m&&b&&(m=f,b=h),!m&&!b){C&&(o.content=ec(o.content,i.index,W1));continue}if(b){for(w=_.length-1;w>=0&&(c=_[w],!(_[w].level=0;n--)t.tokens[n].type!=="inline"||!SMe.test(t.tokens[n].content)||kMe(t.tokens[n].children,t)},TMe=function(t){var n,o,r,i,a,s,l=t.tokens;for(n=0,o=l.length;n=0&&(o=this.attrs[n][1]),o};Za.prototype.attrJoin=function(t,n){var o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var Xm=Za,AMe=Xm;function wk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}wk.prototype.Token=AMe;var RMe=wk,EMe=Gm,yf=[["normalize",uMe],["block",dMe],["inline",fMe],["linkify",gMe],["replacements",_Me],["smartquotes",PMe],["text_join",TMe]];function Ym(){this.ruler=new EMe;for(var e=0;eo||(u=n+1,t.sCount[u]=4||(s=t.bMarks[u]+t.tShift[u],s>=t.eMarks[u])||(S=t.src.charCodeAt(s++),S!==124&&S!==45&&S!==58)||s>=t.eMarks[u]||(y=t.src.charCodeAt(s++),y!==124&&y!==45&&y!==58&&!xf(y))||S===45&&xf(y))return!1;for(;s=4||(d=q1(a),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),f=d.length,f===0||f!==p.length))return!1;if(r)return!0;for(w=t.parentType,t.parentType="table",_=t.md.block.ruler.getRules("blockquote"),h=t.push("table_open","table",1),h.map=m=[n,0],h=t.push("thead_open","thead",1),h.map=[n,n+1],h=t.push("tr_open","tr",1),h.map=[n,n+1],l=0;l=4)break;for(d=q1(a),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),u===n+2&&(h=t.push("tbody_open","tbody",1),h.map=b=[n+2,0]),h=t.push("tr_open","tr",1),h.map=[u,u+1],l=0;l=4){r++,i=r;continue}break}return t.line=i,a=t.push("code_block","code",0),a.content=t.getLines(n,i,4+t.blkIndent,!1)+` +`,a.map=[n,t.line],!0},MMe=function(t,n,o,r){var i,a,s,l,c,u,d,f=!1,h=t.bMarks[n]+t.tShift[n],p=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||h+3>p||(i=t.src.charCodeAt(h),i!==126&&i!==96)||(c=h,h=t.skipChars(h,i),a=h-c,a<3)||(d=t.src.slice(c,h),s=t.src.slice(h,p),i===96&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(l=n;l++,!(l>=o||(h=c=t.bMarks[l]+t.tShift[l],p=t.eMarks[l],h=4)&&(h=t.skipChars(h,i),!(h-c=4||t.src.charCodeAt(T)!==62)return!1;if(r)return!0;for(p=[],g=[],w=[],C=[],y=t.md.block.ruler.getRules("blockquote"),b=t.parentType,t.parentType="blockquote",f=n;f=$));f++){if(t.src.charCodeAt(T++)===62&&!k){for(l=t.sCount[f]+1,t.src.charCodeAt(T)===32?(T++,l++,i=!1,_=!0):t.src.charCodeAt(T)===9?(_=!0,(t.bsCount[f]+l)%4===3?(T++,l++,i=!1):i=!0):_=!1,h=l,p.push(t.bMarks[f]),t.bMarks[f]=T;T<$&&(a=t.src.charCodeAt(T),zMe(a));){a===9?h+=4-(h+t.bsCount[f]+(i?1:0))%4:h++;T++}u=T>=$,g.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(_?1:0),w.push(t.sCount[f]),t.sCount[f]=h-l,C.push(t.tShift[f]),t.tShift[f]=T-t.bMarks[f];continue}if(u)break;for(S=!1,s=0,c=y.length;s",x.map=d=[n,0],t.md.block.tokenize(t,n,f),x=t.push("blockquote_close","blockquote",-1),x.markup=">",t.lineMax=P,t.parentType=b,d[1]=t.line,s=0;s=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r=4||t.listIndent>=0&&t.sCount[L]-t.listIndent>=4&&t.sCount[L]=t.blkIndent&&(X=!0),(T=G1(t,L))>=0){if(d=!0,E=t.bMarks[L]+t.tShift[L],b=Number(t.src.slice(E,T-1)),X&&b!==1)return!1}else if((T=K1(t,L))>=0)d=!1;else return!1;if(X&&t.skipSpaces(T)>=t.eMarks[L])return!1;if(r)return!0;for(m=t.src.charCodeAt(T-1),g=t.tokens.length,d?(D=t.push("ordered_list_open","ol",1),b!==1&&(D.attrs=[["start",b]])):D=t.push("bullet_list_open","ul",1),D.map=p=[L,0],D.markup=String.fromCharCode(m),$=!1,B=t.md.block.ruler.getRules("list"),S=t.parentType,t.parentType="list";L=w?c=1:c=C-u,c>4&&(c=1),l=u+c,D=t.push("list_item_open","li",1),D.markup=String.fromCharCode(m),D.map=f=[L,0],d&&(D.info=t.src.slice(E,T-1)),k=t.tight,x=t.tShift[L],y=t.sCount[L],_=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[L]=a-t.bMarks[L],t.sCount[L]=C,a>=w&&t.isEmpty(L+1)?t.line=Math.min(t.line+2,o):t.md.block.tokenize(t,L,o,!0),(!t.tight||$)&&(V=!1),$=t.line-L>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=_,t.tShift[L]=x,t.sCount[L]=y,t.tight=k,D=t.push("list_item_close","li",-1),D.markup=String.fromCharCode(m),L=t.line,f[1]=L,L>=o||t.sCount[L]=4)break;for(G=!1,s=0,h=B.length;s=4||t.src.charCodeAt(y)!==91)return!1;for(;++y3)&&!(t.sCount[k]<0)){for(w=!1,u=0,d=C.length;u"u"&&(t.env.references={}),typeof t.env.references[f]>"u"&&(t.env.references[f]={title:_,href:c}),t.parentType=p,t.line=n+S+1),!0)},UMe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ju={},VMe="[a-zA-Z_:][a-zA-Z0-9:._-]*",WMe="[^\"'=<>`\\x00-\\x20]+",qMe="'[^']*'",KMe='"[^"]*"',GMe="(?:"+WMe+"|"+qMe+"|"+KMe+")",XMe="(?:\\s+"+VMe+"(?:\\s*=\\s*"+GMe+")?)",Sk="<[A-Za-z][A-Za-z0-9\\-]*"+XMe+"*\\s*\\/?>",kk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",YMe="|",QMe="<[?][\\s\\S]*?[?]>",JMe="]*>",ZMe="",e6e=new RegExp("^(?:"+Sk+"|"+kk+"|"+YMe+"|"+QMe+"|"+JMe+"|"+ZMe+")"),t6e=new RegExp("^(?:"+Sk+"|"+kk+")");Ju.HTML_TAG_RE=e6e;Ju.HTML_OPEN_CLOSE_TAG_RE=t6e;var n6e=UMe,o6e=Ju.HTML_OPEN_CLOSE_TAG_RE,aa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o6e.source+"\\s*$"),/^$/,!1]],r6e=function(t,n,o,r){var i,a,s,l,c=t.bMarks[n]+t.tShift[n],u=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(c)!==60)return!1;for(l=t.src.slice(c,u),i=0;i=4||(i=t.src.charCodeAt(c),i!==35||c>=u))return!1;for(a=1,i=t.src.charCodeAt(++c);i===35&&c6||cc&&X1(t.src.charCodeAt(s-1))&&(u=s),t.line=n+1,l=t.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[n,t.line],l=t.push("inline","",0),l.content=t.src.slice(c,u).trim(),l.map=[n,t.line],l.children=[],l=t.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a)),!0)},a6e=function(t,n,o){var r,i,a,s,l,c,u,d,f,h=n+1,p,g=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(p=t.parentType,t.parentType="paragraph";h3)){if(t.sCount[h]>=t.blkIndent&&(c=t.bMarks[h]+t.tShift[h],u=t.eMarks[h],c=u)))){d=f===61?1:2;break}if(!(t.sCount[h]<0)){for(i=!1,a=0,s=g.length;a3)&&!(t.sCount[u]<0)){for(i=!1,a=0,s=d.length;a0&&this.level++,this.tokens.push(o),o};Qo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Qo.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;tn;)if(!Zu(this.src.charCodeAt(--t)))return t+1;return t};Qo.prototype.skipChars=function(t,n){for(var o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Qo.prototype.getLines=function(t,n,o,r){var i,a,s,l,c,u,d,f=t;if(t>=n)return"";for(u=new Array(n-t),i=0;fo?u[i]=new Array(a-o+1).join(" ")+this.src.slice(l,c):u[i]=this.src.slice(l,c)}return u.join("")};Qo.prototype.Token=Pk;var l6e=Qo,c6e=Gm,nc=[["table",IMe,["paragraph","reference"]],["code",OMe],["fence",MMe,["paragraph","reference","blockquote","list"]],["blockquote",FMe,["paragraph","reference","blockquote","list"]],["hr",LMe,["paragraph","reference","blockquote","list"]],["list",NMe,["paragraph","reference","blockquote"]],["reference",jMe],["html_block",r6e,["paragraph","reference","blockquote"]],["heading",i6e,["paragraph","reference","blockquote"]],["lheading",a6e],["paragraph",s6e]];function ed(){this.ruler=new c6e;for(var e=0;e=n||e.sCount[l]=u){e.line=n;break}for(i=e.line,r=0;r=e.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),l=e.line,l0||(o=t.pos,r=t.posMax,o+3>r)||t.src.charCodeAt(o)!==58||t.src.charCodeAt(o+1)!==47||t.src.charCodeAt(o+2)!==47||(i=t.pending.match(h6e),!i)||(a=i[1],s=t.md.linkify.matchAtStart(t.src.slice(o-a.length)),!s)||(l=s.url,l.length<=a.length)||(l=l.replace(/\*+$/,""),c=t.md.normalizeLink(l),!t.md.validateLink(c))?!1:(n||(t.pending=t.pending.slice(0,-a.length),u=t.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=t.push("text","",0),u.content=t.md.normalizeLinkText(l),u=t.push("link_close","a",-1),u.markup="linkify",u.info="auto"),t.pos+=l.length-a.length,!0)},m6e=Lt.isSpace,g6e=function(t,n){var o,r,i,a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;if(o=t.pending.length-1,r=t.posMax,!n)if(o>=0&&t.pending.charCodeAt(o)===32)if(o>=1&&t.pending.charCodeAt(o-1)===32){for(i=o-1;i>=1&&t.pending.charCodeAt(i-1)===32;)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a?@[]^_`{|}~-".split("").forEach(function(e){Qm[e.charCodeAt(0)]=1});var b6e=function(t,n){var o,r,i,a,s,l=t.pos,c=t.posMax;if(t.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(o=t.src.charCodeAt(l),o===10){for(n||t.push("hardbreak","br",0),l++;l=55296&&o<=56319&&l+1=56320&&r<=57343&&(a+=t.src[l+1],l++)),i="\\"+a,n||(s=t.push("text_special","",0),o<256&&Qm[o]!==0?s.content=a:s.content=i,s.markup=i,s.info="escape"),t.pos=l+1,!0},y6e=function(t,n){var o,r,i,a,s,l,c,u,d=t.pos,f=t.src.charCodeAt(d);if(f!==96)return!1;for(o=d,d++,r=t.posMax;d=0;n--)o=t[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(r=t[o.end],s=n>0&&t[n-1].end===o.end+1&&t[n-1].marker===o.marker&&t[n-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token],i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",i=e.tokens[r.token],i.type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[o.end+1].token].content="",n--))}nd.postProcess=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(J1(t,t.delimiters),n=0;n=g)return!1;if(m=l,c=t.md.helpers.parseLinkDestination(t.src,l,t.posMax),c.ok){for(f=t.md.normalizeLink(c.str),t.md.validateLink(f)?l=c.pos:f="",m=l;l=g||t.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof t.env.references>"u")return!1;if(l=0?i=t.src.slice(m,l++):l=a+1):l=a+1,i||(i=t.src.slice(s,a)),u=t.env.references[x6e(i)],!u)return t.pos=p,!1;f=u.href,h=u.title}return n||(t.pos=s,t.posMax=a,d=t.push("link_open","a",1),d.attrs=o=[["href",f]],h&&o.push(["title",h]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,d=t.push("link_close","a",-1)),t.pos=l,t.posMax=g,!0},w6e=Lt.normalizeReference,_f=Lt.isSpace,_6e=function(t,n){var o,r,i,a,s,l,c,u,d,f,h,p,g,m="",b=t.pos,w=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(l=t.pos+2,s=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),s<0))return!1;if(c=s+1,c=w)return!1;for(g=c,d=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),d.ok&&(m=t.md.normalizeLink(d.str),t.md.validateLink(m)?c=d.pos:m=""),g=c;c=w||t.src.charCodeAt(c)!==41)return t.pos=b,!1;c++}else{if(typeof t.env.references>"u")return!1;if(c=0?a=t.src.slice(g,c++):c=s+1):c=s+1,a||(a=t.src.slice(l,s)),u=t.env.references[w6e(a)],!u)return t.pos=b,!1;m=u.href,f=u.title}return n||(i=t.src.slice(l,s),t.md.inline.parse(i,t.md,t.env,p=[]),h=t.push("image","img",0),h.attrs=o=[["src",m],["alt",""]],h.children=p,h.content=i,f&&o.push(["title",f])),t.pos=c,t.posMax=w,!0},S6e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,k6e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,P6e=function(t,n){var o,r,i,a,s,l,c=t.pos;if(t.src.charCodeAt(c)!==60)return!1;for(s=t.pos,l=t.posMax;;){if(++c>=l||(a=t.src.charCodeAt(c),a===60))return!1;if(a===62)break}return o=t.src.slice(s+1,c),k6e.test(o)?(r=t.md.normalizeLink(o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):S6e.test(o)?(r=t.md.normalizeLink("mailto:"+o),t.md.validateLink(r)?(n||(i=t.push("link_open","a",1),i.attrs=[["href",r]],i.markup="autolink",i.info="auto",i=t.push("text","",0),i.content=t.md.normalizeLinkText(o),i=t.push("link_close","a",-1),i.markup="autolink",i.info="auto"),t.pos+=o.length+2,!0):!1):!1},T6e=Ju.HTML_TAG_RE;function A6e(e){return/^\s]/i.test(e)}function R6e(e){return/^<\/a\s*>/i.test(e)}function E6e(e){var t=e|32;return t>=97&&t<=122}var $6e=function(t,n){var o,r,i,a,s=t.pos;return!t.md.options.html||(i=t.posMax,t.src.charCodeAt(s)!==60||s+2>=i)||(o=t.src.charCodeAt(s+1),o!==33&&o!==63&&o!==47&&!E6e(o))||(r=t.src.slice(s).match(T6e),!r)?!1:(n||(a=t.push("html_inline","",0),a.content=r[0],A6e(a.content)&&t.linkLevel++,R6e(a.content)&&t.linkLevel--),t.pos+=r[0].length,!0)},Z1=vk,I6e=Lt.has,O6e=Lt.isValidEntityCode,ey=Lt.fromCodePoint,M6e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,z6e=/^&([a-z][a-z0-9]{1,31});/i,F6e=function(t,n){var o,r,i,a,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38||s+1>=l)return!1;if(o=t.src.charCodeAt(s+1),o===35){if(i=t.src.slice(s).match(M6e),i)return n||(r=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=t.push("text_special","",0),a.content=O6e(r)?ey(r):ey(65533),a.markup=i[0],a.info="entity"),t.pos+=i[0].length,!0}else if(i=t.src.slice(s).match(z6e),i&&I6e(Z1,i[1]))return n||(a=t.push("text_special","",0),a.content=Z1[i[1]],a.markup=i[0],a.info="entity"),t.pos+=i[0].length,!0;return!1};function ty(e){var t,n,o,r,i,a,s,l,c={},u=e.length;if(u){var d=0,f=-2,h=[];for(t=0;ti;n-=h[n]+1)if(r=e[n],r.marker===o.marker&&r.open&&r.end<0&&(s=!1,(r.close||o.open)&&(r.length+o.length)%3===0&&(r.length%3!==0||o.length%3!==0)&&(s=!0),!s)){l=n>0&&!e[n-1].open?h[n-1]+1:0,h[t]=t-n+l,h[n]=l,o.open=!1,r.end=t,r.close=!1,a=-1,f=-2;break}a!==-1&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var D6e=function(t){var n,o=t.tokens_meta,r=t.tokens_meta.length;for(ty(t.delimiters),n=0;n0&&r++,i[n].type==="text"&&n+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};Cl.prototype.scanDelims=function(e,t){var n=e,o,r,i,a,s,l,c,u,d,f=!0,h=!0,p=this.posMax,g=this.src.charCodeAt(e);for(o=e>0?this.src.charCodeAt(e-1):32;n=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;t||e.pos++,s[o]=e.pos};wl.prototype.tokenize=function(e){for(var t,n,o,r=this.ruler.getRules(""),i=r.length,a=e.posMax,s=e.md.options.maxNesting;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(t){if(e.pos>=a)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};wl.prototype.parse=function(e,t,n,o){var r,i,a,s=new this.State(e,t,n,o);for(this.tokenize(s),i=this.ruler2.getRules(""),a=i.length,r=0;r|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),Pf}function Gh(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function od(e){return Object.prototype.toString.call(e)}function j6e(e){return od(e)==="[object String]"}function U6e(e){return od(e)==="[object Object]"}function V6e(e){return od(e)==="[object RegExp]"}function sy(e){return od(e)==="[object Function]"}function W6e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Tk={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function q6e(e){return Object.keys(e||{}).reduce(function(t,n){return t||Tk.hasOwnProperty(n)},!1)}var K6e={"http:":{validate:function(e,t,n){var o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},G6e="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",X6e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Y6e(e){e.__index__=-1,e.__text_cache__=""}function Q6e(e){return function(t,n){var o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function ly(){return function(e,t){t.normalize(e)}}function qc(e){var t=e.re=H6e()(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(G6e),n.push(t.src_xn),t.src_tlds=n.join("|");function o(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");var r=[];e.__compiled__={};function i(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){var l=e.__schemas__[s];if(l!==null){var c={validate:null,link:null};if(e.__compiled__[s]=c,U6e(l)){V6e(l.validate)?c.validate=Q6e(l.validate):sy(l.validate)?c.validate=l.validate:i(s,l),sy(l.normalize)?c.normalize=l.normalize:l.normalize?i(s,l):c.normalize=ly();return}if(j6e(l)){r.push(s);return}i(s,l)}}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:ly()};var a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(W6e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Y6e(e)}function J6e(e,t){var n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function Xh(e,t){var n=new J6e(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function oo(e,t){if(!(this instanceof oo))return new oo(e,t);t||q6e(e)&&(t=e,e={}),this.__opts__=Gh({},Tk,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Gh({},K6e,e),this.__compiled__={},this.__tlds__=X6e,this.__tlds_replaced__=!1,this.re={},qc(this)}oo.prototype.add=function(t,n){return this.__schemas__[t]=n,qc(this),this};oo.prototype.set=function(t){return this.__opts__=Gh(this.__opts__,t),this};oo.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,o,r,i,a,s,l,c,u;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};oo.prototype.pretest=function(t){return this.re.pretest.test(t)};oo.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};oo.prototype.match=function(t){var n=0,o=[];this.__index__>=0&&this.__text_cache__===t&&(o.push(Xh(this,n)),n=this.__last_index__);for(var r=n?t.slice(n):t;this.test(r);)o.push(Xh(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};oo.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;var n=this.re.schema_at_start.exec(t);if(!n)return null;var o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Xh(this,0)):null};oo.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),qc(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,qc(this),this)};oo.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};oo.prototype.onCompile=function(){};var Z6e=oo;const ya=2147483647,jo=36,Zm=1,il=26,eze=38,tze=700,Ak=72,Rk=128,Ek="-",nze=/^xn--/,oze=/[^\0-\x7F]/,rze=/[\x2E\u3002\uFF0E\uFF61]/g,ize={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Tf=jo-Zm,Uo=Math.floor,Af=String.fromCharCode;function Mr(e){throw new RangeError(ize[e])}function aze(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function $k(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(rze,".");const r=e.split("."),i=aze(r,t).join(".");return o+i}function eg(e){const t=[];let n=0;const o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),sze=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:jo},cy=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ok=function(e,t,n){let o=0;for(e=n?Uo(e/tze):e>>1,e+=Uo(e/t);e>Tf*il>>1;o+=jo)e=Uo(e/Tf);return Uo(o+(Tf+1)*e/(e+eze))},tg=function(e){const t=[],n=e.length;let o=0,r=Rk,i=Ak,a=e.lastIndexOf(Ek);a<0&&(a=0);for(let s=0;s=128&&Mr("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&Mr("invalid-input");const f=sze(e.charCodeAt(s++));f>=jo&&Mr("invalid-input"),f>Uo((ya-o)/u)&&Mr("overflow"),o+=f*u;const h=d<=i?Zm:d>=i+il?il:d-i;if(fUo(ya/p)&&Mr("overflow"),u*=p}const c=t.length+1;i=Ok(o-l,c,l==0),Uo(o/c)>ya-r&&Mr("overflow"),r+=Uo(o/c),o%=c,t.splice(o++,0,r)}return String.fromCodePoint(...t)},ng=function(e){const t=[];e=eg(e);const n=e.length;let o=Rk,r=0,i=Ak;for(const l of e)l<128&&t.push(Af(l));const a=t.length;let s=a;for(a&&t.push(Ek);s=o&&uUo((ya-r)/c)&&Mr("overflow"),r+=(l-o)*c,o=l;for(const u of e)if(uya&&Mr("overflow"),u===o){let d=r;for(let f=jo;;f+=jo){const h=f<=i?Zm:f>=i+il?il:f-i;if(d=0))try{t.hostname=Fk.toASCII(t.hostname)}catch{}return Ci.encode(Ci.format(t))}function kze(e){var t=Ci.parse(e,!0);if(t.hostname&&(!t.protocol||Dk.indexOf(t.protocol)>=0))try{t.hostname=Fk.toUnicode(t.hostname)}catch{}return Ci.decode(Ci.format(t),Ci.decode.defaultChars+"%")}function po(e,t){if(!(this instanceof po))return new po(e,t);t||zs.isString(e)||(t=e||{},e="default"),this.inline=new bze,this.block=new vze,this.core=new gze,this.renderer=new mze,this.linkify=new yze,this.validateLink=_ze,this.normalizeLink=Sze,this.normalizeLinkText=kze,this.utils=zs,this.helpers=zs.assign({},pze),this.options={},this.configure(e),t&&this.set(t)}po.prototype.set=function(e){return zs.assign(this.options,e),this};po.prototype.configure=function(e){var t=this,n;if(zs.isString(e)&&(n=e,e=xze[n],!e))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(o){e.components[o].rules&&t[o].ruler.enableOnly(e.components[o].rules),e.components[o].rules2&&t[o].ruler2.enableOnly(e.components[o].rules2)}),this};po.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};po.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};po.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};po.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};po.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};po.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};po.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Pze=po,Tze=Pze;const rd=Ip(Tze),Aze={xmlns:"http://www.w3.org/2000/svg",id:"Layer_1",viewBox:"0 0 442.19 323.31"},Rze=Q("path",{d:"m72.8 140.45-12.7 145.1h42.41l8.99-102.69h.04l3.67-42.41zM124.16 37.75h-42.4l-5.57 63.61h42.4zM318.36 285.56h42.08l5.57-63.61H323.9z",class:"cls-2"},null,-1),Eze=Q("path",{d:"M382.09 37.76H340l-10.84 123.9H221.09l-14.14 161.65 85.83-121.47h145.89l3.52-40.18h-70.94z",class:"cls-2"},null,-1),$ze=Q("path",{d:"M149.41 121.47H3.52L0 161.66h221.09L235.23 0z",style:{fill:"#ffbc00"}},null,-1);function Ize(e,t){return ve(),ze("svg",Aze,[Q("defs",null,[(ve(),We(wa("style"),null,{default:ge(()=>[nt(".cls-2{fill:#000}@media (prefers-color-scheme:dark){.cls-2{fill:#fff}}")]),_:1}))]),Rze,Eze,$ze])}const Oze={render:Ize};var Fs=(e=>(e[e.PENDING=0]="PENDING",e[e.PROCESSING=1]="PROCESSING",e[e.CANCELLED=2]="CANCELLED",e[e.COMPLETED=3]="COMPLETED",e[e.DISCOUNTED=4]="DISCOUNTED",e))(Fs||{});const Mze={0:"待支付",1:"开通中",2:"已取消",3:"已完成",4:"已折抵"},Lk={month_price:"月付",quarter_price:"季付",half_year_price:"半年付",year_price:"年付",two_year_price:"两年付",three_year_price:"三年付",onetime_price:"一次性",reset_price:"流量重置包"},zze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEVGpf9Do/8AZ+VIp/83m/1Lqf8AZeQmkfkymPs7nf4Cg/L1+f48n/80mvwtlfrx9/4cjPcZivX3+v4BaeQBgPEAbeg+oP/v9v4BauYBfvDn8f3u9f1Bov8/of8AZeMqlPr4+/4Oh/Qjj/ggjvcAXsoAcOnt8/0BcusIhfM4nf7l8PwSh/QAe+4AduwAee3k7/zz+P/6/P4BYMwBfO/i7vwvlvsAdevp8f3h7Prk7vsAYtLp8/0Wivb9/v7g7P0BZ+Dd6/zc6vwAYM77/f6Ns9yUuOAAZNXr9P7a6PmcvuIBaOKXu+CPtt+RtNva6fzS4vYAZdnV5fjA1++20OvY5/re6vzX5vjI3fS50u0AZdzU4/euyuixy+elxOWXudzL3vK91e2dvN+Ut9sAYdCzzemoxube6vnG2/HF2e+qyOmgweTW5vrK3/XC2fGsyOeMstvs8vvS5PnP4fXM4PXO3/PH3PPE2/O20e6zzuywzOoAcObC2O+jw+agwOGbu91AfdGmxugHYa3z9/zQ4/fN4faiweMAbuKaveEAZt4CX63Y6Py50+/B1usBdun////o8Png6ve91vG71PC80+qty+oAeOoAc+fY5PTS4fPJ2+8Bf+260ekAbeWsx+QAad4AbNjf7P3i7Pjd6PbA1/MAe+yyzesAduYwlPcZiPErkvYmj/WoxeOkwuJDn/wijPMNhPAXhO4AfOm3z+iFrNkAadIvdNBWqP1ztfwuiOoAcd44edElbs/W5PakyfVdo/IrjvF+sO1QmOtTkOC32f1OpP2Cu/q51veu0PeKuvI4kfCbwO6Su+4hie4KgOwGdeITZ80caLKgzP7C3v1erP3L4/xyrvNHmPGvzu5yqOw8kesQf+kggehGjuaBrOIeeeFnmdpXjdcCaNYQZK+TxfzB2vc6l/Vnp/GkxvBjouxbmumIsuhknOQ4g+Iuf+J6pNdzoNIcas5omMwmbbSax/hGnPVTn/MRd+d1pOF9qOBDht4NZc0yfNgYc9hfkcg4d7owc7j13NKGAAAKFElEQVRo3uzUP2gTURzA8RMjJlzj6RsM5BRPhQPjkGQIyXFGBIdzURDESRzEQVDw/LOJQw6XiFwEBwUR/DPkjyQGhMSliZI/rRohSRvBNbXipNjW0T+/e7kber73ajNkEL+06aP58fvwrn+4TRNoMsjGCTQhhIMPy1rHgRsdOPcBPvGQ68D9b31tmED/ELJjAnE7JxC3fa2mnMP4U9zUFEzAy5TrAOHDxrkNo4P9HvEAUzsIbzkbAWHm6wUaFd9aQ5VGosoY4nzsmodMc76yjz20oYFQjzGzBuKpItM0+xxT2bdgIKlfZCD7WPn8C2YS6vkYQ565gxJChyoe6gTnYbbYsBBTqPrpM8WGhCQkVr3UCTbiXzkGCCg3m1TFXxWRJCFjYVzEWxMBsepRjWIfWQiaWaQjflbZajQ5Sq56ySPeloEQGOjGCkyQYyLe7LJ9kcPJfpE8UpxHOD7xPUtFvKyybRMTEN+KkSZiLYPHhqEPsrQ1HNNYvGQCMep8MxaL+X3FZrMyV6k0i0WPF74BF+ERDxnGbH485HsYiFFRaXmu1WvM33wYDgaD4YPH5vszC9VKKwDACJnOxmhIjFH+k5C0CUhQUdRKghB+QUIozttFjI+LWcoebgu9bKEVdQic5IRG8fhJOcjxlTxlEROpLyejQDi5CAw4REQQHtXGQfL1djJKINyCELGMgD4o7KIgu+jlX99Irn0LEMAARHxbz5MXcQyj8D7xtwRGZqjIZmr5Uk12EVQBIx9fF8ibGEihNOAlN0EGgAgExOPvx0A6sy6BQYAh366VxkCmo/TnJKwiMJIZlApkZA+1Ur0dRSQBWg2AAMn6bKdA3MRCXl+SkGPAfVyCQwgRARuarE93SmRkL7Xc+4RzCySeO3VVIF5CPvfgWhyuAenteom4iY5szdV0+zmhzNfucOmo+IcgBjLPl4ZLXxRR1jRVv/JhGxnZSq08MOx/gOh0KpVKd+/zf/wghKfDdCo1vB6QVVXPHHmV20vaREdK5VneTvyRtpTnEZtwDOgrfuebCsVDjz7ltq4PyZWnkY0EHMRFyLKDxMGIh5SX5W1EZButXKeN7N8n/vownU4v3YqsEiBNPNWFd7pPtXg8GAxl3pRzpFUM5MUFAKyEiP78V/fnddEWbEDTZFUOnvnZ/XVRAQIQZaazTqT84YRhCTjx3q27LkKWVav41TtXg6PCypMXZOQApdyzV4rghP/kRMgW4BMD1kNSNdW6BRRWLn94tp+wi9tP691n3RZwWNDsxyQ7Ai5kpyROvnpGWsXtJgfIS9FFiJiAr2dPgeQmwmEl8fjTu/2EZb8pJ3uYJsIADDu7uJgY4+RijLE41JC7mJB20glT6A8pxmpCTgyotaD8NHFA4oC59DBcr1w00uPayaQ2cShJUWBQgcBosVQmI/g3OKiDDr7f992f7d3AE0rb5Xnu/e564DhK9OX8gP+ljfWJI4eaCyfO55/03fvx43LvM8EunKGc5TlpacOaAg+DRDwo1RcnzAKw7gT/5Na9ePXqrZscEo4CgZPW6iW3JSc9KG2/njhmjmDgPoDz53BS5HfhmEATHR2cUNsuubg8I2pl0DnC9V6zBCuAuYgwXVHdIgc9UN+HmkZYBccGu4AGIrH3qovLK3JYXeao3n5e3RPUTl5zgUDkwsVl9fA+IuW9DBJGAdin5NzAcfB3BCKRABKB4IXqXnlfka1k0jqm1gKPAMAOYgdBQlhZco0cdkctv00CFByHxJ/BH8/ziLAAJpj+zmBn51Q4ul5WW2Xekd2k85QAj4ZVmHNOQIIwNTUQ3a3vI6LX3yTNDQB65rdOiWyIBFmDBqbC4fBAfGRbP9oaOeqOvj2ftBNWo8OxIUhhE5AgjYH4fKXcKmuK+J+vvnuFd1WuTJ6yn1ZWMCawDdBTTD/ldvxOo6x6R1ji5ZuQEPvpP+qXG1HehD2qSESApYfZkkMfCt0G9xOfZZeI38HqIpfJZKRPfr8uLmt5nucMcPGCEAwKFyhEHo1GB0KAuOPETpicHEpsFXV/M87Iu4+ZDJ9JbdV1v17ck/IcEAhBAXoK7IDZnXIwBAZjiSW3yGmL1Y+ZfD5fa2wWZV0vbkmSACy9KY8D2C8CyFOGnBADd66tb+qnm7EjzxfRkNZ3ni6gIhffSpqmWXrTDjXk91Op1GSKuWPUDe4SbqTXdmTdM9L2UstL0trfFy+eLiCyuaZFTb9lh97DDv2NeULX9e9iW0ukzWBjF42uP2iQiPhrV6tGq9WqqU+BoWGqTxj2a8wN4J8mPAJj38S2ZsyIrxLD+XxgDVEu7owoDv/w8NDwYCJB9JDbdly5ZX9I6RltZGWvSPtyVdOUFaPhy36fzgHoCQkCuXZA3Ol0ugtQOVOPmHR3r2R9LREfI/tZUZQcIgtZ0eeTs9/6c7h8pocc9Pf3Q0/tV64we08Ps48SarXRQq1Q6Ps6DsH/GBFxnESUr6yBr41ZGjD1adBF/QBy2LsBkRcKhbGZsRmD3r7fXpF28cFKTskpXxbGxXby9fHKbGKW+W096CEYesgJvTO9121uXvqwmW1vjvyjjIx5EwXjOPwp+g007gwdHI2YWDXpeMkBF6AmvQ52adKEVHQpLm42jQSkH0AnPZOLLk3Hu4H1kosFx7NXz6lVr0N/7ytCQBz6DCR/As/z8ueQcquR/bQvnxVvfNJ9f6C/DOlvNvZ6mMoMkQh+5O1r++LLxezFG191+JtU3wpOf0L1n73Dl8v1Os9fheDLxUdlJ5KiKNrdsq3r+un971TqEOPktAl9CwGD+E8A0YNKpVIGPE/812dR+MKjkorgR6b/P+lkRT/+fH/BOGu2jEDPcdQe6GGHPx9DtfGs3O6L3H1zdL1JuPl5/+vpyuhTP+f5ff01qFar+XwDFHYRxb9mMjaSRCRnTxBpUQyj7/tB4D+DHn6qZ2MpiCttJ5LcoFlTebFEBP4+LWzP34W+B7+v9/zFeFh1pSnJMNuIaU3TmbVbRgUNDo1Op9Pt8r0eAsF2BJaViD675fw8G6IoqQ9H+yKKZuVkhhk7LGcY6HAcjXTRwB8QRbGhqoIgSKBUIu6ALO3gbglIgvhgmfsipnVMKow9cp3XyUDkQAeQTg8ZgAwgmQgSQQAqkFa7kQMPU8PCSCWRSOA6rrnOfDnIFllBFX1UQEtezQviwwaDwXz+z3Hd2nBqmQdhENlWjqzjtJxhNiRoa23bi/F4PASj0agWYQSGAE8sFra93rwm5+IjQSWXluVMxs98HIZ5724OkRgIYSgMdyp6gRhUD4LJDAIRFRu9l8mx+8os7LAMSMR+/r0fEZpGUCF2zTlGlErqsv69pHREXUcCCbuZolRSkHrdHzRHgVHOJkMk9IhEmNm9pE5xKTeqauZC4QaRAQFS4H/W6I1VXjCIEIVpZOyAVDwnFZ3CGKENXu8NHhT5bLAn8t3gB5tRcTnQFMqEAAAAAElFTkSuQmCC",Fze="data:image/png;base64,UklGRiYGAABXRUJQVlA4WAoAAAAQAAAATwAATwAAQUxQSJ4CAAABkAVJsmlb8847eLZt27Zt27Zt27ZtG9e2bdv39tNZe++17vNPREwA/dOZo6hWhOxFssnRaNra4w+M3CJNqvLX1D7cxeDukVWTazDpXKDXrxFvXaOg9x1TDg99iOzM17Ak6Ddgc2dA0hCeZoL1k2zImMbPGvABrORlP7jBHi40l8ARzquVy/MEXOFhLqWKGYAzfCqiTGV7cAfbCko09IUA8KonX8cICIGwdnINToQgiO8vz9QMCIP0iXKsgNx8AEuk7YZg2C5BfQ7C4ZSKJdcDZAK4UyR7iSq1a1Uuri3+EZkCgt0jk1JTE8OdfJFJ8PoTsW7ZP5APx45dffiYRFTTlQfjkkQb+RhJRKXNlXuej4iW8TGaiKjAa6Wu6oiIVnBE2W8qc4h+yBVlOa7EehKBaLN8s0kQWiBT8ggShsak6ktL1xfdjQSiXhEIfLFzUrdm9es37zlt37sw+DQjoahCu0LEXLxDCRJM6f84fDIDYybV/XTx0o4xkab6sL0fQwRY+aOA19v6V8rK9sPCrRccPHhoT2meah08ePDArKYFiP+ClSqUlEXc0h5J8fGDuWozdpTE0YNys5WKAjCSLfeg0aMkjm3DVAsybmCjdYCxmm0tZKzFUtQg0E+iv98gCfm90YPY+/v6+0kMNCjKQup8eaXmJKm1e5DUnHml5lPTL7y21f4PrZVq9WF/Ky0n6qbb7AFsVWorAPttTdWKqRpusAYAx+1FlSq63REArDc0VClRZ5VZOgC3/W11xKGu7X43AOlmq+rIVGOJYSoAr6OdchC3OTod9QKQarikhqTi8z8kA/A70yM3cZ67xxk/AMkf5hdnUhkBCLrULx8Jma/fpSAARioWuhR+c0ghErjQkJvhl4hZXYCEL6Bm+5cSVlA4IGIDAAAwGQCdASpQAFAAPkEaikOioaEa2ed8KAQEtgBbJur/YPxm64bFPaPyH5r3ezvr+QGYz+G/on+Z/p35Z9rD8o+wB+lvmZ+p3+Af3D+5ewD9b/2v94D0Af9X1AP8H/uvVU/zfsMfsV7AH7O+mR7Gn7ifuB7V2Yn/RLToBFaF49vT657i4FNhTFMPtqGBnLHb4B0mdEFIcp89CJvbbCPD4/QeZhwQQzZ8BxgBYJstiZqMBJD6z585YDHszJsSre6r3yMDyPrDGOzaYTcIIILf8uoSangA/uHNmzlTvvlp4WxismwIwhrpTbKk5HA99Zt/tjf//B1f/wjF//4Oz7Ro8qdwrGruK80gZGdfcjEjVmeAY3UNq/bKHbPJeZyPGePUJYsf1pTxUT+M/1yY9sp5QEaUI/nWbM+hrV4Wv2GCz8YHB1EU6uczvWjFJmo/ILHBjfR2dpCGtC7aaJrcU2802eJTgxsCLzPMTBp+iLQAcf1z34AZndAHu/MsTUnzhvX5iBLRl0rcsyt8px9H3DpVdPqz9F30dKwOAKELHB71muyZVCqSi6Ijvf/Z3WEYi+Jy9gg4gwMX75I/kfFsZTr7B6AUO5g/bTvaEq7oh9QTCrGVLPJY2tIyTiFf6+rnBPHuJQFG2ntz1V2ZE3kFqOf1JYkNtmTx5bM42JZLzDv8lK+cZlqBMuGj5tTqsUlkszMA9vYVj/+YQXiow3o8IGtvSD8Z9yp7r5vAB/RBYfyMXHGCD2/Vj9Krhqkp9w11usppHaLv4fZw8b3KwrMeg4xklboK6/9Fk8fH9jbQr2Gh3gBR1O00KEtl0DoRpGMbFooOH7dbaaubWVWnZJSKjwKIyP/s2PwjLOOynzDVSVfh9QzyYBAtiUl2qfMRoRAekN+1zwxjUnBZz1zVVnum4pxFz4O/ytYWZA4AKd06/BG2+/aqSmflFZELL5IvsKadrnEUwQiAtJkrfXIu0S5ATyAZ8U7ztY9txpPVO65FVvH6NJPkeoxN4DJMkkeJyGkxeZyTOKOXTYLyG410M+lef83/R1x+Fufa2JlrS4UJj9uQp/8XdI+6n2yYec5INem5wZ3l+51bAhgdYqwdZhQ4nrP/8zviDM+SQAmVegbwNZIXMtlySH9p0fzgvNUc4nPYjSzoYgAAAA==",Dze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAB7FBMVEVFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lFX+lHcExr5uSJAAAApHRSTlP/9/1D/u1CWC8ucnhZ6/xaRFdxb+p5Avtw6Ol3+AT65ezz5w8VgE0G9dkeJgvM1u/uUj16FyqyydO529+RLX0QU4ufvOCS+ZfkxWJnKGsJNxwrDDA1OgHy16j0W0UWNMPm44Gv2Jrd4qmP9rjHjtGYg4i2u6HKz10+JDMZXBh/HUEiSyxQX0Buc1QgSU4aoMTxq7UFbHtRMjwDCA0SShHOtCc2AIfjeMgAAAAJcEhZcwAALiMAAC4jAXilP3YAAALsSURBVGje7dnnUxpBFADwBwgYMIaIgEhTukiJAmqMMfYWW4w9lvTeeze9996b/2gYFO7EW7LIvsuY8L4ww+7jd+yyFZgXISCH5JBVi3xT6mQWXEQ/1WqAkBoVudkQglhMIiL+niDEoxAPGdhjBWTkmssIgIt4qmqBCykKsq3FC8jIlpJNALiIXtYqBWTk0aEQpEYeW6T/bh0AMjLzsgOQkS9hGwAy4pgAQEdGJkVAqgxADGbIemkO+fvIR8drdGSmJTDxHhdx6rpi2d1ORMTifh7P9n5IvqVkjfTuK1/Ilsi4wVjIFHH01SeyJQpuzbWTCHvmyOi9I9wz8xC91mY2myWpYZbU3ckY8TXLeQ/JQ+b1vZopjUYWD8XCiyYWN3yZbrj7rx5f0hJ8hNWu/vJBMyAjznBXap+yRiy3Zpf/cBgjlZ1jkB7xv9OFdTp1LEwmdSJMalU17SHo89YKwSHAQz61W4WHidxEh0RrCGsrD6kuJw3GMSpk6BUpn4esyyNVojs6RIspkB1ExECFbN8gApIvF6G5ckgOISMFRIRwZvQ8bnBVIiP5Z2Pz0NE5TMSp2xUvu5AhIqVHLO7uxTItGlJ5IjljZ4goaZEh/tpUgoOMLFmbUJArJ0uXlBWxQrjTr+fhuZQy9sjtZ97UMhVjZNkVFXtkVHFGqAJTZLBZeAlniOi/BghlHLImW+Qt8QOoEBkVQtxSsUTKxEDW/gdI0apCIA1SIgai/WeQ+2IgpmT+8As05LQ/ka8CNMTaHo1Epqcjvh4bHgJg3DseDI63WQET+XNQIsU5hBFyoLPx+m5X46lA1kgpsaStejF9cCMNUrAi5Fgy/0kHGpLhBEk+zsUGHKtFa2UI1Q6SDiFefsMDdt/ETrNbKcsS2UmBbM4WsVF0PCKiorkelFFc4KRrrj6Kjj98MVmpKc1grCGO0gHuXxnivHL+abLSpQpSpe/w84fwwmd8o+dO38O1wm1R7+bdAjTtFz7Fz/76DY+rJdzy4R8QAAAAAElFTkSuQmCC",Lze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABdCAYAAABTl8MxAAAAAXNSR0IArs4c6QAAEtRJREFUeF7tXXlwlOd9flZ7n1rtSisJ3UIcuk8kGSHMZYNjY+PaLq3bSYbU6djTdNKZpjOdNq2dmU4zjRN3WjexY5ohxsZxjF2gNGDuUwgE4j5tjO77lvaSVrtb/16xqgwrfceeYvr7B2b0fd97PO/z/s73XYnX6/UiisXtdqOlswcH687h5t0m9A8Ng3ocZ9AjJyMVjy8rRXHuIsik0igeBf+uSaIVEFonYzY7dh44iqP1jZhwuWYd1eLMNLz6R88j2RI/74GJSkBo8ls6uvHeJ3vQ3NHFa3mplUo8/+QqPLF8GTRqFWIkEl7vRdtDUQUIsWJkzIaDdWex91gdnOMTguZLGhODjJQk/MWfvIhEswlKhVzQ+9HwcNQAQqxoau/CB3v2405Tq+i5kUgkiNVpsXHNCtSWlyBWr0VMTIzo74X7xagAZHBkFKcbr2DPkVMYtdqCMgfEjsWZ6Xhpwxpkp6XMG7ZEFBCXaxJ329rx2YFjuHm3Ga7JyaCA4fsI6RGT0YAnaqqwuqoMRr0OxKBologBMjJmxdGzjThY1wBiiMfjCdk8qZQKLMlMx+an1yEzJRlymSxkbQX64bADMj7hQmtXN3buP4rbTS1wOMcDHQOv94ktcbEGrKkux7cefww6jYbXe+F+KGyAEAOGx2y43dSOzt4+HDh1BsOjY+EeL4gt6cmJ+PPNm5CxICns7XM1GBZAJt1uNHX0YGLSDY1KBbfHg+7+Afz34eNo7ewGeePhFNIjeq0GT69ajm89vhwqhSKczc/ZVsgBsdqd+KqtCwa9HjExkmml6vF6MT4+jrrGKzjRcAF2hzPsk0K6JH1BEl7dvAmZqclhb99fgyEFpHtgGCNWB1QqJWazbWgr6xkYxKf7D6GlowvhDq0RWzQqJV54cjXW11ZBIY+sMxkSQMicbe8bYmzg65TRtnbiXCMO1dWD3g+3UD+XZKXjlRc3Ii05CZGyjoMKCG1DI6M2tPYMsJWu12kgk8oEDa6rdwA79x9Ee3dP2HULLYJYvQ6b1q3E2uoKZgCE228JCiA0+bTC23oGMDJmBwHjExqUVqMWFOybcE2irvEyjp87z3RLKH0Uf0yUSqUoWJSN72x6CkkJ5rD6LQED4vF4YXeOo6W7D+PjLvhLrkilMcyqoZwF3xXHdEv/ID77/DAzk8cnhAUag7HlmWINLPRSVZwPnUbNu++BtC0aECIBsaJ/aBS9Q6Ps/3MJAUFsUauUoKgsX7E5nGi4ch1nGi9jZGyMmczhFLlMirycbPzps+uRmmQJeb5FFCC0JZGH3dE7BJqwmVsU12TJZFJo1Sq2DfBlC4Hd0d2Lw3XncK+tHc7x8Hj3M8eSYDLiubUrsby0kLE9VCIYENekG/faOtDS1QejwQDab4UKhTGUAtlCjLTabGi8cZuxZWg0tPEvf2OiRVSWv4QBk522QBDT+c6RIEAopXqorgGH6y+wyOyyogLk5Sxk25BQIbOSwNSqVJDL+bOF2u3o6cOx+vP4oql5ztSu0D7xfd5ijsP6FRRBLg86W3gDQqzYsfcgvmhqhfO+giWdkJmagtplZYiLjRVkSfkGT2xRKORsG+Prs5BVZ7U7cP2Luzh0+izTLeEWGnvewiy8vPFJpCVZePedq5+cgFAa9fCZ8/j9iToMDI8+5EnTKifbfVVVBbLSUkWZiMQWAoMsGSGe8uSkG32DQ9h/4jRufdUUfvM4JoblWzbUVmNNdQXrf6AyJyAdvX147+PduNfWOc0Kfw2SclYqFMjJSMPqxyqhVYvr2NR35IL8FjKzHU4nY8u+Y6cxZgtOxpHvxPr6vCgjDVteeAYplgQWsxMrfgGhfbr+0nXs2HsAw2NW3iuP/A2DTodnVq/EgkQLbyvqwc4TW/RaYWxxuz0YGhnF7kNHcaephXefxU7cg++RKW/QafHSU2uxorwIVAUjRh4CpHdgCO/v2ofLt7+Ey+Xf0Zvb3wALl1QU5jPdwlcvPPjNKb9FDo2av5dPltiEawIXb9zGgZNnws4WGgP5Lfk52XjlpWdByp+vae8b/zQg5HA1XL2J7bv3s+rAYEhivBnPrl0Fc5xR9Odo5ekEsoWUfv/gMHYfPo4795rCHkGmwVJt2JY/eBq1FSWCzGOJx+Px0rb0u32HcfL85aAXGpBJu7KiHKUFuczMFbO7+rx8oQVwlC5uuHoDR+rOwmq3hx0YGmtp3hK89vLziNXpeQVZJR09fd63tv0WLZ3dolcx14u0bWWkLMCGlTXQaTWCVszMb1MsjCwZ8vb5bgXEFoqF7T1yAs0dnZh0TfqNt3GNIZC/xxtj8eMffA8WUxznZyR/99a73i+axRemcbYw4wFSequrK5GdnsrMW76TOrONaUtMgN9C71O4hdhy/Ox5VjMc7ghyTVkR/uo7mzmnS/LyX/+jl8Ld4RICYnF2JmrKS5hFJiTQ+BBbtGpBEeQptvRjz6FjaOvqDquXTxWU77z+N5BzZCQlL3z/b70SAdHXYABHqzw+zojaZeVsKxNbgysmJkb9p8DomYtXcPbyVQwOjwRjSJzfUMqk+Ke//C7S09PntDwlG1/5gVep0XJ+MBQPqFUqFC1djPKCXOi1WlFbGPWLdItWIyyCTGyhipdDdWfxVUtbSNlCbXnGHfiHV7+NoqKiOQOykhXP/qHXlJQCuVIlekICAYssL4vZhJqKUmSlpojewhhbFPfzLVIB+Ra7Axeu3cSpCxeZYxls8bjdcNptkHrdeP37f4aSkpK5AanesMkrlcmhizNBazAiRkQ4PRiDoErCgsU5qCopBDFHrIhhiy/fcvB0Pe61tgeFLcQKt2uCgeGenGTb8ht8AKla/xzLusbESKHUaGBMSIIsQoVjNJnElrU11UhJtIjFhEWdKYJMfgtfo4GSbDa7A1du3cHR+gZQ7bFY8Xo8DAjXxDjo/ySCAaGXSNlKZTIYLclQabQIt7L3TQAVRVQWFaA0L5dNrBghp4y2Q6F+C8Xx+gaGsOvgUbR2dnGmph/sm3vSBYd1DLRVzawxEwWI7+PkyKl0esYWAigSIpPJmCP11KpaJPBwqGbr47SXr6J8C784AbHF6aSqyss4ef4i7A4H5xTQ5E847Bh3OqZZMfOlgABhH5JIQJNCCj9SVhirKlSrmHlM+iWQk7YUiSY9xbKTnNM79QDVHFOw9ROqE+vqBlXY+BNiA7FictIFdkTYjwQOiO+jVJhsNMGYkMhAioSQHsjJTMeax6pYMiwQoWJvjVopyKKkRNj+k3U41dD4zaoXYsW4E06blTNOFjxA7o+ezGJTcgoUSvEWUCATSe8aDXqsrq5i59PFFFf42qd3Kd8i9OBOa0cXduzdh4GhEaYjHDYrXOP8isSDDohP6RvMFujjTBFT+LSN5i9ayHItlJkUEw/zAUNMIcYI+cbk5CQrDD964hQ8Hv7HKEICiA8UhUrNdItUZIAwUKbQ+wkmE9avrEFivEnwSp/ZPuklqkGmbZELGFIPbo+bVVS+/i8/EzSMkAEyTXuZDLHxiVDr9BFzJskzLyvIY6GXQI6o+Y4kUCXJbBlOUuhUzkqFgRQL+/GbP48uQBhbYmKg1uphMCcwZ5JrhQkagYCH6fjA41UVSEoQf7UGmSu0HZIPJJN+ky1kbVHZkS8qTpU4UQmIb84IjFizhfkuYnPoAubf76NUrFddUsz0CyXBxAr1nw7wsAi0RIKJCRerwJ9ZUxz1gNDgKQamMcRCHxcPWYROIZH1RAHK6tJiJCfEg3wPoeJzCmnSqeaKWP/gqa55AYhP4csUSsTGW6DWkb8Qfr9l6kCnFsuK8pG/KIc5lnyFtqbB4VF0DwyyVK/JGIvUZMtD8bB5A4hv4DFSGTQGA2LNCaD/R0JI4VPya0VFKUuGzbWVsrCHy4W2rl5WDEE1XiSUcs5KXcBy+DNl3gHiYwuZxeakVChEVjIGCuRU8ZoONRVlWJSZ7jczSWDQ/SqtnT2s4mbm9vRIATKTLXqTCTqjOSIKn7Ywil8tycrEiooytup91iDlQVo7ujFqs02zYuYieCQBmalbzMmpkIsssQwGW3RaLdbX1rAz6XanE/daO1l4fbaj2I8sIP/HFikzj7VG4SWWgQIy7dBKpVhVtQxSqYwzIDgbIONfX6z2RjQ6hmImieUntDrEWZJZ6CW84oXTZmPZyNLiEk5HdlZAvj4f88ZPo9BTD2QyCYw4SxIDRyIR7i8IbdvjnpzKWbhcyMrIRFlJAIB8fcbxjTffEtSFkMeyBPVmlodZ6IVlJhPvZyaD77eQfnA5HXA67NOZvEABGRoZwU/f/qWgKZgXgPhGRM6kOXkB5ApVUMP6UzmLMbjpWMWMTF6ggJy9cBF7Pj/w6AJCI6PQizY2juVaqCwpEGE3S1AJjs3KEkkPSiCAjIyOYusHH2FgaEhQF+cVQ2aOTKnWsNCLQq3hVLr+ZoQAGHfYWSZvNnNWDCD0rb7+AfzPoSP48t49QWDQw/MWkCm2yKAzxkFnJLbwD70QCAQGFabNJUIBoczgV80tOHDsOHr6+gWDMe8B8TmTVBtmiLdwlrlSMRoBQQUHvsK0YABCmUSzQY/TDQ24euMWO1wq9j6vec2Q6cmkwj0KVOoNLAnmr8x1qjDNCvqXr3AxhAp57HY72tvbMDg0yFhBufRA5NEA5P4MUH4lPiXDb9iFtin7mLAi6ayMDJSWlPq96IAmvrevDzdu3WRXeQTrPshHChCyuuJT0/2WILmcTtitwgBZkJSM6srKbwQ7aSuyO+y4fuMmunt7GCPEbk/+mPT/gMyxv1DufMO6J6C6X2VPLOjo7MTVG9cxMTERkuNuvAGh4wjBXAmB7LOzvRtshlA7xlgjMjPSGRNa29phJZ8lhHdxqRRyfudDap950TvXj6WEYoKFfjMUgAjtQ6DPU6Xkj17bwn2C6pmXt3j7BgYDbS+k7z8KgKRazPjh976NpUuXzn3G8LUf/r334rXrIZ3QQD/+KABSU5yL7/7xS0hNTZ0zAiE5Wd/g/dFPfsZumY5Wme+AKOQybHluPZ5ctxZ6vX7OaZYMjYx4//lf/wNnL1wKytm6UIA6nwGRS6Uoz8vB5o1Pse2Kq2qf3XVCnui7v9mBhouXMRyBuwy5QJyPgNA5R51GhdysNGxYuZydvtVquY+fT98GZLPbcenqDXzw6S7c/vIuKG8cLTLfAFHK5chISsDy0gIU5C5BVlYWdDp+v+7zjfuyyA7v7R/A7n0HsOfzQxgeefhKv0iANF8AoXqBWJ0G5UtzUF1WjKVLFsNkMnFepzFzTv3eKEeHHK/duoN3tn2AL+81By2eIxbM+QCIQiZDRnICakoLUVpUgLS0NGg0GsG1aLPeuUhsIf+E2PLx7r1wROD3PXwARjMgxAqdWoXK/MWoLClEbu5SmE0mdrRBzPEMzltJKQdALPnJv/0CTS1tYhd5QO9FKyBUXb8g3oR1VaUoLixERkY61HQlYQCX+XACQjNJbBm1WvGb3+7Ef/3+AAvAhVOiERC1UoGqgsXs6ENeXm5ArODUIbNNNsW8rt24jTd/+Ss0t7aHDZNoAyQlYYoVpcVFyMzMZKwQsz35m0BeDHnwxTGrFe9t/wi79x0M+h2N/joZLYCQk1dZsBgrK8uQn5cHs9nM6egJXbWiAKFGKGxdf+ES3t667f4tB6H7GYlIA0JOXqIpFmurSlFeUsz8imCyQvSW5Q/t7t4+bP3wYxw/fYadxQtFbiVSgLD7HeUylC9dyK4kzM/Pg8ViCTorggoIfYyOC1M139v/+T4IoEALAh4EPhKA0Pn1BKMBq5YVoby4CNnZ2Sz0ESxdMdtWJnrL8vfBzu4e/PvWbWi8cg1WW/DuyQ0nILQ9qVUKFC7MxPLyIhTm5zNWcF1eKVRXhAUQaoSuNTpWV4/tn3yGlraOoKRFwwUIsSLRbMSKknyUFRUiOzuLhcsD8SuEAhVUhsxsvLm1De9//BlOnWtgbAlEQg0Iu8mBfg8kOx015cUoyMtFYmIiFBG4DCFkgBAA5OUfO12PD3fuQnNb26z3TXGBFUpAaPUvMMfhsZI8lBcXIjtrihVceQuuPov9e0gB8Xn55ER++OkunDhzDhTmFyqhAoQqQYoXZaG6tBCF9y0opVLYXVpCx8L1fMgBoQ6wnyiy2dBw6Qre3fYh81uEmMfBBoS2KPIraksLUF5SFHFWBN3s5ULd93f6jdvu3l68+/4OnGloZFsaHwkmIORXFOZkoKasGEWFBcyCioSuCJuVxTXB7DcQHQ6crG/Ar7Z/hJ7ePk62BAMQOiwXbzRgTWUxSgoLsCgnh2XxwmlBcc0N/T0sW5a/jrAf9OofwM/f2YpzjZfmjIkFCghd5VeQnYbaZSUoKihAUlIS8ytC7eTxAeDBZyIGiE+3UF3t3oNH8Itfb2d6xp8EAojZoMPKskJUlhUjJycn7H6FUFD+F99EwWJISrZpAAAAAElFTkSuQmCC",Bze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC+lBMVEX///////7+//79//+ZfOn//v+UfumXe+f9/f9crPCZe+n7/P5Lu/Fmo+/8/v6cd+b5+f339/1ooO32+v16lOuYfeqgduqZeedQuPFVs/Bfqe92q+1xme10l+1+j+yOg+qdd+n6/v7x9/318PxStfJJvO9Qte93l+uQf+nq9PzX0PRiqu5vnO2Bje2IiOv8+v719f3y9P3y7ftPtvJNt/BVsu9Lue6Hiu2RgOubfeqbeeqXgOideuigd+f69/7w+v3z+f3n6/vf8Prp4vnH6fjp3/jA5/fXyfRZr/JHvvFXr/FrwO9Rve/Due9fsu9lpu9fvu5Yse61o+xum+uLheqJkemgdOmnkuiUe+j3/P71/P75+/7u8/318vvj7/rc6/jb1/VXsvLHwPFzye5ipu2Mhu2ymux7kOyEjOmeg+emieagfuXo9/zk9fvn8Pvt6frw6PrY7/nV7Pnr5vnJ5Pfm3PfE1/a72PTO0fSz0/NKvfJeru+Twu5roO66su1osO3Eru2Nq+1qq+yMpetyoOuCm+utneqajOipjeehiOeihOeLhualfebx8Pvp7vrN7Pni5fnV5/fQ5vfg3vfV4/bD4Pa54vXPy/OCz/KnyfK0xvLTw/K+x/GzvvGHyfCpwfB6xu+guu/Kue+Mte97ku9pue7ItO68qe5ztO2ur+1Yu+yXsuxuseuKmOuqpOqWouqtk+mWk+iKjObs9/3n5fm55fa+3vbX3Pbk1/a02/Xg1PWv3/Oc3POt1/PWwPOS1vKj1PKd0fKtyvLPw/GcyPCKw/B7ve9Cve+Hue9pxO6Cwu5zwe6Dt+62sO6Zr+6ese1/r+2Eoe2Truyfq+yapuyCpuy6n+uOnuuZm+uYleuwlepypumhkeiSi+iRhefQ1/XR3PTay/SWy/O60PKZz/KPyvLIxvCVuu9bt++Lve13ue2zt+2msO2Ro+2ms+ysqux6luzDp+t5oOqmmuqNhuqxoumkn+m1nemviufl+fqo2/S6v/Cuue2yuOxBqZCiAAAHmUlEQVRo3u2ZZ1ATQRSAd+9ISALpxJgASYBAAoGIIEW6ShdRpAjYBQTF3nvvYu+9995777333nvvbcbNJSjqDBIu+0u/yeQ2JHnfvvf2lpsLsAG4QYr/4IYkAW6aNcPrQNEz1x3Kis4AWGm+I+FAXMKOZgAf5Igs17i4uC5xWW0gwITT+BquXbrEoYfroUgewILTlsW2trauroaHbY1oLO1HjrJIkjBxYoK/ra0/BgsJWeMXVyhbtkKNz+GZ46v6+6NRpMUlILKGwVE10glCRuuZboZxa0tbKlet4FvW7UgbBoQkAzSf7qb29Z3pbtk1Fj5dplarj7SG0HTaI4vabVeGJS2MbX5qtaxofZrPlKllD6MJyzlgm3kymWxeJFnkT63n+TWUHWluOUnmPRQwcROrSGoQjkv0S0ra6WSpPMC4xIYNG94W/3be7Eryi59nsf3F+TA7Nv5xZfhbA9z3x8fG3raxUCbru7LZXddDgvh11qhgsbE921ho+T5is9n7wiEC/IK4G7sre69lutJOx2b3bAf/lIDRPbuyl1a2yFXTXpRIN7FJQqKVxSjcazK7yeXybZZofb2Fcrmu3c9FlZHBKpSA0X3k8qPOgD4ddTr5QWdIUmGbj98xceLW6GYkMqBHxMFsXZ/R9B21u2XrsjsTVD8ytxzy93f1t03IWpdhmkF29exJBKRdLXtudfv6VD/C7/q5VfB1c/NVuz3cmQmh8V2uBeo1jlud+4g62XnbusbGJx7edXd/YlLDxE3U/DO6GaZA10FMQpLOhKEj9ZfK2Y/bRRC8NZ2XstkLK0OqXlyuqCNNB4yYw+VeGWUYEbuzq9uPIiCDALzOOl31zkiMzPbdRXt5NCUt7Lmik+5GnUg0iSBIBlpVa46KuA+oGkbM6S46GEFTMrZfd9GD2tR+eM6zXwdIFY7kzUj27E31m5wkEtm3oCnpkOyZvJsqTItTjpqbJonTDEfH3uWNi1jUvd9YQI/dyZ6eHahR+Wdz7aYaJUB83G7uceP/F5Rqvw40N65ZDp6vxxqHT728ztYBFBtSvRTTWNTyGn7O02EypCURL0GSesZxp9UBAYuGoQFrzMWAnNQNxl3ZubeDwwweSrDUUCHOuQNqpt7LlTlD399v4NFjYEqO8piAcgDBEgeHWTa0UqnTF3XYGRrjrb2qZWqZwcHMwEDtm5bwR0EdlohpSYafcnQ8LTZJQNSAYGsOh2PFCX7XFpggZ6BPeNOSVDqlcTwuAIXUndJ4SH5+0/Mx3uAH0zSavuUBLUl/jeZEbVAIhGGtoqJahRWd+GQ7+hI7uxPFXvUgiV3fOnQluSiTv0gu0JQsU+SeKV4yLdfuGb1yDV+mUJwVg2IgvubOXUFPUueCQrHCu9iN5zmahpDeEr7gpSh+noIzXl4rhtGRlF+U57WsU7Gri9cp1Svvm7D0DsGTvIDUTiwGo7ie8Cak5uV9KfXFPby/Wh8wlQeRpNhcpq4OWD2htJIxq/T6F8K/XrpB4SJ9wKWRsFR9ES4fOnTVyJJ8de2qgJRFAkiWQuIxNGVoNaIkEkajnJxrDUAp8H6fknKpEigRLS+9TVkuKIWkwXWl8hgLlAhWD+Xba2PMd7COKQOve5gzo2rm92TY1cDAgS1BCWk5UKt9421+tYIDtQOEJT5tl2sDB1YxW9KIydT2MLUEAlDOpe1vxnJ1yxVtipbJjIHmtmQBk8lsZIzmUsWjWs1aAz0A/CXVWjWreVRxMZogmlN6NbO3rQFMCXMCyxi/SbB1OpM5oMg1CQTCd+np6RUHF5omMCWcBSwzJXVrSSTMxii+dXq6tbVVRYlEEtyI8VNC7Am2tkJYI5rUqjl7AfpAYzPPFOgzGMXgSK2tJFYca4MFvWoSw4KF73sMNhnQgcORSjkVKwatNHfDbzVEKg0JCUHf5+cPvrxgT0xTDidoyOxhpjxnD+FU5Kyc0qtx0yZ8qTQoKCgESQa5mClpiyR8fn7Txr2mbGwZRkA4n68KUfFXzt8cFbV59kopPyjIKgYwwnzax/T6MKhJiJSvUpkvaUrFbxWG+gARwOcyP0RVRsUPLcjn81VIqDqP3jMABcg0/8Og/EE+ZvZEGOUj4KEj9YJ6rnKZH1pGFVqmTCg/DT2FnvcpXNIkOjLQQt8sBLRp9aoARUeElklLK5jvQsktTrmNrz4WpKWlhRZ87BVlQxBIggOWT/tb27ffau/CMpURG7AwPE6HUQLx5QE/rdu6NTocp4R0isxyPXAgIWsEga9UZHQNf1uEa9UR+IpVuSr6eWNxgm9Z6lcNPPB2+smS7o2InI4OmwAm1uyPj98XDqD74aT4fWKAh/o9DTehAQnX62IXugM8oLvAC1tQvekjRze28TCqD/cklQC6nWdfD+Chnr3oSn3KdkV0sg7AQ8Qcz+Q7EEBwJzl5lg3AxFSNZokzAM6nHTUdAC5G9rfrfxOAGy9f9h0OcFH7uSL3aZj3mdy503gEwAW695h6o1OeYtlIiE0CBS/0+osX9fonNgQ+CRhzLUefoly1FiAJNmx6aAOVykYsAqcEtL0qYQ6oC5EDJ3usBrcHuBHW3M4A2KkrBNiBEAL8QPAP8x0ZyfbHp+5ubwAAAABJRU5ErkJggg==",Nze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAClFBMVEUaI1MeJVcdJ1geKFscJVQfKV0eKVkbJFYbJVUeKFoZI1EfJlgcJVcaJFIdJlcCgeoAdeQeKVseJlUAcOIAZt0Ae+gdJFUBU9MCh+4ATtEcI1IBlPMDjO4Aat8BVtUBbeMAWNYAQ8wAZNsAWtgAUNEAfegAeecdKFkaI1QBf+cBXdkdJFQBjvEAd+YAc+QAP8kDiewAZd0BYNoATdEASs8ARcwAhOwAbOEAYtwCWNcCSc0BmvYCgusBZ94BUdIEkfECiu4BgOgZJVcAYNwAlvUCj+8Ehe0AfOobKV0BhuwBXdoBW9gATM8CkvIAkPEBVNQAR80BQsoAQcoZKFwYJVUCnfcFj/EAaN8ZLGUYK2EcI1MCceQAauEYL2cAmPcCX9sBXdcAR8sWO3sWL3kCnvoAmfUAdOIAV9QXKW0cKWEYKl0YJVsaJ1oDYdQCStAPfc0BPcUEQL8WVZgYPHcZN3EZM2sFl/UClfUBfuoGadcBSc8HY84FO7cPVK4SOpEVLnMBi/AAcOQJiuESYrITXK8MQqoLOqcOQKQOMY0XN3sYP3oXNXUXJl8Bh/AEle4IkOYJgN8EctwPgNEMYL4Sc70RTaoQRqQSUZ8LNJ0URYEWPYETNX0WOHkWJ2MCmvgJhOQAcuIHfOEIed4LhtoLgNkGbdgKX8cESccRd8YNasMSbsIJVL8QZ74CObwNW7kTZ7YUaa4KRK4QWasQS6cSWKUUWaAOQJ0SP5YQN5YWRIkSOIcSLIEXMncVKWgXMWMKiugEddgCVNAFW88EWM0GVskGUMUFTMMFQsIMU7cIP7IHOa8UYKkNM6QPOp4QTZ0USJUYTpMRM4UUK3gVMW0AeukPhNEPdNAET8UCSL8IRroKTbkOMJjfGjaeAAAJHklEQVRo3u2Z91/TQBjGA1ZoC01pkFIDyhBoS5GNokVGWUVxtihDUBmCgKAMle3ee++999577739Z3wvZ5u2pLVq+M2Hz901b+7yzfNeEjIIWW9u9QJZrZOxrV3JuFtOiEyGIdCysX+B9HbgpDc/AoiVA6chMhtXMoeQXqwgPb2cE/S06e9wJEB6XBgiElmGuCOO1+OYiHtJRKDKzc12AEQcQ9xEjmPsEvxy4MQxxXEML7FOnBZOwd+IE8LtSzatqqpKjyM8Q9gZyv/Rfqr9aj4i8grBLnCZtnVGVNS4qKu9e/EOYY+zslPAGBc0s+wvnOA9ZfcZ1bYFajACjLFBQQmv9G4ii75Ma1nYsLkQaATeW6ihoJotrJ+ymYBISEiY8rXMDUbgYVDjM4ItoG5RAkJoCAj/wjVbsNymLR6LGGOGxucu0Zt64fVKaNzMRenq6qqEqOUGAOKUyp4gxJj43Ny4I2UO+gEEZF7Cjm0gSu6RYCQIuYjPjevbN3mJzMNZCHJpgih/hTghSsYIMOoYRHLIo5uU0g5ByUIstke4OiE3USfYqIuL6xuSnOw7uv9mPdqY83IOol9SVwcuQkJ8fSsrAwc83Em5ufIOmXYOu0CIwAEjwi/oPXoCkgwuIFGVlYAIH35/mYeI/3Qt8kVzEcjYGB4bm7hJxr8Tt07f0cAYghCTgBEzfRnFO8S161F/YECmYtMBEdNnQkc1yTcEDq/AQOwiODimz7AJE6eXuor4hICUHjcfTEYuMKLfxIDBHdVKXiEgSnYhfVJ6IsPo129wgPe8Q6Uk3xCSXHY/0WQDGEWRXh3VFMkrBGS4EBwMCHAR4O3tHenlta6UcuUbQq1o6zOByVRR0dSpXgPDfBbKeHfi0WsTQmAXXmE+Ptl3l1N8Q0TUshbIFHYR5pMdGipdoCfJv4E4uu7pO8AF2BgINkLT1Oq0fdvllHMQD0uRLghkJbSMW5edLV4mF3OkUumgVQtrSYvutkMhQpJMS7g4KXSAdQxkXGSHpkmlSYOyVn0uJl1JJ8b+AURE7jwU5hMKk5EGiByFYu7aJiHPEFDteR+fNOwiJzo1NWJPqdw+hCT/HOIB0jTeVacxCEV0qn/EqD2NjiB/7gTLcP5XpqL9/SMyUw42e/KZLixSWLo/K0uhSAUb40eN8juuJ/mHUFSvBatQpiBVKSNHprx1cekJiKZxrb8/sjHSz8+vvhhml28IiKxdEBEBNvz8ZmesbsAxniEg4fI9kClAzNKuv01BgH8IqHYBZCpjVkXFrAZPNsozhG6cPzujQqvNW18sxxHeISDRmZKKCm2eljXSAxB503pteXnexgLSAwf4h4Co5hf1RxsK4CpPOnfcuxCetoI4rjkFqwQqo95g9LQ+RX4NNQ82b8qFcvEk3LtJIEC1RX6w0PErMPUQMq2c2RaKy5llTwq2CK2QWc+2BG6whLYQudBTX1Dc3NTUuLxJCc5tBmN5ujDLQgSBXYcWL1tAUIsK1CDUsrWu+e3Zo/XrD8yfv3r1mrPFGnCAB7L7ai9itYZgfgvQb2iETItrgaag4WAmnHglJSXa3XnleWd19L9CULHyISw+Ex3BXApnZ5RUaHeXr2kibAaDWIADEAtB67ERDMk/mZqKLrgp6DKCzvHV2/4G4o4h3V1AkRsuwv9Y/N8JY7RrGmmBzQYwio2gJc50CbAT3F+Ia6FAdW0fuluIBgrGzC7ZqEfr8UY0co1GI5SjP7lAIIfKMYRTdPExaVJS0iCFQgE5Qxi/+aUAwHInapubi/MLDLU6IxygEgldqNEIgCxHDAySC1jZgRi3ZKvTkqSAyVJgN5kN7i7m1cs3HjhwsP7o8ZMLFl7c8uba9tIVTQg6zaAkSUpDCQQURf0Wotq+Ljt7jpS5xcrJUaTOnRtxvMA8jlg+P09bkuGXMn5uqiIpTb1v/7pDLW2HD5942rFp8+Yr17sMABH8DkLnb/AK+5idrVbjOzl0s9hYaB6n21iep62YPTLTPzo6S5qm9gnzivQOmDghJjFx0vABgfceLyqrFfwWInztDbfWA9Gt9RyEycnJueRpTrKm+hNAMvwQRJElVYcCZK/34H7D+iROCh8wpL9vSNyRTsPvIMTOlnlFpmcEdRpgco7ly9mZrK4HyCy/UTaQPmZI37qhrwyOIXTB6YCAefC4gzEwN0n7S1WWPS7lIUhKpr/CChITHDsZQfr2jatLWKqjHUGMb1r6BaDHz0jmoQoo6i06tMLkRXO7vlybYQWJtIbktrbO7HLgxL1wRdsweOUwGNwUIQxQTuZrrPqIt63ZXQIQSNcgBBmIJh5DcLpyh04JWrzSPkS162kMPK4Pw4/rRYiybjubLGxF8GJWRndIHzMkvjUhKGqpu12I8crkdPatAPOsC8myESTMxgme+PTwXxBwEtTeZQ9Cr3gIr4JiLTCRG/LZ1WzC7nBChrOQsVEvV5oglhIINdWbJqNXc+nYDUzNvJZSmugu46XMkbbpYiG5DGTGDZWk+0hIVuc906szRIGZ6ffakwtCV58ZP747JNwSErXVnRPSdYJ5Qcdg0hPRAXC6QCVUcVAk+QvvRKSuYtOFJ94K8pITYljEvmpElGB4DyjmhhAq3bZja3OykqRzsuE8KQpAl5XY8AGB5jkZF7VU0h1SKLmemxyS7Is4KGnD0xMTN+tQPy4nhERcu+Jaw8XzC09v2HC4ra1tOmhyYCC+rIxJCBr3/JaYA1L1LY55UQ6U/phyIl8CccKOJIU0sHQ1huqCguIPH27u2HG9s/PK5ctLFp171t6+tUrFMaRmcSt8uWBeM2MzIx7sEAPCvlRCdNJoCAlILJbQYjFNqFRGXU3Nyl0rdVy7Rb8bmzAFvizEMxRfMFN52VhY6BDS/TzAQlRouIwEwfcL5jsMwoweXfn9FsGzJLva4bsY4oAblDPfLzuMvENWPodPY+jDFcaEPH7nTvAu4dIZUfgL3JjW1vgji7pUEv4hkpqlp2aAZoKeXS2roWkI8k/RVd248f59VdWtXTUSGkT0iGgNHHnokKfFNG3UqYgekUBl5tE6gPS4VCriv/7rvxiJf4krbmq5fkvEEmhx0LblDcLVsgEeIBLkxA5EYr0xCer7E/a5ifsRqUkJAAAAAElFTkSuQmCC",Hze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC8VBMVEX///////7+//+2afRfle+yavNhlO9yjPBrj/Cic/CYefC3aPP9+/2ncPGWevD8/f5kk/CfdfCqb/Bdlu6vbfNvjfBbmO7+//79/P53ifB/hfBpkO+5aPRYmPCTe/B8hvB0ivClc/COffGxa/OcdvBnkvBclO58hO7+/f+tvPOKf/Cmb+78+P/BsfN6h/GFgvCRfPB5iO9nju5ziO6Ree6/1PaAgu+xau9Ylu52h+7fw/isbfOwafK0yvHRuvGad/FjlPBsjvCddfBvju+Xeu+fce+Ifu5lkO36/v71+v2vuvPJrfO3ZvOsb/GCg/CqbfC4Z/DMme9nke+ic++/oe5wi+6Gg+5tjO2VeO25ZPS8tPO7xfGBhPB2iu6adO6kcO5qje3z6PrEr/Oua/OwbfG0aPF5iPCgdPDInO/Fju9+hu+Oe++MfO6QuO2Wt+2cs+1XmO34+/74+Pzk7vqyufS1t/TatvO4tfPNvPF3he/Dnu6DgO6Xd+6hsO1dlOygc+z38Py3tvTbs/SpvvOrb/OxzPG4x/G+w/HXt/FflPHHi/CHgfC2afCBsO+Ere6Xte2qbu12m+z5/f719/3v9f359P3K3fe6tfPHrvOkcvGdc++6o+5xiu6Ofe6ubO5gku1gmuz9/f3W5/jozvfa2/bH2Pbdu/W10/PLrPPJv/K/s/LMq/KtzPGgvPHVufHLpfFkkPGpb/FbmPBdlvDNkfC6jO+Hse6kru6wfu6enO2HqOx0qOvy8fzp8fvn5fry4Prv2frq1frl4vnq2vnR4PjW4ffW0/fk0vfkyPbhy/XUwvXev/W9zvPGr/PBw/JVmvK9a/HRnfDAdPCLtu+rr+9tjO+Tve7AfO6Cou1mou1mle2ciu2ocu23be2ml+y0e+yJjuq0hOrd6/vb6/ng2ffYpvS4aPS6v/PIuPPNq/PIzPKixPGWsPG5qvFpkPHCgfHEmvDEhPCZg/Coy++4pu9rpe+8ie+pmu5tlex8oOuVkusvF8k2AAAGQklEQVRo3u3ZZVhTURzH8XOvTKcwhpswVFKHTKc4EAGdioJiMUBULERRFAWDsDGwAwu7u7u7u7u7u1tf+T/n7t5d1MdHONvz+GLfl7zgw7mX83sIZM2aNWv/VwzDIEsHiF1ZjYUdNn7Qpk2P92mQJdv3vhl04ZgllcyOUS4uLk/Cr+5FlmvhbUCgqEHIci0ZHeVia+vi0uy8M7JYg9pF2RKkgXkR58mT5SYkcLQtzryI5uDazZvXHtSwJiQfFG5GhGGOb9Pq9ZHbjiOuHoGj85kdib+vHa8wGAz343kkMJ9EYl4EndDekikMQwzjl+RE2uVEWCpkWSutbMh6hUL7XEAkOBOiyty/cG9ZKqR+K0+ZTKaQaVcakTkJORDG7uTbc+cunI+nQhp6egIjICPmJJQsWVIiqcIjJ2+H4wHomEmD1AIFEpDxhiIE6cAh8VfD4W6CsoQOaViwYEHPVst4JLIIjkcWcnfTpdkmO3MiCj1G2hqRyu1s82EkahTFu59Wq3AiIA0b1kcsQbQKvV4vQiRwM4GhQk7P4JBaRmSNVjFErx+iF5CSHBJOg7SZURiXKEYUCoWhbQc7hiBV4CgQIGzekbiQEKwAggjSSrZeAUX2ERCJhBrpW1ONlRnTEKnaHxAyMx0pkHJ9axYKVhcOiTMhkBjBt0ZCjxRSh5iQAb8j5HJSIU1rghKsjjvNI54ynIAEJpAFCKRGoLg2PFJwOl4zLY/MSShSBBi6k/i7YaRmXxECA+CpbcQhR28ZEvgFoED83ezt7QnCCgjMDCD4A5mbI4mScAzRIDqM2DfFCIuRxIJ4A6YDwmL16LZIfdu2c9ZOzt2PDvKJaRrEIK4VyTqdGzD+5YyPK04NtwbOYnxcrGb/u7t3v/SYnKtfKOYvurR9+9Q9yFjzTrNBsXcDhOWQ4BCM1Gpkp0JcafHxmfBVQf96Ds2LewEBGRk/FiGWYTgkuYTOTUB6xQXDrUlMNCEsy336XBzlwD3v2NiIiIDtu/DXRpASJUok6wSkabBaDU+MIHntaW+fYsViI2JjjiDyXqaGAYIZAYGbCWs2gwKZfwkQKCLgDHf8nmFhZTDSaQWP2BcKxoehQORbe/skJbm7F/sbglPPzDviDIivLyDew3kkpgyuU3OExEgwHdIeI+4CkhGThZEwI7Lc3x6iQ+T9KrVs7+ODEUSQgRkxMVlZYsSNKH1n2jF5Ryq0LFq0vQgJiClfvnxWlgiBgPlEiYDiI0agmLCpiHREpyNK02cMFeKBlUotOKR7QGwERjKMyK47ZMz8bx6gQWYV8MCKgHgnxUYAk9HTOJ+LbnZK1iV/OCFX5ebFs5PSd6cyKgFpDIqHgHTzToIFgJ0xIirVnuZf77x+5Ixyg0ysei07+9VhOSI5d23cuADkUUGMABMwEPFp0tJy+dLTVt9wcFi3LnsKjzQJ/QVxJ4qAkGem0uQKWXyjenUHBy+vHZO4xwWIo6MIqVcJriYg3t1RXmPkXUrlJ8i3QwhXp2trqSNWGpsQXx/3YkkUCErbAggo0dEVjScBBMqJwALQIHXHlhoJCMQjflJpjRqOjk2G8UhLsyD5cWJEKkJKk5lp79u7GzUCGZFxfsWxUqO1CIF8K1EiNhCP1AEEJxUhHngCqJAxgOAEpHZ0TmRWgQIEqUeDBG1UKm2UNjYmxMsLI1WNCF4AOEsFMyBKZU6kuB+PkAXwKECLODk5mZAutaPx3RQjoXA3aZENThCPyLvMdcCIV20xAsosCiT1omuKqysg86bwCFkAARncWhpKFqA0yntLgzakABK0M53hkFI2eMwcBMQPX03HUCpk0hZX1w0pKfOWskhAIIwggnAzc7kJDYLSr1x3mrdzaSqH1CEINFdAyAKE0iEo9eGUQ7s1jIpDOpci91+MEOUyHcIwoj9UTjAiNv2HItIpWABAirc+hSgDQ4zA/ReQ9O+1i7+RSv2upSPqxIhSjKgWZ0evi/bLXsyaEwlSwq3hEUizYPWOHasPs2ZE5J2DnDCi7L9KeGfzJ06UI8isCCyAEiMMI3xnMGZF6lwhCBxmqMX+18cwq1LOuuJgy8CwUA8+c8jYSchisaqK112DUlJ2LkCWTLXg5ZaLH9NVlv6faGqqcWwsH4usWbNm7f/pJ40LCPiotLN6AAAAAElFTkSuQmCC",jze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAADAFBMVEX////9/f38+/v5+fj6+vr09fT29vb49/f8/Pz3+Pju7u7y8vIHWenx8fDt7ewJZOvw8PAVfvH08/MUe/EGYOkPcO4HXekmsfwWgfILZ+wJbu4kpfsQc+7m5uYJae0hmvcJWuspuP4ekvYbkPQLa+zq6ukjxf8nwv8hl/fr6+smyP8kvf8LXukotf4oz/8HZusJYerh4eAjofkMa+8Mcu4Zh/URde8ag/Po6OgUePHd3d0s1v8djvYObu4HV+fW1tcq0/4nqfwknfgelvYfivQWw/8mrv4hqPsDgO0mq/0Nee8iyv8drPsnp/sNr/ohovoBnvUClPIjwP8jrf0Fh+nj5OM94P8z2P8jzf843f4Uyf4GqPkcifUOgfAEiO8MYusG2f0Dg/AOfe8v0f4C0/0Muvwgn/kXhPQCjvARdvAD3/4Ds/IWr/gCeesD1vcUh/Dk6e6gwOza2toA2f0Tv/0Fo/gBmfMYjPIGjunx+PvW4OoDgePS09MJ5f8W0P9C4f7x8/SHr+sgeOrg5ughZ+LP0NAx2/8i0/8Mzv8E0fcfnffr8/Y2pfXV5fTp7vCTuOs0gOkLZuZ0oeU4eeNK5v8T1//l9fsQtfvZ7/hPv/MumvLP4vDD3O+pzu/K3e7d4+zH1ehUiOLO1twj2P4ou/y53vdMsPV+wvMQsfOV2fK20O9truy71+p8r+o/m+lmlOIg4/9FyfmE3/VuyvXh6/TF6PRZzvMxsvGTw+8tjuwFcOoVcOlNkOhEgeYxcuOAqd/FztEywfkEufnK7fih3PSVzfIMu/Lb5/C35O+Fuu4jcegVYeTHx8kw5P142fe91fGr1/APnvACqu9Moe6sxuofgul70uilvti6y9Y76f8P3v4Gxfhauvfm8PZq4vaP4vVBuPWAzPFxvPFAqu5moexfreq1xuDZ3d+Uu9ubtMhC5v8MyP5P2vtW4vkem/ir5vWe5PWr3vU1zvM7ku9s0uhboeas0t04id2xwtNI1/OUz+Bsrd96odS6wcVzvuN1vNeI7X81AAAQf0lEQVRo3uzXfUzMcRwHcNzd7552t5/zBxvNaB1p2mo7TtfmyMOMPJRKedhZp4idJk9nyNaUW/FXcSGsRwlTuS7/6QFnUwtj8tCDh6EHkZiYh/f3+z1dHqbu5D9vf/in/V69P5/vt9/dsP/5nwEz/Mf8G2DYj/+GmmLAz2HUkBH9BMkIFsnQDq6PoA8XCqQCRMgYZ8UhqoECQrPVVlCLFNis6Rwg6jBoKGrAMNcUl2dXTcjP9/OrqiotL7Y94sRSIRiWoRiVuaC8ZfTUqRMm+Pn5hU0KU6vVpeWORxwHhhKeKzDYtIQ15XYQMAgyaZJ6klo9ZUp3vU0h4gRCCVP+7nJIzLUt4aNHQ6FI2Hdk4cLS14dUKCNhP/dXTQ632heFE+UXZEVs2UWm0HhcBEZRaHj4vHn9EAQGlBX+/vVWucjjLqwGM2YtAPJTExDE8I+tv9ineIQgEvOV0PmzZi1gCBQgMICwIrH62OZDcg6KZ1XYHXyTMTYUSPgCF8JWAoMi+t43vGv7Hm3EWrhkbCibF0Py/cLCnAg1kI4ahUgsYIon19BcFDiWIlBolan5SJjahej0uqiyRCjkVqK9B9MqyABC5wUEyW690tBQ3Fo6Rf29iE4XFdXrkPUt3/1pmR/HBQYyhKy+pfV4itbHxzfxWHGp2oWkptZfVABxvwq96gUZcYFLnFXmLShsSNH6KpUymYz3dVRQREeKREd3OHgV2YoHTSTSoldAoNDVPzzrpfWV8QqVSqRS8LYKen5hpEZHR5cdYlXcVMg7yvrkVVzcEraV8MKzXj5KXi7ixGIxx4nkUPTOIpGRncdkck5AEHdXIsmZ/CpudiDdSmhGjpeWGuS9KJWKOXlXqZ4Z0cmRyV1K3rl6t9ceMn72bChkLUUniYEH4T0lIe9gLr0slhooEplclsiTU+z+uKy3Q8aPBxMHpvA49gFDwF6FVKnpAMKM5KZjMhWZF+LeSgqOhkyGQssURfjAELPHMEW8rxlLZ0Zyp0Op4DyY14hK78kIYeIysHVehSJ4ikup6UhlRmZm5msfnpwvd5uYS7xDnMjsZ7u8lAoVfaOzkLVw6U1OAylLlKncWgoMKIdve0+c6FQqI7RKBU6vVNAXHLB9r6MjwbS1AWm6ppRzbiL4XQ++BcKYo2ci2PntH5FIYUuuq6trbGxra2vstOG3ELjZBHu/5O1NEOT2qQDcRNx2Bc/LeB7/K3hEebDzAkKcxkyHVqaSCt1sMiJnjjcUJCTk2fOggJRdNseb2tpiktoGx4ldKVptSlPCHhpIXdgaJ5C4hYwQVq4KJiFMyfuPd3squvV6vNRXxMTMnRtW1ZJd3ppzFghLQkKzly/uoztVhksE0uub58wJDqZt7N0Wi9FozMpKS/P3XxgT0z5369Z11dWj7fb2pARnygJ8eHaRBl9EwJ3bPAfZEQxoo4UgSTDS9KiCLkRZd2Tx4k2Lqx9YTAaDIenu8whfBTvkg96IdF9JvGYVFNTxvmqxmJKSDAaC6Mm8gKyjyOKVSPUDo8nYkxvkpZRTZLCXRChOfxo/XaNZBWhV8FWLyQQjKy9PFxu792dk29JtGx9YKi7PDPCRiQTC4cggatBpPXo3Zjqi0WiAwHAiev3eAxTZyhAY25Yit7I/70cVFdkKMpBBj5bY2nyUIvHxGs0OiiTdvw9ER5CYX5Dty0I+fUAVnv6VxCMGMjAsc1en5ebIMTTx0zcTxJBw/0JeXpRO1w9xGduXLdt5/kVuhBJ/4Ab6MOn8WmVtTk0y3hxJQqWrOD8ESU2NitLtZfNyIcxYtn79jk+ncO05bIXmT99HJMKapiyDgSIsQGAQBEnbazzQ3u5C2LAosmb5+RzcSOkfv3yxT7/mro68LAOajOrLaZMJRl1vRc9dBJc/u7Rqa3U1EGcRQgBZs/xSZaLij1++2Lk63Byly8PlsjiRGchNU3dvz8f39y7v3717JpKbe+/9xy/Z9k20CBsWDGTtnXPXVBw7YmB+u3MY+HigS8vKMhpP0+dPm7Zhw7hLX19+vrF/98wtW4KCAmiCtmyZefnDVztBmEEEZPXmkoP4SAOF5vfGt17NNabNKozjSunAt6Ut0FZa24LSGqs1LbbY2gjEMUWJZlFG4ochEZcRsi1QPshkC4HSxQUGpW2iDhgXo9uEAVGJjruXIAGMqIOwxJnoNnGLiVGXOeMt/p9zerUx0S/+tyVLOO/7e//n8pznebZPkHpyyL6a+yEdpAoRo6TRXVCp17uY9PrKAnfJ+a/2fQ4jMQYgVVWXuyTMC7eSvB4vfULF03Mvthzds+ejGgI4VNDKVTDcuFPMLEnFpSLIZK5K98/vfrBv3+fPxxiPPgpIJiixmzrRCPOBDJfU0rJnzxf1Dh0A2qKiIuPvHx9pLHDJhAyJmAuZqmCq/PX0y4xCEIbgkMzLSxJxhPJ3Iy+8RVUHCqinW44ePfrFQZVDVVRkhwzDHx926ynxitzylEIK7Rf373/5NCifPwkGCFBNTU1mTfYYKhYRp8QxSKk/vH831ZvgtLQA8tl0ERhGu0Fjnf+lBIEJSbUoNTXSxhEr+k4+vn8/IMA8uQuAAwcOgJGN315/tyQtkcKNpH/4JpWbxMG9dPS7n0ZX7HajQaORy+WrCwSR8BNASk8ViRWfPlQBCsOcvn7jAKkcwq6s6xlRiEGJnzBer799J4mBQHnz5/Mhg1GjsYKhVA+z20Icl9yJxN0Xyx4HBJTT+y5dvQoKh2Df15XPLkUTzngjP7yPehN9AMLc+fA7Z9wlE1bGqLYp83ybblx8YchNHNJ/qawMGGbmtz8+3rwxzSA4Wdj5M35Kz+OtsDr3OLoAJAI9/E4/TtyVGY0cDItSLS2eKClwCQhLMSetpzp23gYIYR6/grO6NTftgHR85/cM8GoVijJS30DxDHHS8TOVOHdDIbJhYxDflhtxHNlIdE36Lu3duRNWSJd+OXK4sWC9hygqrpmx7oiVOCP3kAh0z1Pvf6pHAWpqD9rkNqXaYpFKmRUTRdiokeXcDlC4lz/fA0Pv8ni1Wi0RsC21sEL3ZBwk9Ud05CJ67et2HApBZl732ZRKtToPEKwKv13TuZFb+sfv4hQszLHNwyUUDyaD01qS3Uh//ArKXqIQxPe30W3guuf24wOoeCgTHRwmBmxI89TYYEgUMM3pxEibHL0DkDDlm/dKGispjx3oMRiNeD/JMNsQl+2R+w+/4gTqbNy7qDcJGWKxRCJ4VtU0VcV5UotldYFlVpgBpADixd7S0u87OjqoOj52BUEHj2RJMtoChqhW1li1GoP8iLffG9bxAZS5WUjbs2AFJjBXeRabzTq/VaCX0e5HKdc/np9fWprLvcAIiwd4pC9k1YRlDfgFKryjENEi+ibQraRTDWaBytw0sUThWWUMtdImt1qHkdwLrIBYul7fRPkryorvO3qvHG6sNOOzUHq3Tiix661M8qBMwaY3UlW9fWtMJ1xUVeGDEQQHh6URiMZgnKBlkWSJJ0dzagubgMkvhZgRqlrxRJonYKuulpOqlcPtAnZKFNJ5gXqMj0AVj7x7xsTCbSqqQrGw7gPEYoERQGaCoMiEhrGNnBxnIWGg3k0yQt+MJ0RrPqUFstkQjOYGsSgxyEsXKgBgkIqTWBJcOoihoEgagsXwoayWazTYlzML2Krtbd5ySpVqkVwC8xs3QsETT3TNq9VqJWSzKUPN8ZCULy9UVDyG9hxUdrLZRDU5QjpOg1gYmGOThdkCxOFdePXVBa+jLptRnKCMny9xV5p4awVndHI+T81ksahDzbJESBkQD1HLqQxOqOeDSwPPpElk6z4lLbuBToDK4Q1OzGgduvvLaximduoKnXX2Vawo7pqX0tkFRP13SOcFdDMBKYOOYU0ieTOsKBoWVpVyBilSqXR1RissgfJANrlxLhxhNw0/pHjT2qqUC3FibjABIr4ICBC3kc668DPe30intW+esMgDNFsUlKxKq5VwDl15OW7a65gsimmornm4aStmwo7Mk2J3xSB41+ITEADQzpPN/KJNZ8XQtgzz0JxSrrHbYUSDqYYrWh6ilM/+wiYrnJyk35wyOQeAlGOKg6YESOrrx8IQdJ62nzULbAunh62YtkJWgmiUiC9qzJ0mTLmxySYLFwfbJ2jDtVmkzAShVj0yIStuulJeOclM7CRGxyWkzfw5FqYyZPr1kMFu1CgpkLGtZqDJc4SuUoR3CQwCpYjWfbTghIGd+SFzwolPaT11H9PevXu35+aOexqokyIiIbgI5nb/isEQsFHQpzBms1phxYtsjIwIEgoPmN9O/wodEYs6j1Q80SBLiF3pIjRnibGdGLmlvaMjk9RLgQBZWhubm7Frqm2YCwR9Cz8204du/L756rd6mSKDtQy/HJnw4QMA4W5WPWYBX5oSg6R2XtwOABFy0ecoze/9ZvlEf1dXV9+aZ2zWq9NqjRq5DXdkMZsxRKfpQ9DGbNB/or+vr6//RNvsipUiVjW80CkpHm42K/hRiGaosLI9xkAXIr9px9S1a9emNjay6+7XqbR2jbyaFoVBlGCQKKHz9kDeGY0B0Z3nNpDF4vOY2WylxyDpos5TuQmMBx/cXVhYW5tTVYMaRacqsmsCcnwjD8qBA4cO7dq1i+WlSIIcDi2sGjUGRqm2kJmJQbMirsPK86htXefCCMbIf3D37t2FtTk5yGwfqGMQPl8UNAJE4BD6BDh1IDE3UrrJKHATGjIxI/GJBLb4tk+PAcEZ6HXsAKPQSZDyB+4niAHzhSAOyPSug5xR9WxVGAJKEZIHg4FTbD4PMeK73rysFrUu9tJUkQ8OYYzMbOSEBMHKy202tSVw6CBEkHpWJ2Rn1xFFBQpSZ547+9pwu0bbifFJvajzLLKDCGMHJotDsnW6MASLMv/7wvhB0jP1z9RX0c8zuRVUMlQCMIpvYdAsk/DQlJgMI4J0Lvbm35EPEYMg/B1YWLwCkMB8cOvwkfNjhKmHnDlEoeKVVoUVMzBjXWkbNAmsLwUG9LeGSuvIuXzqcYGBBeFG8KG0rlprIBTc+tbtdjd+e2ZsvKm+sN5JI6owIhsQjAEGkMCcp4GlO9xHohOipGV1LV9ramoiSHS2UAFji64M+4cq9UiRSZVDZ69P1dc6a8kKUSiRBwSrMh8cMrOaTJRUNeKvnCLu7F8e3+EsZAwnN+LQeWfHRppNZrPZROkrZDYNri2fm3JWVRGEBsEucoCe4Eg7hmQkMTgF4pSs7j7P6LmpHc4c2jqZGz2zl/0jzS4Tb6dKWrOy8FsikSi6l9bOjs72bGDVYFbn9c5d9gy4ZDKFohU3BTGSK9OoF1S23Uv9JzzLy21tfs/IUHODWSYDQSHJopjJhfySGrfdgwMjHn8b5F8/0+wym1Eh0yhRMoMU7cGjsEVSmyEI3QIkY++XSAiwjbW4UyFW/m6jz5EgL2ejumUCxD+E8ilO4IxkLyhs6XG8N4OLAGSBAOwCZKMgkFDRhwdSR7pVzAlAJPpI9oIX3ML/TYkEQLhJDwAfETeQOcLUkTCOIzAuyUeymZTwlECgiSIOksQregzkIqv/4j80xD/OUfQUFCNgTKLww5SIooSkbleymX8Q/1lsWPLAf4Ug0Zh/9SSn/ncElPihyR6SvyjpFwb+//oLYHj/LyqNdWsAAAAASUVORK5CYII=",Uze="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAFwAXAMBIgACEQEDEQH/xAAbAAACAgMBAAAAAAAAAAAAAAAABgQFAgMHAf/EAEAQAAEDAwIDBAUJBAsAAAAAAAEAAgMEBRESIQYxURNBYXEigZGhwQcUFSMkkrHC0TI1UvAWQkNiY3J0orKz4f/EABkBAAMBAQEAAAAAAAAAAAAAAAACBAMBBf/EACQRAAICAQIFBQAAAAAAAAAAAAABAhEDEjETITJBUQQUIiMz/9oADAMBAAIRAxEAPwDuKEIQAKPHXUctVJSR1cD6mLHaQtkBezIyMt5jYqQuAfKXTPj45rJImuMk0jCzTnVq0tG3q0rqVgd/QuY8HniqkhY2turuyxnsJgJXNHi87jyyUydtcnHP0jL91g/Kn4UjJ5ooakJZZd7hSnM2iqjHMEBr/URt6setSqbi/h+cY+laaJ42dHO8RuaehDsJXBrcaOSMti8QodPdbdUuDaavpZnHkI5muJ9hUxKOCEIQAIQhAAkS822E8WVNdLpdoa1zHfwEsAd/ta37xT2UlXU9pPWu73zaDnpqDT7gVpj6rM8rajS7mAlw+GAbOly946NGPjgepWGsDRnm7l7MqipnOkuUs2fQDQxu3QnPwU+onDaiJo/s2F59mB/PiqE01aI5RcXTN1PIJJaiM7gP29g/Vcy+USkNHeY5Ym7VTMkDveDg+4tXQbUXmaR7xjtJHOH+UgYUHiC1S3O70HYQ9o+HtHAZGxIbvulk/jaNMUfsSYqcD8Jurr/QOrgfqnCqdGP6rWEEZPUu0jHn0XdUr8D2qS3w1ktc0MrppcOYDnRE3IYM9+fSd5uI7k0KW7LZVfx2BCEIOAhCEACQ65xllcRqx28kp08yGh5/HSnKouNDTP0VNZTwv56ZJWtPsJXPpL5aKZ9LV1dRE5gB1BkrS5pc7ngHfHRMr0uheWuOrYvG2csL2Ubi9sEun03Z15jaSQfPO3LcjZaJbTUR656naJoc+TS7LnAD9kePTyVtbrrZ5aRj6K4URgI9HRK0AeruWVbXUUtO+NtdS4cMHEzf1WGuSN+HGTK6UTNuPZyRRsMQDD2ZOnIaDgZ6BwHq8cDGC40lFd/tNRHFJ2ZLBIcBwzvvy7lFdc4hWfaK2l0mQ+mZAMkjJPPHIAexVf0hb5uI6jtqmkfFoY0apGlp5k/iqsVOFEmZaMtjZaby2634imb9njp3gyA+i92pnLrj4pjStaLla2Vxd8/o2hsJA+uaAMkePgmhrg5oc0gg7gjvSSSTpD423G2eoQhKOC1VM8dLTy1E7tMUTC97ugAyVtSn8ode6ntUdIzI+cP+sdjYMbgnfxOkeWUsnpTZ1K3RTWCrkuD7lVzjEktXqI56fq2YHqGB6la6W9B7FQ8HkOo6xzSCDVHcH/DYr9eRNty5lVIx0MPNjfYsTHHjJjZ90LYsJTiN58Cks6VNJUht/qKfYRSsbob3BzQDt4kE/dVxgdEtVYdG19fG0l9PVB3ojJIDGZA826h61cm7W8HHzuP3p2r2AmFocMEDCsuF6smKW3SHMlMRo8Yzy9nLy09UuS323xjaVzz0ZG4/BRrfdKgXSG40tHWvjDtLhHSyODmHZwyG+GfMBbencoz25CTScTpSF4F6vTJgXhXqCgBNd+9ruetWP+qMLNYP/e93b3irHvhjPxWa8fN+jKo9KBRbjKIqV3V2wW+WWOFmuV7WN6kpcuNf87m9DIjbs0H8VmOkWdoayakn1tDmumO3kAPgpLqamGQ2Fod1I2UTh1wdRPHf2r/xKnuJaSzSXuJyOi69wCOnjG5hYD3eir7hhwdb5C3l28g96U7jcexYYm7Snng50j9UxcDHNhaes8v/ADKq9H1syzdIwoQheiTghCEAUlbw82orJ6qKuqKd85a57WNYWlwaG53GeQHf3KDNwtXPyGXtzR40/wCjgmlCzeKEnbQynJdxGm4Hr3nUbrDIer4HD85Wh3BN1b+xPRu83ub+UroCEvt8fgbiz8iRRcK3imiAE1G14c47SOI3JP8ACpEvDl6mbg3CljH9xjv/ABN6Fz22LwHFkIv9Bq487nTg/wCncfzpn4etbrPa2Uck7Z3Ne9xe1mgHU4nlk9eqs0J44oQdxQrm5bghCFoKf//Z",Vze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAw1BMVEUD2sUAAAAC3McA2sUI28YBBAMA3cgCCAcDCwoGtaMFExIB1MAHIx8C18IDzroEwK0Nd2sGFxUB0LwGxLEKn5ADx7MLSEELQDoJNTAIJiIGHxsJ3cgLkoQNZlwMXVQI1cEJsaAKo5QKnI0LjoAMhnkLc2cMYFcKRj8JMSwILSgHGxkEEA4CzLgHuqcLin0LfXEMbGELTUYH0r4CyrcDvqsHrZwKqJgNWVELv6wNgnYMVU4Cwq8Mb2QKOzUJOTMIKiYMl4iTAtRRAAAC2ElEQVRo3u2Y6W7qMBCFkxnjQGmahUDZoQtQUgqUQgvd6Ps/1a10E0ImNdK1fX9U8vl7pDOx83k8iWVkZGRkZGRk9JsFvNPh8LPV+baYegmGXtf3u55VzAK3MvcXUR1QdRn1Xrtk26X2sgbUqrwG35Yz3a2YWo31pZ3oYw1566qVOKX+hUoVDBv2QZPZcRRs9wenNFLZMN51bFHU0s50fw3yRdxH+0hnURbF6vtja+qBNFn1ln2suyyKb+5z1ktVdsfAi+2c+oeozrWTc5xbUFxJFjVPo/hzOW+1h7JVBg07r/MKJPVrLWJdzpgkXTcOiWocjkSPONIcY/hIo/zDMd0T60yWY6ic06grSKyvjK8MPinBTZlENdMm5mbHUZFjdHs0qj/4G8Wekr6mzjHUmySqnHLMN7GtiWN+dSbiGBclXRxbfknAMa4edXHMLhpCjh9aFL6I6+OYJ1a3TDl+08dxPeW4CJ8sx4MxjRoPMIHvo8Axk1xK7Y5yfAOJ9Rzo4hj+ieMnjRyjiON3S5bjCY26BSHHG239eFK1RBwvJYtglR7JzxDTUYDW76PkSuYObexpklsAfMcld6tNN/4ZRLs1rTFN731E+pf6PIkjYScujgFLV+5OiYRn0fI1nUXwhF2F6+oqWH0p9EcXk6bWVL7nKb10YkF3rGligWG7eP0J6fVAE73+CXq5pv47ofRmWqL+iUgPvRSf03divJGkty++3T813e5sXpy3hXPKqyS9D+Ivh+t7PfRa7F1EL64munpvSLe9EbJ0jQGdHlB23DoX9d5O5Gia5+GtXaBXUCQecun/N036jZVdxwGlV1bYEw3sGF6q0ps9b0z+32RW1zmidw2WgnaHw+gscgausl4QREo10N0FSdCC7AibjZMHaH1ZakJr2GvGwV1vYyGx2CB6nQbxx2jNLFUBXnjbGcIPFsen7TYEsDQIAfCUZWRkZGRkZGT0f/UHAS86LuyGKlcAAAAASUVORK5CYII=",Wze=["innerHTML"],qze={class:"w-16 flex justify-center"},Kze={class:"text-gray-500"},Gze={class:"w-16 flex justify-center"},Xze={class:"text-gray-500"},Yze=["onClick"],Qze={class:"w-16 flex justify-center"},Jze=["src"],Zze={class:"text-gray-500"},eFe={class:"p-2.5 text-center"},tFe={class:"font-bold mb-3"},nFe={class:"mb-5 space-x-4"},oFe={class:"text-center"},rFe={class:"mt-2.5 text-center"},iFe={class:"mb-1 md:mb-10"},aFe={key:0,class:"mb-2.5"},sFe={class:"font-bold"},lFe=["onClick"],cFe={class:"carousel-img flex flex-col justify-between p-5",style:{background:"rgba(0, 0, 0, 0.5) !important"}},uFe={class:"text-xl"},dFe={class:"text-base font-semibold color-[hsla(0,0%,100%,.75)]"},fFe={class:"text-block mb-4 pt-5 text-xl font-semibold"},hFe={key:0,class:"mb-4 text-sm text-gray-500"},pFe={key:1,class:"mb-4 text-sm font-semibold text-red-500"},mFe={key:2,class:"mb-4 text-sm text-gray-500"},gFe={class:"text-gray-500"},vFe={class:"flex items-center justify-between"},bFe={class:""},yFe={class:"text-base"},xFe={class:"text-sm text-gray-500"},CFe={class:"flex items-center justify-between"},wFe={class:"text-base"},_Fe={class:"text-sm text-gray-500"},SFe={class:"flex items-center justify-between"},kFe={class:"text-base"},PFe={class:"text-sm text-gray-500"},TFe={class:"flex items-center justify-between"},AFe={class:"text-base"},RFe={class:"text-sm text-gray-500"},EFe=ye({__name:"index",setup(e){const t=W=>mn.global.t(W),n=FQ(),o=new rd({html:!0}),r=W=>o.render(W),i=Tn(),a=ea(),s=navigator.userAgent.toLowerCase();let l="unknown";s.includes("windows")?l="windows":s.includes("iphone")||s.includes("ipad")?l="ios":s.includes("macintosh")?l="mac":s.includes("android")&&(l="android");const c=j(!1),u=j();jt(()=>{});const d=j(!1),f=j(!1),h=j(""),p=j(["auto"]),g=[{label:"自动",type:"auto"},{label:"全部",type:"all"},{label:"Anytls",type:"anytls"},{label:"Vless",type:"vless"},{label:"Hy1",type:"hysteria"},{label:"Hy2",type:"hysteria2"},{label:"Shadowsocks",type:"shadowsocks"},{label:"Vmess",type:"vmess"},{label:"Trojan",type:"trojan"}],m=j([]);function b(W){if(W==="auto"||W==="all"&&p.value.includes("all"))p.value=["auto"];else if(W==="all"&&!p.value.includes("all"))p.value=m.value.map(oe=>oe.type).filter(oe=>oe!=="auto");else{const oe=p.value.includes(W);p.value=oe?p.value.filter(le=>le!==W):[...p.value.filter(le=>le!=="auto"),W],I$(m.value.map(le=>le.type).filter(le=>le!=="auto"&&le!=="all"),p.value)?p.value.push("all"):p.value=p.value.filter(le=>le!=="all")}p.value.length===0&&(p.value=["auto"]),C()}const w=(W,oe)=>{if(!W)return"";const K=new URL(W);return Object.entries(oe).forEach(([le,N])=>{K.searchParams.set(le,N)}),K.toString()},C=()=>{var le;const W=(le=y.value)==null?void 0:le.subscribe_url;if(!W)return;const oe=p.value;let K="auto";oe.includes("all")?K="all":oe.includes("auto")||(K=oe.join(",")),h.value=w(W,{types:K})};function _(W){console.log(W),window.location.href=W}function S(W){return btoa(unescape(encodeURIComponent(W)))}const y=M(()=>a.subscribe),x=M(()=>{var be;const W=(be=y.value)==null?void 0:be.subscribe_url,oe=encodeURIComponent(i.title||"");if(!W)return[];const K=encodeURIComponent(W),le=S(W).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return[{name:"复制订阅链接",icon:"icon-fluent:copy-24-filled",iconType:"component",platforms:["windows","mac","ios","android","unknown"],url:"copy"},{name:"Clash",icon:zze,iconType:"img",platforms:["windows"],url:`clash://install-config?url=${K}&name=${oe}`},{name:"Clash Meta",icon:Fze,iconType:"img",platforms:["mac","android"],url:`clash://install-config?url=${K}&name=${oe}`},{name:"Hiddify",icon:Dze,iconType:"img",platforms:["mac","android","windows","ios"],url:`hiddify://import/${W}#${oe}`},{name:"SingBox",icon:Lze,iconType:"img",platforms:["android","mac","ios"],url:`sing-box://import-remote-profile?url=${K}#${oe}`},{name:"Shadowrocket",icon:Bze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`shadowrocket://add/sub://${le}?remark=${oe}`},{name:"QuantumultX",icon:Nze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`quantumult-x://add-resource?remote-resource=${K}&opt=policy`},{name:"Surge",icon:Hze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`surge:///install-config?url=${K}&name=${oe}`},{name:"Stash",icon:jze,iconType:"img",iconClass:"rounded-md",platforms:["mac","ios"],url:`stash://install-config?url=${K}&name=${oe}`},{name:"NekoBox",icon:Uze,iconType:"img",platforms:["android"],url:`clash://install-config?url=${K}&name=${oe}`},{name:"Surfboard",icon:Vze,iconType:"img",platforms:["android"],url:`surfboard:///install-config?url=${K}&name=${oe}`}].filter(Ie=>Ie.platforms.includes(l)||l==="unknown")}),k=W=>{var oe;(oe=y.value)!=null&&oe.subscribe_url&&(W.url==="copy"?Xs(y.value.subscribe_url):_(W.url))},P=()=>{var W;h.value=((W=y.value)==null?void 0:W.subscribe_url)||"",f.value=!0},T=M(()=>{var le,N,be;const W=(le=y.value)==null?void 0:le.transfer_enable,oe=((N=y.value)==null?void 0:N.u)||0,K=((be=y.value)==null?void 0:be.d)||0;return W?Math.floor((oe+K)/W*100):0}),{errorColor:$,warningColor:E,successColor:G,primaryColor:B}=n.value,D=M(()=>{const W=T.value;return W>=100?$:W>=70?E:G});async function L(){var be,Ie;if(!await window.$dialog.confirm({title:t("确定重置当前已用流量?"),type:"info",content:t("点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。"),showIcon:!1}))return;const oe=(be=await qm())==null?void 0:be.data,K=oe==null?void 0:oe.find(Ne=>Ne.status===Fs.PENDING);if(K)if(await window.$dialog.confirm({title:t("注意"),type:"info",content:t("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:t("确认取消"),negativeText:t("返回我的订单"),showIcon:!1})){const F=K.trade_no;if(!await qu(F))return}else{Gt.push("order");return}const le=(Ie=y.value)==null?void 0:Ie.plan_id;if(!le)return;const{data:N}=await hk(le,"reset_price");N&&Gt.push("order/"+N)}const X=j([]),V=j([0,0,0]),ae=j(),ue=j(),ee=async()=>{const{data:W}=await zJ();X.value=W;const oe=W.find(K=>{var le;return(le=K.tags)==null?void 0:le.includes("弹窗")});oe&&(c.value=!0,u.value=oe)},R=async()=>{const{data:W}=await OJ();W&&(V.value=W)},A=async()=>{const{data:W}=await fk();if(!W)return;ae.value=W;const oe=[...new Set(W.map(K=>K.type==="hysteria"&&K.version===2?"hysteria2":K.type))];ue.value=oe,m.value=g.filter(K=>oe.includes(K.type)||["auto","all"].includes(K.type))},Y=async()=>{await Promise.all([ee(),a.getUserSubscribe(),R(),A()])};return hn(()=>{Y()}),(W,oe)=>{const K=ri,le=Lm,N=yte,be=pte,Ie=Dm,Ne=Ji,F=zt,I=vo,re=bl,_e=nk,ne=vl,me=Ri,we=tV,O=xl,H=Zi,te=JY,Ce=cte,fe=rte,de=Zee,ie=Gee,he=Uee,Fe=bo;return ve(),We(Fe,{"show-footer":!1},{default:ge(()=>{var De,Me,He,et;return[se(K,{show:c.value,"onUpdate:show":oe[0]||(oe[0]=$e=>c.value=$e),class:"mx-2.5 max-w-full w-150 md:mx-auto",preset:"card",title:(De=u.value)==null?void 0:De.title,size:"huge",bordered:!1,"content-style":"padding-top:0",segmented:{content:!1}},{default:ge(()=>{var $e;return[Q("div",{innerHTML:r((($e=u.value)==null?void 0:$e.content)||""),class:"markdown-body custom-html-style"},null,8,Wze)]}),_:1},8,["show","title"]),se(K,{show:d.value,"onUpdate:show":oe[3]||(oe[3]=$e=>d.value=$e),"transform-origin":"center","auto-focus":!1,"display-directive":"show","trap-focus":!1},{default:ge(()=>[se(I,{class:"max-w-full w-75",bordered:!1,size:"huge","content-style":"padding:0"},{default:ge(()=>[se(Ie,{hoverable:""},{default:ge(()=>{var $e;return[($e=ue.value)!=null&&$e.includes("hysteria2")?(ve(),We(le,{key:0,class:"p-0!"},{default:ge(()=>[Q("div",{class:"flex cursor-pointer items-center p-2.5",onClick:oe[1]||(oe[1]=Xe=>{var gt;return ke(Xs)(((gt=y.value)==null?void 0:gt.subscribe_url)+"&types=hysteria2")})},[Q("div",qze,[se(ke(Xo),{size:"30"},{default:ge(()=>[(ve(),We(wa(ke(Oze))))]),_:1})]),Q("div",Kze,pe(W.$t("复制HY2订阅地址")),1)])]),_:1})):Ct("",!0),se(le,{class:"p-0!"},{default:ge(()=>[Q("div",{class:"flex cursor-pointer items-center p-2.5",onClick:P},[Q("div",Gze,[se(N,{class:"text-3xl text-gray-600"})]),Q("div",Xze,pe(W.$t("扫描二维码订阅")),1)])]),_:1}),(ve(!0),ze(rt,null,Fn(x.value,Xe=>(ve(),ze(rt,{key:Xe.name},[Xe.platforms.includes(ke(l))?(ve(),We(le,{key:0,class:"p-0!"},{default:ge(()=>[Q("div",{class:"flex cursor-pointer items-center p-2.5",onClick:gt=>k(Xe)},[Q("div",Qze,[Xe.iconType==="img"?(ve(),ze("img",{key:0,src:Xe.icon,class:qn(["h-8 w-8",Xe.iconClass])},null,10,Jze)):(ve(),We(ke(Xo),{key:1,size:"30",class:"text-gray-600"},{default:ge(()=>[Xe.icon==="icon-fluent:copy-24-filled"?(ve(),We(be,{key:0})):(ve(),We(wa(Xe.icon),{key:1}))]),_:2},1024))]),Q("div",Zze,pe(Xe.name==="复制订阅链接"?W.$t("复制订阅地址"):W.$t("导入到")+" "+Xe.name),1)],8,Yze)]),_:2},1024)):Ct("",!0)],64))),128))]}),_:1}),se(Ne,{class:"m-0!"}),Q("div",eFe,[se(F,{type:"primary",class:"w-full",size:"large",onClick:oe[2]||(oe[2]=$e=>W.$router.push("/knowledge"))},{default:ge(()=>[nt(pe(W.$t("不会使用,查看使用教程")),1)]),_:1})])]),_:1})]),_:1},8,["show"]),se(K,{show:f.value,"onUpdate:show":oe[4]||(oe[4]=$e=>f.value=$e)},{default:ge(()=>[se(I,{class:"w-75"},{default:ge(()=>[Q("div",tFe,pe(W.$t("选择协议"))+":",1),Q("div",nFe,[(ve(!0),ze(rt,null,Fn(m.value,$e=>(ve(),We(re,{key:$e.type,value:$e.type,checked:p.value.includes($e.type),onClick:Xe=>b($e.type)},{default:ge(()=>[nt(pe(W.$t($e.label)),1)]),_:2},1032,["value","checked","onClick"]))),128))]),Q("div",oFe,[se(_e,{value:h.value,"icon-src":ke(i).logo,size:140,color:ke(B),style:{"box-sizing":"content-box"}},null,8,["value","icon-src","color"])]),Q("div",rFe,pe(W.$t("使用支持扫码的客户端进行订阅")),1)]),_:1})]),_:1},8,["show"]),Q("div",iFe,[V.value[1]&&V.value[1]>0||V.value[0]&&V.value[0]>0?(ve(),ze("div",aFe,[V.value[1]&&V.value[1]>0?(ve(),We(ne,{key:0,type:"warning","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:ge(()=>[nt(pe(V.value[1])+" "+pe(W.$t("条工单正在处理中"))+" ",1),se(F,{strong:"",text:"",onClick:oe[5]||(oe[5]=$e=>ke(Gt).push("/ticket"))},{default:ge(()=>[nt(pe(W.$t("立即查看")),1)]),_:1})]),_:1})):Ct("",!0),V.value[0]&&V.value[0]>0?(ve(),We(ne,{key:1,type:"error","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:ge(()=>[nt(pe(W.$t("还有没支付的订单"))+" ",1),se(F,{text:"",strong:"",onClick:oe[6]||(oe[6]=$e=>ke(Gt).push("/order"))},{default:ge(()=>[nt(pe(W.$t("立即支付")),1)]),_:1})]),_:1})):Ct("",!0),!((Me=y.value)!=null&&Me.expired_at&&(((He=y.value)==null?void 0:He.expired_at)||0)>Date.now()/1e3)&&T.value>=70?(ve(),We(ne,{key:2,type:"info","show-icon":!1,bordered:!0,closable:"",class:"mb-1"},{default:ge(()=>[nt(pe(W.$tc("当前已使用流量达{rate}%",{rate:T.value}))+" ",1),se(F,{text:"",onClick:oe[7]||(oe[7]=$e=>L())},{default:ge(()=>[Q("span",sFe,pe(W.$t("重置已用流量")),1)]),_:1})]),_:1})):Ct("",!0)])):Ct("",!0),dn(se(I,{class:"w-full cursor-pointer overflow-hidden rounded-md text-white transition hover:opacity-75",bordered:!1,"content-style":"padding: 0"},{default:ge(()=>[se(we,{autoplay:""},{default:ge(()=>[(ve(!0),ze(rt,null,Fn(X.value,$e=>(ve(),ze("div",{key:$e.id,class:"",style:Li($e.img_url?`background:url(${$e.img_url}) no-repeat;background-size: cover `:`background:url(${ke(i).$state.assets_path}/images/background.svg)`),onClick:Xe=>(c.value=!0,u.value=$e)},[Q("div",cFe,[Q("div",null,[se(me,{bordered:!1,class:"bg-orange-600 text-xs text-white"},{default:ge(()=>[nt(pe(W.$t("公告")),1)]),_:1})]),Q("div",null,[Q("p",uFe,pe($e.title),1),Q("p",dFe,pe(ke(Wo)($e.created_at)),1)])])],12,lFe))),128))]),_:1})]),_:1},512),[[Mn,((et=X.value)==null?void 0:et.length)>0]]),se(I,{title:W.$t("我的订阅"),class:"mt-1 rounded-md md:mt-5"},{default:ge(()=>{var $e,Xe,gt,J,xe,Ee,qe,Qe,Je,tt,it,vt,an,Ft,Se,Be;return[y.value?($e=y.value)!=null&&$e.plan_id?(ve(),ze(rt,{key:1},[Q("div",fFe,pe((gt=(Xe=y.value)==null?void 0:Xe.plan)==null?void 0:gt.name),1),((J=y.value)==null?void 0:J.expired_at)===null?(ve(),ze("div",hFe,pe(W.$t("该订阅长期有效")),1)):(xe=y.value)!=null&&xe.expired_at&&(((Ee=y.value)==null?void 0:Ee.expired_at)??0)(((tt=y.value)==null?void 0:tt.reset_day)||0)?(ve(),ze(rt,{key:0},[nt(pe(W.$tc("已用流量将在 {reset_day} 日后重置",{reset_day:(it=y.value)==null?void 0:it.reset_day})),1)],64)):Ct("",!0)])),se(te,{type:"line",percentage:T.value,processing:"",color:D.value},null,8,["percentage","color"]),Q("div",null,pe(W.$tc("已用 {used} / 总计 {total}",{used:ke(fa)(((((vt=y.value)==null?void 0:vt.u)||0)+(((an=y.value)==null?void 0:an.d)||0))/1024/1024/1024)+" GB",total:ke(fa)((((Ft=y.value)==null?void 0:Ft.transfer_enable)||0)/1024/1024/1024)+" GB"})),1),(Se=y.value)!=null&&Se.expired_at&&(((Be=y.value)==null?void 0:Be.expired_at)||0)ke(Gt).push("/plan/"+ke(a).plan_id))},{default:ge(()=>[nt(pe(W.$t("续费订阅")),1)]),_:1})):T.value>=70?(ve(),We(F,{key:4,type:"primary",class:"mt-5",onClick:oe[9]||(oe[9]=Ze=>L())},{default:ge(()=>[nt(pe(W.$t("重置已用流量")),1)]),_:1})):Ct("",!0)],64)):(ve(),ze("div",{key:2,class:"cursor-pointer pt-5 text-center",onClick:oe[10]||(oe[10]=Ze=>ke(Gt).push("/plan"))},[se(Ce,{class:"text-4xl"}),Q("div",gFe,pe(W.$t("购买订阅")),1)])):(ve(),We(H,{key:0},{default:ge(()=>[se(O,{height:"20px",width:"33%"}),se(O,{height:"20px",width:"66%"}),se(O,{height:"20px"})]),_:1}))]}),_:1},8,["title"]),se(I,{title:W.$t("捷径"),class:"mt-5 rounded-md","content-style":"padding: 0"},{default:ge(()=>[se(Ie,{hoverable:"",clickable:""},{default:ge(()=>[se(le,{class:"flex flex cursor-pointer justify-between p-5 hover:bg-gray-100",onClick:oe[11]||(oe[11]=$e=>ke(Gt).push("/knowledge"))},{default:ge(()=>[Q("div",vFe,[Q("div",bFe,[Q("div",yFe,pe(W.$t("查看教程")),1),Q("div",xFe,pe(W.$t("学习如何使用"))+" "+pe(ke(i).title),1)]),Q("div",null,[se(fe,{class:"text-3xl text-gray-500-500"})])])]),_:1}),se(le,{class:"flex cursor-pointer justify-between p-5 hover:bg-gray-100",onClick:oe[12]||(oe[12]=$e=>d.value=!0)},{default:ge(()=>[Q("div",CFe,[Q("div",null,[Q("div",wFe,pe(W.$t("一键订阅")),1),Q("div",_Fe,pe(W.$t("快速将节点导入对应客户端进行使用")),1)]),Q("div",null,[se(de,{class:"text-3xl text-gray-500-500"})])])]),_:1}),se(le,{class:"flex cursor-pointer justify-between p-5",onClick:oe[13]||(oe[13]=$e=>ke(a).plan_id?ke(Gt).push("/plan/"+ke(a).plan_id):ke(Gt).push("/plan"))},{default:ge(()=>{var $e;return[Q("div",SFe,[Q("div",null,[Q("div",kFe,pe(($e=y.value)!=null&&$e.plan_id?W.$t("续费订阅"):W.$t("购买订阅")),1),Q("div",PFe,pe(W.$t("对您当前的订阅进行购买")),1)]),Q("div",null,[se(ie,{class:"text-3xl text-gray-500-500"})])])]}),_:1}),se(le,{class:"flex cursor-pointer justify-between p-5",onClick:oe[14]||(oe[14]=$e=>W.$router.push("/ticket"))},{default:ge(()=>[Q("div",TFe,[Q("div",null,[Q("div",AFe,pe(W.$t("遇到问题")),1),Q("div",RFe,pe(W.$t("遇到问题可以通过工单与我们沟通")),1)]),Q("div",null,[se(he,{class:"text-3xl text-gray-500-500"})])])]),_:1})]),_:1})]),_:1},8,["title"])])]}),_:1})}}}),$Fe=Gu(EFe,[["__scopeId","data-v-94f2350e"]]),IFe=Object.freeze(Object.defineProperty({__proto__:null,default:$Fe},Symbol.toStringTag,{value:"Module"})),OFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},MFe=Q("path",{fill:"currentColor",d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372m159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8c-.1-4.4-3.7-8-8.1-8"},null,-1),zFe=[MFe];function FFe(e,t){return ve(),ze("svg",OFe,[...zFe])}const DFe={name:"ant-design-pay-circle-outlined",render:FFe},LFe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},BFe=Q("path",{fill:"currentColor",d:"M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1c-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7M157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9c43.6-18.4 89.9-27.8 137.6-27.8c47.8 0 94.1 9.3 137.6 27.8c42.1 17.8 79.9 43.4 112.4 75.9c10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82C277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8M934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4a352.6 352.6 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.6 352.6 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942C747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2"},null,-1),NFe=[BFe];function HFe(e,t){return ve(),ze("svg",LFe,[...NFe])}const jFe={name:"ant-design-transaction-outlined",render:HFe},UFe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},VFe=Q("path",{fill:"currentColor",d:"M19 17v2H7v-2s0-4 6-4s6 4 6 4m-3-9a3 3 0 1 0-3 3a3 3 0 0 0 3-3m3.2 5.06A5.6 5.6 0 0 1 21 17v2h3v-2s0-3.45-4.8-3.94M18 5a2.9 2.9 0 0 0-.89.14a5 5 0 0 1 0 5.72A2.9 2.9 0 0 0 18 11a3 3 0 0 0 0-6M8 10H5V7H3v3H0v2h3v3h2v-3h3Z"},null,-1),WFe=[VFe];function qFe(e,t){return ve(),ze("svg",UFe,[...WFe])}const KFe={name:"mdi-invite",render:qFe},GFe={class:"text-5xl font-normal"},XFe={class:"ml-2.5 text-xl text-gray-500 md:ml-5"},YFe={class:"text-gray-500"},QFe={class:"flex justify-between pb-1 pt-1"},JFe={class:"flex justify-between pb-1 pt-1"},ZFe={key:0},eDe={key:1},tDe={class:"flex justify-between pb-1 pt-1"},nDe={class:"flex justify-between pb-1 pt-1"},oDe={class:"mt-2.5"},rDe={class:"mb-1"},iDe={class:"mt-2.5"},aDe={class:"mb-1"},sDe={class:"flex justify-end"},lDe={class:"mt-2.5"},cDe={class:"mb-1"},uDe={class:"mt-2.5"},dDe={class:"mb-1"},fDe={class:"flex justify-end"},hDe=ye({__name:"index",setup(e){const t=Tn(),n=y=>mn.global.t(y),o=[{title:n("邀请码"),key:"code",render(y){const x=`${window.location.protocol}//${window.location.host}/#/register?code=${y.code}`;return v("div",[v("span",y.code),v(zt,{size:"small",onClick:()=>Xs(x),quaternary:!0,type:"info"},{default:()=>n("复制链接")})])}},{title:n("创建时间"),key:"created_at",fixed:"right",align:"right",render(y){return Wo(y.created_at)}}],r=[{title:n("发放时间"),key:"created_at",render(y){return Wo(y.created_at)}},{title:n("佣金"),key:"get_amount",fixed:"right",align:"right",render(y){return sn(y.get_amount)}}],i=j(),a=j([]);async function s(){const y=await BJ(),{data:x}=y;i.value=x.codes,a.value=x.stat}const l=j([]),c=to({page:1,pageSize:10,showSizePicker:!0,pageSizes:[10,50,100,150],onChange:y=>{c.page=y,u()},onUpdatePageSize:y=>{c.pageSize=y,c.page=1,u()}});async function u(){const y=await NJ(c.page,c.pageSize),{data:x}=y;l.value=x}const d=j(!1);async function f(){d.value=!0;const{data:y}=await HJ();y===!0&&(window.$message.success(n("已生成")),S()),d.value=!1}const h=j(!1),p=j(),g=j(!1);async function m(){g.value=!0;const y=p.value;if(typeof y!="number"){window.$message.error(n("请输入正确的划转金额")),g.value=!1;return}const{data:x}=await jJ(y*100);x===!0&&(window.$message.success(n("划转成功")),h.value=!1,s()),g.value=!1}const b=j(!1),w=to({method:null,account:null}),C=j(!1);async function _(){if(C.value=!0,!w.method){window.$message.error(n("提现方式不能为空")),C.value=!1;return}if(!w.account){window.$message.error(n("提现账号不能为空")),C.value=!1;return}const y=w.method,x=w.account,{data:k}=await UJ({withdraw_method:y,withdraw_account:x});k===!0&&Gt.push("/ticket"),C.value=!1}function S(){s(),u()}return hn(()=>{S()}),(y,x)=>{const k=KFe,P=PV,T=jFe,$=DFe,E=Zi,G=vo,B=ju,D=vl,L=dr,X=qX,V=ri,ae=gk,ue=Lu,ee=bo;return ve(),We(ee,null,{default:ge(()=>[se(G,{title:y.$t("我的邀请"),class:"rounded-md"},{"header-extra":ge(()=>[se(k,{class:"text-4xl text-gray-500"})]),default:ge(()=>{var R;return[Q("div",null,[Q("span",GFe,[se(P,{from:0,to:parseFloat(ke(sn)(a.value[4])),active:!0,precision:2,duration:500},null,8,["to"])]),Q("span",XFe,pe((R=ke(t).appConfig)==null?void 0:R.currency),1)]),Q("div",YFe,pe(y.$t("当前剩余佣金")),1),se(E,{class:"mt-2.5"},{default:ge(()=>{var A;return[se(ke(zt),{size:"small",type:"primary",onClick:x[0]||(x[0]=Y=>h.value=!0)},{icon:ge(()=>[se(T)]),default:ge(()=>[nt(" "+pe(y.$t("划转")),1)]),_:1}),(A=ke(t).appConfig)!=null&&A.withdraw_close?Ct("",!0):(ve(),We(ke(zt),{key:0,size:"small",type:"primary",onClick:x[1]||(x[1]=Y=>b.value=!0)},{icon:ge(()=>[se($)]),default:ge(()=>[nt(" "+pe(y.$t("推广佣金提现")),1)]),_:1}))]}),_:1})]}),_:1},8,["title"]),se(G,{class:"mt-4 rounded-md"},{default:ge(()=>{var R,A,Y,W,oe,K;return[Q("div",QFe,[Q("div",null,pe(y.$t("已注册用户数")),1),Q("div",null,pe(y.$tc("{number} 人",{number:a.value[0]})),1)]),Q("div",JFe,[Q("div",null,pe(y.$t("佣金比例")),1),(R=ke(t).appConfig)!=null&&R.commission_distribution_enable?(ve(),ze("div",ZFe,pe(`${Math.floor((((A=ke(t).appConfig)==null?void 0:A.commission_distribution_l1)||0)*a.value[3]/100)}%,${Math.floor((((Y=ke(t).appConfig)==null?void 0:Y.commission_distribution_l2)||0)*a.value[3]/100)}%,${Math.floor((((W=ke(t).appConfig)==null?void 0:W.commission_distribution_l3)||0)*a.value[3]/100)}%`),1)):(ve(),ze("div",eDe,pe(a.value[3])+"%",1))]),Q("div",tDe,[Q("div",null,pe(y.$t("确认中的佣金")),1),Q("div",null,pe((oe=ke(t).appConfig)==null?void 0:oe.currency_symbol)+" "+pe(ke(sn)(a.value[2])),1)]),Q("div",nDe,[Q("div",null,pe(y.$t("累计获得佣金")),1),Q("div",null,pe((K=ke(t).appConfig)==null?void 0:K.currency_symbol)+" "+pe(ke(sn)(a.value[1])),1)])]}),_:1}),se(G,{title:y.$t("邀请码管理"),class:"mt-4 rounded-md"},{"header-extra":ge(()=>[se(ke(zt),{size:"small",type:"primary",round:"",loading:d.value,onClick:f},{default:ge(()=>[nt(pe(y.$t("生成邀请码")),1)]),_:1},8,["loading"])]),default:ge(()=>[se(B,{columns:o,data:i.value,bordered:!0},null,8,["data"])]),_:1},8,["title"]),se(G,{title:y.$t("佣金发放记录"),class:"mt-4 rounded-md"},{default:ge(()=>[se(B,{columns:r,data:l.value,pagination:c},null,8,["data","pagination"])]),_:1},8,["title"]),se(V,{show:h.value,"onUpdate:show":x[6]||(x[6]=R=>h.value=R)},{default:ge(()=>[se(G,{title:y.$t("划转"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-2.5 max-w-full w-150 md:mx-auto",closable:"",onClose:x[5]||(x[5]=R=>h.value=!1)},{footer:ge(()=>[Q("div",sDe,[Q("div",null,[se(ke(zt),{onClick:x[3]||(x[3]=R=>h.value=!1)},{default:ge(()=>[nt(pe(y.$t("取消")),1)]),_:1}),se(ke(zt),{type:"primary",class:"ml-2.5",onClick:x[4]||(x[4]=R=>m()),loading:g.value,disabled:g.value},{default:ge(()=>[nt(pe(y.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:ge(()=>[se(D,{type:"warning"},{default:ge(()=>[nt(pe(y.$tc("划转后的余额仅用于{title}消费使用",{title:ke(t).title})),1)]),_:1}),Q("div",oDe,[Q("div",rDe,pe(y.$t("当前推广佣金余额")),1),se(L,{placeholder:ke(sn)(a.value[4]),type:"number",disabled:""},null,8,["placeholder"])]),Q("div",iDe,[Q("div",aDe,pe(y.$t("划转金额")),1),se(X,{value:p.value,"onUpdate:value":x[2]||(x[2]=R=>p.value=R),min:0,placeholder:y.$t("请输入需要划转到余额的金额"),clearable:""},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),se(V,{show:b.value,"onUpdate:show":x[12]||(x[12]=R=>b.value=R)},{default:ge(()=>[se(G,{title:y.$t("推广佣金划转至余额"),segmented:{content:!0,footer:!0},"footer-style":"padding-top: 10px; padding-bottom:10px",class:"mx-2.5 max-w-full w-150 md:mx-auto"},{"header-extra":ge(()=>[se(ke(zt),{class:"h-auto p-0.5",tertiary:"",size:"large",onClick:x[7]||(x[7]=R=>b.value=!1)},{icon:ge(()=>[se(ae,{class:"cursor-pointer opacity-85"})]),_:1})]),footer:ge(()=>[Q("div",fDe,[Q("div",null,[se(ke(zt),{onClick:x[10]||(x[10]=R=>b.value=!1)},{default:ge(()=>[nt(pe(y.$t("取消")),1)]),_:1}),se(ke(zt),{type:"primary",class:"ml-2.5",onClick:x[11]||(x[11]=R=>_()),loading:C.value,disabled:C.value},{default:ge(()=>[nt(pe(y.$t("确定")),1)]),_:1},8,["loading","disabled"])])])]),default:ge(()=>{var R;return[Q("div",lDe,[Q("div",cDe,pe(y.$t("提现方式")),1),se(ue,{value:w.method,"onUpdate:value":x[8]||(x[8]=A=>w.method=A),options:(R=ke(t).appConfig)==null?void 0:R.withdraw_methods.map(A=>({label:A,value:A})),placeholder:y.$t("请选择提现方式")},null,8,["value","options","placeholder"])]),Q("div",uDe,[Q("div",dDe,pe(y.$t("提现账号")),1),se(L,{value:w.account,"onUpdate:value":x[9]||(x[9]=A=>w.account=A),placeholder:y.$t("请输入提现账号"),type:"string"},null,8,["value","placeholder"])])]}),_:1},8,["title"])]),_:1},8,["show"])]),_:1})}}}),pDe=Object.freeze(Object.defineProperty({__proto__:null,default:hDe},Symbol.toStringTag,{value:"Module"})),mDe={class:""},gDe={class:"mb-1 text-base font-semibold"},vDe={class:"text-xs text-gray-500"},bDe=["innerHTML"],yDe=ye({__name:"index",setup(e){const t=Tn(),n=new rd({html:!0}),o=f=>n.render(f);window.copy=f=>Xs(f),window.jump=f=>a(f);const r=j(!1),i=j();async function a(f){const{data:h}=await oZ(f,t.lang);h&&(i.value=h),r.value=!0}const s=j(""),l=j(!0),c=j();async function u(){l.value=!0;const f=s.value,{data:h}=await nZ(f,t.lang);c.value=h,l.value=!1}function d(){u()}return hn(()=>{d()}),(f,h)=>{const p=dr,g=zt,m=_m,b=xl,w=Zi,C=Lm,_=Dm,S=vo,y=pK,x=T2,k=bo;return ve(),We(k,{"show-footer":!1},{default:ge(()=>[se(m,null,{default:ge(()=>[se(p,{placeholder:f.$t("使用文档"),value:s.value,"onUpdate:value":h[0]||(h[0]=P=>s.value=P),onKeyup:h[1]||(h[1]=Ss(P=>d(),["enter"]))},null,8,["placeholder","value"]),se(g,{type:"primary",ghost:"",onClick:h[2]||(h[2]=P=>d())},{default:ge(()=>[nt(pe(f.$t("搜索")),1)]),_:1})]),_:1}),l.value?(ve(),We(w,{key:0,vertical:"",class:"mt-5"},{default:ge(()=>[se(b,{height:"20px",width:"33%"}),se(b,{height:"20px",width:"66%"}),se(b,{height:"20px"})]),_:1})):Ct("",!0),(ve(!0),ze(rt,null,Fn(c.value,(P,T)=>(ve(),We(S,{key:T,title:T,class:"mt-5 rounded-md",contentStyle:"padding:0"},{default:ge(()=>[se(_,{clickable:"",hoverable:""},{default:ge(()=>[(ve(!0),ze(rt,null,Fn(P,$=>(ve(),We(C,{key:$.id,onClick:E=>a($.id)},{default:ge(()=>[Q("div",mDe,[Q("div",gDe,pe($.title),1),Q("div",vDe,pe(f.$t("最后更新"))+" "+pe(ke(Np)($.updated_at)),1)])]),_:2},1032,["onClick"]))),128))]),_:2},1024)]),_:2},1032,["title"]))),128)),se(x,{show:r.value,"onUpdate:show":h[3]||(h[3]=P=>r.value=P),width:"80%",placement:"right"},{default:ge(()=>{var P;return[se(y,{title:(P=i.value)==null?void 0:P.title,closable:""},{default:ge(()=>{var T;return[Q("div",{innerHTML:o(((T=i.value)==null?void 0:T.body)||""),class:"custom-html-style markdown-body"},null,8,bDe)]}),_:1},8,["title"])]}),_:1},8,["show"])]),_:1})}}}),xDe=Object.freeze(Object.defineProperty({__proto__:null,default:yDe},Symbol.toStringTag,{value:"Module"})),CDe={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},wDe=Q("path",{fill:"currentColor",d:"M11 18h2v-2h-2zm1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m0-14a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2a2 2 0 0 1 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5a4 4 0 0 0-4-4"},null,-1),_De=[wDe];function SDe(e,t){return ve(),ze("svg",CDe,[..._De])}const kDe={name:"mdi-help-circle-outline",render:SDe},PDe={class:"flex"},TDe={class:"flex-[1]"},ADe={class:"flex flex-[2] flex-shrink-0 text-center"},RDe={class:"flex flex-1 items-center justify-center"},EDe={class:"flex flex-1 items-center justify-center"},$De={class:"flex-1"},IDe={class:"flex"},ODe={class:"flex-[1] break-anywhere"},MDe={class:"flex flex-[2] flex-shrink-0 items-center text-center"},zDe={class:"flex flex-[1] items-center justify-center"},FDe={class:"flex-[1]"},DDe={class:"flex-[1]"},LDe={key:0},BDe={key:1},NDe=ye({__name:"index",setup(e){const t=j([]),n=j(!0);async function o(){n.value=!0;const r=await fk(),{data:i}=r;t.value=i,n.value=!1}return hn(()=>{o()}),(r,i)=>{const a=xl,s=Zi,l=kDe,c=Nu,u=Ri,d=Lm,f=Dm,h=nu("router-link"),p=vl,g=bo;return ve(),We(g,null,{default:ge(()=>[n.value?(ve(),We(s,{key:0,vertical:"",class:"mt-5"},{default:ge(()=>[se(a,{height:"20px",width:"33%"}),se(a,{height:"20px",width:"66%"}),se(a,{height:"20px"})]),_:1})):t.value.length>0?(ve(),We(f,{key:1,clickable:"",hoverable:""},{header:ge(()=>[Q("div",PDe,[Q("div",TDe,pe(r.$t("名称")),1),Q("div",ADe,[Q("div",RDe,[nt(pe(r.$t("状态"))+" ",1),se(c,{placement:"bottom",trigger:"hover"},{trigger:ge(()=>[se(l,{class:"ml-1 text-base"})]),default:ge(()=>[Q("span",null,pe(r.$t("五分钟内节点在线情况")),1)]),_:1})]),Q("div",EDe,[nt(pe(r.$t("倍率"))+" ",1),se(c,{placement:"bottom",trigger:"hover"},{trigger:ge(()=>[se(l,{class:"ml-1 text-base"})]),default:ge(()=>[Q("span",null,pe(r.$t("使用的流量将乘以倍率进行扣除")),1)]),_:1})]),Q("div",$De,pe(r.$t("标签")),1)])])]),default:ge(()=>[(ve(!0),ze(rt,null,Fn(t.value,m=>(ve(),We(d,{key:m.id},{default:ge(()=>[Q("div",IDe,[Q("div",ODe,pe(m.name),1),Q("div",MDe,[Q("div",zDe,[Q("div",{class:qn(["h-1.5 w-1.5 rounded-full",m.is_online?"bg-blue-500":"bg-red-500"])},null,2)]),Q("div",FDe,[se(u,{size:"small",round:"",class:""},{default:ge(()=>[nt(pe(m.rate)+" x ",1)]),_:2},1024)]),Q("div",DDe,[m.tags&&m.tags.length>0?(ve(),ze("div",LDe,[(ve(!0),ze(rt,null,Fn(m.tags,b=>(ve(),We(u,{size:"small",round:"",key:b},{default:ge(()=>[nt(pe(b),1)]),_:2},1024))),128))])):(ve(),ze("span",BDe,"-"))])])])]),_:2},1024))),128))]),_:1})):(ve(),We(p,{key:2,type:"info"},{default:ge(()=>[Q("div",null,[nt(pe(r.$t("没有可用节点,如果您未订阅或已过期请"))+" ",1),se(h,{class:"font-semibold",to:"/plan"},{default:ge(()=>[nt(pe(r.$t("订阅")),1)]),_:1}),nt("。 ")])]),_:1}))]),_:1})}}}),HDe=Object.freeze(Object.defineProperty({__proto__:null,default:NDe},Symbol.toStringTag,{value:"Module"})),jDe=ye({__name:"index",setup(e){const t=s=>mn.global.t(s),n=[{title:t("# 订单号"),key:"trade_no",render(s){return v(zt,{text:!0,class:"color-primary",onClick:()=>Gt.push(`/order/${s.trade_no}`)},{default:()=>s.trade_no})}},{title:t("周期"),key:"period",render(s){return v(Ri,{round:!0,size:"small"},{default:()=>t(Lk[s.period])})}},{title:t("订单金额"),key:"total_amount",render(s){return sn(s.total_amount)}},{title:t("订单状态"),key:"status",render(s){const l=t(Mze[s.status]),c=v("div",{class:["h-1.5 w-1.5 rounded-full mr-1.2",s.status===3?"bg-green-500":"bg-red-500"]});return v("div",{class:"flex items-center"},[c,l])}},{title:t("创建时间"),key:"created_at",render(s){return Wo(s.created_at)}},{title:t("操作"),key:"actions",fixed:"right",render(s){const l=v(zt,{text:!0,type:"primary",onClick:()=>Gt.push(`/order/${s.trade_no}`)},{default:()=>t("查看详情")}),c=v(zt,{text:!0,type:"primary",disabled:s.status!==0,onClick:()=>o(s.trade_no)},{default:()=>t("取消")}),u=v(Ji,{vertical:!0});return v("div",[l,u,c])}}];async function o(s){window.$dialog.confirm({title:t("注意"),type:"info",content:t("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:l}=await qu(s);l===!0&&(window.$message.success(t("取消成功")),a())}})}const r=j([]);async function i(){const s=await qm(),{data:l}=s;r.value=l}async function a(){i()}return hn(()=>{a()}),(s,l)=>{const c=ju,u=bo;return ve(),We(u,null,{default:ge(()=>[se(c,{columns:n,data:r.value,bordered:!1,"scroll-x":800},null,8,["data"])]),_:1})}}}),UDe=Object.freeze(Object.defineProperty({__proto__:null,default:jDe},Symbol.toStringTag,{value:"Module"})),VDe={class:"inline-block",viewBox:"0 0 48 48",width:"1em",height:"1em"},WDe=Q("g",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"},[Q("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6S6 14.059 6 24s8.059 18 18 18m0 2c11.046 0 20-8.954 20-20S35.046 4 24 4S4 12.954 4 24s8.954 20 20 20"}),Q("path",{d:"M34.67 16.259a1 1 0 0 1 .072 1.412L21.386 32.432l-8.076-7.709a1 1 0 0 1 1.38-1.446l6.59 6.29L33.259 16.33a1 1 0 0 1 1.413-.07"})],-1),qDe=[WDe];function KDe(e,t){return ve(),ze("svg",VDe,[...qDe])}const Bk={name:"healthicons-yes-outline",render:KDe},GDe={class:"inline-block",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},XDe=Q("path",{fill:"currentColor",d:"M952.08 1.552L529.039 116.144c-10.752 2.88-34.096 2.848-44.815-.16L72.08 1.776C35.295-8.352-.336 18.176-.336 56.048V834.16c0 32.096 24.335 62.785 55.311 71.409l412.16 114.224c11.025 3.055 25.217 4.751 39.937 4.751c10.095 0 25.007-.784 38.72-4.528l423.023-114.592c31.056-8.4 55.504-39.024 55.504-71.248V56.048c.016-37.84-35.616-64.464-72.24-54.496zM479.999 956.943L71.071 843.887c-3.088-.847-7.408-6.496-7.408-9.712V66.143L467.135 177.68c3.904 1.088 8.288 1.936 12.864 2.656zm480.336-122.767c0 3.152-5.184 8.655-8.256 9.503L544 954.207v-775.92c.592-.144 1.2-.224 1.792-.384L960.32 65.775v768.4h.016zM641.999 366.303c2.88 0 5.81-.367 8.69-1.184l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.128 16.815 23.344 30.783 23.344m.002 192.001c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473c-4.783-17.008-22.56-26.88-39.472-22.16l-223.936 63.025c-17.024 4.816-26.944 22.464-22.16 39.457c3.968 14.127 16.815 23.36 30.783 23.36m.002 192c2.88 0 5.81-.368 8.69-1.185l223.935-63.024c17.025-4.816 26.945-22.465 22.16-39.473s-22.56-26.88-39.472-22.16L633.38 687.487c-17.024 4.816-26.944 22.464-22.16 39.472c3.968 14.113 16.815 23.345 30.783 23.345M394.629 303.487l-223.934-63.025c-16.912-4.72-34.688 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.937 63.024a31.8 31.8 0 0 0 8.687 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999l-223.934-63.025c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-16.993-5.12-34.657-22.16-39.473m.002 191.999L170.699 624.46c-16.912-4.72-34.689 5.152-39.473 22.16s5.12 34.656 22.16 39.473l223.936 63.024a31.8 31.8 0 0 0 8.688 1.184c13.968 0 26.815-9.215 30.783-23.343c4.784-17.008-5.12-34.657-22.16-39.473"},null,-1),YDe=[XDe];function QDe(e,t){return ve(),ze("svg",GDe,[...YDe])}const JDe={name:"simple-line-icons-book-open",render:QDe},ZDe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},eLe=Q("path",{fill:"currentColor",d:"M10 2c-4.42 0-8 3.58-8 8s3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8m-.615 12.66h-1.34l-3.24-4.54l1.341-1.25l2.569 2.4l5.141-5.931l1.34.94z"},null,-1),tLe=[eLe];function nLe(e,t){return ve(),ze("svg",ZDe,[...tLe])}const oLe={name:"dashicons-yes-alt",render:nLe},rLe={class:"inline-block",viewBox:"0 0 20 20",width:"1em",height:"1em"},iLe=Q("path",{fill:"currentColor",d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8s-8-3.58-8-8s3.58-8 8-8m1.13 9.38l.35-6.46H8.52l.35 6.46zm-.09 3.36c.24-.23.37-.55.37-.96c0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35s-.82.12-1.07.35s-.37.55-.37.97c0 .41.13.73.38.96c.26.23.61.34 1.06.34s.8-.11 1.05-.34"},null,-1),aLe=[iLe];function sLe(e,t){return ve(),ze("svg",rLe,[...aLe])}const lLe={name:"dashicons-warning",render:sLe},cLe={class:"relative max-w-full w-75",style:{"padding-bottom":"100%"}},uLe={class:"p-2.5 text-center"},dLe={key:1,class:"flex flex-wrap"},fLe={class:"w-full md:flex-[2]"},hLe={key:2,class:"mt-2.5 text-xl"},pLe={key:3,class:"text-sm text-[rgba(0,0,0,0.45)]"},mLe={class:"flex"},gLe={class:"flex-[1] text-gray-400"},vLe={class:"flex-[2]"},bLe={class:"flex"},yLe={class:"mt-1 flex-[1] text-gray-400"},xLe={class:"flex-[2]"},CLe={class:"flex"},wLe={class:"mb-1 mt-1 flex-[1] text-gray-400"},_Le={class:"flex-[2]"},SLe={class:"flex"},kLe={class:"flex-[1] text-gray-400"},PLe={class:"flex-[2]"},TLe={key:0,class:"flex"},ALe={class:"flex-[1] text-gray-400"},RLe={class:"flex-[2]"},ELe={key:1,class:"flex"},$Le={class:"flex-[1] text-gray-400"},ILe={class:"flex-[2]"},OLe={key:2,class:"flex"},MLe={class:"flex-[1] text-gray-400"},zLe={class:"flex-[2]"},FLe={key:3,class:"flex"},DLe={class:"flex-[1] text-gray-400"},LLe={class:"flex-[2]"},BLe={key:4,class:"flex"},NLe={class:"flex-[1] text-gray-400"},HLe={class:"flex-[2]"},jLe={class:"flex"},ULe={class:"mt-1 flex-[1] text-gray-400"},VLe={class:"flex-[2]"},WLe=["onClick"],qLe={class:"flex-[1] whitespace-nowrap"},KLe={class:"flex-[1]"},GLe=["src"],XLe={key:0,class:"w-full md:flex-[1] md:pl-5"},YLe={class:"mt-5 rounded-md bg-gray-800 p-5 text-white"},QLe={class:"text-lg font-semibold"},JLe={class:"flex border-gray-600 border-b pb-4 pt-4"},ZLe={class:"flex-[2]"},eBe={class:"flex-[1] text-right color-#f8f9fa"},tBe={key:0,class:"border-[#646669] border-b pb-4 pt-4"},nBe={class:"color-#f8f9fa41"},oBe={class:"pt-4 text-right"},rBe={key:1,class:"border-[#646669] border-b pb-4 pt-4"},iBe={class:"color-#f8f9fa41"},aBe={class:"pt-4 text-right"},sBe={key:2,class:"border-[#646669] border-b pb-4 pt-4"},lBe={class:"color-#f8f9fa41"},cBe={class:"pt-4 text-right"},uBe={key:3,class:"border-[#646669] border-b pb-4 pt-4"},dBe={class:"color-#f8f9fa41"},fBe={class:"pt-4 text-right"},hBe={key:4,class:"border-[#646669] border-b pb-4 pt-4"},pBe={class:"color-#f8f9fa41"},mBe={class:"pt-4 text-right"},gBe={class:"pb-4 pt-4"},vBe={class:"color-#f8f9fa41"},bBe={class:"text-4xl font-semibold"},yBe=ye({__name:"detail",setup(e){const t=Tn(),n=ea(),o=La(),r=x=>mn.global.t(x);function i(x){switch(x){case 1:return{icon:"info",title:r("开通中"),subTitle:r("订单系统正在进行处理,请稍等1-3分钟。")};case 2:return{icon:"info",title:r("已取消"),subTitle:r("订单由于超时支付已被取消。")};case 3:case 4:return{icon:"info",title:r("已完成"),subTitle:r("订单已支付并开通。")}}return{icon:"error",title:r("意料之外"),subTitle:r("意料之外的状态")}}async function a(){window.$dialog.confirm({title:r("注意"),type:"info",content:r("如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?"),async confirm(){const{data:x}=await qu(s.value);x===!0&&(window.$message.success(r("取消成功")),y())}})}const s=j(""),l=j(),c=j(),u=j(!0);async function d(){u.value=!0;const{data:x}=await DJ(s.value);l.value=x,clearInterval(c.value),x.status===Fs.PENDING&&p(),[Fs.PENDING,Fs.PROCESSING].includes(x.status)&&(c.value=setInterval(_,1500)),u.value=!1}const f=j([]),h=j(0);async function p(){const{data:x}=await KJ();f.value=x}function g(){var k,P,T,$,E;return(((k=l.value)==null?void 0:k.plan[l.value.period])||0)-(((P=l.value)==null?void 0:P.balance_amount)||0)-(((T=l.value)==null?void 0:T.surplus_amount)||0)+((($=l.value)==null?void 0:$.refund_amount)||0)-(((E=l.value)==null?void 0:E.discount_amount)||0)}function m(){const x=f.value[h.value];return(x!=null&&x.handling_fee_percent||x!=null&&x.handling_fee_fixed)&&g()?g()*parseFloat(x.handling_fee_percent||"0")/100+((x==null?void 0:x.handling_fee_fixed)||0):0}async function b(){const x=f.value[h.value],{data:k,type:P}=await GJ(s.value,x==null?void 0:x.id);k&&(k===!0?(window.$message.info(r("支付成功")),setTimeout(()=>{S()},500)):P===0?(w.value=!0,C.value=k):P===1&&(window.$message.info(r("正在前往收银台")),setTimeout(()=>{window.location.href=k},500)))}const w=j(!1),C=j("");async function _(){var k;const{data:x}=await LJ(s.value);x!==((k=l.value)==null?void 0:k.status)&&S()}async function S(){y(),n.getUserInfo()}async function y(){d(),w.value=!1}return hn(()=>{typeof o.params.trade_no=="string"&&(s.value=o.params.trade_no),y()}),Fa(()=>{clearInterval(c.value)}),(x,k)=>{const P=nk,T=Ji,$=vo,E=ri,G=xl,B=Zi,D=lLe,L=oLe,X=JDe,V=zt,ae=Bk,ue=bo;return ve(),We(ue,null,{default:ge(()=>{var ee,R,A,Y,W,oe,K,le,N,be,Ie,Ne,F,I,re,_e,ne,me,we,O,H,te,Ce,fe,de,ie;return[se(E,{show:w.value,"onUpdate:show":k[0]||(k[0]=he=>w.value=he),onOnAfterLeave:k[1]||(k[1]=he=>C.value="")},{default:ge(()=>[se($,{"content-style":"padding:10px",class:"w-auto",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:ge(()=>[Q("div",cLe,[C.value?(ve(),We(P,{key:0,value:C.value,class:"pay-qrcode absolute h-full! w-full!",size:"400"},null,8,["value"])):Ct("",!0)]),se(T,{class:"m-0!"}),Q("div",uLe,pe(x.$t("等待支付中")),1)]),_:1})]),_:1},8,["show"]),u.value?(ve(),We(B,{key:0,vertical:"",class:"mt-5"},{default:ge(()=>[se(G,{height:"20px",width:"33%"}),se(G,{height:"20px",width:"66%"}),se(G,{height:"20px"})]),_:1})):(ve(),ze("div",dLe,[Q("div",fLe,[((ee=l.value)==null?void 0:ee.status)!==0?(ve(),We($,{key:0,class:"flex text-center","items-center":"","border-rounded-5":""},{default:ge(()=>{var he,Fe,De,Me,He,et;return[((he=l.value)==null?void 0:he.status)===2?(ve(),We(D,{key:0,class:"text-9xl color-#f9a314"})):Ct("",!0),((Fe=l.value)==null?void 0:Fe.status)===3||((De=l.value)==null?void 0:De.status)==4?(ve(),We(L,{key:1,class:"text-9xl color-#48bc19"})):Ct("",!0),(Me=l.value)!=null&&Me.status?(ve(),ze("div",hLe,pe(i(l.value.status).title),1)):Ct("",!0),(He=l.value)!=null&&He.status?(ve(),ze("div",pLe,pe(i(l.value.status).subTitle),1)):Ct("",!0),((et=l.value)==null?void 0:et.status)===3?(ve(),We(V,{key:4,"icon-placement":"left",strong:"",color:"#db4619",size:"small",round:"",class:"mt-8",onClick:k[2]||(k[2]=$e=>x.$router.push("/knowledge"))},{icon:ge(()=>[se(X)]),default:ge(()=>[nt(" "+pe(x.$t("查看使用教程")),1)]),_:1})):Ct("",!0)]}),_:1})):Ct("",!0),se($,{class:"mt-5 rounded-md",title:x.$t("商品信息")},{default:ge(()=>{var he,Fe,De;return[Q("div",mLe,[Q("div",gLe,pe(x.$t("产品名称"))+":",1),Q("div",vLe,pe((he=l.value)==null?void 0:he.plan.name),1)]),Q("div",bLe,[Q("div",yLe,pe(x.$t("类型/周期"))+":",1),Q("div",xLe,pe((Fe=l.value)!=null&&Fe.period?x.$t(ke(Lk)[l.value.period]):""),1)]),Q("div",CLe,[Q("div",wLe,pe(x.$t("产品流量"))+":",1),Q("div",_Le,pe((De=l.value)==null?void 0:De.plan.transfer_enable)+" GB",1)])]}),_:1},8,["title"]),se($,{class:"mt-5 rounded-md",title:x.$t("订单信息")},{"header-extra":ge(()=>{var he;return[((he=l.value)==null?void 0:he.status)===0?(ve(),We(V,{key:0,color:"#db4619",size:"small",round:"",strong:"",onClick:k[3]||(k[3]=Fe=>a())},{default:ge(()=>[nt(pe(x.$t("关闭订单")),1)]),_:1})):Ct("",!0)]}),default:ge(()=>{var he,Fe,De,Me,He,et,$e,Xe,gt,J,xe;return[Q("div",SLe,[Q("div",kLe,pe(x.$t("订单号"))+":",1),Q("div",PLe,pe((he=l.value)==null?void 0:he.trade_no),1)]),(Fe=l.value)!=null&&Fe.discount_amount&&((De=l.value)==null?void 0:De.discount_amount)>0?(ve(),ze("div",TLe,[Q("div",ALe,pe(x.$t("优惠金额")),1),Q("div",RLe,pe(ke(sn)(l.value.discount_amount)),1)])):Ct("",!0),(Me=l.value)!=null&&Me.surplus_amount&&((He=l.value)==null?void 0:He.surplus_amount)>0?(ve(),ze("div",ELe,[Q("div",$Le,pe(x.$t("旧订阅折抵金额")),1),Q("div",ILe,pe(ke(sn)(l.value.surplus_amount)),1)])):Ct("",!0),(et=l.value)!=null&&et.refund_amount&&(($e=l.value)==null?void 0:$e.refund_amount)>0?(ve(),ze("div",OLe,[Q("div",MLe,pe(x.$t("退款金额")),1),Q("div",zLe,pe(ke(sn)(l.value.refund_amount)),1)])):Ct("",!0),(Xe=l.value)!=null&&Xe.balance_amount&&((gt=l.value)==null?void 0:gt.balance_amount)>0?(ve(),ze("div",FLe,[Q("div",DLe,pe(x.$t("余额支付 ")),1),Q("div",LLe,pe(ke(sn)(l.value.balance_amount)),1)])):Ct("",!0),((J=l.value)==null?void 0:J.status)===0&&m()>0?(ve(),ze("div",BLe,[Q("div",NLe,pe(x.$t("支付手续费"))+":",1),Q("div",HLe,pe(ke(sn)(m())),1)])):Ct("",!0),Q("div",jLe,[Q("div",ULe,pe(x.$t("创建时间"))+":",1),Q("div",VLe,pe(ke(Wo)((xe=l.value)==null?void 0:xe.created_at)),1)])]}),_:1},8,["title"]),((R=l.value)==null?void 0:R.status)===0?(ve(),We($,{key:1,title:x.$t("支付方式"),class:"mt-5","content-style":"padding:0"},{default:ge(()=>[(ve(!0),ze(rt,null,Fn(f.value,(he,Fe)=>(ve(),ze("div",{key:he.id,class:qn(["border-2 rounded-md p-5 border-solid flex",h.value===Fe?"border-primary":"border-transparent"]),onClick:De=>h.value=Fe},[Q("div",qLe,pe(he.name),1),Q("div",KLe,[Q("img",{class:"max-h-8",src:he.icon},null,8,GLe)])],10,WLe))),128))]),_:1},8,["title"])):Ct("",!0)]),((A=l.value)==null?void 0:A.status)===0?(ve(),ze("div",XLe,[Q("div",YLe,[Q("div",QLe,pe(x.$t("订单总额")),1),Q("div",JLe,[Q("div",ZLe,pe((Y=l.value)==null?void 0:Y.plan.name),1),Q("div",eBe,pe((W=ke(t).appConfig)==null?void 0:W.currency_symbol)+pe(((oe=l.value)==null?void 0:oe.period)&&ke(sn)((K=l.value)==null?void 0:K.plan[l.value.period])),1)]),(le=l.value)!=null&&le.surplus_amount&&((N=l.value)==null?void 0:N.surplus_amount)>0?(ve(),ze("div",tBe,[Q("div",nBe,pe(x.$t("折抵")),1),Q("div",oBe," - "+pe((be=ke(t).appConfig)==null?void 0:be.currency_symbol)+pe(ke(sn)((Ie=l.value)==null?void 0:Ie.surplus_amount)),1)])):Ct("",!0),(Ne=l.value)!=null&&Ne.discount_amount&&((F=l.value)==null?void 0:F.discount_amount)>0?(ve(),ze("div",rBe,[Q("div",iBe,pe(x.$t("折扣")),1),Q("div",aBe," - "+pe((I=ke(t).appConfig)==null?void 0:I.currency_symbol)+pe(ke(sn)((re=l.value)==null?void 0:re.discount_amount)),1)])):Ct("",!0),(_e=l.value)!=null&&_e.refund_amount&&((ne=l.value)==null?void 0:ne.refund_amount)>0?(ve(),ze("div",sBe,[Q("div",lBe,pe(x.$t("退款")),1),Q("div",cBe," - "+pe((me=ke(t).appConfig)==null?void 0:me.currency_symbol)+pe(ke(sn)((we=l.value)==null?void 0:we.refund_amount)),1)])):Ct("",!0),(O=l.value)!=null&&O.balance_amount&&((H=l.value)==null?void 0:H.balance_amount)>0?(ve(),ze("div",uBe,[Q("div",dBe,pe(x.$t("余额支付")),1),Q("div",fBe," - "+pe((te=ke(t).appConfig)==null?void 0:te.currency_symbol)+pe(ke(sn)((Ce=l.value)==null?void 0:Ce.balance_amount)),1)])):Ct("",!0),m()>0?(ve(),ze("div",hBe,[Q("div",pBe,pe(x.$t("支付手续费")),1),Q("div",mBe," + "+pe((fe=ke(t).appConfig)==null?void 0:fe.currency_symbol)+pe(ke(sn)(m())),1)])):Ct("",!0),Q("div",gBe,[Q("div",vBe,pe(x.$t("总计")),1),Q("div",bBe,pe((de=ke(t).appConfig)==null?void 0:de.currency_symbol)+" "+pe(ke(sn)(g()+m()))+" "+pe((ie=ke(t).appConfig)==null?void 0:ie.currency),1)]),se(V,{type:"primary",class:"w-full text-white","icon-placement":"left",strong:"",onClick:k[4]||(k[4]=he=>b())},{icon:ge(()=>[se(ae)]),default:ge(()=>[nt(" "+pe(x.$t("结账")),1)]),_:1})])])):Ct("",!0)]))]}),_:1})}}}),xBe=Object.freeze(Object.defineProperty({__proto__:null,default:yBe},Symbol.toStringTag,{value:"Module"})),CBe={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},wBe=Q("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),_Be=Q("path",{fill:"currentColor",d:"m32.283 16.302l1.414 1.415l-15.98 15.98l-1.414-1.414z"},null,-1),SBe=Q("path",{fill:"currentColor",d:"m17.717 16.302l15.98 15.98l-1.414 1.415l-15.98-15.98z"},null,-1),kBe=[wBe,_Be,SBe];function PBe(e,t){return ve(),ze("svg",CBe,[...kBe])}const Nk={name:"ei-close-o",render:PBe},TBe={class:"inline-block",viewBox:"0 0 50 50",width:"1em",height:"1em"},ABe=Q("path",{fill:"currentColor",d:"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17s-7.6 17-17 17m0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15s15-6.7 15-15s-6.7-15-15-15"},null,-1),RBe=Q("path",{fill:"currentColor",d:"m23 32.4l-8.7-8.7l1.4-1.4l7.3 7.3l11.3-11.3l1.4 1.4z"},null,-1),EBe=[ABe,RBe];function $Be(e,t){return ve(),ze("svg",TBe,[...EBe])}const Hk={name:"ei-check",render:$Be},IBe={class:"ml-auto mr-auto max-w-1200 w-full"},OBe={class:"m-3 mb-1 mt-1 text-3xl font-normal"},MBe={class:"card-container mt-2.5 md:mt-10"},zBe=["onClick"],FBe={class:"vertical-bottom"},DBe={class:"text-3xl font-semibold"},LBe={class:"pl-1 text-base text-gray-500"},BBe={key:0},NBe=["innerHTML"],HBe=ye({__name:"index",setup(e){const t=Tn(),n=d=>mn.global.t(d),o=new rd({html:!0}),r=d=>o.render(d),i=j(0),a=[{value:0,label:n("全部")},{value:1,label:n("按周期")},{value:2,label:n("按流量")}],s=j([]),l=j([]);ut([l,i],d=>{s.value=d[0].filter(f=>{if(d[1]===0)return 1;if(d[1]===1)return!((f.onetime_price||0)>0);if(d[1]===2)return(f.onetime_price||0)>0})});async function c(){const{data:d}=await FJ();d.forEach(f=>{const h=u(f);f.price=h.price,f.cycle=h.cycle}),l.value=d}hn(()=>{c()});function u(d){return d.onetime_price!==null?{price:d.onetime_price/100,cycle:n("一次性")}:d.month_price!==null?{price:d.month_price/100,cycle:n("月付")}:d.quarter_price!==null?{price:d.quarter_price/100,cycle:n("季付")}:d.half_year_price!==null?{price:d.half_year_price/100,cycle:n("半年付")}:d.year_price!==null?{price:d.year_price/100,cycle:n("年付")}:d.two_year_price!==null?{price:d.two_year_price/100,cycle:n("两年付")}:d.three_year_price!==null?{price:d.three_year_price/100,cycle:n("三年付")}:{price:0,cycle:n("错误")}}return(d,f)=>{const h=gW,p=n2,g=Hk,m=Nk,b=Xo,w=zt,C=vo,_=bo;return ve(),We(_,null,{default:ge(()=>[Q("div",IBe,[Q("h2",OBe,pe(d.$t("选择最适合你的计划")),1),se(p,{value:i.value,"onUpdate:value":f[0]||(f[0]=S=>i.value=S),name:"plan_select",class:""},{default:ge(()=>[(ve(),ze(rt,null,Fn(a,S=>se(h,{key:S.value,value:S.value,label:S.label,style:{background:"--n-color"}},null,8,["value","label"])),64))]),_:1},8,["value"]),Q("section",MBe,[(ve(!0),ze(rt,null,Fn(s.value,S=>(ve(),ze("div",{class:"card-item min-w-75 cursor-pointer",key:S.id,onClick:y=>d.$router.push("/plan/"+S.id)},[se(C,{title:S.name,hoverable:"",class:"max-w-full w-375"},{"header-extra":ge(()=>{var y;return[Q("div",FBe,[Q("span",DBe,pe((y=ke(t).appConfig)==null?void 0:y.currency_symbol)+" "+pe(S.price),1),Q("span",LBe," /"+pe(S.cycle),1)])]}),action:ge(()=>[se(w,{strong:"",secondary:"",type:"primary"},{default:ge(()=>[nt(pe(d.$t("立即订阅")),1)]),_:1})]),default:ge(()=>[ke(CE)(S.content)?(ve(),ze("div",BBe,[(ve(!0),ze(rt,null,Fn(JSON.parse(S.content),(y,x)=>(ve(),ze("div",{key:x,class:qn(["vertical-center flex items-center",y.support?"":"opacity-30"])},[se(b,{size:"30",class:"flex items-center text-[--primary-color]"},{default:ge(()=>[y.support?(ve(),We(g,{key:0})):(ve(),We(m,{key:1}))]),_:2},1024),Q("div",null,pe(y.feature),1)],2))),128))])):(ve(),ze("div",{key:1,innerHTML:r(S.content||""),class:"markdown-body"},null,8,NBe))]),_:2},1032,["title"])],8,zBe))),128))])])]),_:1})}}}),jBe=Gu(HBe,[["__scopeId","data-v-16d7c058"]]),UBe=Object.freeze(Object.defineProperty({__proto__:null,default:jBe},Symbol.toStringTag,{value:"Module"})),VBe={class:"inline-block",viewBox:"0 0 576 512",width:"1em",height:"1em"},WBe=Q("path",{fill:"currentColor",d:"M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64v-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6v-64c0-35.3-28.7-64-64-64zm64 112v160c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16m-32-16c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32v192c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32z"},null,-1),qBe=[WBe];function KBe(e,t){return ve(),ze("svg",VBe,[...qBe])}const GBe={name:"fa6-solid-ticket",render:KBe},XBe={key:1,class:"grid grid-cols-1 lg:grid-cols-2 gap-5 mt-5"},YBe={class:"space-y-5"},QBe={key:0},JBe=["innerHTML"],ZBe=["onClick"],e9e={class:"space-y-5"},t9e={class:"bg-gray-800 rounded-lg p-5 text-white"},n9e={class:"flex items-center gap-3"},o9e=["placeholder"],r9e={class:"bg-gray-800 rounded-lg p-5 text-white space-y-4"},i9e={class:"text-lg font-semibold"},a9e={class:"flex justify-between items-center py-3 border-b border-gray-600"},s9e={class:"font-semibold"},l9e={key:0,class:"flex justify-between items-center py-3 border-b border-gray-600"},c9e={class:"text-gray-300"},u9e={class:"text-sm text-gray-400"},d9e={class:"font-semibold text-green-400"},f9e={class:"py-3"},h9e={class:"text-gray-300 mb-2"},p9e={class:"text-3xl font-bold"},m9e=ye({__name:"detail",setup(e){const t=Tn(),n=ea(),o=La(),r=V=>mn.global.t(V),i=j(Number(o.params.plan_id)),a=j(),s=j(!0),l=j(),c=j(0),u={month_price:r("月付"),quarter_price:r("季付"),half_year_price:r("半年付"),year_price:r("年付"),two_year_price:r("两年付"),three_year_price:r("三年付"),onetime_price:r("一次性"),reset_price:r("流量重置包")},d=j(""),f=j(!1),h=j(),p=j(!1),g=M(()=>a.value?Object.entries(u).filter(([V])=>a.value[V]!==null&&a.value[V]!==void 0).map(([V,ae])=>({name:ae,key:V})):[]),m=M(()=>{var V;return((V=t.appConfig)==null?void 0:V.currency_symbol)||"¥"}),b=M(()=>{var V;return(V=g.value[c.value])==null?void 0:V.key}),w=M(()=>!a.value||!b.value?0:a.value[b.value]||0),C=M(()=>{if(!h.value||!w.value)return 0;const{type:V,value:ae}=h.value;return V===1?ae:Math.floor(ae*w.value/100)}),_=M(()=>Math.max(0,w.value-C.value)),S=M(()=>{var ae;const V=(ae=a.value)==null?void 0:ae.content;if(!V)return!1;try{return JSON.parse(V),!0}catch{return!1}}),y=M(()=>{var V;if(!S.value)return[];try{return JSON.parse(((V=a.value)==null?void 0:V.content)||"[]")}catch{return[]}}),x=M(()=>{var ae;return S.value||!((ae=a.value)!=null&&ae.content)?"":new rd({html:!0}).render(a.value.content)}),k=V=>{var ae;return sn(((ae=a.value)==null?void 0:ae[V])||0)},P=async()=>{if(d.value.trim()){f.value=!0;try{const{data:V}=await YJ(d.value,i.value);V&&(h.value=V,window.$message.success(r("优惠券验证成功")))}catch{h.value=void 0}finally{f.value=!1}}},T=async()=>{var ae;const V=(ae=l.value)==null?void 0:ae.find(ue=>ue.status===0);if(V)return $(V.trade_no);if(E())return G();await B()},$=V=>{window.$dialog.confirm({title:r("注意"),type:"info",content:r("你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?"),positiveText:r("确认取消"),negativeText:r("返回我的订单"),async confirm(){const{data:ae}=await qu(V);ae&&await B()},cancel:()=>Gt.push("/order")})},E=()=>n.plan_id&&n.plan_id!=i.value&&(n.expired_at===null||n.expired_at>=Math.floor(Date.now()/1e3)),G=()=>{window.$dialog.confirm({title:r("注意"),type:"info",content:r("请注意,变更订阅会导致当前订阅被覆盖。"),confirm:()=>B()})},B=async()=>{var V;if(b.value){p.value=!0;try{const{data:ae}=await hk(i.value,b.value,(V=h.value)==null?void 0:V.code);ae&&(window.$message.success(r("订单提交成功,正在跳转支付")),setTimeout(()=>Gt.push("/order/"+ae),500))}finally{p.value=!1}}},D=async()=>{s.value=!0;try{const{data:V}=await XJ(i.value);V?a.value=V:Gt.push("/plan")}finally{s.value=!1}},L=async()=>{const{data:V}=await qm();l.value=V};return hn(async()=>{await Promise.all([D(),L()])}),(V,ae)=>{const ue=xl,ee=Zi,R=Hk,A=Nk,Y=Xo,W=vo,oe=Ji,K=GBe,le=zt,N=Bk,be=bo;return ve(),We(be,null,{default:ge(()=>{var Ie,Ne,F;return[s.value?(ve(),We(ee,{key:0,vertical:"",class:"mt-5"},{default:ge(()=>[se(ue,{height:"20px",width:"33%"}),se(ue,{height:"20px",width:"66%"}),se(ue,{height:"20px"})]),_:1})):(ve(),ze("div",XBe,[Q("div",YBe,[se(W,{title:(Ie=a.value)==null?void 0:Ie.name,class:"rounded-lg"},{default:ge(()=>[S.value?(ve(),ze("div",QBe,[(ve(!0),ze(rt,null,Fn(y.value,(I,re)=>(ve(),ze("div",{key:re,class:qn(["flex items-center gap-3 py-2",I.support?"":"opacity-50"])},[se(Y,{size:"20",class:qn(I.support?"text-green-500":"text-red-500")},{default:ge(()=>[I.support?(ve(),We(R,{key:0})):(ve(),We(A,{key:1}))]),_:2},1032,["class"]),Q("span",null,pe(I.feature),1)],2))),128))])):(ve(),ze("div",{key:1,innerHTML:x.value,class:"markdown-body"},null,8,JBe))]),_:1},8,["title"]),se(W,{title:V.$t("付款周期"),class:"rounded-lg","content-style":"padding:0"},{default:ge(()=>[(ve(!0),ze(rt,null,Fn(g.value,(I,re)=>(ve(),ze("div",{key:I.key},[Q("div",{class:qn(["flex justify-between items-center p-5 text-base cursor-pointer border-2 transition-all duration-200 border-solid rounded-lg"," dark:hover:bg-primary/20",re===c.value?"border-primary dark:bg-primary/20":"border-transparent"]),onClick:_e=>c.value=re},[Q("div",{class:qn(["font-medium transition-colors",re===c.value?" dark:text-primary-400":"text-gray-900 dark:text-gray-100"])},pe(I.name),3),Q("div",{class:qn(["text-lg font-semibold transition-colors",re===c.value?"text-primary-600 dark:text-primary-400":"text-gray-700 dark:text-gray-300"])},pe(m.value)+pe(k(I.key)),3)],10,ZBe),red.value=I),placeholder:r("有优惠券?"),class:"flex-1 bg-transparent border-none outline-none text-white placeholder-gray-400"},null,8,o9e),[[BT,d.value]]),se(le,{type:"primary",loading:f.value,disabled:f.value||!d.value.trim(),onClick:P},{icon:ge(()=>[se(K)]),default:ge(()=>[nt(" "+pe(V.$t("验证")),1)]),_:1},8,["loading","disabled"])])]),Q("div",r9e,[Q("h3",i9e,pe(V.$t("订单总额")),1),Q("div",a9e,[Q("span",null,pe((Ne=a.value)==null?void 0:Ne.name),1),Q("span",s9e,pe(m.value)+pe(k(b.value)),1)]),h.value&&C.value>0?(ve(),ze("div",l9e,[Q("div",null,[Q("div",c9e,pe(V.$t("折扣")),1),Q("div",u9e,pe(h.value.name),1)]),Q("span",d9e,"-"+pe(m.value)+pe(ke(sn)(C.value)),1)])):Ct("",!0),Q("div",f9e,[Q("div",h9e,pe(V.$t("总计")),1),Q("div",p9e,pe(m.value)+pe(ke(sn)(_.value))+" "+pe((F=ke(t).appConfig)==null?void 0:F.currency),1)]),se(le,{type:"primary",size:"large",class:"w-full",loading:p.value,disabled:p.value,onClick:T},{icon:ge(()=>[se(N)]),default:ge(()=>[nt(" "+pe(V.$t("下单")),1)]),_:1},8,["loading","disabled"])])])]))]}),_:1})}}}),g9e=Object.freeze(Object.defineProperty({__proto__:null,default:m9e},Symbol.toStringTag,{value:"Module"})),v9e={class:"inline-block",viewBox:"0 0 256 256",width:"1em",height:"1em"},b9e=Q("path",{fill:"currentColor",d:"M216 64H56a8 8 0 0 1 0-16h136a8 8 0 0 0 0-16H56a24 24 0 0 0-24 24v128a24 24 0 0 0 24 24h160a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16m-36 80a12 12 0 1 1 12-12a12 12 0 0 1-12 12"},null,-1),y9e=[b9e];function x9e(e,t){return ve(),ze("svg",v9e,[...y9e])}const C9e={name:"ph-wallet-fill",render:x9e},w9e={class:"text-5xl font-normal"},_9e={class:"ml-5 text-xl text-gray-500"},S9e={class:"text-gray-500"},k9e={class:"mt-2.5 max-w-125"},P9e={class:"mt-2.5 max-w-125"},T9e={class:"mt-2.5 max-w-125"},A9e={class:"mt-2.5 max-w-125"},R9e={class:"mb-1"},E9e={class:"mt-2.5 max-w-125"},$9e={class:"mb-1"},I9e={class:"m-0 pb-2.5 pt-2.5 text-xl"},O9e={class:"mt-5"},M9e=["href"],z9e={class:"mt-5"},F9e={class:"m-0 pb-2.5 pt-2.5 text-xl"},D9e={class:"mt-5"},L9e={class:"flex justify-end"},B9e=ye({__name:"index",setup(e){const t=ea(),n=Tn(),o=C=>mn.global.t(C),r=j(""),i=j(""),a=j(""),s=j(!1);async function l(){if(s.value=!0,i.value!==a.value){window.$message.error(o("两次新密码输入不同"));return}const{data:C}=await VJ(r.value,i.value);C===!0&&window.$message.success(o("密码修改成功")),s.value=!1}const c=j(!1),u=j(!1);async function d(C){if(C==="expire"){const{data:_}=await P1({remind_expire:c.value?1:0});_===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),c.value=!c.value)}else if(C==="traffic"){const{data:_}=await P1({remind_traffic:u.value?1:0});_===!0?window.$message.success(o("更新成功")):(window.$message.error(o("更新失败")),u.value=!u.value)}}const f=j(),h=j(!1);async function p(){const{data:C}=await rZ();C&&(f.value=C)}function g(C){window.location.href=C}const m=j(!1);async function b(){const{data:C}=await WJ();C&&window.$message.success(o("重置成功"))}async function w(){t.getUserInfo(),c.value=!!t.remind_expire,u.value=!!t.remind_traffic}return hn(()=>{w()}),(C,_)=>{const S=C9e,y=vo,x=dr,k=zt,P=$Q,T=vl,$=Ji,E=PQ,G=ri,B=bo;return ve(),We(B,null,{default:ge(()=>{var D,L,X,V;return[se(y,{title:C.$t("我的钱包"),class:"rounded-md"},{"header-extra":ge(()=>[se(S,{class:"text-4xl text-gray-500"})]),default:ge(()=>{var ae;return[Q("div",null,[Q("span",w9e,pe(ke(sn)(ke(t).balance)),1),Q("span",_9e,pe((ae=ke(n).appConfig)==null?void 0:ae.currency),1)]),Q("div",S9e,pe(C.$t("账户余额(仅消费)")),1)]}),_:1},8,["title"]),se(y,{title:C.$t("修改密码"),class:"mt-5 rounded-md"},{default:ge(()=>[Q("div",k9e,[Q("label",null,pe(C.$t("旧密码")),1),se(x,{type:"password",value:r.value,"onUpdate:value":_[0]||(_[0]=ae=>r.value=ae),placeholder:C.$t("请输入旧密码"),maxlength:32},null,8,["value","placeholder"])]),Q("div",P9e,[Q("label",null,pe(C.$t("新密码")),1),se(x,{type:"password",value:i.value,"onUpdate:value":_[1]||(_[1]=ae=>i.value=ae),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),Q("div",T9e,[Q("label",null,pe(C.$t("新密码")),1),se(x,{type:"password",value:a.value,"onUpdate:value":_[2]||(_[2]=ae=>a.value=ae),placeholder:C.$t("请输入新密码"),maxlength:32},null,8,["value","placeholder"])]),se(k,{class:"mt-5",type:"primary",onClick:l,loading:s.value,disabled:s.value},{default:ge(()=>[nt(pe(C.$t("保存")),1)]),_:1},8,["loading","disabled"])]),_:1},8,["title"]),se(y,{title:C.$t("通知"),class:"mt-5 rounded-md"},{default:ge(()=>[Q("div",A9e,[Q("div",R9e,pe(C.$t("到期邮件提醒")),1),se(P,{value:c.value,"onUpdate:value":[_[3]||(_[3]=ae=>c.value=ae),_[4]||(_[4]=ae=>d("expire"))]},null,8,["value"])]),Q("div",E9e,[Q("div",$9e,pe(C.$t("流量邮件提醒")),1),se(P,{value:u.value,"onUpdate:value":[_[5]||(_[5]=ae=>u.value=ae),_[6]||(_[6]=ae=>d("traffic"))]},null,8,["value"])])]),_:1},8,["title"]),(L=(D=ke(n))==null?void 0:D.appConfig)!=null&&L.is_telegram?(ve(),We(y,{key:0,title:C.$t("绑定Telegram"),class:"mt-5 rounded-md"},{"header-extra":ge(()=>[se(k,{type:"primary",round:"",disabled:ke(t).userInfo.telegram_id,onClick:_[7]||(_[7]=ae=>(h.value=!0,p(),ke(t).getUserSubscribe()))},{default:ge(()=>[nt(pe(ke(t).userInfo.telegram_id?C.$t("已绑定"):C.$t("立即开始")),1)]),_:1},8,["disabled"])]),_:1},8,["title"])):Ct("",!0),(V=(X=ke(n))==null?void 0:X.appConfig)!=null&&V.telegram_discuss_link?(ve(),We(y,{key:1,title:C.$t("Telegram 讨论组"),class:"mt-5 rounded-md"},{"header-extra":ge(()=>[se(k,{type:"primary",round:"",onClick:_[8]||(_[8]=ae=>{var ue,ee;return g((ee=(ue=ke(n))==null?void 0:ue.appConfig)==null?void 0:ee.telegram_discuss_link)})},{default:ge(()=>[nt(pe(C.$t("立即加入")),1)]),_:1})]),_:1},8,["title"])):Ct("",!0),se(y,{title:C.$t("重置订阅信息"),class:"mt-5 rounded-md"},{default:ge(()=>[se(T,{type:"warning"},{default:ge(()=>[nt(pe(C.$t("当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。")),1)]),_:1}),se(k,{type:"error",size:"small",class:"mt-2.5",onClick:_[9]||(_[9]=ae=>m.value=!0)},{default:ge(()=>[nt(pe(C.$t("重置")),1)]),_:1})]),_:1},8,["title"]),se(G,{title:C.$t("绑定Telegram"),preset:"card",show:h.value,"onUpdate:show":_[12]||(_[12]=ae=>h.value=ae),class:"mx-2.5 max-w-full w-150 md:mx-auto",footerStyle:"padding: 10px 16px",segmented:{content:!0,footer:!0}},{footer:ge(()=>[Q("div",L9e,[se(k,{type:"primary",onClick:_[11]||(_[11]=ae=>h.value=!1)},{default:ge(()=>[nt(pe(C.$t("我知道了")),1)]),_:1})])]),default:ge(()=>{var ae,ue,ee;return[f.value&&ke(t).subscribe?(ve(),ze(rt,{key:0},[Q("div",null,[Q("h2",I9e,pe(C.$t("第一步")),1),se($,{class:"m-0!"}),Q("div",O9e,[nt(pe(C.$t("打开Telegram搜索"))+" ",1),Q("a",{href:"https://t.me/"+((ae=f.value)==null?void 0:ae.username)},"@"+pe((ue=f.value)==null?void 0:ue.username),9,M9e)])]),Q("div",z9e,[Q("h2",F9e,pe(C.$t("第二步")),1),se($,{class:"m-0!"}),Q("div",D9e,pe(C.$t("向机器人发送你的")),1),Q("code",{class:"cursor-pointer",onClick:_[10]||(_[10]=R=>{var A;return ke(Xs)("/bind "+((A=ke(t).subscribe)==null?void 0:A.subscribe_url))})},"/bind "+pe((ee=ke(t).subscribe)==null?void 0:ee.subscribe_url),1)])],64)):(ve(),We(E,{key:1,size:"large"}))]}),_:1},8,["title","show"]),se(G,{show:m.value,"onUpdate:show":_[13]||(_[13]=ae=>m.value=ae),preset:"dialog",title:C.$t("确定要重置订阅信息?"),content:C.$t("如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。"),"positive-text":C.$t("确认"),"negative-text":C.$t("取消"),onPositiveClick:b},null,8,["show","title","content","positive-text","negative-text"])]}),_:1})}}}),N9e=Object.freeze(Object.defineProperty({__proto__:null,default:B9e},Symbol.toStringTag,{value:"Module"})),H9e={class:"flex justify-end"},j9e=ye({__name:"index",setup(e){const t=h=>mn.global.t(h),n=[{label:t("低"),value:0},{label:t("中"),value:1},{label:t("高"),value:2}],o=[{title:t("主题"),key:"subject"},{title:t("工单级别"),key:"u",render(h){return n[h.level].label}},{title:t("工单状态"),key:"status",render(h){const p=v("div",{class:["h-1.5 w-1.5 rounded-full mr-1.3",h.status===1?"bg-green-500":h.reply_status===0?"bg-blue-500":"bg-red-500"]}),g=h.status===1?t("已关闭"):h.reply_status===0?t("已回复"):t("待回复");return v("div",{class:"flex items-center"},[p,g])}},{title:t("创建时间"),key:"created_at",render(h){return Wo(h.created_at)}},{title:t("最后回复时间"),key:"updated_at",render(h){return Wo(h.updated_at)}},{title:t("操作"),key:"actions",fixed:"right",render(h){const p=v(zt,{text:!0,type:"primary",onClick:()=>Gt.push(`/ticket/${h.id}`)},{default:()=>t("查看")}),g=v(zt,{text:!0,type:"primary",disabled:h.status===1,onClick:()=>c(h.id)},{default:()=>t("关闭")}),m=v(Ji,{vertical:!0});return v("div",[p,m,g])}}],r=j(!1),i=j(""),a=j(),s=j("");async function l(){const{data:h}=await JJ(i.value,a.value,s.value);h===!0&&(window.$message.success(t("创建成功")),f(),r.value=!1)}async function c(h){const{data:p}=await ZJ(h);p&&(window.$message.success(t("关闭成功")),f())}const u=j([]);async function d(){const{data:h}=await QJ();u.value=h}function f(){d()}return hn(()=>{f()}),(h,p)=>{const g=dr,m=Lu,b=Zi,w=vo,C=ri,_=ju,S=bo;return ve(),We(S,null,{default:ge(()=>[se(C,{show:r.value,"onUpdate:show":p[6]||(p[6]=y=>r.value=y)},{default:ge(()=>[se(w,{title:h.$t("新的工单"),class:"mx-2.5 max-w-full w-150 md:mx-auto",segmented:{content:!0,footer:!0},closable:"",onClose:p[5]||(p[5]=y=>r.value=!1)},{footer:ge(()=>[Q("div",H9e,[se(b,null,{default:ge(()=>[se(ke(zt),{onClick:p[3]||(p[3]=y=>r.value=!1)},{default:ge(()=>[nt(pe(h.$t("取消")),1)]),_:1}),se(ke(zt),{type:"primary",onClick:p[4]||(p[4]=y=>l())},{default:ge(()=>[nt(pe(h.$t("确认")),1)]),_:1})]),_:1})])]),default:ge(()=>[Q("div",null,[Q("label",null,pe(h.$t("主题")),1),se(g,{value:i.value,"onUpdate:value":p[0]||(p[0]=y=>i.value=y),class:"mt-1",placeholder:h.$t("请输入工单主题")},null,8,["value","placeholder"])]),Q("div",null,[Q("label",null,pe(h.$t("工单级别")),1),se(m,{value:a.value,"onUpdate:value":p[1]||(p[1]=y=>a.value=y),options:n,placeholder:h.$t("请选项工单等级"),class:"mt-1"},null,8,["value","placeholder"])]),Q("div",null,[Q("label",null,pe(h.$t("消息")),1),se(g,{value:s.value,"onUpdate:value":p[2]||(p[2]=y=>s.value=y),type:"textarea",placeholder:h.$t("请描述你遇到的问题"),round:"",class:"mt-1"},null,8,["value","placeholder"])])]),_:1},8,["title"])]),_:1},8,["show"]),se(w,{class:"rounded-md",title:h.$t("工单历史")},{"header-extra":ge(()=>[se(ke(zt),{type:"primary",round:"",onClick:p[7]||(p[7]=y=>r.value=!0)},{default:ge(()=>[nt(pe(h.$t("新的工单")),1)]),_:1})]),default:ge(()=>[se(_,{columns:o,data:u.value,"scroll-x":800},null,8,["data"])]),_:1},8,["title"])]),_:1})}}}),U9e=Object.freeze(Object.defineProperty({__proto__:null,default:j9e},Symbol.toStringTag,{value:"Module"})),V9e={class:"relative",style:{height:"calc(100% - 70px)"}},W9e={class:"mb-2 mt-2 text-sm text-gray-500"},q9e={class:"mb-2 inline-block rounded-md bg-gray-50 pb-8 pl-4 pr-4 pt-2"},K9e=ye({__name:"detail",setup(e){const t=La(),n=h=>mn.global.t(h),o=j("");async function r(){const{data:h}=await tZ(i.value,o.value);h===!0&&(window.$message.success(n("回复成功")),o.value="",f())}const i=j(),a=j();async function s(){const{data:h}=await eZ(i.value);h&&(a.value=h)}const l=j(null),c=j(null),u=async()=>{const h=l.value,p=c.value;h&&p&&h.scrollBy({top:p.scrollHeight,behavior:"auto"})},d=j();async function f(){await s(),await Ht(),u(),d.value=setInterval(s,2e3)}return hn(()=>{i.value=t.params.ticket_id,f()}),(h,p)=>{const g=vQ,m=dr,b=zt,w=_m,C=vo,_=bo;return ve(),We(_,null,{default:ge(()=>{var S;return[se(C,{title:(S=a.value)==null?void 0:S.subject,class:"h-full overflow-hidden"},{default:ge(()=>[Q("div",V9e,[se(g,{class:"absolute right-0 h-full",ref_key:"scrollbarRef",ref:l},{default:ge(()=>{var y;return[Q("div",{ref_key:"scrollContainerRef",ref:c},[(ve(!0),ze(rt,null,Fn((y=a.value)==null?void 0:y.message,x=>(ve(),ze("div",{key:x.id,class:qn([x.is_me?"text-right":"text-left"])},[Q("div",W9e,pe(ke(Wo)(x.created_at)),1),Q("div",q9e,pe(x.message),1)],2))),128))],512)]}),_:1},512)]),se(w,{size:"large",class:"mt-8"},{default:ge(()=>[se(m,{type:"text",size:"large",placeholder:h.$t("输入内容回复工单"),autofocus:!0,value:o.value,"onUpdate:value":p[0]||(p[0]=y=>o.value=y),onKeyup:p[1]||(p[1]=Ss(y=>r(),["enter"]))},null,8,["placeholder","value"]),se(b,{type:"primary",size:"large",onClick:p[2]||(p[2]=y=>r())},{default:ge(()=>[nt(pe(h.$t("回复")),1)]),_:1})]),_:1})]),_:1},8,["title"])]}),_:1})}}}),G9e=Object.freeze(Object.defineProperty({__proto__:null,default:K9e},Symbol.toStringTag,{value:"Module"})),X9e=ye({__name:"index",setup(e){const t=i=>mn.global.t(i),n=[{title:t("记录时间"),key:"record_at",render(i){return Np(i.record_at)}},{title:t("实际上行"),key:"u",render(i){return As(i.u/parseFloat(i.server_rate))}},{title:t("实际下行"),key:"d",render(i){return As(i.d/parseFloat(i.server_rate))}},{title:t("扣费倍率"),key:"server_rate",render(i){return v(Ri,{size:"small",round:!0},{default:()=>i.server_rate+" x"})}},{title(){const i=v(Nu,{placement:"bottom",trigger:"hover"},{trigger:()=>v(rl("mdi-help-circle-outline",{size:16})),default:()=>t("公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量")});return v("div",{class:"flex items-center"},[t("总计"),i])},key:"total",fixed:"right",render(i){return As(i.d+i.u)}}],o=j([]);async function r(){const{data:i}=await qJ();o.value=i}return hn(()=>{r()}),(i,a)=>{const s=vl,l=ju,c=vo,u=bo;return ve(),We(u,null,{default:ge(()=>[se(c,{class:"rounded-md"},{default:ge(()=>[se(s,{type:"info",bordered:!1,class:"mb-5"},{default:ge(()=>[nt(pe(i.$t("流量明细仅保留近月数据以供查询。")),1)]),_:1}),se(l,{columns:n,data:o.value,"scroll-x":600},null,8,["data"])]),_:1})]),_:1})}}}),Y9e=Object.freeze(Object.defineProperty({__proto__:null,default:X9e},Symbol.toStringTag,{value:"Module"})),Q9e={name:"NOTFOUND"},J9e={"h-full":"",flex:""};function Z9e(e,t,n,o,r,i){const a=zt,s=pQ;return ve(),ze("div",J9e,[se(s,{"m-auto":"",status:"404",title:"404 Not Found",description:""},{footer:ge(()=>[se(a,null,{default:ge(()=>[nt("Find some fun")]),_:1})]),_:1})])}const e7e=Gu(Q9e,[["render",Z9e]]),t7e=Object.freeze(Object.defineProperty({__proto__:null,default:e7e},Symbol.toStringTag,{value:"Module"})),n7e={class:"inline-block",viewBox:"0 0 24 24",width:"1em",height:"1em"},o7e=Q("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},[Q("path",{d:"M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2S2 6.477 2 12"}),Q("path",{d:"M13 2.05S16 6 16 12s-3 9.95-3 9.95m-2 0S8 18 8 12s3-9.95 3-9.95M2.63 15.5h18.74m-18.74-7h18.74"})],-1),r7e=[o7e];function i7e(e,t){return ve(),ze("svg",n7e,[...r7e])}const a7e={name:"iconoir-language",render:i7e},s7e={class:"inline-block",viewBox:"0 0 32 32",width:"1em",height:"1em"},l7e=Q("path",{fill:"currentColor",d:"M26 30H14a2 2 0 0 1-2-2v-3h2v3h12V4H14v3h-2V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v24a2 2 0 0 1-2 2"},null,-1),c7e=Q("path",{fill:"currentColor",d:"M14.59 20.59L18.17 17H4v-2h14.17l-3.58-3.59L16 10l6 6l-6 6z"},null,-1),u7e=[l7e,c7e];function d7e(e,t){return ve(),ze("svg",s7e,[...u7e])}const f7e={name:"carbon-login",render:d7e},h7e=ye({__name:"vueRecaptcha",props:{sitekey:{type:String,required:!0},size:{type:String,required:!1,default:"normal"},theme:{type:String,required:!1,default:"light"},hl:{type:String,required:!1},loadingTimeout:{type:Number,required:!1,default:0}},emits:{verify:e=>e!=null&&e!="",error:e=>e,expire:null,fail:null},setup(e,{expose:t,emit:n}){const o=e,r=j(null);let i=null;t({execute:function(){window.grecaptcha.execute(i)},reset:function(){window.grecaptcha.reset(i)}});function a(){i=window.grecaptcha.render(r.value,{sitekey:o.sitekey,theme:o.theme,size:o.size,callback:s=>n("verify",s),"expired-callback":()=>n("expire"),"error-callback":()=>n("fail")})}return jt(()=>{window.grecaptcha==null?new Promise((s,l)=>{let c,u=!1;window.recaptchaReady=function(){u||(u=!0,clearTimeout(c),s())};const d="recaptcha-script",f=g=>()=>{var m;u||(u=!0,clearTimeout(c),(m=document.getElementById(d))==null||m.remove(),l(g))};o.loadingTimeout>0&&(c=setTimeout(f("timeout"),o.loadingTimeout));const h=window.document,p=h.createElement("script");p.id=d,p.onerror=f("error"),p.onabort=f("aborted"),p.setAttribute("src",`https://www.recaptcha.net/recaptcha/api.js?onload=recaptchaReady&render=explicit&hl=${o.hl}&_=${+new Date}`),h.head.appendChild(p)}).then(()=>{a()}).catch(s=>{n("error",s)}):a()}),(s,l)=>(ve(),ze("div",{ref_key:"recaptchaDiv",ref:r},null,512))}}),p7e="https://challenges.cloudflare.com/turnstile/v0/api.js",uy="cfTurnstileOnLoad";let oc=typeof window<"u"&&window.turnstile!==void 0?"ready":"unloaded",Rf;const m7e=ye({name:"VueTurnstile",emits:["update:modelValue","error","unsupported","expired","before-interactive","after-interactive"],props:{siteKey:{type:String,required:!0},modelValue:{type:String,required:!0},resetInterval:{type:Number,required:!1,default:295*1e3},size:{type:String,required:!1,default:"normal"},theme:{type:String,required:!1,default:"auto"},language:{type:String,required:!1,default:"auto"},action:{type:String,required:!1,default:""},appearance:{type:String,required:!1,default:"always"},renderOnMount:{type:Boolean,required:!1,default:!0}},data(){return{resetTimeout:void 0,widgetId:void 0}},computed:{turnstileOptions(){return{sitekey:this.siteKey,theme:this.theme,language:this.language,size:this.size,callback:this.callback,action:this.action,appearance:this.appearance,"error-callback":this.errorCallback,"expired-callback":this.expiredCallback,"unsupported-callback":this.unsupportedCallback,"before-interactive-callback":this.beforeInteractiveCallback,"after-interactive-callback":this.afterInteractivecallback}}},methods:{afterInteractivecallback(){this.$emit("after-interactive")},beforeInteractiveCallback(){this.$emit("before-interactive")},expiredCallback(){this.$emit("expired")},unsupportedCallback(){this.$emit("unsupported")},errorCallback(e){this.$emit("error",e)},callback(e){this.$emit("update:modelValue",e),this.startResetTimeout()},reset(){window.turnstile&&(this.$emit("update:modelValue",""),window.turnstile.reset())},remove(){this.widgetId&&(window.turnstile.remove(this.widgetId),this.widgetId=void 0)},render(){this.widgetId=window.turnstile.render(this.$refs.turnstile,this.turnstileOptions)},startResetTimeout(){this.resetTimeout=setTimeout(()=>{this.reset()},this.resetInterval)}},async mounted(){const e=new Promise((t,n)=>{Rf={resolve:t,reject:n},oc==="ready"&&t(void 0)});window[uy]=()=>{Rf.resolve(),oc="ready"},await(()=>{if(oc==="unloaded"){oc="loading";const t=`${p7e}?onload=${uy}&render=explicit`,n=document.createElement("script");n.src=t,n.async=!0,n.addEventListener("error",()=>{Rf.reject("Failed to load Turnstile.")}),document.head.appendChild(n)}return e})(),this.renderOnMount&&this.render()},beforeUnmount(){this.remove(),clearTimeout(this.resetTimeout)}}),g7e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},v7e={ref:"turnstile"};function b7e(e,t,n,o,r,i){return ve(),ze("div",v7e,null,512)}const y7e=g7e(m7e,[["render",b7e]]);var jk={},Ma={},_l={},x7e=Hr&&Hr.__awaiter||function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(d){a(d)}}function l(u){try{c(o.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):r(u.value).then(s,l)}c((o=o.apply(e,t||[])).next())})},C7e=Hr&&Hr.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(o=1,r&&(i=c[0]&2?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===zr.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===zr.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,i){e.successfulLoadingConsumers.push(function(a){return r(a)}),e.errorLoadingRunnable.push(function(a){return i(a)})});e.instanceSiteKey=t,e.setLoadingState(zr.LOADING);var o=new e;return new Promise(function(r,i){o.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(zr.LOADED);var a=o.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),s=new _7e.ReCaptchaInstance(t,a,grecaptcha);e.successfulLoadingConsumers.forEach(function(l){return l(s)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&s.hideBadge(),e.instance=s,r(s)}).catch(function(a){e.errorLoadingRunnable.forEach(function(s){return s(a)}),e.errorLoadingRunnable=[],i(a)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?zr.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,o,r,i){var a=this;n===void 0&&(n=!1),o===void 0&&(o=!1),r===void 0&&(r={}),i===void 0&&(i="");var s=document.createElement("script");s.setAttribute("recaptcha-v3-script",""),s.setAttribute("async",""),s.setAttribute("defer","");var l="https://www.google.com/recaptcha/api.js";n?o?l="https://recaptcha.net/recaptcha/enterprise.js":l="https://recaptcha.net/recaptcha/api.js":o&&(l="https://www.google.com/recaptcha/enterprise.js"),i&&(l=i),r.render&&(r.render=void 0);var c=this.buildQueryString(r);return s.src=l+"?render=explicit"+c,new Promise(function(u,d){s.addEventListener("load",a.waitForScriptToLoad(function(){u(s)},o),!1),s.onerror=function(f){e.setLoadingState(zr.NOT_LOADED),d(f)},document.head.appendChild(s)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(o){return!!t[o]}).map(function(o){return o+"="+t[o]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,o,r){var i=Yh({sitekey:n},o);return o.container?r?t.enterprise.render(o.container,i):t.render(o.container,i):r?t.enterprise.render(i):t.render(i)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Ma.load=Uk.load;Ma.getInstance=Uk.getInstance;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Ma;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=_l;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(jk);const S7e=e=>_t({url:"/passport/auth/login",method:"post",data:e}),k7e=e=>_t.get("/passport/auth/token2Login?verify="+encodeURIComponent(e.verify)+"&redirect="+encodeURIComponent(e.redirect)),P7e=e=>_t({url:"/passport/auth/register",method:"post",data:e});function T7e(){return _t.get("/guest/comm/config")}function A7e(e,t){return _t.post("/passport/comm/sendEmailVerify",{email:e,...t})}function R7e(e,t,n){return _t.post("/passport/auth/forget",{email:e,password:t,email_code:n})}const E7e={class:"p-6"},$7e={key:0,class:"text-center"},I7e=["src"],O7e={key:1,class:"text-center text-4xl font-normal",color:"#343a40"},M7e={class:"text-muted text-center text-sm font-normal",color:"#6c757d"},z7e={class:"mt-5 w-full"},F7e={class:"mt-5 w-full"},D7e={class:"mt-5 w-full"},L7e={class:"mt-5 w-full"},B7e={class:"mt-5 w-full"},N7e={class:"mt-5 w-full"},H7e=["innerHTML"],j7e={class:"mt-5 w-full"},U7e={class:"flex justify-between bg-[--n-color-embedded] px-6 py-4 text-gray-500"},V7e=ye({__name:"login",setup(e){const t=Tn(),n=Hx(),o=La(),r=R=>mn.global.t(R),i=j(null),a=j(!1),s=to({email:"",email_code:"",password:"",confirm_password:"",confirm:"",invite_code:"",lock_invite_code:!1,suffix:""}),l=j(!0),c=M(()=>{var A;const R=(A=m.value)==null?void 0:A.tos_url;return"
"+mn.global.tc('我已阅读并同意 服务条款',{url:R})+"
"}),u=j(!1),d=j(""),f=j(""),h=j(),p=j(),g=j(""),m=j(),b=M(()=>{var R,A;return(R=m.value)!=null&&R.is_captcha?((A=m.value)==null?void 0:A.captcha_type)||"recaptcha":null}),w=M(()=>{var R,A,Y,W;return((R=m.value)==null?void 0:R.is_captcha)&&(b.value==="recaptcha"&&((A=m.value)==null?void 0:A.recaptcha_site_key)||b.value==="recaptcha-v3"&&((Y=m.value)==null?void 0:Y.recaptcha_v3_site_key)||b.value==="turnstile"&&((W=m.value)==null?void 0:W.turnstile_site_key))});ut(f,R=>{R&&g.value&&_(R)});function C(R){if(R.startsWith("skip_recaptcha"))return console.log("跳过验证码验证,不发送验证码字段"),{};const A={};switch(b.value){case"recaptcha":A.recaptcha_data=R;break;case"recaptcha-v3":A.recaptcha_v3_token=R;break;case"turnstile":A.turnstile_token=R;break}return A}function _(R){console.log(`✅ ${b.value} 验证成功,获取到新token`),d.value=R,u.value=!1;const A=g.value;g.value="",A==="register"?V():A==="sendEmailVerify"&&G()}function S(){console.log(`${b.value} 验证失败`),d.value="",k()}async function y(){var R;if(!(!((R=m.value)!=null&&R.recaptcha_v3_site_key)||a.value))try{console.log("初始化 reCAPTCHA v3,site key:",m.value.recaptcha_v3_site_key);const A=await jk.load(m.value.recaptcha_v3_site_key,{autoHideBadge:!0});i.value=A,a.value=!0,console.log("reCAPTCHA v3 初始化完成")}catch(A){console.error("reCAPTCHA v3 初始化失败:",A)}}async function x(R){try{if(console.log("🔄 重新执行 reCAPTCHA v3 验证,action:",R),a.value||(console.log("reCAPTCHA v3 未加载,开始初始化"),await y()),!i.value)return console.error("reCAPTCHA v3 初始化失败,跳过验证码验证"),d.value="skip_recaptcha_v3",_("skip_recaptcha_v3"),!0;console.log("🚀 正在获取新的 reCAPTCHA v3 token, action:",R);const A=await i.value.execute(R);return console.log("✅ reCAPTCHA v3 新 token 获取结果:",A?"成功获取新token":"未获取到token"),A?(_(A),!0):(console.warn("⚠️ reCAPTCHA v3 没有返回有效 token"),!1)}catch(A){return console.error("❌ reCAPTCHA v3 验证失败:",A),console.warn("reCAPTCHA v3 验证失败,跳过验证码验证"),d.value="skip_recaptcha_v3_error",_("skip_recaptcha_v3_error"),!0}}function k(){var R,A;console.log(`🔄 重置 ${b.value} 验证码组件`),b.value==="recaptcha"&&((R=h.value)!=null&&R.reset)?(h.value.reset(),console.log("✅ reCAPTCHA v2 组件已重置")):b.value==="turnstile"&&((A=p.value)!=null&&A.reset)&&(p.value.reset(),console.log("✅ Turnstile 组件已重置")),f.value="",d.value=""}async function P(R){return w.value?(d.value="",console.log("显示验证码,操作:",R,"类型:",b.value,"- 重新获取验证码"),g.value=R,b.value==="recaptcha-v3"?await x(R):(k(),u.value=!0,!0)):!1}const T=j(!1),$=j(0);async function E(){if(s.email===""){window.$message.error(r("请输入邮箱地址"));return}if($.value>0){window.$message.warning(mn.global.tc("{second}秒后可重新发送",{second:$.value}));return}await P("sendEmailVerify")||G()}async function G(){T.value=!0;const R=s.suffix?`${s.email}${s.suffix}`:s.email;try{const A=d.value?C(d.value):void 0;console.log("📤 发送邮箱验证码,使用验证码token:",d.value?"是":"否");const{data:Y}=await A7e(R,A);if(Y===!0){window.$message.success(r("发送成功")),console.log("✅ 邮箱验证码发送成功,清空token以便下次重新获取"),d.value="",$.value=60;const W=setInterval(()=>{$.value--,$.value===0&&clearInterval(W)},1e3)}}catch(A){throw console.log("❌ 邮箱验证码发送失败,清空token"),d.value="",A}finally{T.value=!1}}async function B(){var A,Y;const{data:R}=await T7e();R&&(m.value=R,ab(R.email_whitelist_suffix)&&(s.suffix=(A=R.email_whitelist_suffix)!=null&&A[0]?"@"+((Y=R.email_whitelist_suffix)==null?void 0:Y[0]):""),R.tos_url&&(l.value=!1),R.captcha_type==="recaptcha-v3"&&R.recaptcha_v3_site_key&&await y())}const D=j(!1);async function L(){const{email:R,password:A,confirm_password:Y}=s;switch(ue.value){case"login":await X();break;case"register":if(s.email===""){window.$message.error(r("请输入邮箱地址"));return}if(!R||!A){window.$message.warning(r("请输入账号密码"));return}if(A!==Y){window.$message.warning(r("请确保两次密码输入一致"));return}if(await P("register"))return;V();break;case"forgetpassword":await ae();break}}async function X(){var Y;const{email:R,password:A}=s;if(!R||!A){window.$message.warning(r("请输入用户名和密码"));return}D.value=!0;try{const{data:W}=await S7e({email:R,password:A.toString()});W!=null&&W.auth_data&&(window.$message.success(r("登录成功")),pf(W==null?void 0:W.auth_data),n.push(((Y=o.query.redirect)==null?void 0:Y.toString())??"/dashboard"))}finally{D.value=!1}}async function V(){const{password:R,invite_code:A,email_code:Y}=s,W=s.suffix?`${s.email}${s.suffix}`:s.email;D.value=!0;try{const oe=d.value?C(d.value):{};console.log("📝 执行注册,使用验证码token:",d.value?"是":"否");const{data:K}=await P7e({email:W,password:R,invite_code:A,email_code:Y,...oe});K!=null&&K.auth_data&&(window.$message.success(r("注册成功")),pf(K.auth_data),console.log("✅ 注册成功,清空token"),d.value="",n.push("/"))}catch(oe){throw console.log("❌ 注册失败,清空token"),d.value="",oe}finally{D.value=!1}}async function ae(){const{email:R,password:A,confirm_password:Y,email_code:W}=s;if(R===""){window.$message.error(r("请输入邮箱地址"));return}if(!R||!A){window.$message.warning(r("请输入账号密码"));return}if(A!==Y){window.$message.warning(r("请确保两次密码输入一致"));return}D.value=!0;try{const oe=s.suffix?`${s.email}${s.suffix}`:s.email,{data:K}=await R7e(oe,A,W);K&&(window.$message.success(r("重置密码成功,正在返回登录")),setTimeout(()=>{n.push("/login")},500))}finally{D.value=!1}}const ue=M(()=>{const R=o.path;return R.includes("login")?"login":R.includes("register")?"register":R.includes("forgetpassword")?"forgetpassword":""}),ee=async()=>{["register","forgetpassword"].includes(ue.value)&&B(),o.query.code&&(s.lock_invite_code=!0,s.invite_code=o.query.code);const{verify:R,redirect:A}=o.query;if(R&&A){const{data:Y}=await k7e({verify:R,redirect:A});Y!=null&&Y.auth_data&&(window.$message.success(r("登录成功")),pf(Y==null?void 0:Y.auth_data),n.push(A.toString()))}};return Yt(()=>{ee()}),(R,A)=>{const Y=ri,W=dr,oe=Lu,K=_m,le=zt,N=bl,be=f7e,Ie=nu("router-link"),Ne=Ji,F=a7e,I=Am,re=vo;return ve(),ze(rt,null,[se(Y,{show:u.value,"onUpdate:show":A[1]||(A[1]=_e=>u.value=_e),"mask-closable":!1},{default:ge(()=>{var _e,ne;return[b.value==="recaptcha"&&((_e=m.value)!=null&&_e.recaptcha_site_key)?(ve(),We(ke(h7e),{key:0,sitekey:m.value.recaptcha_site_key,size:"normal",theme:"light","loading-timeout":3e4,onVerify:_,onExpire:S,onFail:S,onError:S,ref_key:"vueRecaptchaRef",ref:h},null,8,["sitekey"])):b.value==="turnstile"&&((ne=m.value)!=null&&ne.turnstile_site_key)?(ve(),We(ke(y7e),{key:1,siteKey:m.value.turnstile_site_key,theme:"auto",modelValue:f.value,"onUpdate:modelValue":A[0]||(A[0]=me=>f.value=me),onError:S,onExpired:S,ref_key:"vueTurnstileRef",ref:p},null,8,["siteKey","modelValue"])):Ct("",!0)]}),_:1},8,["show"]),Q("div",{class:"wh-full flex items-center justify-center",style:Li(ke(t).background_url&&`background:url(${ke(t).background_url}) no-repeat center center / cover;`)},[se(re,{class:"mx-auto max-w-md rounded-md bg-[--n-color] shadow-black","content-style":"padding: 0;"},{default:ge(()=>{var _e,ne,me;return[Q("div",E7e,[ke(t).logo?(ve(),ze("div",$7e,[Q("img",{src:ke(t).logo,class:"mb-1em max-w-full"},null,8,I7e)])):(ve(),ze("h1",O7e,pe(ke(t).title),1)),Q("h5",M7e,pe(ke(t).description||" "),1),Q("div",z7e,[se(K,null,{default:ge(()=>{var we,O,H;return[se(W,{value:s.email,"onUpdate:value":A[2]||(A[2]=te=>s.email=te),autofocus:"",placeholder:R.$t("邮箱"),maxlength:40},null,8,["value","placeholder"]),["register","forgetpassword"].includes(ue.value)&&ke(ab)((we=m.value)==null?void 0:we.email_whitelist_suffix)?(ve(),We(oe,{key:0,value:s.suffix,"onUpdate:value":A[3]||(A[3]=te=>s.suffix=te),options:((H=(O=m.value)==null?void 0:O.email_whitelist_suffix)==null?void 0:H.map(te=>({value:`@${te}`,label:`@${te}`})))||[],class:"flex-[1]","consistent-menu-width":!1},null,8,["value","options"])):Ct("",!0)]}),_:1})]),dn(Q("div",F7e,[se(K,{class:"flex"},{default:ge(()=>[se(W,{value:s.email_code,"onUpdate:value":A[4]||(A[4]=we=>s.email_code=we),placeholder:R.$t("邮箱验证码")},null,8,["value","placeholder"]),se(le,{type:"primary",onClick:A[5]||(A[5]=we=>E()),loading:T.value,disabled:T.value||$.value>0},{default:ge(()=>[nt(pe($.value||R.$t("发送")),1)]),_:1},8,["loading","disabled"])]),_:1})],512),[[Mn,["register"].includes(ue.value)&&((_e=m.value)==null?void 0:_e.is_email_verify)||["forgetpassword"].includes(ue.value)]]),Q("div",D7e,[se(W,{value:s.password,"onUpdate:value":A[6]||(A[6]=we=>s.password=we),class:"",type:"password","show-password-on":"click",placeholder:R.$t("密码"),maxlength:40,onKeydown:A[7]||(A[7]=Ss(we=>["login"].includes(ue.value)&&L(),["enter"]))},null,8,["value","placeholder"])]),dn(Q("div",L7e,[se(W,{value:s.confirm_password,"onUpdate:value":A[8]||(A[8]=we=>s.confirm_password=we),type:"password","show-password-on":"click",placeholder:R.$t("再次输入密码"),maxlength:40,onKeydown:A[9]||(A[9]=Ss(we=>["forgetpassword"].includes(ue.value)&&L(),["enter"]))},null,8,["value","placeholder"])],512),[[Mn,["register","forgetpassword"].includes(ue.value)]]),dn(Q("div",B7e,[se(W,{value:s.invite_code,"onUpdate:value":A[10]||(A[10]=we=>s.invite_code=we),placeholder:[R.$t("邀请码"),(ne=m.value)!=null&&ne.is_invite_force?`(${R.$t("必填")})`:`(${R.$t("选填")})`],maxlength:20,disabled:s.lock_invite_code,onKeydown:A[11]||(A[11]=Ss(we=>L(),["enter"]))},null,8,["value","placeholder","disabled"])],512),[[Mn,["register"].includes(ue.value)]]),dn(Q("div",N7e,[se(N,{checked:l.value,"onUpdate:checked":A[12]||(A[12]=we=>l.value=we),class:"text-bold text-base"},{default:ge(()=>[Q("div",{innerHTML:c.value},null,8,H7e)]),_:1},8,["checked"])],512),[[Mn,["register"].includes(ue.value)&&((me=m.value)==null?void 0:me.tos_url)]]),Q("div",j7e,[se(le,{class:"h-9 w-full rounded-md text-base",type:"primary","icon-placement":"left",onClick:A[13]||(A[13]=we=>L()),loading:D.value,disabled:D.value||!l.value&&["register"].includes(ue.value)},{icon:ge(()=>[se(be)]),default:ge(()=>[nt(" "+pe(["login"].includes(ue.value)?R.$t("登入"):["register"].includes(ue.value)?R.$t("注册"):R.$t("重置密码")),1)]),_:1},8,["loading","disabled"])])]),Q("div",U7e,[Q("div",null,[["login"].includes(ue.value)?(ve(),ze(rt,{key:0},[se(Ie,{to:"/register",class:"text-gray-500"},{default:ge(()=>[nt(pe(R.$t("注册")),1)]),_:1}),se(Ne,{vertical:""}),se(Ie,{to:"/forgetpassword",class:"text-gray-500"},{default:ge(()=>[nt(pe(R.$t("忘记密码")),1)]),_:1})],64)):(ve(),We(Ie,{key:1,to:"/login",class:"text-gray-500"},{default:ge(()=>[nt(pe(R.$t("返回登入")),1)]),_:1}))]),Q("div",null,[se(I,{value:ke(t).lang,"onUpdate:value":A[14]||(A[14]=we=>ke(t).lang=we),options:Object.entries(ke(dh)).map(([we,O])=>({label:O,value:we})),trigger:"click","on-update:value":ke(t).switchLang},{default:ge(()=>[se(le,{text:"","icon-placement":"left"},{icon:ge(()=>[se(F)]),default:ge(()=>[nt(" "+pe(ke(dh)[ke(t).lang]),1)]),_:1})]),_:1},8,["value","options","on-update:value"])])])]}),_:1})],4)],64)}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:V7e},Symbol.toStringTag,{value:"Module"})),W7e={请求失败:"Request failed",月付:"Monthly",季付:"Quarterly",半年付:"Semi-Annually",年付:"Annually",两年付:"Biennially",三年付:"Triennially",一次性:"One Time",重置流量包:"Data Reset Package",待支付:"Pending Payment",开通中:"Pending Active",已取消:"Canceled",已完成:"Completed",已折抵:"Converted",待确认:"Pending",发放中:"Confirming",已发放:"Completed",无效:"Invalid",个人中心:"User Center",登出:"Logout",搜索:"Search",仪表盘:"Dashboard",订阅:"Subscription",我的订阅:"My Subscription",购买订阅:"Purchase Subscription",财务:"Billing",我的订单:"My Orders",我的邀请:"My Invitation",用户:"Account",我的工单:"My Tickets",流量明细:"Transfer Data Details",使用文档:"Knowledge Base",绑定Telegram获取更多服务:"Not link to Telegram yet",点击这里进行绑定:"Please click here to link to Telegram",公告:"Announcements",总览:"Overview",该订阅长期有效:"The subscription is valid for an unlimited time",已过期:"Expired","已用 {used} / 总计 {total}":"{used} Used / Total {total}",查看订阅:"View Subscription",邮箱:"Email",邮箱验证码:"Email verification code",发送:"Send",重置密码:"Reset Password",返回登入:"Back to Login",邀请码:"Invitation Code",复制链接:"Copy Link",完成时间:"Complete Time",佣金:"Commission",已注册用户数:"Registered users",佣金比例:"Commission rate",确认中的佣金:"Pending commission","佣金将会在确认后会到达你的佣金账户。":"The commission will reach your commission account after review.",邀请码管理:"Invitation Code Management",生成邀请码:"Generate invitation code",佣金发放记录:"Commission Income Record",复制成功:"Copied successfully",密码:"Password",登入:"Login",注册:"Register",忘记密码:"Forgot password","# 订单号":"Order Number #",周期:"Type / Cycle",订单金额:"Order Amount",订单状态:"Order Status",创建时间:"Creation Time",操作:"Action",查看详情:"View Details",请选择支付方式:"Please select a payment method",请检查信用卡支付信息:"Please check credit card payment information",订单详情:"Order Details",折扣:"Discount",折抵:"Converted",退款:"Refund",支付方式:"Payment Method",填写信用卡支付信息:"Please fill in credit card payment information","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"We will not collect your credit card information, credit card number and other details only use to verify the current transaction.",订单总额:"Order Total",总计:"Total",结账:"Checkout",等待支付中:"Waiting for payment","订单系统正在进行处理,请稍等1-3分钟。":"Order system is being processed, please wait 1 to 3 minutes.","订单由于超时支付已被取消。":"The order has been canceled due to overtime payment.","订单已支付并开通。":"The order has been paid and the service is activated.",选择订阅:"Select a Subscription",立即订阅:"Subscribe now",配置订阅:"Configure Subscription",付款周期:"Payment Cycle","有优惠券?":"Have coupons?",验证:"Verify",下单:"Order","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Attention please, change subscription will overwrite your current subscription.",该订阅无法续费:"This subscription cannot be renewed",选择其他订阅:"Choose another subscription",我的钱包:"My Wallet","账户余额(仅消费)":"Account Balance (For billing only)","推广佣金(可提现)":"Invitation Commission (Can be used to withdraw)",钱包组成部分:"Wallet Details",划转:"Transfer",推广佣金提现:"Invitation Commission Withdrawal",修改密码:"Change Password",保存:"Save",旧密码:"Old Password",新密码:"New Password",请输入旧密码:"Please enter the old password",请输入新密码:"Please enter the new password",通知:"Notification",到期邮件提醒:"Subscription expiration email reminder",流量邮件提醒:"Insufficient transfer data email alert",绑定Telegram:"Link to Telegram",立即开始:"Start Now",重置订阅信息:"Reset Subscription",重置:"Reset","确定要重置订阅信息?":"Do you want to reset subscription?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"In case of your account information or subscription leak, this option is for reset. After resetting your UUID and subscription will change, you need to re-subscribe.",重置成功:"Reset successfully",两次新密码输入不同:"Two new passwords entered do not match",两次密码输入不同:"The passwords entered do not match","邀请码(选填)":"Invitation code (Optional)",'我已阅读并同意 服务条款':'I have read and agree to the terms of service',请同意服务条款:"Please agree to the terms of service",名称:"Name",标签:"Tags",状态:"Status",节点五分钟内节点在线情况:"Access Point online status in the last 5 minutes",倍率:"Rate",使用的流量将乘以倍率进行扣除:"The transfer data usage will be multiplied by the transfer data rate deducted.",更多操作:"Action","没有可用节点,如果您未订阅或已过期请":"No access points are available. If you have not subscribed or the subscription has expired, please","确定重置当前已用流量?":"Are you sure to reset your current data usage?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'Click "Confirm" and you will be redirected to the payment page. The system will empty your current month"s usage after your purchase.',确定:"Confirm",低:"Low",中:"Medium",高:"High",主题:"Subject",工单级别:"Ticket Priority",工单状态:"Ticket Status",最后回复:"Last Reply",已关闭:"Closed",待回复:"Pending Reply",已回复:"Replied",查看:"View",关闭:"Cancel",新的工单:"My Tickets",确认:"Confirm",请输入工单主题:"Please enter a subject",工单等级:"Ticket Priority",请选择工单等级:"Please select the ticket priority",消息:"Message",请描述你遇到的问题:"Please describe the problem you encountered",记录时间:"Record Time",实际上行:"Actual Upload",实际下行:"Actual Download",合计:"Total","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Formula: (Actual Upload + Actual Download) x Deduction Rate = Deduct Transfer Data",复制订阅地址:"Copy Subscription URL",导入到:"Export to",一键订阅:"Quick Subscription",复制订阅:"Copy Subscription URL",推广佣金划转至余额:"Transfer Invitation Commission to Account Balance","划转后的余额仅用于{title}消费使用":"The transferred balance will be used for {title} payments only",当前推广佣金余额:"Current invitation balance",划转金额:"Transfer amount",请输入需要划转到余额的金额:"Please enter the amount to be transferred to the balance","输入内容回复工单...":"Please enter to reply to the ticket...",申请提现:"Apply For Withdrawal",取消:"Cancel",提现方式:"Withdrawal Method",请选择提现方式:"Please select a withdrawal method",提现账号:"Withdrawal Account",请输入提现账号:"Please enter the withdrawal account",我知道了:"I got it",第一步:"First Step",第二步:"Second Step",打开Telegram搜索:"Open Telegram and Search ",向机器人发送你的:"Send the following command to bot","最后更新: {date}":"Last Updated: {date}",还有没支付的订单:"There are still unpaid orders",立即支付:"Pay Now",条工单正在处理中:"tickets are in process",立即查看:"View Now",节点状态:"Access Point Status",商品信息:"Product Information",产品名称:"Product Name","类型/周期":"Type / Cycle",产品流量:"Product Transfer Data",订单信息:"Order Details",关闭订单:"Close order",订单号:"Order Number",优惠金额:"Discount amount",旧订阅折抵金额:"Old subscription converted amount",退款金额:"Refunded amount",余额支付:"Balance payment",工单历史:"Ticket History","已用流量将在 {reset_day} 日后重置":"Used data will reset after {reset_day} days",已用流量已在今日重置:"Data usage has been reset today",重置已用流量:"Reset used data",查看节点状态:"View Access Point status","当前已使用流量达{rate}%":"Currently used data up to {rate}%",节点名称:"Access Point Name","于 {date} 到期,距离到期还有 {day} 天。":"Will expire on {date}, {day} days before expiration.","Telegram 讨论组":"Telegram Discussion Group",立即加入:"Join Now","该订阅无法续费,仅允许新用户购买":"This subscription cannot be renewed and is only available to new users.",重置当月流量:"Reset current month usage","流量明细仅保留近月数据以供查询。":'Only keep the most recent month"s usage for checking the transfer data details.',扣费倍率:"Fee deduction rate",支付手续费:"Payment fee",续费订阅:"Renewal Subscription",学习如何使用:"Learn how to use",快速将节点导入对应客户端进行使用:"Quickly export subscription into the client app",对您当前的订阅进行续费:"Renew your current subscription",对您当前的订阅进行购买:"Purchase your current subscription",捷径:"Shortcut","不会使用,查看使用教程":"I am a newbie, view the tutorial",使用支持扫码的客户端进行订阅:"Use a client app that supports scanning QR code to subscribe",扫描二维码订阅:"Scan QR code to subscribe",续费:"Renewal",购买:"Purchase",查看教程:"View Tutorial",注意:"Attention","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"You still have an unpaid order. You need to cancel it before purchasing. Are you sure you want to cancel the previous order?",确定取消:"Confirm Cancel",返回我的订单:"Back to My Order","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"If you have already paid, canceling the order may cause the payment to fail. Are you sure you want to cancel the order?",选择最适合你的计划:"Choose the right plan for you",全部:"All",按周期:"By Cycle",遇到问题:"I have a problem",遇到问题可以通过工单与我们沟通:"If you have any problems, you can contact us via ticket",按流量:"Pay As You Go",搜索文档:"Search Documents",技术支持:"Technical Support",当前剩余佣金:"Current commission remaining",三级分销比例:"Three-level Distribution Ratio",累计获得佣金:"Cumulative commission earned","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"The users you invite to re-invite users will be divided according to the order amount multiplied by the distribution level.",发放时间:"Commission Time","{number} 人":"{number} people","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"If your subscription address or account is leaked and misused by others, you can reset your subscription information here to prevent unnecessary losses.",再次输入密码:"Enter password again",返回登陆:"Return to Login",选填:"Optional",必填:"Required",最后回复时间:"Last Reply Time",请选项工单等级:"Please Select Ticket Priority",回复:"Reply",输入内容回复工单:"Enter Content to Reply to Ticket",已生成:"Generated",选择协议:"Select Protocol",自动:"Automatic",流量重置包:"Data Reset Package",复制失败:"Copy failed",提示:"Notification","确认退出?":"Confirm Logout?",已退出登录:"Logged out successfully",请输入邮箱地址:"Enter email address","{second}秒后可重新发送":"Resend available in {second} seconds",发送成功:"Sent successfully",请输入账号密码:"Enter account and password",请确保两次密码输入一致:"Ensure password entries match",注册成功:"Registration successful","重置密码成功,正在返回登录":"Password reset successful, returning to login",确认取消:"Confirm Cancel","请注意,变更订阅会导致当前订阅被覆盖。":"Please note that changing the subscription will overwrite the current subscription.","订单提交成功,正在跳转支付":"Order submitted successfully, redirecting to payment.",回复成功:"Reply Successful",工单详情:"Ticket Details",登录成功:"Login Successful","确定退出?":"Are you sure you want to exit?",支付成功:"Payment Successful",正在前往收银台:"Proceeding to Checkout",请输入正确的划转金额:"Please enter the correct transfer amount",划转成功:"Transfer Successful",提现方式不能为空:"Withdrawal method cannot be empty",提现账号不能为空:"Withdrawal account cannot be empty",已绑定:"Already Bound",创建成功:"Creation successful",关闭成功:"Shutdown successful"},Vk=Object.freeze(Object.defineProperty({__proto__:null,default:W7e},Symbol.toStringTag,{value:"Module"})),q7e={请求失败:"درخواست انجام نشد",月付:"ماهانه",季付:"سه ماهه",半年付:"نیم سال",年付:"سالانه",两年付:"دو سال",三年付:"سه سال",一次性:"یک‌باره",重置流量包:"بازنشانی بسته های داده",待支付:"در انتظار پرداخت",开通中:"ایجاید",已取消:"صرف نظر شد",已完成:"به پایان رسید",已折抵:"تخفیف داده شده است",待确认:"در حال بررسی",发放中:"صدور",已发放:"صادر شده",无效:"نامعتبر",个人中心:"پروفایل",登出:"خروج",搜索:"جستجو",仪表盘:"داشبرد",订阅:"اشتراک",我的订阅:"اشتراک من",购买订阅:"خرید اشتراک",财务:"امور مالی",我的订单:"درخواست های من",我的邀请:"دعوتنامه های من",用户:"کاربر",我的工单:"درخواست های من",流量明细:"جزئیات\\nعبورو مرور در\\nمحیط آموزشی",使用文档:"کار با مستندات",绑定Telegram获取更多服务:"برای خدمات بیشتر تلگرام را ببندید",点击这里进行绑定:"برای اتصال اینجا را کلیک کنید",公告:"هشدارها",总览:"بررسی کلی",该订阅长期有效:"این اشتراک برای مدت طولانی معتبر است",已过期:"منقضی شده","已用 {used} / 总计 {total}":"استفاده شده {used} / مجموع {total}",查看订阅:"مشاهده عضویت ها",邮箱:"ایمیل",邮箱验证码:"کد تایید ایمیل شما",发送:"ارسال",重置密码:"بازنشانی رمز عبور",返回登入:"بازگشت به صفحه ورود",邀请码:"کد دعوت شما",复制链接:"کپی‌کردن لینک",完成时间:"زمان پایان",佣金:"کمیسیون",已注册用户数:"تعداد کاربران ثبت نام شده",佣金比例:"نرخ کمیسیون",确认中的佣金:"کمیسیون تایید شده","佣金将会在确认后会到达你的佣金账户。":"کمیسیون پس از تایید به حساب کمیسیون شما واریز خواهد شد",邀请码管理:"مدیریت کد دعوت",生成邀请码:"یک کد دعوت ایجاد کنید",佣金发放记录:"سابقه پرداخت کمیسیون",复制成功:"آدرس URL با موفقیت کپی شد",密码:"رمز عبور",登入:"ورود",注册:"ثبت‌نام",忘记密码:"رمز عبور فراموش شده","# 订单号":"# شماره سفارش",周期:"چرخه",订单金额:"مقدار سفارش",订单状态:"وضعیت سفارش",创建时间:"ساختن",操作:"عملیات",查看详情:"مشاهده جزئیات",请选择支付方式:"لطفا نوع پرداخت را انتخاب کنید",请检查信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید",订单详情:"اطلاعات سفارش",折扣:"ذخیره",折抵:"折抵",退款:"بازگشت هزینه",支付方式:"روش پرداخت",填写信用卡支付信息:"لطفا اطلاعات پرداخت کارت اعتباری خود را بررسی کنید","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"اطلاعات کارت اعتباری شما فقط برای بدهی فعلی استفاده می شود، سیستم آن را ذخیره نمی کند، که ما فکر می کنیم امن ترین است.",订单总额:"مجموع سفارش",总计:"مجموع",结账:"پرداخت",等待支付中:"در انتظار پرداخت","订单系统正在进行处理,请稍等1-3分钟。":"سیستم سفارش در حال پردازش است، لطفا 1-3 دقیقه صبر کنید.","订单由于超时支付已被取消。":"سفارش به دلیل پرداخت اضافه کاری لغو شده است","订单已支付并开通。":"سفارش پرداخت و باز شد.",选择订阅:"انتخاب اشتراک",立即订阅:"همین حالا مشترک شوید",配置订阅:"پیکربندی اشتراک",付款周期:"چرخه پرداخت","有优惠券?":"یک کوپن دارید؟",验证:"تأیید",下单:"ایجاد سفارش","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"لطفاً توجه داشته باشید، تغییر یک اشتراک باعث می‌شود که اشتراک فعلی توسط اشتراک جدید بازنویسی شود.",该订阅无法续费:"این اشتراک قابل تمدید نیست",选择其他订阅:"اشتراک دیگری را انتخاب کنید",我的钱包:"کیف پول من","账户余额(仅消费)":"موجودی حساب (فقط خرج کردن)","推广佣金(可提现)":"کمیسیون ارتقاء (قابل برداشت)",钱包组成部分:"اجزای کیف پول",划转:"منتقل کردن",推广佣金提现:"انصراف کمیسیون ارتقاء",修改密码:"تغییر کلمه عبور",保存:"ذخیره کردن",旧密码:"گذرواژه قدیمی",新密码:"رمز عبور جدید",请输入旧密码:", رمز عبور مورد نیاز است",请输入新密码:"گذاشتن گذرواژه",通知:"اعلانات",到期邮件提醒:"یادآوری ایمیل انقضا",流量邮件提醒:"یادآوری ایمیل ترافیک",绑定Telegram:"تلگرام را ببندید",立即开始:"امروز شروع کنید",重置订阅信息:"بازنشانی اطلاعات اشتراک",重置:"تغییر","确定要重置订阅信息?":"آیا مطمئن هستید که می خواهید اطلاعات اشتراک خود را بازنشانی کنید؟","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"اگر آدرس یا اطلاعات اشتراک شما لو رفته باشد، این کار را می توان انجام داد. پس از تنظیم مجدد، Uuid و اشتراک شما تغییر خواهد کرد و باید دوباره مشترک شوید.",重置成功:"بازنشانی با موفقیت انجام شد",两次新密码输入不同:"رمز جدید را دو بار وارد کنید",两次密码输入不同:"رمز جدید را دو بار وارد کنید","邀请码(选填)":"کد دعوت (اختیاری)",'我已阅读并同意 服务条款':"من شرایط خدمات را خوانده‌ام و با آن موافقم",请同意服务条款:"لطفاً با شرایط خدمات موافقت کنید",名称:"نام ویژگی محصول",标签:"برچسب‌ها",状态:"وضعیت",节点五分钟内节点在线情况:"وضعیت آنلاین گره را در عرض پنج دقیقه ثبت کنید",倍率:"بزرگنمایی",使用的流量将乘以倍率进行扣除:"جریان استفاده شده در ضریب برای کسر ضرب خواهد شد",更多操作:"اکشن های بیشتر","没有可用节点,如果您未订阅或已过期请":"هیچ گره ای در دسترس نیست، اگر مشترک نیستید یا منقضی شده اید، لطفاً","确定重置当前已用流量?":"آیا مطمئن هستید که می خواهید داده های استفاده شده فعلی را بازنشانی کنید؟","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"برای رفتن به صندوقدار روی 'OK' کلیک کنید. پس از پرداخت سفارش، سیستم اطلاعاتی را که برای ماه استفاده کرده اید پاک می کند.",确定:"تأیید",低:"پایین",中:"متوسط",高:"بالا",主题:"موضوع",工单级别:"سطح بلیط",工单状态:"وضعیت درخواست",最后回复:"آخرین پاسخ",已关闭:"پایان‌یافته",待回复:"در انتظار پاسخ",已回复:"پاسخ داده",查看:"بازدیدها",关闭:"بستن",新的工单:"سفارش کار جدید",确认:"تاييدات",请输入工单主题:"لطفا موضوع بلیط را وارد کنید",工单等级:"سطح سفارش کار",请选择工单等级:"لطفا سطح بلیط را انتخاب کنید",消息:"پیام ها",请描述你遇到的问题:"لطفا مشکلی که با آن مواجه شدید را شرح دهید",记录时间:"زمان ضبط",实际上行:"نقطه ضعف واقعی",实际下行:"نقطه ضعف واقعی",合计:"تعداد ارزش‌ها","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"فرمول: (خط واقعی + پایین دست واقعی) x نرخ کسر = ترافیک کسر شده",复制订阅地址:"آدرس اشتراک را کپی کنید",导入到:"واردات در:",一键订阅:"اشتراک با یک کلیک",复制订阅:"اشتراک را کپی کنید",推广佣金划转至余额:"کمیسیون ارتقاء به موجودی منتقل می شود","划转后的余额仅用于{title}消费使用":"موجودی منتقل شده فقط برای مصرف {title} استفاده می شود",当前推广佣金余额:"موجودی کمیسیون ترفیع فعلی",划转金额:"مقدار انتقال",请输入需要划转到余额的金额:"لطفا مبلغی را که باید به موجودی منتقل شود وارد کنید","输入内容回复工单...":"برای پاسخ به تیکت محتوا را وارد کنید...",申请提现:"برای انصراف اقدام کنید",取消:"انصراف",提现方式:"روش برداشت",请选择提现方式:"لطفاً یک روش برداشت را انتخاب کنید",提现账号:"حساب برداشت",请输入提现账号:"لطفا حساب برداشت را وارد کنید",我知道了:"می فهمم",第一步:"گام ۱",第二步:"گام ۲",打开Telegram搜索:"جستجوی تلگرام را باز کنید",向机器人发送你的:"ربات های خود را بفرستید","最后更新: {date}":"آخرین به روز رسانی: {date}",还有没支付的订单:"هنوز سفارشات پرداخت نشده وجود دارد",立即支付:"اکنون پرداخت کنید",条工单正在处理中:"بلیط در حال پردازش است",立即查看:"آن را در عمل ببینید",节点状态:"وضعیت گره",商品信息:"مشتریان ثبت نام شده",产品名称:"عنوان کالا","类型/周期":"نوع/چرخه",产品流量:"جریان محصول",订单信息:"اطلاعات سفارش",关闭订单:"سفارش بستن",订单号:"شماره سفارش",优惠金额:"قیمت با تخفیف",旧订阅折抵金额:"مبلغ تخفیف اشتراک قدیمی",退款金额:"کل مبلغ مسترد شده",余额支付:"پرداخت مانده",工单历史:"تاریخچه بلیط","已用流量将在 {reset_day} 日后重置":"داده‌های استفاده شده ظرف {reset_day} روز بازنشانی می‌شوند",已用流量已在今日重置:"امروز بازنشانی داده استفاده شده است",重置已用流量:"بازنشانی داده های استفاده شده",查看节点状态:"مشاهده وضعیت گره","当前已使用流量达{rate}%":"ترافیک استفاده شده در حال حاضر در {rate}%",节点名称:"نام گره","于 {date} 到期,距离到期还有 {day} 天。":"در {date} منقضی می‌شود که {day} روز دیگر است.","Telegram 讨论组":"گروه گفتگوی تلگرام",立即加入:"حالا پیوستن","该订阅无法续费,仅允许新用户购买":"این اشتراک قابل تمدید نیست، فقط کاربران جدید مجاز به خرید آن هستند",重置当月流量:"بازنشانی ترافیک ماه جاری","流量明细仅保留近月数据以供查询。":"جزئیات ترافیک فقط داده های ماه های اخیر را برای پرس و جو حفظ می کند.",扣费倍率:"نرخ کسر",支付手续费:"پرداخت هزینه های پردازش",续费订阅:"تمدید اشتراک",学习如何使用:"نحوه استفاده را یاد بگیرید",快速将节点导入对应客户端进行使用:"به سرعت گره ها را برای استفاده به مشتری مربوطه وارد کنید",对您当前的订阅进行续费:"با اشتراک فعلی خود خرید کنید",对您当前的订阅进行购买:"با اشتراک فعلی خود خرید کنید",捷径:"میانبر","不会使用,查看使用教程":"استفاده نمی شود، به آموزش مراجعه کنید",使用支持扫码的客户端进行订阅:"برای اشتراک از کلاینتی استفاده کنید که از کد اسکن پشتیبانی می کند",扫描二维码订阅:"برای اشتراک، کد QR را اسکن کنید",续费:"تمدید",购买:"خرید",查看教程:"مشاهده آموزش",注意:"یادداشت!","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"هنوز سفارشات ناتمام دارید. قبل از خرید باید آن را لغو کنید. آیا مطمئن هستید که می‌خواهید سفارش قبلی را لغو کنید؟",确定取消:"تایید لغو",返回我的订单:"بازگشت به سفارش من","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"اگر قبلاً پرداخت کرده‌اید، لغو سفارش ممکن است باعث عدم موفقیت در پرداخت شود. آیا مطمئن هستید که می‌خواهید سفارش را لغو کنید؟",选择最适合你的计划:"طرحی را انتخاب کنید که مناسب شما باشد",全部:"تمام",按周期:"توسط چرخه",遇到问题:"ما یک مشکل داریم",遇到问题可以通过工单与我们沟通:"در صورت بروز مشکل می توانید از طریق تیکت با ما در ارتباط باشید",按流量:"با جریان",搜索文档:"جستجوی اسناد",技术支持:"دریافت پشتیبانی",当前剩余佣金:"کمیسیون فعلی باقی مانده",三级分销比例:"نسبت توزیع سه لایه",累计获得佣金:"کمیسیون انباشته شده","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"کاربرانی که برای دعوت مجدد از کاربران دعوت می کنید بر اساس نسبت مقدار سفارش ضرب در سطح توزیع تقسیم می شوند.",发放时间:"زمان پرداخت","{number} 人":"{number} نفر","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"در صورت انتشار آدرس یا حساب اشتراک شما و سوء استفاده از آن توسط دیگران، می‌توانید اطلاعات اشتراک خود را در اینجا بازنشانی کنید تا از زیان‌های غیرضروری جلوگیری شود.",再次输入密码:"ورود مجدد رمز عبور",返回登陆:"بازگشت به ورود",选填:"اختیاری",必填:"الزامی",最后回复时间:"زمان آخرین پاسخ",请选项工单等级:"لطفاً اولویت تیکت را انتخاب کنید",回复:"پاسخ",输入内容回复工单:"محتوا را برای پاسخ به تیکت وارد کنید",已生成:"تولید شده",选择协议:"انتخاب پروتکل",自动:"خودکار",流量重置包:"بسته بازنشانی داده",复制失败:"کپی ناموفق بود",提示:"اطلاع","确认退出?":"تأیید خروج?",已退出登录:"با موفقیت خارج شده",请输入邮箱地址:"آدرس ایمیل را وارد کنید","{second}秒后可重新发送":"{second} ثانیه دیگر می‌توانید مجدداً ارسال کنید",发送成功:"با موفقیت ارسال شد",请输入账号密码:"نام کاربری و رمز عبور را وارد کنید",请确保两次密码输入一致:"اطمینان حاصل کنید که ورودهای رمز عبور مطابقت دارند",注册成功:"ثبت نام با موفقیت انجام شد","重置密码成功,正在返回登录":"با موفقیت رمز عبور بازنشانی شد، در حال بازگشت به صفحه ورود",确认取消:"تایید لغو","请注意,变更订阅会导致当前订阅被覆盖。":"لطفاً توجه داشته باشید که تغییر اشتراک موجب ایجاد اشتراک فعلی می‌شود.","订单提交成功,正在跳转支付":"سفارش با موفقیت ثبت شد، به پرداخت هدایت می‌شود.",回复成功:"پاسخ با موفقیت ارسال شد",工单详情:"جزئیات تیکت",登录成功:"ورود موفقیت‌آمیز","确定退出?":"آیا مطمئن هستید که می‌خواهید خارج شوید؟",支付成功:"پرداخت موفق",正在前往收银台:"در حال رفتن به صندوق پرداخت",请输入正确的划转金额:"لطفا مبلغ انتقال صحیح را وارد کنید",划转成功:"انتقال موفق",提现方式不能为空:"روش برداشت نمی‌تواند خالی باشد",提现账号不能为空:"حساب برداشت نمی‌تواند خالی باشد",已绑定:"قبلاً متصل شده",创建成功:"ایجاد موفقیت‌آمیز",关闭成功:"خاموش کردن موفق"},Wk=Object.freeze(Object.defineProperty({__proto__:null,default:q7e},Symbol.toStringTag,{value:"Module"})),K7e={请求失败:"リクエストエラー",月付:"月間プラン",季付:"3か月プラン",半年付:"半年プラン",年付:"年間プラン",两年付:"2年プラン",三年付:"3年プラン",一次性:"一括払い",重置流量包:"使用済みデータをリセット",待支付:"お支払い待ち",开通中:"開通中",已取消:"キャンセル済み",已完成:"済み",已折抵:"控除済み",待确认:"承認待ち",发放中:"処理中",已发放:"処理済み",无效:"無効",个人中心:"会員メニュー",登出:"ログアウト",搜索:"検索",仪表盘:"ダッシュボード",订阅:"サブスクリプションプラン",我的订阅:"マイプラン",购买订阅:"プランの購入",财务:"ファイナンス",我的订单:"注文履歴",我的邀请:"招待リスト",用户:"ユーザー",我的工单:"お問い合わせ",流量明细:"データ通信明細",使用文档:"ナレッジベース",绑定Telegram获取更多服务:"Telegramと連携し各種便利な通知を受け取ろう",点击这里进行绑定:"こちらをクリックして連携開始",公告:"お知らせ",总览:"概要",该订阅长期有效:"時間制限なし",已过期:"期限切れ","已用 {used} / 总计 {total}":"使用済み {used} / 合計 {total}",查看订阅:"プランを表示",邮箱:"E-mail アドレス",邮箱验证码:"確認コード",发送:"送信",重置密码:"パスワードを変更",返回登入:"ログインページへ戻る",邀请码:"招待コード",复制链接:"URLをコピー",完成时间:"完了日時",佣金:"コミッション金額",已注册用户数:"登録済みユーザー数",佣金比例:"コミッションレート",确认中的佣金:"承認待ちのコミッション","佣金将会在确认后会到达你的佣金账户。":"コミッションは承認処理完了後にカウントされます",邀请码管理:"招待コードの管理",生成邀请码:"招待コードを生成",佣金发放记录:"コミッション履歴",复制成功:"クリップボードにコピーされました",密码:"パスワード",登入:"ログイン",注册:"新規登録",忘记密码:"パスワードをお忘れの方","# 订单号":"受注番号",周期:"サイクル",订单金额:"ご注文金額",订单状态:"ご注文状況",创建时间:"作成日時",操作:"アクション",查看详情:"詳細を表示",请选择支付方式:"支払い方法をお選びください",请检查信用卡支付信息:"クレジットカード決済情報をご確認ください",订单详情:"ご注文詳細",折扣:"割引",折抵:"控除",退款:"払い戻し",支付方式:"お支払い方法",填写信用卡支付信息:"クレジットカード決済情報をご入力ください。","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"お客様のカード情報は今回限りリクエストされ、記録に残ることはございません",订单总额:"ご注文の合計金額",总计:"合計金額",结账:"チェックアウト",等待支付中:"お支払い待ち","订单系统正在进行处理,请稍等1-3分钟。":"システム処理中です、しばらくお待ちください","订单由于超时支付已被取消。":"ご注文はキャンセルされました","订单已支付并开通。":"お支払いが完了しました、プランはご利用可能です",选择订阅:"プランをお選びください",立即订阅:"今すぐ購入",配置订阅:"プランの内訳",付款周期:"お支払いサイクル","有优惠券?":"キャンペーンコード",验证:"確定",下单:"チェックアウト","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"プランを変更なされます場合は、既存のプランが新規プランによって上書きされます、ご注意下さい",该订阅无法续费:"該当プランは継続利用できません",选择其他订阅:"その他のプランを選択",我的钱包:"マイウォレット","账户余额(仅消费)":"残高(サービスの購入のみ)","推广佣金(可提现)":"招待によるコミッション(出金可)",钱包组成部分:"ウォレットの内訳",划转:"お振替",推广佣金提现:"コミッションのお引き出し",修改密码:"パスワードの変更",保存:"変更を保存",旧密码:"現在のパスワード",新密码:"新しいパスワード",请输入旧密码:"現在のパスワードをご入力ください",请输入新密码:"新しいパスワードをご入力ください",通知:"お知らせ",到期邮件提醒:"期限切れ前にメールで通知",流量邮件提醒:"データ量不足時にメールで通知",绑定Telegram:"Telegramと連携",立即开始:"今すぐ連携開始",重置订阅信息:"サブスクリプションURLの変更",重置:"変更","确定要重置订阅信息?":"サブスクリプションURLをご変更なされますか?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"サブスクリプションのURL及び情報が外部に漏れた場合にご操作ください。操作後はUUIDやURLが変更され、再度サブスクリプションのインポートが必要になります。",重置成功:"変更完了",两次新密码输入不同:"ご入力されました新しいパスワードが一致しません",两次密码输入不同:"ご入力されましたパスワードが一致しません","邀请码(选填)":"招待コード (オプション)",'我已阅读并同意 服务条款':"ご利用規約に同意します",请同意服务条款:"ご利用規約に同意してください",名称:"名称",标签:"ラベル",状态:"ステータス",节点五分钟内节点在线情况:"5分間のオンラインステータス",倍率:"適応レート",使用的流量将乘以倍率进行扣除:"通信量は該当レートに基き計算されます",更多操作:"アクション","没有可用节点,如果您未订阅或已过期请":"ご利用可能なサーバーがありません,プランの期限切れまたは購入なされていない場合は","确定重置当前已用流量?":"利用済みデータ量をリセットしますか?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"「確定」をクリックし次のページへ移動,お支払い後に当月分のデータ通信量は即時リセットされます",确定:"確定",低:"低",中:"中",高:"高",主题:"タイトル",工单级别:"プライオリティ",工单状态:"進捗状況",最后回复:"最終回答日時",已关闭:"終了",待回复:"対応待ち",已回复:"回答済み",查看:"閲覧",关闭:"終了",新的工单:"新規お問い合わせ",确认:"確定",请输入工单主题:"お問い合わせタイトルをご入力ください",工单等级:"ご希望のプライオリティ",请选择工单等级:"ご希望のプライオリティをお選びください",消息:"メッセージ",请描述你遇到的问题:"お問い合わせ内容をご入力ください",记录时间:"記録日時",实际上行:"アップロード",实际下行:"ダウンロード",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"計算式:(アップロード + ダウンロード) x 適応レート = 使用済みデータ通信量",复制订阅地址:"サブスクリプションのURLをコピー",导入到:"インポート先:",一键订阅:"ワンクリックインポート",复制订阅:"サブスクリプションのURLをコピー",推广佣金划转至余额:"コミッションを残高へ振替","划转后的余额仅用于{title}消费使用":"振替済みの残高は{title}でのみご利用可能です",当前推广佣金余额:"現在のコミッション金額",划转金额:"振替金額",请输入需要划转到余额的金额:"振替金額をご入力ください","输入内容回复工单...":"お問い合わせ内容をご入力ください...",申请提现:"出金申請",取消:"キャンセル",提现方式:"お振込み先",请选择提现方式:"お振込み先をお選びください",提现账号:"お振り込み先口座",请输入提现账号:"お振込み先口座をご入力ください",我知道了:"了解",第一步:"ステップその1",第二步:"ステップその2",打开Telegram搜索:"Telegramを起動後に右記内容を入力し検索",向机器人发送你的:"テレグラムボットへ下記内容を送信","最后更新: {date}":"最終更新日: {date}",还有没支付的订单:"未払いのご注文があります",立即支付:"チェックアウト",条工单正在处理中:"件のお問い合わせ",立即查看:"閲覧",节点状态:"サーバーステータス",商品信息:"プラン詳細",产品名称:"プラン名","类型/周期":"サイクル",产品流量:"ご利用可能データ量",订单信息:"オーダー情報",关闭订单:"注文をキャンセル",订单号:"受注番号",优惠金额:"'割引額",旧订阅折抵金额:"既存プラン控除額",退款金额:"返金額",余额支付:"残高ご利用分",工单历史:"お問い合わせ履歴","已用流量将在 {reset_day} 日后重置":"利用済みデータ量は {reset_day} 日後にリセットします",已用流量已在今日重置:"利用済みデータ量は本日リセットされました",重置已用流量:"利用済みデータ量をリセット",查看节点状态:"接続先サーバのステータス","当前已使用流量达{rate}%":"データ使用量が{rate}%になりました",节点名称:"サーバー名","于 {date} 到期,距离到期还有 {day} 天。":"ご利用期限は {date} まで,期限まであと {day} 日","Telegram 讨论组":"Telegramグループ",立即加入:"今すぐ参加","该订阅无法续费,仅允许新用户购买":"該当プランは継続利用できません、新規ユーザーのみが購入可能です",重置当月流量:"使用済みデータ量のカウントリセット","流量明细仅保留近月数据以供查询。":"データ通信明細は当月分のみ表示されます",扣费倍率:"適応レート",支付手续费:"お支払い手数料",续费订阅:"購読更新",学习如何使用:"ご利用ガイド",快速将节点导入对应客户端进行使用:"最短ルートでサーバー情報をアプリにインポートして使用する",对您当前的订阅进行续费:"ご利用中のサブスクの継続料金を支払う",对您当前的订阅进行购买:"ご利用中のサブスクを再度購入する",捷径:"ショートカット","不会使用,查看使用教程":"ご利用方法がわからない方はナレッジベースをご閲覧ください",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"QRコードをスキャンしてサブスクを設定",续费:"更新",购买:"購入",查看教程:"チュートリアルを表示",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"まだ購入が完了していないオーダーがあります。購入前にそちらをキャンセルする必要がありますが、キャンセルしてよろしいですか?",确定取消:"キャンセル",返回我的订单:"注文履歴に戻る","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"もし既にお支払いが完了していると、注文をキャンセルすると支払いが失敗となる可能性があります。キャンセルしてもよろしいですか?",选择最适合你的计划:"あなたにピッタリのプランをお選びください",全部:"全て",按周期:"期間順",遇到问题:"何かお困りですか?",遇到问题可以通过工单与我们沟通:"何かお困りでしたら、お問い合わせからご連絡ください。",按流量:"データ通信量順",搜索文档:"ドキュメント内を検索",技术支持:"テクニカルサポート",当前剩余佣金:"コミッション残高",三级分销比例:"3ティア比率",累计获得佣金:"累計獲得コミッション金額","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"お客様に招待された方が更に別の方を招待された場合、お客様は支払われるオーダーからティア分配分の比率分を受け取ることができます。",发放时间:"手数料支払時間","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"購読アドレスまたはアカウントが漏れて他者に悪用された場合、不必要な損失を防ぐためにここで購読情報をリセットできます。",再次输入密码:"パスワードを再入力してください",返回登陆:"ログインに戻る",选填:"任意",必填:"必須",最后回复时间:"最終返信時刻",请选项工单等级:"チケットの優先度を選択してください",回复:"返信",输入内容回复工单:"チケットへの返信内容を入力",已生成:"生成済み",选择协议:"プロトコルの選択",自动:"自動",流量重置包:"データリセットパッケージ",复制失败:"コピーに失敗しました",提示:"通知","确认退出?":"ログアウトを確認?",已退出登录:"正常にログアウトしました",请输入邮箱地址:"メールアドレスを入力してください","{second}秒后可重新发送":"{second} 秒後に再送信可能",发送成功:"送信成功",请输入账号密码:"アカウントとパスワードを入力してください",请确保两次密码输入一致:"パスワードの入力が一致していることを確認してください",注册成功:"登録が成功しました","重置密码成功,正在返回登录":"パスワードのリセットが成功しました。ログインに戻っています",确认取消:"キャンセルの確認","请注意,变更订阅会导致当前订阅被覆盖。":"購読の変更は現在の購読を上書きします。","订单提交成功,正在跳转支付":"注文が成功裏に送信されました。支払いにリダイレクトしています。",回复成功:"返信が成功しました",工单详情:"チケットの詳細",登录成功:"ログイン成功","确定退出?":"本当に退出しますか?",支付成功:"支払い成功",正在前往收银台:"チェックアウトに進行中",请输入正确的划转金额:"正しい振替金額を入力してください",划转成功:"振替成功",提现方式不能为空:"出金方法は空にできません",提现账号不能为空:"出金口座を空にすることはできません",已绑定:"既にバインドされています",创建成功:"作成成功",关闭成功:"閉鎖成功"},qk=Object.freeze(Object.defineProperty({__proto__:null,default:K7e},Symbol.toStringTag,{value:"Module"})),G7e={请求失败:"요청실패",月付:"월간",季付:"3개월간",半年付:"반년간",年付:"1년간",两年付:"2년마다",三年付:"3년마다",一次性:"한 번",重置流量包:"데이터 재설정 패키지",待支付:"지불 보류중",开通中:"보류 활성화",已取消:"취소 됨",已完成:"완료",已折抵:"변환",待确认:"보류중",发放中:"확인중",已发放:"완료",无效:"유효하지 않음",个人中心:"사용자 센터",登出:"로그아웃",搜索:"검색",仪表盘:"대시보드",订阅:"구독",我的订阅:"나의 구독",购买订阅:"구독 구매 내역",财务:"청구",我的订单:"나의 주문",我的邀请:"나의 초청",用户:"사용자 센터",我的工单:"나의 티켓",流量明细:"데이터 세부 정보 전송",使用文档:"사용 설명서",绑定Telegram获取更多服务:"텔레그램에 아직 연결되지 않았습니다",点击这里进行绑定:"텔레그램에 연결되도록 여기를 눌러주세요",公告:"발표",总览:"개요",该订阅长期有效:"구독은 무제한으로 유효합니다",已过期:"만료","已用 {used} / 总计 {total}":"{date}에 만료됩니다, 만료 {day}이 전, {reset_day}후 데이터 전송 재설정",查看订阅:"구독 보기",邮箱:"이메일",邮箱验证码:"이메일 확인 코드",发送:"보내기",重置密码:"비밀번호 재설정",返回登入:"로그인 다시하기",邀请码:"초청 코드",复制链接:"링크 복사",完成时间:"완료 시간",佣金:"수수료",已注册用户数:"등록 된 사용자들",佣金比例:"수수료율",确认中的佣金:"수수료 상태","佣金将会在确认后会到达你的佣金账户。":"수수료는 검토 후 수수료 계정에서 확인할 수 있습니다",邀请码管理:"초청 코드 관리",生成邀请码:"초청 코드 생성하기",佣金发放记录:"수수료 지불 기록",复制成功:"복사 성공",密码:"비밀번호",登入:"로그인",注册:"등록하기",忘记密码:"비밀번호를 잊으셨나요","# 订单号":"주문 번호 #",周期:"유형/기간",订单金额:"주문량",订单状态:"주문 상태",创建时间:"생성 시간",操作:"설정",查看详情:"세부사항 보기",请选择支付方式:"지불 방식을 선택 해주세요",请检查信用卡支付信息:"신용카드 지불 정보를 확인 해주세요",订单详情:"주문 세부사항",折扣:"할인",折抵:"변환",退款:"환불",支付方式:"지불 방식",填写信用卡支付信息:"신용카드 지불 정보를 적으세요","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"현재 거래를 확인하는 데 사용하는 귀하의 신용 카드 정보, 신용 카드 번호 및 기타 세부 정보를 수집하지 않습니다.",订单总额:"전체주문",总计:"전체",结账:"결제하기",等待支付中:"결제 대기 중","订单系统正在进行处理,请稍等1-3分钟。":"주문 시스템이 처리 중입니다. 1-3분 정도 기다려 주십시오.","订单由于超时支付已被取消。":"결제 시간 초과로 인해 주문이 취소되었습니다.","订单已支付并开通。":"주문이 결제되고 개통되었습니다.",选择订阅:"구독 선택하기",立即订阅:"지금 구독하기",配置订阅:"구독 환경 설정하기",付款周期:"지불 기간","有优惠券?":"쿠폰을 가지고 있나요?",验证:"확인",下单:"주문","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"주의하십시오. 구독을 변경하면 현재 구독을 덮어씁니다",该订阅无法续费:"이 구독은 갱신할 수 없습니다.",选择其他订阅:"다른 구독 선택",我的钱包:"나의 지갑","账户余额(仅消费)":"계정 잔액(결제 전용)","推广佣金(可提现)":"초청수수료(인출하는 데 사용할 수 있습니다)",钱包组成部分:"지갑 세부사항",划转:"이체하기",推广佣金提现:"초청 수수료 인출",修改密码:"비밀번호 변경",保存:"저장하기",旧密码:"이전 비밀번호",新密码:"새로운 비밀번호",请输入旧密码:"이전 비밀번호를 입력해주세요",请输入新密码:"새로운 비밀번호를 입력해주세요",通知:"공고",到期邮件提醒:"구독 만료 이메일 알림",流量邮件提醒:"불충분한 데이터 이메일 전송 알림",绑定Telegram:"탤레그램으로 연결",立即开始:"지금 시작하기",重置订阅信息:"구독 재설정하기",重置:"재설정","确定要重置订阅信息?":"구독을 재설정하시겠습니까?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"계정 정보나 구독이 누출된 경우 이 옵션은 UUID를 재설정하는 데 사용되며 재설정 후에 구독이 변경되므로 다시 구독해야 합니다.",重置成功:"재설정 성공",两次新密码输入不同:"입력한 두 개의 새 비밀번호가 일치하지 않습니다.",两次密码输入不同:"입력한 비밀번호가 일치하지 않습니다.","邀请码(选填)":"초청 코드(선택 사항)",'我已阅读并同意 服务条款':"을 읽었으며 이에 동의합니다 서비스 약관",请同意服务条款:"서비스 약관에 동의해주세요",名称:"이름",标签:"태그",状态:"설정",节点五分钟内节点在线情况:"지난 5분 동안의 액세스 포인트 온라인 상태",倍率:"요금",使用的流量将乘以倍率进行扣除:"사용된 전송 데이터에 전송 데이터 요금을 뺀 값을 곱합니다.",更多操作:"설정","没有可用节点,如果您未订阅或已过期请":"사용 가능한 액세스 포인트가 없습니다. 구독을 신청하지 않았거나 구독이 만료된 경우","确定重置当前已用流量?":"현재 사용 중인 데이터를 재설정 하시겠습니까?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":'확인"을 클릭하면 결제 페이지로 이동됩니다. 주문이 완료되면 시스템에서 해당 월의 사용 데이터를 삭제합니다.',确定:"확인",低:"낮음",中:"중간",高:"높음",主题:"주제",工单级别:"티켓 우선 순위",工单状态:"티켓 상태",最后回复:"생성 시간",已关闭:"마지막 답장",待回复:"설정",已回复:"닫힘",查看:"보기",关闭:"닫기",新的工单:"새로운 티켓",确认:"확인",请输入工单主题:"제목을 입력하세요",工单等级:"티켓 우선순위",请选择工单等级:"티켓 우선순위를 선택해주세요",消息:"메세지",请描述你遇到的问题:"문제를 설명하십시오 발생한",记录时间:"기록 시간",实际上行:"실제 업로드",实际下行:"실제 다운로드",合计:"전체","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"공식: (실제 업로드 + 실제 다운로드) x 공제율 = 전송 데이터 공제",复制订阅地址:"구독 URL 복사",导入到:"내보내기",一键订阅:"빠른 구독",复制订阅:"구독 URL 복사",推广佣金划转至余额:"초청 수수료를 계좌 잔액으로 이체","划转后的余额仅用于{title}消费使用":"이체된 잔액은 {title} 소비에만 사용됩니다.",当前推广佣金余额:"현재 홍보 수수료 잔액",请输入需要划转到余额的金额:"잔액으로 이체할 금액을 입력하세요.",取消:"취소",提现方式:"인출 방법",请选择提现方式:"인출 방법을 선택해주세요",提现账号:"인출 계좌",请输入提现账号:"인출 계좌를 입력해주세요",我知道了:"알겠습니다.",第一步:"첫번째 단계",第二步:"두번째 단계",打开Telegram搜索:"텔레그램 열기 및 탐색",向机器人发送你的:"봇에 다음 명령을 보냅니다","最后更新: {date}":"마지막 업데이트{date}",还有没支付的订单:"미결제 주문이 있습니다",立即支付:"즉시 지불",条工单正在处理中:"티켓이 처리 중입니다",立即查看:"제목을 입력하세요",节点状态:"노드 상태",商品信息:"제품 정보",产品名称:"제품 명칭","类型/周期":"종류/기간",产品流量:"제품 데이터 용량",订单信息:"주문 정보",关闭订单:"주문 취소",订单号:"주문 번호",优惠金额:"할인 가격",旧订阅折抵金额:"기존 패키지 공제 금액",退款金额:"환불 금액",余额支付:"잔액 지불",工单历史:"티켓 기록","已用流量将在 {reset_day} 日后重置":"{reset_day}일 후에 사용한 데이터가 재설정됩니다",已用流量已在今日重置:"오늘 이미 사용한 데이터가 재설정되었습니다",重置已用流量:"사용한 데이터 재설정",查看节点状态:"노드 상태 확인","当前已使用流量达{rate}%":"현재 사용한 데이터 비율이 {rate}%에 도달했습니다",节点名称:"환불 금액","于 {date} 到期,距离到期还有 {day} 天。":"{day}까지, 만료 {day}일 전.","Telegram 讨论组":"텔레그램으로 문의하세요",立即加入:"지금 가입하세요","该订阅无法续费,仅允许新用户购买":"이 구독은 갱신할 수 없습니다. 신규 사용자만 구매할 수 있습니다.",重置当月流量:"이번 달 트래픽 초기화","流量明细仅保留近月数据以供查询。":"귀하의 트래픽 세부 정보는 최근 몇 달 동안만 유지됩니다",扣费倍率:"수수료 공제율",支付手续费:"수수료 지불",续费订阅:"구독 갱신",学习如何使用:"사용 방법 배우기",快速将节点导入对应客户端进行使用:"빠르게 노드를 해당 클라이언트로 가져와 사용하기",对您当前的订阅进行续费:"현재 구독 갱신",对您当前的订阅进行购买:"현재 구독 구매",捷径:"단축키","不会使用,查看使用教程":"사용 방법을 모르겠다면 사용 설명서 확인",使用支持扫码的客户端进行订阅:"스캔 가능한 클라이언트로 구독하기",扫描二维码订阅:"QR 코드 스캔하여 구독",续费:"갱신",购买:"구매",查看教程:"사용 설명서 보기",注意:"주의","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"미완료된 주문이 있습니다. 구매 전에 취소해야 합니다. 이전 주문을 취소하시겠습니까?",确定取消:"취소 확인",返回我的订单:"내 주문으로 돌아가기","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"이미 결제를 했을 경우 주문 취소는 결제 실패로 이어질 수 있습니다. 주문을 취소하시겠습니까?",选择最适合你的计划:"가장 적합한 요금제 선택",全部:"전체",按周期:"주기별",遇到问题:"문제 발생",遇到问题可以通过工单与我们沟通:"문제가 발생하면 서포트 티켓을 통해 문의하세요",按流量:"트래픽별",搜索文档:"문서 검색",技术支持:"기술 지원",当前剩余佣金:"현재 잔여 수수료",三级分销比例:"삼수준 분배 비율",累计获得佣金:"누적 수수료 획득","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"초대한 사용자가 다시 초대하면 주문 금액에 분배 비율을 곱하여 분배됩니다.",发放时间:"수수료 지급 시간","{number} 人":"{number} 명","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"구독 주소 또는 계정이 유출되어 다른 사람에게 남용되는 경우 여기에서 구독 정보를 재설정하여 불필요한 손실을 방지할 수 있습니다.",再次输入密码:"비밀번호를 다시 입력하세요",返回登陆:"로그인으로 돌아가기",选填:"선택 사항",必填:"필수",最后回复时间:"최근 답장 시간",请选项工单等级:"티켓 우선 순위 선택",回复:"답장",输入内容回复工单:"티켓에 대한 내용 입력",已生成:"생성됨",选择协议:"프로토콜 선택",自动:"자동",流量重置包:"데이터 리셋 패키지",复制失败:"복사 실패",提示:"알림","确认退出?":"로그아웃 확인?",已退出登录:"로그아웃 완료",请输入邮箱地址:"이메일 주소를 입력하세요","{second}秒后可重新发送":"{second} 초 후에 다시 전송 가능",发送成功:"전송 성공",请输入账号密码:"계정과 비밀번호를 입력하세요",请确保两次密码输入一致:"비밀번호 입력이 일치하는지 확인하세요",注册成功:"등록 성공","重置密码成功,正在返回登录":"비밀번호 재설정 성공, 로그인 페이지로 돌아가는 중",确认取消:"취소 확인","请注意,变更订阅会导致当前订阅被覆盖。":"구독 변경은 현재 구독을 덮어씁니다.","订单提交成功,正在跳转支付":"주문이 성공적으로 제출되었습니다. 지불로 이동 중입니다.",回复成功:"답장 성공",工单详情:"티켓 상세 정보",登录成功:"로그인 성공","确定退出?":"확실히 종료하시겠습니까?",支付成功:"결제 성공",正在前往收银台:"결제 진행 중",请输入正确的划转金额:"정확한 이체 금액을 입력하세요",划转成功:"이체 성공",提现方式不能为空:"출금 방식은 비워 둘 수 없습니다",提现账号不能为空:"출금 계좌는 비워 둘 수 없습니다",已绑定:"이미 연결됨",创建成功:"생성 성공",关闭成功:"종료 성공"},Kk=Object.freeze(Object.defineProperty({__proto__:null,default:G7e},Symbol.toStringTag,{value:"Module"})),X7e={请求失败:"Yêu Cầu Thất Bại",月付:"Tháng",季付:"Hàng Quý",半年付:"6 Tháng",年付:"Năm",两年付:"Hai Năm",三年付:"Ba Năm",一次性:"Dài Hạn",重置流量包:"Cập Nhật Dung Lượng",待支付:"Đợi Thanh Toán",开通中:"Đang xử lý",已取消:"Đã Hủy",已完成:"Thực Hiện",已折抵:"Quy Đổi",待确认:"Đợi Xác Nhận",发放中:"Đang Xác Nhận",已发放:"Hoàn Thành",无效:"Không Hợp Lệ",个人中心:"Trung Tâm Kiểm Soát",登出:"Đăng Xuất",搜索:"Tìm Kiếm",仪表盘:"Trang Chủ",订阅:"Gói Dịch Vụ",我的订阅:"Gói Dịch Vụ Của Tôi",购买订阅:"Mua Gói Dịch Vụ",财务:"Tài Chính",我的订单:"Đơn Hàng Của Tôi",我的邀请:"Lời Mời Của Tôi",用户:"Người Dùng",我的工单:"Liên Hệ Với Chúng Tôi",流量明细:"Chi Tiết Dung Lượng",使用文档:"Tài liệu sử dụng",绑定Telegram获取更多服务:"Liên kết Telegram thêm dịch vụ",点击这里进行绑定:"Ấn vào để liên kết",公告:"Thông Báo",总览:"Tổng Quat",该订阅长期有效:"Gói này có thời hạn dài",已过期:"Tài khoản hết hạn","已用 {used} / 总计 {total}":"Đã sử dụng {used} / Tổng dung lượng {total}",查看订阅:"Xem Dịch Vụ",邮箱:"E-mail",邮箱验证码:"Mã xác minh mail",发送:"Gửi",重置密码:"Đặt Lại Mật Khẩu",返回登入:"Về đăng nhập",邀请码:"Mã mời",复制链接:"Sao chép đường dẫn",完成时间:"Thời gian hoàn thành",佣金:"Tiền hoa hồng",已注册用户数:"Số người dùng đã đăng ký",佣金比例:"Tỷ lệ hoa hồng",确认中的佣金:"Hoa hồng đang xác nhận","佣金将会在确认后会到达你的佣金账户。":"Sau khi xác nhận tiền hoa hồng sẽ gửi đến tài khoản hoa hồng của bạn.",邀请码管理:"Quản lý mã mời",生成邀请码:"Tạo mã mời",佣金发放记录:"Hồ sơ hoa hồng",复制成功:"Sao chép thành công",密码:"Mật khẩu",登入:"Đăng nhập",注册:"Đăng ký",忘记密码:"Quên mật khẩu","# 订单号":"# Mã đơn hàng",周期:"Chu Kỳ",订单金额:"Tiền đơn hàng",订单状态:"Trạng thái đơn",创建时间:"Thời gian tạo",操作:"Thao tác",查看详情:"Xem chi tiết",请选择支付方式:"Chọn phương thức thanh toán",请检查信用卡支付信息:"Hãy kiểm tra thông tin thẻ thanh toán",订单详情:"Chi tiết đơn hàng",折扣:"Chiết khấu",折抵:"Giảm giá",退款:"Hoàn lại",支付方式:"Phương thức thanh toán",填写信用卡支付信息:"Điền thông tin Thẻ Tín Dụng","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"Thông tin thẻ tín dụng của bạn sẽ chỉ được sử dụng cho lần thanh toán này, hệ thống sẽ không lưu thông tin đó, chúng tôi nghĩ đây à cách an toàn nhất.",订单总额:"Tổng tiền đơn hàng",总计:"Tổng",结账:"Kết toán",等待支付中:"Đang chờ thanh toán","订单系统正在进行处理,请稍等1-3分钟。":"Hệ thống đang xử lý đơn hàng, vui lòng đợi 1-3p.","订单由于超时支付已被取消。":"Do quá giờ nên đã hủy đơn hàng.","订单已支付并开通。":"Đơn hàng đã thanh toán và mở.",选择订阅:"Chọn gói",立即订阅:"Mua gói ngay",配置订阅:"Thiết lập gói",付款周期:"Chu kỳ thanh toán","有优惠券?":"Có phiếu giảm giá?",验证:"Xác minh",下单:"Đặt hàng","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"Việc thay đổi gói dịch vụ sẽ thay thế gói hiện tại bằng gói mới, xin lưu ý.",该订阅无法续费:"Gói này không thể gia hạn",选择其他订阅:"Chọn gói dịch vụ khác",我的钱包:"Ví tiền của tôi","账户余额(仅消费)":"Số dư tài khoản (Chỉ tiêu dùng)","推广佣金(可提现)":"Tiền hoa hồng giới thiệu (Được rút)",钱包组成部分:"Thành phần ví tiền",划转:"Chuyển khoản",推广佣金提现:"Rút tiền hoa hồng giới thiệu",修改密码:"Đổi mật khẩu",保存:"Lưu",旧密码:"Mật khẩu cũ",新密码:"Mật khẩu mới",请输入旧密码:"Hãy nhập mật khẩu cũ",请输入新密码:"Hãy nhập mật khẩu mới",通知:"Thông Báo",到期邮件提醒:"Mail nhắc đến hạn",流量邮件提醒:"Mail nhắc dung lượng",绑定Telegram:"Liên kết Telegram",立即开始:"Bắt Đầu",重置订阅信息:"Reset thông tin gói",重置:"Reset","确定要重置订阅信息?":"Xác nhận reset thông tin gói?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"Nếu địa chỉ hoặc thông tin gói dịch vụ của bạn bị tiết lộ có thể tiến hành thao tác này. Sau khi reset UUID sẽ thay đổi.",重置成功:"Reset thành công",两次新密码输入不同:"Mật khẩu mới xác nhận không khớp",两次密码输入不同:"Mật khẩu xác nhận không khớp","邀请码(选填)":"Mã mời(Điền)",'我已阅读并同意 服务条款':"Tôi đã đọc và đồng ý điều khoản dịch vụ",请同意服务条款:"Hãy đồng ý điều khoản dịch vụ",名称:"Tên",标签:"Nhãn",状态:"Trạng thái",节点五分钟内节点在线情况:"Node trạng thái online trong vòng 5 phút",倍率:"Bội số",使用的流量将乘以倍率进行扣除:"Dung lượng sử dụng nhân với bội số rồi khấu trừ",更多操作:"Thêm thao tác","没有可用节点,如果您未订阅或已过期请":"Chưa có node khả dụng, nếu bạn chưa mua gói hoặc đã hết hạn hãy","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"Ấn 「OK」 sẽ chuyển đến trang thanh toán, sau khi thanh toán đơn hàng hệ thống sẽ xóa dung lượng đã dùng tháng này của bạn.",确定:"OK",低:"Thấp",中:"Vừa",高:"Cao",主题:"Chủ Đề",工单级别:"Cấp độ",工单状态:"Trạng thái",最后回复:"Trả lời gần đây",已关闭:"Đã đóng",待回复:"Chờ trả lời",已回复:"Đã trả lời",查看:"Xem",关闭:"Đóng",新的工单:"Việc mới",确认:"OK",请输入工单主题:"Hãy nhập chủ đề công việc",工单等级:"Cấp độ công việc",请选择工单等级:"Hãy chọn cấp độ công việc",消息:"Thông tin",请描述你遇到的问题:"Hãy mô tả vấn đề gặp phải",记录时间:"Thời gian ghi",实际上行:"Upload thực tế",实际下行:"Download thực tế",合计:"Cộng","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"Công thức: (upload thực tế + download thực tế) x bội số trừ phí = Dung lượng khấu trừ",复制订阅地址:"Sao chép liên kết",导入到:"Nhập vào",一键订阅:"Nhấp chuột để đồng bộ máy chủ",复制订阅:"Sao chép liên kết",推广佣金划转至余额:"Chuyển khoản hoa hồng giới thiệu đến số dư","划转后的余额仅用于{title}消费使用":"Số dư sau khi chuyển khoản chỉ dùng để tiêu dùng {title}",当前推广佣金余额:"Số dư hoa hồng giới thiệu hiện tại",划转金额:"Chuyển tiền",请输入需要划转到余额的金额:"Hãy nhậo số tiền muốn chuyển đến số dư","输入内容回复工单...":"Nhập nội dung trả lời công việc...",申请提现:"Yêu cầu rút tiền",取消:"Hủy",提现方式:"Phương thức rút tiền",请选择提现方式:"Hãy chọn phương thức rút tiền",提现账号:"Rút về tào khoản",请输入提现账号:"Hãy chọn tài khoản rút tiền",我知道了:"OK",第一步:"Bước 1",第二步:"Bước 2",打开Telegram搜索:"Mở Telegram tìm kiếm",向机器人发送你的:"Gửi cho bot","最后更新: {date}":"Cập nhật gần đây: {date}",还有没支付的订单:"Có đơn hàng chưa thanh toán",立即支付:"Thanh toán ngay",条工单正在处理中:" công việc đang xử lý",立即查看:"Xem Ngay",节点状态:"Trạng thái node",商品信息:"Thông tin",产品名称:"Tên sản phẩm","类型/周期":"Loại/Chu kỳ",产品流量:"Dung Lượng",订单信息:"Thông tin đơn hàng",关闭订单:"Đóng đơn hàng",订单号:"Mã đơn hàng",优惠金额:"Tiền ưu đãi",旧订阅折抵金额:"Tiền giảm giá gói cũ",退款金额:"Số tiền hoàn lại",余额支付:"Thanh toán số dư",工单历史:"Lịch sử đơn hàng","已用流量将在 {reset_day} 日后重置":"Dữ liệu đã sử dụng sẽ được đặt lại sau {reset_day} ngày",已用流量已在今日重置:"Dữ liệu đã sử dụng đã được đặt lại trong ngày hôm nay",重置已用流量:"Đặt lại dữ liệu đã sử dụng",查看节点状态:"Xem trạng thái nút","当前已使用流量达{rate}%":"Dữ liệu đã sử dụng hiện tại đạt {rate}%",节点名称:"Tên node","于 {date} 到期,距离到期还有 {day} 天。":"Hết hạn vào {date}, còn {day} ngày.","Telegram 讨论组":"Nhóm Telegram",立即加入:"Vào ngay","该订阅无法续费,仅允许新用户购买":"Đăng ký này không thể gia hạn, chỉ người dùng mới được phép mua",重置当月流量:"Đặt lại dung lượng tháng hiện tại","流量明细仅保留近月数据以供查询。":"Chi tiết dung lượng chỉ lưu dữ liệu của những tháng gần đây để truy vấn.",扣费倍率:"Tỷ lệ khấu trừ",支付手续费:"Phí thủ tục",续费订阅:"Gia hạn đăng ký",学习如何使用:"Hướng dẫn sử dụng",快速将节点导入对应客户端进行使用:"Bạn cần phải mua gói này",对您当前的订阅进行续费:"Gia hạn gói hiện tại",对您当前的订阅进行购买:"Mua gói bạn đã chọn",捷径:"Phím tắt","不会使用,查看使用教程":"Mua gói này nếu bạn đăng ký",使用支持扫码的客户端进行订阅:"Sử dụng ứng dụng quét mã để đăng ký",扫描二维码订阅:"Quét mã QR để đăng ký",续费:"Gia hạn",购买:"Mua",查看教程:"Xem hướng dẫn",注意:"Chú Ý","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"Bạn vẫn còn đơn đặt hàng chưa hoàn thành. Bạn cần hủy trước khi mua. Bạn có chắc chắn muốn hủy đơn đặt hàng trước đó không ?",确定取消:"Đúng/không",返回我的订单:"Quay lại đơn đặt hàng của tôi","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"Nếu bạn đã thanh toán, việc hủy đơn hàng có thể khiến việc thanh toán không thành công. Bạn có chắc chắn muốn hủy đơn hàng không ?",选择最适合你的计划:"Chọn kế hoạch phù hợp với bạn nhất",全部:"Tất cả",按周期:"Chu kỳ",遇到问题:"Chúng tôi có một vấn đề",遇到问题可以通过工单与我们沟通:"Nếu bạn gặp sự cố, bạn có thể liên lạc với chúng tôi thông qua ",按流量:"Theo lưu lượng",搜索文档:"Tìm kiếm tài liệu",技术支持:"Hỗ trợ kỹ thuật",当前剩余佣金:"Số dư hoa hồng hiện tại",三级分销比例:"Tỷ lệ phân phối cấp 3",累计获得佣金:"Tổng hoa hồng đã nhận","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"Người dùng bạn mời lại mời người dùng sẽ được chia theo tỷ lệ của số tiền đơn hàng nhân với cấp độ phân phối.",发放时间:"Thời gian thanh toán hoa hồng","{number} 人":"{number} người","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"Nếu địa chỉ đăng ký hoặc tài khoản của bạn bị rò rỉ và bị người khác lạm dụng, bạn có thể đặt lại thông tin đăng ký tại đây để tránh mất mát không cần thiết.",再次输入密码:"Nhập lại mật khẩu",返回登陆:"Quay lại Đăng nhập",选填:"Tùy chọn",必填:"Bắt buộc",最后回复时间:"Thời gian Trả lời Cuối cùng",请选项工单等级:"Vui lòng Chọn Mức độ Ưu tiên Công việc",回复:"Trả lời",输入内容回复工单:"Nhập Nội dung để Trả lời Công việc",已生成:"Đã tạo",选择协议:"Chọn Giao thức",自动:"Tự động",流量重置包:"Gói Reset Dữ liệu",复制失败:"Sao chép thất bại",提示:"Thông báo","确认退出?":"Xác nhận Đăng xuất?",已退出登录:"Đã đăng xuất thành công",请输入邮箱地址:"Nhập địa chỉ email","{second}秒后可重新发送":"Gửi lại sau {second} giây",发送成功:"Gửi thành công",请输入账号密码:"Nhập tên đăng nhập và mật khẩu",请确保两次密码输入一致:"Đảm bảo hai lần nhập mật khẩu giống nhau",注册成功:"Đăng ký thành công","重置密码成功,正在返回登录":"Đặt lại mật khẩu thành công, đang quay trở lại trang đăng nhập",确认取消:"Xác nhận Hủy","请注意,变更订阅会导致当前订阅被覆盖。":"Vui lòng lưu ý rằng thay đổi đăng ký sẽ ghi đè lên đăng ký hiện tại.","订单提交成功,正在跳转支付":"Đơn hàng đã được gửi thành công, đang chuyển hướng đến thanh toán.",回复成功:"Trả lời thành công",工单详情:"Chi tiết Ticket",登录成功:"Đăng nhập thành công","确定退出?":"Xác nhận thoát?",支付成功:"Thanh toán thành công",正在前往收银台:"Đang tiến hành thanh toán",请输入正确的划转金额:"Vui lòng nhập số tiền chuyển đúng",划转成功:"Chuyển khoản thành công",提现方式不能为空:"Phương thức rút tiền không được để trống",提现账号不能为空:"Tài khoản rút tiền không được để trống",已绑定:"Đã liên kết",创建成功:"Tạo thành công",关闭成功:"Đóng thành công"},Gk=Object.freeze(Object.defineProperty({__proto__:null,default:X7e},Symbol.toStringTag,{value:"Module"})),Y7e={请求失败:"请求失败",月付:"月付",季付:"季付",半年付:"半年付",年付:"年付",两年付:"两年付",三年付:"三年付",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"开通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待确认",发放中:"发放中",已发放:"已发放",无效:"无效",个人中心:"个人中心",登出:"登出",搜索:"搜索",仪表盘:"仪表盘",订阅:"订阅",我的订阅:"我的订阅",购买订阅:"购买订阅",财务:"财务",我的订单:"我的订单",我的邀请:"我的邀请",用户:"用户",我的工单:"我的工单",流量明细:"流量明细",使用文档:"使用文档",绑定Telegram获取更多服务:"绑定 Telegram 获取更多服务",点击这里进行绑定:"点击这里进行绑定",公告:"公告",总览:"总览",该订阅长期有效:"该订阅长期有效",已过期:"已过期","已用 {used} / 总计 {total}":"已用 {used} / 总计 {total}",查看订阅:"查看订阅",邮箱:"邮箱",邮箱验证码:"邮箱验证码",发送:"发送",重置密码:"重置密码",返回登入:"返回登入",邀请码:"邀请码",复制链接:"复制链接",完成时间:"完成时间",佣金:"佣金",已注册用户数:"已注册用户数",佣金比例:"佣金比例",确认中的佣金:"确认中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金将会在确认后到达您的佣金账户。",邀请码管理:"邀请码管理",生成邀请码:"生成邀请码",佣金发放记录:"佣金发放记录",复制成功:"复制成功",密码:"密码",登入:"登入",注册:"注册",忘记密码:"忘记密码","# 订单号":"# 订单号",周期:"周期",订单金额:"订单金额",订单状态:"订单状态",创建时间:"创建时间",操作:"操作",查看详情:"查看详情",请选择支付方式:"请选择支付方式",请检查信用卡支付信息:"请检查信用卡支付信息",订单详情:"订单详情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填写信用卡支付信息","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡信息只会用于当次扣款,系统并不会保存,我们认为这是最安全的。",订单总额:"订单总额",总计:"总计",结账:"结账",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"订单系统正在进行处理,请等候 1-3 分钟。","订单由于超时支付已被取消。":"订单由于超时支付已被取消。","订单已支付并开通。":"订单已支付并开通。",选择订阅:"选择订阅",立即订阅:"立即订阅",配置订阅:"配置订阅",付款周期:"付款周期","有优惠券?":"有优惠券?",验证:"验证",下单:"下单","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"请注意,变更订阅会导致当前订阅被新订阅覆盖。",该订阅无法续费:"该订阅无法续费",选择其他订阅:"选择其它订阅",我的钱包:"我的钱包","账户余额(仅消费)":"账户余额(仅消费)","推广佣金(可提现)":"推广佣金(可提现)",钱包组成部分:"钱包组成部分",划转:"划转",推广佣金提现:"推广佣金提现",修改密码:"修改密码",保存:"保存",旧密码:"旧密码",新密码:"新密码",请输入旧密码:"请输入旧密码",请输入新密码:"请输入新密码",通知:"通知",到期邮件提醒:"到期邮件提醒",流量邮件提醒:"流量邮件提醒",绑定Telegram:"绑定 Telegram",立即开始:"立即开始",重置订阅信息:"重置订阅信息",重置:"重置","确定要重置订阅信息?":"确定要重置订阅信息?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的订阅地址或信息发生泄露可以执行此操作。重置后您的 UUID 及订阅将会变更,需要重新导入订阅。",重置成功:"重置成功",两次新密码输入不同:"两次新密码输入不同",两次密码输入不同:"两次密码输入不同","邀请码(选填)":"邀请码(选填)",'我已阅读并同意 服务条款':'我已阅读并同意 服务条款',请同意服务条款:"请同意服务条款",名称:"名称",标签:"标签",状态:"状态",节点五分钟内节点在线情况:"五分钟内节点在线情况",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量将乘以倍率进行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"没有可用节点,如果您未订阅或已过期请","确定重置当前已用流量?":"确定重置当前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。",确定:"确定",低:"低",中:"中",高:"高",主题:"主题",工单级别:"工单级别",工单状态:"工单状态",最后回复:"最后回复",已关闭:"已关闭",待回复:"待回复",已回复:"已回复",查看:"查看",关闭:"关闭",新的工单:"新的工单",确认:"确认",请输入工单主题:"请输入工单主题",工单等级:"工单等级",请选择工单等级:"请选择工单等级",消息:"消息",请描述你遇到的问题:"请描述您遇到的问题",记录时间:"记录时间",实际上行:"实际上行",实际下行:"实际下行",合计:"合计","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量",复制订阅地址:"复制订阅地址",导入到:"导入到",一键订阅:"一键订阅",复制订阅:"复制订阅",推广佣金划转至余额:"推广佣金划转至余额","划转后的余额仅用于{title}消费使用":"划转后的余额仅用于{title}消费使用",当前推广佣金余额:"当前推广佣金余额",划转金额:"划转金额",请输入需要划转到余额的金额:"请输入需要划转到余额的金额","输入内容回复工单...":"输入内容回复工单...",申请提现:"申请提现",取消:"取消",提现方式:"提现方式",请选择提现方式:"请选择提现方式",提现账号:"提现账号",请输入提现账号:"请输入提现账号",我知道了:"我知道了",第一步:"第一步",第二步:"第二步",打开Telegram搜索:"打开 Telegram 搜索",向机器人发送你的:"向机器人发送您的",最后更新:"{date}",还有没支付的订单:"还有没支付的订单",立即支付:"立即支付",条工单正在处理中:"条工单正在处理中",立即查看:"立即查看",节点状态:"节点状态",商品信息:"商品信息",产品名称:"产品名称","类型/周期":"类型/周期",产品流量:"产品流量",订单信息:"订单信息",关闭订单:"关闭订单",订单号:"订单号",优惠金额:"优惠金额",旧订阅折抵金额:"旧订阅折抵金额",退款金额:"退款金额",余额支付:"余额支付",工单历史:"工单历史","已用流量将在 {reset_day} 日后重置":"已用流量将在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看节点状态","当前已使用流量达{rate}%":"当前已使用流量达 {rate}%",节点名称:"节点名称","于 {date} 到期,距离到期还有 {day} 天。":"于 {date} 到期,距离到期还有 {day} 天。","Telegram 讨论组":"Telegram 讨论组",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"该订阅无法续费,仅允许新用户购买",重置当月流量:"重置当月流量","流量明细仅保留近月数据以供查询。":"流量明细仅保留近一个月数据以供查询。",扣费倍率:"扣费倍率",支付手续费:"支付手续费",续费订阅:"续费订阅",学习如何使用:"学习如何使用",快速将节点导入对应客户端进行使用:"快速将节点导入对应客户端进行使用",对您当前的订阅进行续费:"对您当前的订阅进行续费",对您当前的订阅进行购买:"对您当前的订阅进行购买",捷径:"捷径","不会使用,查看使用教程":"不会使用,查看使用教程",使用支持扫码的客户端进行订阅:"使用支持扫码的客户端进行订阅",扫描二维码订阅:"扫描二维码订阅",续费:"续费",购买:"购买",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"确定取消",返回我的订单:"返回我的订单","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已经付款,取消订单可能会导致支付失败,确定要取消订单吗?",选择最适合你的计划:"选择最适合您的计划",全部:"全部",按周期:"按周期",遇到问题:"遇到问题",遇到问题可以通过工单与我们沟通:"遇到问题可以通过工单与我们沟通",按流量:"按流量",搜索文档:"搜索文档",技术支持:"技术支持",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。",再次输入密码:"再次输入密码",返回登陆:"返回登录",选填:"选填",必填:"必填",最后回复时间:"最后回复时间",请选项工单等级:"请选择工单优先级",回复:"回复",输入内容回复工单:"输入内容回复工单",已生成:"已生成",选择协议:"选择协议",自动:"自动",流量重置包:"流量重置包",复制失败:"复制失败",提示:"提示","确认退出?":"确认退出?",已退出登录:"已成功退出登录",请输入邮箱地址:"请输入邮箱地址","{second}秒后可重新发送":"{second}秒后可重新发送",发送成功:"发送成功",请输入账号密码:"请输入账号密码",请确保两次密码输入一致:"请确保两次密码输入一致",注册成功:"注册成功","重置密码成功,正在返回登录":"重置密码成功,正在返回登录",确认取消:"确认取消","请注意,变更订阅会导致当前订阅被覆盖。":"请注意,变更订阅会导致当前订阅被覆盖。","订单提交成功,正在跳转支付":"订单提交成功,正在跳转支付",回复成功:"回复成功",工单详情:"工单详情",登录成功:"登录成功","确定退出?":"确定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收银台",请输入正确的划转金额:"请输入正确的划转金额",划转成功:"划转成功",提现方式不能为空:"提现方式不能为空",提现账号不能为空:"提现账号不能为空",已绑定:"已绑定",创建成功:"创建成功",关闭成功:"关闭成功"},Xk=Object.freeze(Object.defineProperty({__proto__:null,default:Y7e},Symbol.toStringTag,{value:"Module"})),Q7e={请求失败:"請求失敗",月付:"月繳制",季付:"季繳",半年付:"半年缴",年付:"年繳",两年付:"兩年繳",三年付:"三年繳",一次性:"一次性",重置流量包:"重置流量包",待支付:"待支付",开通中:"開通中",已取消:"已取消",已完成:"已完成",已折抵:"已折抵",待确认:"待確認",发放中:"發放中",已发放:"已發放",无效:"無效",个人中心:"您的帳戸",登出:"登出",搜索:"搜尋",仪表盘:"儀表板",订阅:"訂閱",我的订阅:"我的訂閱",购买订阅:"購買訂閱",财务:"財務",我的订单:"我的訂單",我的邀请:"我的邀請",用户:"使用者",我的工单:"我的工單",流量明细:"流量明細",使用文档:"說明文件",绑定Telegram获取更多服务:"綁定 Telegram 獲取更多服務",点击这里进行绑定:"點擊這裡進行綁定",公告:"公告",总览:"總覽",该订阅长期有效:"該訂閱長期有效",已过期:"已過期","已用 {used} / 总计 {total}":"已用 {used} / 總計 {total}",查看订阅:"查看訂閱",邮箱:"郵箱",邮箱验证码:"郵箱驗證碼",发送:"傳送",重置密码:"重設密碼",返回登入:"返回登錄",邀请码:"邀請碼",复制链接:"複製鏈接",完成时间:"完成時間",佣金:"佣金",已注册用户数:"已註冊用戶數",佣金比例:"佣金比例",确认中的佣金:"確認中的佣金","佣金将会在确认后会到达你的佣金账户。":"佣金將會在確認後到達您的佣金帳戶。",邀请码管理:"邀請碼管理",生成邀请码:"生成邀請碼",佣金发放记录:"佣金發放記錄",复制成功:"複製成功",密码:"密碼",登入:"登入",注册:"註冊",忘记密码:"忘記密碼","# 订单号":"# 訂單號",周期:"週期",订单金额:"訂單金額",订单状态:"訂單狀態",创建时间:"創建時間",操作:"操作",查看详情:"查看詳情",请选择支付方式:"請選擇支付方式",请检查信用卡支付信息:"請檢查信用卡支付資訊",订单详情:"訂單詳情",折扣:"折扣",折抵:"折抵",退款:"退款",支付方式:"支付方式",填写信用卡支付信息:"填寫信用卡支付資訊","您的信用卡信息只会被用作当次扣款,系统并不会保存,这是我们认为最安全的。":"您的信用卡資訊只會被用作當次扣款,系統並不會保存,我們認為這是最安全的。",订单总额:"訂單總額",总计:"總計",结账:"結賬",等待支付中:"等待支付中","订单系统正在进行处理,请稍等1-3分钟。":"訂單系統正在進行處理,請稍等 1-3 分鐘。","订单由于超时支付已被取消。":"訂單由於支付超時已被取消","订单已支付并开通。":"訂單已支付並開通",选择订阅:"選擇訂閱",立即订阅:"立即訂閱",配置订阅:"配置訂閱",付款周期:"付款週期","有优惠券?":"有優惠券?",验证:"驗證",下单:"下單","变更订阅会导致当前订阅被新订阅覆盖,请注意。":"請注意,變更訂閱會導致當前訂閱被新訂閱覆蓋。",该订阅无法续费:"該訂閱無法續費",选择其他订阅:"選擇其它訂閱",我的钱包:"我的錢包","账户余额(仅消费)":"賬戶餘額(僅消費)","推广佣金(可提现)":"推廣佣金(可提現)",钱包组成部分:"錢包組成部分",划转:"劃轉",推广佣金提现:"推廣佣金提現",修改密码:"修改密碼",保存:"儲存",旧密码:"舊密碼",新密码:"新密碼",请输入旧密码:"請輸入舊密碼",请输入新密码:"請輸入新密碼",通知:"通知",到期邮件提醒:"到期郵件提醒",流量邮件提醒:"流量郵件提醒",绑定Telegram:"綁定 Telegram",立即开始:"立即開始",重置订阅信息:"重置訂閲資訊",重置:"重置","确定要重置订阅信息?":"確定要重置訂閱資訊?","如果你的订阅地址或信息泄露可以进行此操作。重置后你的UUID及订阅将会变更,需要重新进行订阅。":"如果您的訂閱位址或資訊發生洩露可以執行此操作。重置後您的 UUID 及訂閱將會變更,需要重新導入訂閱。",重置成功:"重置成功",两次新密码输入不同:"兩次新密碼輸入不同",两次密码输入不同:"兩次密碼輸入不同","邀请码(选填)":"邀請碼(選填)",'我已阅读并同意 服务条款':'我已閱讀並同意 服務條款',请同意服务条款:"請同意服務條款",名称:"名稱",标签:"標籤",状态:"狀態",节点五分钟内节点在线情况:"五分鐘內節點線上情況",倍率:"倍率",使用的流量将乘以倍率进行扣除:"使用的流量將乘以倍率進行扣除",更多操作:"更多操作","没有可用节点,如果您未订阅或已过期请":"沒有可用節點,如果您未訂閱或已過期請","确定重置当前已用流量?":"確定重置當前已用流量?","点击「确定」将会跳转到收银台,支付订单后系统将会清空您当月已使用流量。":"點擊「確定」將會跳轉到收銀台,支付訂單後系統將會清空您當月已使用流量。",确定:"確定",低:"低",中:"中",高:"高",主题:"主題",工单级别:"工單級別",工单状态:"工單狀態",最后回复:"最新回復",已关闭:"已關閉",待回复:"待回復",已回复:"已回復",查看:"檢視",关闭:"關閉",新的工单:"新的工單",确认:"確認",请输入工单主题:"請輸入工單主題",工单等级:"工單等級",请选择工单等级:"請選擇工單等級",消息:"訊息",请描述你遇到的问题:"請描述您遇到的問題",记录时间:"記錄時間",实际上行:"實際上行",实际下行:"實際下行",合计:"合計","公式:(实际上行 + 实际下行) x 扣费倍率 = 扣除流量":"公式:(實際上行 + 實際下行) x 扣費倍率 = 扣除流量",复制订阅地址:"複製訂閲位址",导入到:"导入到",一键订阅:"一鍵訂閲",复制订阅:"複製訂閲",推广佣金划转至余额:"推廣佣金劃轉至餘額","划转后的余额仅用于{title}消费使用":"劃轉后的餘額僅用於 {title} 消費使用",当前推广佣金余额:"當前推廣佣金餘額",划转金额:"劃轉金額",请输入需要划转到余额的金额:"請輸入需要劃轉到餘額的金額","输入内容回复工单...":"輸入内容回復工單…",申请提现:"申請提現",取消:"取消",提现方式:"提現方式",请选择提现方式:"請選擇提現方式",提现账号:"提現賬號",请输入提现账号:"請輸入提現賬號",我知道了:"我知道了",第一步:"步驟一",第二步:"步驟二",打开Telegram搜索:"打開 Telegram 並搜索",向机器人发送你的:"向機器人發送您的","最后更新: {date}":"最後更新: {date}",还有没支付的订单:"還有未支付的訂單",立即支付:"立即支付",条工单正在处理中:"條工單正在處理中",立即查看:"立即檢視",节点状态:"節點狀態",商品信息:"商品資訊",产品名称:"產品名稱","类型/周期":"類型/週期",产品流量:"產品流量",订单信息:"訂單信息",关闭订单:"關閉訂單",订单号:"訂單號",优惠金额:"優惠金額",旧订阅折抵金额:"舊訂閲折抵金額",退款金额:"退款金額",余额支付:"餘額支付",工单历史:"工單歷史","已用流量将在 {reset_day} 日后重置":"已用流量將在 {reset_day} 日后重置",已用流量已在今日重置:"已用流量已在今日重置",重置已用流量:"重置已用流量",查看节点状态:"查看節點狀態","当前已使用流量达{rate}%":"當前已用流量達 {rate}%",节点名称:"節點名稱","于 {date} 到期,距离到期还有 {day} 天。":"於 {date} 到期,距離到期還有 {day} 天。","Telegram 讨论组":"Telegram 討論組",立即加入:"立即加入","该订阅无法续费,仅允许新用户购买":"該訂閲無法續費,僅允許新用戶購買",重置当月流量:"重置當月流量","流量明细仅保留近月数据以供查询。":"流量明細僅保留近一個月資料以供查詢。",扣费倍率:"扣费倍率",支付手续费:"支付手續費",续费订阅:"續費訂閲",学习如何使用:"學習如何使用",快速将节点导入对应客户端进行使用:"快速將訂閲導入對應的客戶端進行使用",对您当前的订阅进行续费:"對您的當前訂閲進行續費",对您当前的订阅进行购买:"重新購買您的當前訂閲",捷径:"捷徑","不会使用,查看使用教程":"不會使用,檢視使用檔案",使用支持扫码的客户端进行订阅:"使用支持掃碼的客戶端進行訂閲",扫描二维码订阅:"掃描二維碼訂閲",续费:"續費",购买:"購買",查看教程:"查看教程",注意:"注意","你还有未完成的订单,购买前需要先进行取消,确定取消先前的订单吗?":"您还有未完成的订单,购买前需要先取消,确定要取消之前的订单吗?",确定取消:"確定取消",返回我的订单:"返回我的訂單","如果你已经付款,取消订单可能会导致支付失败,确定取消订单吗?":"如果您已經付款,取消訂單可能會導致支付失敗,確定要取消訂單嗎?",选择最适合你的计划:"選擇最適合您的計劃",全部:"全部",按周期:"按週期",遇到问题:"遇到問題",遇到问题可以通过工单与我们沟通:"遇到問題您可以通過工單與我們溝通",按流量:"按流量",搜索文档:"搜尋文檔",技术支持:"技術支援",当前剩余佣金:"当前剩余佣金",三级分销比例:"三级分销比例",累计获得佣金:"累计获得佣金","您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。":"您邀请的用户再次邀请用户将按照订单金额乘以分销等级的比例进行分成。",发放时间:"发放时间","{number} 人":"{number} 人","当你的订阅地址或账户发生泄漏被他人滥用时,可以在此重置订阅信息。避免带来不必要的损失。":"如果您的訂閱地址或帳戶洩漏並被他人濫用,您可以在此重置訂閱資訊,以避免不必要的損失。",再次输入密码:"請再次輸入密碼",返回登陆:"返回登入",选填:"選填",必填:"必填",最后回复时间:"最後回覆時間",请选项工单等级:"請選擇工單優先級",回复:"回覆",输入内容回复工单:"輸入內容回覆工單",已生成:"已生成",选择协议:"選擇協議",自动:"自動",流量重置包:"流量重置包",复制失败:"複製失敗",提示:"提示","确认退出?":"確認退出?",已退出登录:"已成功登出",请输入邮箱地址:"請輸入電子郵件地址","{second}秒后可重新发送":"{second} 秒後可重新發送",发送成功:"發送成功",请输入账号密码:"請輸入帳號和密碼",请确保两次密码输入一致:"請確保兩次密碼輸入一致",注册成功:"註冊成功","重置密码成功,正在返回登录":"重置密碼成功,正在返回登入",确认取消:"確認取消","请注意,变更订阅会导致当前订阅被覆盖。":"請注意,變更訂閱會導致目前的訂閱被覆蓋。","订单提交成功,正在跳转支付":"訂單提交成功,正在跳轉支付",回复成功:"回覆成功",工单详情:"工單詳情",登录成功:"登入成功","确定退出?":"確定退出?",支付成功:"支付成功",正在前往收银台:"正在前往收銀台",请输入正确的划转金额:"請輸入正確的劃轉金額",划转成功:"劃轉成功",提现方式不能为空:"提現方式不能為空",提现账号不能为空:"提現帳號不能為空",已绑定:"已綁定",创建成功:"創建成功",关闭成功:"關閉成功"},Yk=Object.freeze(Object.defineProperty({__proto__:null,default:Q7e},Symbol.toStringTag,{value:"Module"}))});export default J7e(); diff --git a/theme/Xboard/assets/umi.js.br b/theme/Xboard/assets/umi.js.br index 644dffb..8c66be6 100644 Binary files a/theme/Xboard/assets/umi.js.br and b/theme/Xboard/assets/umi.js.br differ diff --git a/theme/Xboard/assets/umi.js.gz b/theme/Xboard/assets/umi.js.gz index a3ced01..aa206be 100644 Binary files a/theme/Xboard/assets/umi.js.gz and b/theme/Xboard/assets/umi.js.gz differ