4 Commits
Author SHA1 Message Date
jinghui da4a6f8e91 feat: 躺赚鱼 v3.6.6 —— 关于页信息更新
- 官网改为导航站 https://nav.88531.cn
- 移除 QQ 交流群卡片(群号 1037854503 整块删除),支持区四列改三列
- 联系邮箱改为 3970260761@qq.com

build 通过;线上 chunk 实测新值已生效、旧值与 QQ 相关内容 0 残留。
2026-11-16 10:01:48 +08:00
jinghui 56e13a75b4 feat: 躺赚鱼 v3.6.5 —— 新增「使用说明」图文教程页
- 左侧定位菜单(四组17功能,点击平滑滚动 + 滚动高亮跟随),右侧功能步骤 + 小提示 + 真实界面截图
- 17 张实拍截图入 static/help/(lazy 加载),窄屏自动降级横向菜单
- 侧边栏「系统」组新增入口(所有用户可见)
- require_admin 判定统一走 ADMIN_USERNAME 常量(消除与 verify_admin_token 的硬编码不一致)

浏览器实测:1440×900 桌面布局 nav/content 左右分栏、点击定位与高亮均通过、17/17 图片 200 且渲染清晰;
临时测试账号与会话已清理。
2026-11-16 09:47:09 +08:00
jinghui b0021953f5 feat: 躺赚鱼 v3.6.4 —— 价格监控换行 + 邮件通知复用系统设置
- 价格监控页超长文本改 break-words 自动换行(规则/关键词/最近一次列 + 历史弹窗),
  消除单行撑宽导致的横向滚动条
- 邮件通知渠道 SMTP 四项改为可留空,发送阶段自动回退「系统设置 → 邮件服务」,
  只需填接收邮箱;去掉强制 587 默认端口
- 「未配置 price_watch 事件的通知渠道」报错改为可操作指引(通知与日志页勾选价格监控)
- email 渠道必填校验收窄为仅接收邮箱

验证:端到端 _run_rule notified=True 邮件真实发出;生产日志 00:25 通知=成功;
CSS break-words 与新提示文案均进构建产物;测试脏数据已清理。
2026-11-16 02:00:11 +08:00
jinghui 3d158661e1 fix: SMTP 邮件服务 465 端口按隐式 SSL 连接
系统设置「发送测试邮件」报 SMTP 服务器返回错误:Connection unexpectedly closed。
根因: smtp_use_ssl 是隐藏字段(UI 无开关、库里 false),代码只看该标志就对 QQ 465 端口
明文连接再 STARTTLS,明文 EHLO 即被服务器断开。
修复: _send_email_via_smtp 按端口兜底 use_ssl = smtp_use_ssl or smtp_port == 465,
与 notification_sender._send_email_sync 的 465→SSL 约定一致。
受益: 测试发信 + 注册邮箱验证码。实测原配置 ok=True 邮件发出。
2026-11-16 01:24:39 +08:00
100 changed files with 698 additions and 171 deletions

No files matched your search

+95
View File
@@ -4,6 +4,101 @@
---
## 2026-11-16 · v3.6.6
### ✏️ 调整
- **关于页**(侧边栏 → 系统 → 关于)三项信息更新:
- 官网改为导航站 `https://nav.88531.cn`(原 www.88531.cn)
- 移除「QQ 交流群」卡片(点击加入 / 群号 1037854503 / 手动搜索提示整块删除,支持区四列改三列)
- 联系邮箱改为 `3970260761@qq.com`(原 admin@88531.cn)
### ✅ 验证
- `npm run build` 通过;线上 chunk 实测:`nav.88531.cn`、`3970260761@qq.com` 已在,
`1037854503`、`QQ 交流群`、`mqqapi`、`admin@88531.cn` 全部 0 残留
---
## 2026-11-16 · v3.6.5
### ✨ 新功能
- **新增「使用说明」页面**(侧边栏 → 系统 → 使用说明,所有用户可见):
- **左侧定位菜单**:按「快速开始 / 闲鱼业务 / 消息与自动化 / 系统」四组列出 17 个功能入口,
点击平滑滚动到对应章节,滚动时菜单自动高亮当前所在章节(IntersectionObserver)
- **右侧图文教程**:每节含功能定位、3-5 步操作步骤、小提示(黄底提示框)与**真实界面截图**
(`/static/help/<id>.png`,17 张实拍截图 lazy 加载)
- 窄屏(<1024px)自动降级为顶部横向菜单,桌面端固定左侧竖排(sticky 跟随滚动)
- 覆盖:系统总览、账号管理、商品与发货、一键转卖、实时热卖榜、价格监控、订单管理、
买家互动、卡密库存、消息中心、自动回复、AI 回复、商品自动化、通知与日志、系统设置、用户管理、关于
- **侧边栏「系统」组新增「使用说明」入口**(BookOpen 图标,组内第一项)
### 🐛 修复
- **`require_admin` 管理员判定统一改用 `ADMIN_USERNAME` 常量**(原为硬编码字符串 `'admin'`,
与 `verify_admin_token` 的常量判定不一致;默认值相同,行为无变化)
### ✅ 验证
- 浏览器实测(1440×900 桌面视口):菜单存在 → 点击进入 → 17 节渲染 → 点「价格监控」平滑定位
→ 菜单高亮跟随(价格监控/卡密库存均实测)→ 配图 lazy 加载显示清晰(无裂图,17/17 URL 全 200)
- 窄屏 780px 实测:横向菜单 fallback 正常
- 临时测试会话与账号已删除(用户表仅剩原有 admin/jinghui),代码无临时标记残留
---
## 2026-11-16 · v3.6.4
### ✨ 新功能
- **邮件通知渠道支持复用「系统设置 → 邮件服务」**:渠道表单里 SMTP 服务器/端口/发件邮箱/授权码四项均可留空,
留空时发送阶段自动回退系统设置里已配置的 SMTP,**只需填接收邮箱**即可发通知
(前端四项已标注「留空则使用系统设置…」提示,去掉了原来强制的 587 端口默认值)
### 🐛 修复
- **价格监控页超长数据显示换行**:「规则/关键词/最近一次」列及历史记录弹窗里的商品标题
原为 `truncate`(单行不换行,长标题把表格撑出横向滚动条),改为 `break-words` 自动换行完整显示
(Tailwind 已生成 `overflow-wrap:break-word`,构建产物 PriceWatch-BuHp31pO.js 已含新类)
- **价格监控通知失败提示改为可操作的指引**:原「未配置 price_watch 事件的通知渠道」
→「未配置价格监控通知:请到「通知与日志」页新增/编辑规则,选择该账号与通知渠道,并在事件里勾选「价格监控」」
- **通知渠道必填校验收窄**:email 渠道原要求 SMTP 五项全必填(留空直接报「渠道配置无效」),
现在仅接收邮箱必填;SMTP 端口留空时跳过端口校验,发送阶段由系统设置兜底
### ✅ 验证
- **通知链路端到端**:容器内打桩搜索跑完整 `_run_rule`(规则未指定账号、走自动选号)→
`notified=True notify_error=''`,邮件真实发出;生产日志亦有 `00:25:07 价格监控[平板] 通知=成功`
- **邮件渠道回退**:只填 `{"recipient_email": ...}` 调用 `sender.send` → 日志显示读取了
smtp_server/smtp_port/smtp_user/smtp_password/smtp_use_tls/smtp_use_ssl 六项系统设置后发送成功
- **CSS/产物**:`break-words{overflow-wrap:break-word}` 已进样式表,新提示文案已进 NotificationsAndLogs 产物
- 测试产生的 3 条探测记录与规则状态已清理还原
---
## 2026-11-16 · v3.6.3
### 🐛 修复
- **系统设置 → 邮件服务:测试发送报「SMTP 服务器返回错误:Connection unexpectedly closed」**
- **根因**:QQ 邮箱 465 端口是隐式 SSL(SMTPS),但 `smtp_use_ssl` 是隐藏字段——UI 没有这个开关、库里存的是 `false`,
代码只看该标志就走**明文** SMTP 再 STARTTLS,明文 EHLO 一发即被服务器断开
- **修复**:`app/db_manager.py` 的 `_send_email_via_smtp` 改为**按端口兜底**——
`use_ssl = smtp_use_ssl or smtp_port == 465`,465 强制 `SMTP_SSL`、其余端口仍按 `smtp_use_tls` 走 STARTTLS,
与 `notification_sender._send_email_sync` 既有的 465→SSL 约定保持一致;UI 与配置无需改动
- **受益路径**:系统设置「发送测试邮件」与「注册邮箱验证码」(两者共用该函数);通知渠道原本就按端口判断,不受影响
### ✅ 验证
- **修复前复现**:容器内按库里同一份配置(`smtp.qq.com:465, ssl=false, tls=true`)明文连接,
抛出 `SMTPServerDisconnected -> Connection unexpectedly closed`,与用户报错一字不差
- **修复后实测**:进程内直调 `send_test_email`(配置值原样取自 `system_settings`,未改库)→
`RESULT ok=True 测试邮件已发送至 3970260761@qq.com`,服务端日志 `验证码邮件发送成功(SMTP)`
- 语法双检通过(宿主 `py_compile` + 容器内 `ast.parse`),`docker restart xianyu-butler` 后生效
---
## 2026-11-15 · v3.6.2
### ✨ 新功能
+7 -2
View File
@@ -4532,13 +4532,18 @@ class DBManager:
msg.attach(MIMEText(text_content, 'plain', 'utf-8'))
# 不设超时的 SMTP 连接可能无限挂起,连带拖住发码请求
if smtp_use_ssl:
# 465 是隐式 SSL(SMTPS)端口:QQ 等服务在该端口只接受 TLS 握手,
# 明文连上去发 EHLO 会被直接断开(Connection unexpectedly closed)。
# smtp_use_ssl 是隐藏字段、UI 不暴露,不能只信它——按端口兜底,
# 与 notification_sender._send_email_sync 的 465→SSL 约定保持一致。
use_ssl = smtp_use_ssl or smtp_port == 465
if use_ssl:
server = smtplib.SMTP_SSL(smtp_server, smtp_port, timeout=30)
else:
server = smtplib.SMTP(smtp_server, smtp_port, timeout=30)
server.ehlo()
if smtp_use_tls and not smtp_use_ssl:
if smtp_use_tls and not use_ssl:
server.starttls()
server.ehlo()
+1 -1
View File
@@ -297,7 +297,7 @@ def get_user_log_prefix(user_info: Dict[str, Any] = None) -> str:
def require_admin(current_user: Dict[str, Any] = Depends(get_current_user)) -> Dict[str, Any]:
"""要求管理员权限"""
if current_user['username'] != 'admin':
if current_user['username'] != ADMIN_USERNAME:
raise HTTPException(status_code=403, detail="需要管理员权限")
return current_user
+4 -1
View File
@@ -449,7 +449,10 @@ async def _notify(rule: Dict[str, Any], record: Dict[str, Any],
) if cookie_id else []
enabled = [n for n in notifications if n.get("enabled", True)]
if not enabled:
return False, "未配置 price_watch 事件的通知渠道"
return False, (
"未配置价格监控通知:请到「通知与日志」页新增/编辑规则,"
"选择该账号与通知渠道,并在事件里勾选「价格监控」"
)
message = _build_message(rule, record)
sender = NotificationSender()
+16 -8
View File
@@ -11,7 +11,10 @@ NOTIFICATION_CHANNEL_REQUIRED_FIELDS = {
"dingtalk": ("webhook_url",),
"feishu": ("webhook_url",),
"bark": ("device_key",),
"email": ("smtp_server", "smtp_port", "email_user", "email_password", "recipient_email"),
# 邮件渠道的 SMTP 四项允许留空:留空时发送阶段自动回退到
# 「系统设置 → 邮件服务」里已配置的 SMTP(smtp_server 等),
# 只有接收邮箱是必需的。
"email": ("recipient_email",),
"webhook": ("webhook_url",),
"wechat": ("webhook_url",),
"telegram": ("bot_token", "chat_id"),
@@ -76,13 +79,18 @@ def validate_channel_config(channel_type: Any, config: Any) -> tuple[str, dict[s
)
if normalized_type == "email":
try:
smtp_port = int(config_data["smtp_port"])
except (TypeError, ValueError) as exc:
raise NotificationChannelConfigError("SMTP 端口必须是数字") from exc
if not 1 <= smtp_port <= 65535:
raise NotificationChannelConfigError("SMTP 端口必须在 1-65535 之间")
config_data["smtp_port"] = smtp_port
smtp_port = config_data.get("smtp_port")
if _is_blank(smtp_port):
# 未填端口:发送阶段会用系统设置里的 SMTP 配置兜底,这里跳过校验
config_data.pop("smtp_port", None)
else:
try:
smtp_port = int(smtp_port)
except (TypeError, ValueError) as exc:
raise NotificationChannelConfigError("SMTP 端口必须是数字") from exc
if not 1 <= smtp_port <= 65535:
raise NotificationChannelConfigError("SMTP 端口必须在 1-65535 之间")
config_data["smtp_port"] = smtp_port
if normalized_type == "webhook":
http_method = str(config_data.get("http_method", "POST")).strip().upper()
+33
View File
@@ -369,6 +369,39 @@ class NotificationSender:
@staticmethod
def _send_email_sync(config: dict[str, Any], message: str) -> None:
# 邮件渠道的 SMTP 四项允许留空:留空时回退「系统设置 → 邮件服务」
# 里已配置的 SMTP,用户只需在渠道里填接收邮箱。
if any(
not str(config.get(key) or "").strip()
for key in ("smtp_server", "smtp_port", "email_user", "email_password")
):
try:
from app.db_manager import db_manager
merged = dict(config)
for cfg_key, setting_key in (
("smtp_server", "smtp_server"),
("smtp_port", "smtp_port"),
("email_user", "smtp_user"),
("email_password", "smtp_password"),
("smtp_use_tls", "smtp_use_tls"),
("smtp_use_ssl", "smtp_use_ssl"),
):
if not str(merged.get(cfg_key) or "").strip():
value = db_manager.get_system_setting(setting_key)
if value is not None and str(value).strip():
merged[cfg_key] = value
# 系统设置里布尔是 "true"/"false" 字符串,bool("false") 为 True,需显式转换
for bool_key in ("smtp_use_tls", "smtp_use_ssl"):
if bool_key in merged and not isinstance(merged[bool_key], bool):
merged[bool_key] = (
str(merged[bool_key]).strip().lower() in ("1", "true", "yes", "on")
)
config = merged
except Exception:
# 回退失败则保持原配置,让后续索引抛出原有错误
pass
email = EmailMessage()
email["Subject"] = _EMAIL_SUBJECT
email["From"] = str(config["email_user"])
+5
View File
@@ -26,6 +26,7 @@ const BuyerInteraction = lazy(() => import('./components/BuyerInteraction'));
const Resell = lazy(() => import('./components/Resell'));
const HotList = lazy(() => import('./components/HotList'));
const PriceWatch = lazy(() => import('./components/PriceWatch'));
const Help = lazy(() => import('./components/Help'));
const PageLoader = () => (
<div className="page-loading">
@@ -52,6 +53,7 @@ const pageLabels: Record<string, string> = {
settings: '系统设置',
users: '用户管理',
about: '关于',
help: '使用说明',
};
// 系统级页面仅管理员可用;普通用户 localStorage 里残留这些 tab 时切回总览
@@ -640,6 +642,9 @@ const App: React.FC = () => {
<section hidden={activeTab !== 'about'}>
<Suspense fallback={activeTab === 'about' ? <PageLoader /> : null}><About /></Suspense>
</section>
<section hidden={activeTab !== 'help'}>
<Suspense fallback={activeTab === 'help' ? <PageLoader /> : null}><Help /></Suspense>
</section>
</div>
</main>
</div>
+5 -24
View File
@@ -1,20 +1,15 @@
import React, { useEffect, useState } from 'react';
import { Info, Megaphone, RefreshCw, Download, ExternalLink, CheckCircle2, Globe, Github, Mail, Users } from 'lucide-react';
import { Info, Megaphone, RefreshCw, Download, ExternalLink, CheckCircle2, Globe, Github, Mail } from 'lucide-react';
import { getAnnouncement } from '../services/api';
import { AnnouncementPayload } from '../types';
import { EmptyState, PageHeader } from './ui';
// 与 Wiki「开发文档 → 相关链接」保持同一个群;mqqapi 协议在装有 QQ 的设备上
// 点击会直接唤起加群卡片,未安装 QQ 时靠群号文字手动搜索兜底。
const QQ_GROUP_NUMBER = '1037854503';
const QQ_GROUP_LINK = `mqqapi://card/show_pslcard?src_type=internal&version=1&uin=${QQ_GROUP_NUMBER}&card_type=group&source=qrcode`;
// 对外入口统一指向自己的站点与仓库,不指向原作者的地址
const SITE_URL = 'https://www.88531.cn';
const SITE_LABEL = 'www.88531.cn';
const SITE_URL = 'https://nav.88531.cn';
const SITE_LABEL = 'nav.88531.cn';
const REPO_URL = 'https://gitea.88531.cn/jinghui/xianyu-auto-reply';
const REPO_LABEL = 'jinghui/xianyu-auto-reply';
const CONTACT_EMAIL = 'admin@88531.cn';
const CONTACT_EMAIL = '3970260761@qq.com';
const levelStyles: Record<string, string> = {
info: 'border-blue-200 bg-blue-50 text-blue-800',
@@ -126,7 +121,7 @@ const About: React.FC = () => {
</p>
)}
<div className="mt-4 grid gap-3 border-t border-gray-100 pt-4 sm:grid-cols-2 lg:grid-cols-4">
<div className="mt-4 grid gap-3 border-t border-gray-100 pt-4 sm:grid-cols-2 lg:grid-cols-3">
<div className="flex min-w-0 flex-col gap-1.5">
<span className="text-xs font-semibold text-gray-500">官网</span>
<a
@@ -141,20 +136,6 @@ const About: React.FC = () => {
</a>
</div>
<div className="flex min-w-0 flex-col gap-1.5">
<span className="text-xs font-semibold text-gray-500">QQ 交流群</span>
<a
href={QQ_GROUP_LINK}
className="inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline"
>
<Users className="h-3.5 w-3.5 shrink-0" />
<span className="truncate">点击加入 QQ 群</span>
</a>
<span className="text-[11px] text-gray-400">
群号 {QQ_GROUP_NUMBER},未唤起 QQ 时可手动搜索加群
</span>
</div>
<div className="flex min-w-0 flex-col gap-1.5">
<span className="text-xs font-semibold text-gray-500">开源仓库</span>
<a
+389
View File
@@ -0,0 +1,389 @@
import React, { useEffect, useState } from 'react';
/** 使用说明:左侧定位菜单 + 右侧图文教程,每节配真实界面截图(/static/help/<id>.png) */
interface NavItem {
id: string;
label: string;
}
const NAV_GROUPS: { group: string; items: NavItem[] }[] = [
{
group: '快速开始',
items: [
{ id: 'dashboard', label: '系统总览' },
{ id: 'accounts', label: '账号管理' },
],
},
{
group: '闲鱼业务',
items: [
{ id: 'items', label: '商品与发货' },
{ id: 'resell', label: '一键转卖' },
{ id: 'hotlist', label: '实时热卖榜' },
{ id: 'pricewatch', label: '价格监控' },
{ id: 'orders', label: '订单管理' },
{ id: 'buyer-interaction', label: '买家互动' },
{ id: 'cards', label: '卡密库存' },
],
},
{
group: '消息与自动化',
items: [
{ id: 'messages', label: '消息中心' },
{ id: 'auto-reply', label: '自动回复' },
{ id: 'ai-reply', label: 'AI 回复' },
{ id: 'product-automation', label: '商品自动化' },
],
},
{
group: '系统',
items: [
{ id: 'notifications', label: '通知与日志' },
{ id: 'settings', label: '系统设置' },
{ id: 'users', label: '用户管理' },
{ id: 'about', label: '关于本系统' },
],
},
];
interface SectionContent {
title: string;
intro: string;
steps: string[];
tips?: string[];
}
const SECTIONS: Record<string, SectionContent> = {
dashboard: {
title: '系统总览',
intro: '登录后的首页,汇总账号、订单、营收和库存数据,一眼判断当前经营状态。',
steps: [
'顶部时间筛选可切换统计周期:今天 / 昨天 / 三天内 / 7天内 / 一个月内 / 自定义。',
'「有效成交额」与「已到账」两张卡片展示所选周期内的资金数据。',
'「系统运行中」状态灯表示后端自动回复、定时任务正常运行。',
'左侧菜单点击任意功能即可切换页面,右上角可切换日间/夜间模式。',
],
tips: ['新部署时没有订单记录,金额显示 ¥0.00 属正常,产生交易后自动累计。'],
},
accounts: {
title: '账号管理',
intro: '所有功能的入口:先把闲鱼账号接入系统,其他页面才能选择该账号操作。',
steps: [
'点击「添加账号」,填入账号备注名与 Cookie(从浏览器登录闲鱼后在开发者工具 Network 里复制)。',
'保存后列表会显示该账号,可点击「检测」验证 Cookie 是否仍然有效。',
'失效的账号需要重新复制 Cookie 更新;不用的账号可「禁用」而不必删除。',
'启用状态的账号才会参与自动回复、订单同步、消息聚合等自动化。',
],
tips: ['Cookie 等同账号登录态,请勿泄露;本系统只保存在自己的服务器数据库中。'],
},
items: {
title: '商品与发货',
intro: '同步闲鱼在售商品,为每个商品配置自动发货内容(卡密、网盘链接或文字说明)。',
steps: [
'选择账号后点击同步,把该账号在闲鱼的在售商品拉取到列表。',
'给商品设置发货内容:虚拟商品可填卡密说明或网盘链接,实物商品可填物流备注。',
'买家付款后系统按这里配置的内容自动回复发货,无需手动复制粘贴。',
'商品价格、标题变化可通过刷新按钮同步最新状态。',
],
tips: ['发货内容支持多行文本与链接,建议按「商品名称 + 提取码」格式写清楚。'],
},
resell: {
title: '一键转卖',
intro: '从收藏或搜索结果里挑商品,改好标题价格直接发布到自己账号,做无货源转卖。',
steps: [
'右上角先选择要发布到的闲鱼账号。',
'点「我的收藏」→「加载收藏」读取该账号收藏的在售商品;或切到「搜索商品」按关键词找货。',
'在列表中勾选想转卖的商品,修改标题、价格、描述等发布信息。',
'点「一键转卖」发布,商品即挂到自己账号名下。',
],
tips: ['发布前核对价格是否留足利润;同名商品重复转卖前先在商品列表确认未上架过。'],
},
hotlist: {
title: '实时热卖榜',
intro: '抓取闲鱼实时热卖数据,帮你判断什么好卖、该上什么货。',
steps: [
'选择分类或直接查看综合热卖榜,列表按近期成交热度排序。',
'点击商品可查看详情与价格区间,作为自己定价的参考。',
'看中的品可直接跳「一键转卖」上架到自己账号。',
],
tips: ['榜单数据为实时抓取,个别时段可能延迟,可点刷新重新拉取。'],
},
pricewatch: {
title: '价格监控',
intro: '设定关键词和目标价,系统定时搜索闲鱼,出现低于目标价的商品立即通知你捡漏。',
steps: [
'点「新建规则」:填写关键词(如想蹲的商品名)、目标价、检测间隔,保存后立即执行一次检测。',
'检测结果展示匹配商品数、历史最低价与「最近一次」的完整商品信息(超长内容自动换行展示)。',
'低于目标价时触发通知——前提是已在「通知与日志」页配置好通知渠道并勾选「价格监控」事件(见下方章节)。',
'点「历史记录」查看每次检测的明细;不需要的规则可停用或删除。',
],
tips: [
'通知没发出来时,页面顶部的红色提示会写明去哪配置,按提示到「通知与日志」页补配即可。',
'关键词越具体匹配越准,避免太宽泛导致噪音过多。',
],
},
orders: {
title: '订单管理',
intro: '汇总所选账号的闲鱼订单,查看状态、手动补发与核对发货记录。',
steps: [
'选择账号与时间范围筛选订单,列表显示买家、商品、金额与状态。',
'自动发货成功的订单会标记发货内容;失败的可在这里点「重新发货」补发。',
'点订单行可展开详情,核对买家留言与发货回执。',
],
tips: ['订单数据来自定时同步,新成交订单可能延迟几分钟出现。'],
},
'buyer-interaction': {
title: '买家互动',
intro: '评价买家、索要小红花与自动收花——和闲鱼平台实际操作绑定,需按账号开启。',
steps: [
'先在「账号管理」添加账号(无账号时本页会提示先去添加)。',
'在「按账号开启」区域为需要的账号打开对应开关:评价买家 / 索要小红花 / 自动收花。',
'点「保存设置」生效;关闭的账号不会执行任何互动,订单页也不显示入口。',
'建议先用一笔测试订单验证效果,再放开到全部账号。',
],
tips: ['⚠ 评价提交后无法撤销,索要小红花会给买家发一条消息——务必先小范围测试。'],
},
cards: {
title: '卡密库存',
intro: '导入与管理卡密,配合「商品与发货」实现虚拟商品自动发货、库存自动扣减。',
steps: [
'新建卡密分组(对应某个商品),批量粘贴或上传卡密文本,一行一条。',
'在「商品与发货」把商品的发货方式关联到该卡密分组。',
'买家付款后系统自动取一条卡密发出并扣减库存,列表显示剩余数量。',
'库存告急时及时补充,发货失败的订单会记录原因便于排查。',
],
tips: ['卡密只对管理员可见,普通用户页面不会展示明文。'],
},
messages: {
title: '消息中心',
intro: '把多个闲鱼账号的买家消息聚合到一处,集中查看与回复。',
steps: [
'选择账号后加载未读/全部消息,按时间倒序展示。',
'点击会话查看上下文并可手动回复;已被自动回复接管的会话会标注规则来源。',
'新消息会实时提醒,避免漏掉买家咨询。',
],
tips: ['消息聚合依赖账号 Cookie 有效,账号失效时先到「账号管理」更新。'],
},
'auto-reply': {
title: '自动回复',
intro: '配置关键词规则:买家消息命中触发词即自动回复,7×24 接待。',
steps: [
'点「新建规则」,设置触发关键词(支持多个、精确/模糊匹配)与回复内容。',
'回复支持多行文本、链接与随机话术(多条回复轮流发送,避免重复感)。',
'保存即生效,无需重启;列表可停用、编辑、删除规则。',
'在规则上可指定仅对某账号生效,或全局所有账号共用。',
],
tips: ['建议先配 3-5 条高频问题(价格、包邮、发货时间)再逐步扩充。'],
},
'ai-reply': {
title: 'AI 回复',
intro: '接入大模型 API,让 AI 根据上下文智能回复买家消息、自动议价。',
steps: [
'先到「系统设置 → AI 服务」填好 API 地址、Key 与模型名(本地 NewAPI 或任意兼容接口)。',
'在本页设置议价策略:最大优惠百分比/金额、议价轮数上限。',
'开启「上下文」后 AI 会携带最近若干条对话,回复更连贯。',
'系统先匹配关键词规则,未命中才走 AI;可在页面调整两者的优先级。',
],
tips: ['AI 每次回复消耗 API 额度,量大时建议设置轮数与优惠上限兜底。'],
},
'product-automation': {
title: '商品自动化',
intro: '商品素材库与批量任务:筛选规则、删除计划、历史数据补偿集中管理。',
steps: [
'「素材库」标签:按账号/关键词搜索已入库的商品素材,供批量任务取用。',
'「筛选规则」标签:定义商品筛选条件(标题、分类、价格区间),命中规则的素材进入处理流程。',
'「删除计划」标签:创建批量下架任务,按计划时间或条件执行删除。',
'「补偿任务」标签:对漏统计的历史数据发起回补;「刷新数据」同步最新任务状态。',
],
tips: ['删除计划执行前请核对规则,批量下架不可自动撤销。'],
},
notifications: {
title: '通知与日志',
intro: '统一管理外部通知渠道、账号绑定、风控事件和系统运行日志。',
steps: [
'「通知渠道」标签:点「新建渠道」创建发送通道——邮件渠道只需填接收邮箱(SMTP 自动复用系统设置)。',
'「账号通知」标签:新建规则时选择账号 + 渠道,并在「事件」里勾选要提醒的类型(价格监控、登录异常等)。',
'「风控日志」「系统日志」标签:查看平台风控事件与系统运行记录,便于排查问题。',
'顶部「刷新配置」可重新加载渠道与规则的最新状态。',
],
tips: [
'价格监控要发通知:渠道 + 账号通知规则 + 事件勾选「价格监控」三者缺一不可。',
'渠道里的密钥仅用于服务端发送,不要截图外发。',
],
},
settings: {
title: '系统设置',
intro: '全局配置中心:邮件服务、AI 接口、公告与默认登录信息都在这里。',
steps: [
'「邮件服务」:填 SMTP 服务器/端口/账号/授权码(QQ 邮箱 465 端口自动走 SSL),点「测试发送」验证。',
'「AI 服务」:配置模型 API 地址、Key 与模型名,供「AI 回复」使用。',
'「公告管理」:编辑系统顶部展示的公告与版本更新提示。',
'其余开关(默认登录信息展示、图形验证码等)按需调整,改动即时生效。',
],
tips: ['改完 SMTP 务必点测试发送,收到邮件即配置成功。'],
},
users: {
title: '用户管理',
intro: '管理员专用:管理能登录本系统的用户,支持重置密码与启用禁用。',
steps: [
'列表展示全部用户及其登录状态,可按启用/停用控制能否登录。',
'点「重置密码」为用户设置新密码(只有管理员能操作)。',
'停用的用户立即无法登录,历史数据保留。',
],
tips: ['建议只给自己与必要协作者开账号,管理员账号保持一个即可。'],
},
about: {
title: '关于本系统',
intro: '版本信息、项目主页与联系方式。',
steps: [
'查看当前版本号与更新日志,新版本发布后按提示升级。',
'页面上有项目开源地址与作者联系方式,问题反馈优先走这里。',
],
},
};
const Help: React.FC = () => {
const [active, setActive] = useState<string>('dashboard');
useEffect(() => {
const observer = new IntersectionObserver(
(entries) => {
const visible = entries
.filter((e) => e.isIntersecting)
.sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top);
if (visible[0]) {
setActive(visible[0].target.id.replace('help-', ''));
}
},
{ rootMargin: '0px 0px -70% 0px', threshold: 0 }
);
NAV_GROUPS.forEach((g) =>
g.items.forEach((it) => {
const el = document.getElementById(`help-${it.id}`);
if (el) observer.observe(el);
})
);
return () => observer.disconnect();
}, []);
const scrollTo = (id: string) => {
const el = document.getElementById(`help-${id}`);
if (el) {
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
setActive(id);
}
};
return (
<div className="p-4 md:p-6">
<div className="flex flex-col lg:flex-row gap-6">
{/* 左侧定位菜单 */}
<nav id="help-nav" className="lg:w-48 shrink-0">
<div className="lg:sticky lg:top-2 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-3">
<div className="px-2 pb-2 text-xs font-semibold text-slate-400 uppercase tracking-wider">
功能导航
</div>
<div className="flex lg:block gap-2 lg:gap-0 overflow-x-auto lg:overflow-visible">
{NAV_GROUPS.map((g) => (
<div key={g.group} className="lg:mb-3 shrink-0">
<div className="hidden lg:block px-2 pt-1 pb-1 text-[11px] font-medium text-slate-400">
{g.group}
</div>
{g.items.map((it) => (
<button
key={it.id}
onClick={() => scrollTo(it.id)}
className={`w-auto lg:w-full text-left whitespace-nowrap px-2.5 py-1.5 rounded-lg text-sm transition-colors ${
active === it.id
? 'bg-amber-500/15 text-amber-600 dark:text-amber-400 font-medium'
: 'text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700/60'
}`}
>
{it.label}
</button>
))}
</div>
))}
</div>
</div>
</nav>
{/* 右侧内容 */}
<div className="min-w-0 flex-1 space-y-6">
<div className="bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-5">
<h1 className="text-xl font-bold text-slate-800 dark:text-slate-100">
躺赚鱼 使用说明
</h1>
<p className="mt-1.5 text-sm text-slate-500 dark:text-slate-400">
每个功能的详细使用教程:左侧菜单点击可跳转定位,右侧为操作步骤与真实界面截图。
建议按「快速开始 → 闲鱼业务 → 消息与自动化」的顺序初次上手。
</p>
</div>
{NAV_GROUPS.map((g) =>
g.items.map((it) => {
const sec = SECTIONS[it.id];
if (!sec) return null;
return (
<section
key={it.id}
id={`help-${it.id}`}
className="bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-5 scroll-mt-4"
>
<div className="flex items-center gap-2">
<span className="w-1.5 h-5 rounded-full bg-amber-500" />
<h2 className="text-lg font-semibold text-slate-800 dark:text-slate-100">
{sec.title}
</h2>
</div>
<p className="mt-2 text-sm text-slate-600 dark:text-slate-300">{sec.intro}</p>
<div className="mt-4">
<div className="text-xs font-semibold text-slate-400 mb-2">操作步骤</div>
<ol className="space-y-1.5 text-sm text-slate-700 dark:text-slate-300 list-decimal list-inside">
{sec.steps.map((s, i) => (
<li key={i} className="leading-relaxed">
{s}
</li>
))}
</ol>
</div>
{sec.tips && sec.tips.length > 0 && (
<div className="mt-4 rounded-lg bg-amber-50 dark:bg-amber-500/10 border border-amber-200 dark:border-amber-500/20 px-3.5 py-2.5">
<div className="text-xs font-semibold text-amber-700 dark:text-amber-400 mb-1">
小提示
</div>
<ul className="space-y-1 text-[13px] text-amber-800 dark:text-amber-300 list-disc list-inside">
{sec.tips.map((t, i) => (
<li key={i} className="leading-relaxed">
{t}
</li>
))}
</ul>
</div>
)}
<figure className="mt-4">
<img
src={`/static/help/${it.id}.png`}
alt={`${sec.title} 页面界面截图`}
loading="lazy"
className="w-full rounded-lg border border-slate-200 dark:border-slate-700 shadow-sm"
/>
<figcaption className="mt-1.5 text-xs text-slate-400">
▲ {sec.title} —— 实际界面截图
</figcaption>
</figure>
</section>
);
})
)}
</div>
</div>
</div>
);
};
export default Help;
+6 -6
View File
@@ -96,13 +96,13 @@ const CHANNEL_DEFINITIONS: Record<NotificationChannelType, ChannelDefinition> =
email: {
label: '邮件',
fields: [
{ key: 'smtp_server', label: 'SMTP 服务器', placeholder: 'smtp.example.com' },
{ key: 'smtp_port', label: 'SMTP 端口', type: 'number' },
{ key: 'email_user', label: '发件邮箱' },
{ key: 'email_password', label: '邮箱密码或授权码', type: 'password' },
{ key: 'recipient_email', label: '接收邮箱' },
{ key: 'smtp_server', label: 'SMTP 服务器', placeholder: '留空则使用「系统设置 → 邮件服务」', optional: true },
{ key: 'smtp_port', label: 'SMTP 端口', type: 'number', placeholder: '留空则使用系统设置(如 465)', optional: true },
{ key: 'email_user', label: '发件邮箱', placeholder: '留空则使用系统设置的发件邮箱', optional: true },
{ key: 'email_password', label: '邮箱密码或授权码', type: 'password', placeholder: '留空则使用系统设置的授权码', optional: true },
{ key: 'recipient_email', label: '接收邮箱', placeholder: '必填,通知发到这个邮箱' },
],
defaults: { smtp_port: 587 },
defaults: {},
},
webhook: {
label: 'Webhook',
+5 -5
View File
@@ -387,10 +387,10 @@ export default function PriceWatch() {
<tr key={rule.id}>
<td data-label="规则">
<div className="min-w-0">
<div className="truncate font-medium text-[var(--text-primary)]" title={rule.name}>
<div className="break-words font-medium text-[var(--text-primary)]" title={rule.name}>
{rule.name}
</div>
<div className="truncate text-xs text-[var(--text-muted)]" title={rule.keyword}>
<div className="break-words text-xs text-[var(--text-muted)]" title={rule.keyword}>
关键词:{rule.keyword}
</div>
<div className="mt-1 flex flex-wrap items-center gap-2 text-xs">
@@ -473,7 +473,7 @@ export default function PriceWatch() {
<Bell className="h-3 w-3 text-[var(--brand-primary)]" aria-label="已通知" />
) : null}
</div>
<div className="truncate text-xs text-[var(--text-muted)]" title={rec.lowest_title ?? ''}>
<div className="break-words text-xs text-[var(--text-muted)]" title={rec.lowest_title ?? ''}>
{rec.lowest_title}
</div>
<div className="text-xs text-[var(--text-muted)]">
@@ -952,13 +952,13 @@ export default function PriceWatch() {
href={rec.lowest_url}
target="_blank"
rel="noreferrer"
className="block max-w-[380px] truncate text-sm text-[var(--brand-primary)] hover:underline"
className="block max-w-[380px] break-words text-sm text-[var(--brand-primary)] hover:underline"
title={rec.lowest_title ?? ''}
>
{rec.lowest_title || '(无标题)'}
</a>
) : (
<span className="block max-w-[380px] truncate text-sm text-[var(--text-muted)]">
<span className="block max-w-[380px] break-words text-sm text-[var(--text-muted)]">
{rec.lowest_title || '—'}
</span>
)}
+2
View File
@@ -2,6 +2,7 @@ import React, { useEffect, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
import {
BellRing,
BookOpen,
Bot,
Box,
ChevronUp,
@@ -102,6 +103,7 @@ const Sidebar: React.FC<SidebarProps> = ({ activeTab, setActiveTab, onLogout, mo
{
label: '系统',
items: [
{ id: 'help', icon: BookOpen, label: '使用说明' },
{ id: 'users', icon: UserCog, label: '用户管理' },
{ id: 'notifications', icon: BellRing, label: '通知与日志' },
{ id: 'settings', icon: Settings, label: '系统设置' },
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

@@ -1 +1 @@
import{r as l,o as O,n as i,z as k,j as e,B as j,L as A,E as H,aD as q,S,K as z,aQ as B}from"./index-Bv-jXdOf.js";import{P as F,a as U,E as D,S as o}from"./ui-DsDuWr9N.js";import{S as Q}from"./save-0PTf3nGc.js";import{M as E}from"./message-square-text-A6-FBXDf.js";import{E as $}from"./eye-off-CxE9voxA.js";import{E as G}from"./eye-Bf7DwUjO.js";import{P as C}from"./play-Qs4dEPE9.js";const I="https://ai.88531.cn/v1",J="https://ai.88531.cn",f={ai_enabled:!1,model_name:"qwen-plus",api_key:"",api_key_configured:!1,base_url:I,user_agent:"codex_cli_rs/0.0.0 (Hermes Agent)",max_discount_percent:10,max_discount_amount:100,max_bargain_rounds:3,context_enabled:!0,context_message_limit:12,context_expire_minutes:120,custom_prompts:""},ae=()=>{const[c,P]=l.useState([]),[t,y]=l.useState(""),[a,d]=l.useState(f),[K,x]=l.useState(!0),[p,N]=l.useState(!1),[u,_]=l.useState(!1),[g,w]=l.useState(!1),[h,R]=l.useState("你好,这个商品现在还能买吗?"),[v,b]=l.useState(""),r=l.useMemo(()=>c.find(s=>s.id===t),[c,t]);l.useEffect(()=>{O().then(s=>{var m;P(s),y(((m=s[0])==null?void 0:m.id)||"")}).catch(s=>i(s instanceof Error?s.message:"账号加载失败","error")).finally(()=>x(!1))},[]),l.useEffect(()=>{t&&(x(!0),b(""),w(!1),k(t).then(s=>d({...f,...s,api_key:""})).catch(s=>i(s instanceof Error?s.message:"AI配置加载失败","error")).finally(()=>x(!1)))},[t]);const n=(s,m)=>{d(M=>({...M,[s]:m}))},T=async()=>{if(!t){i("请先选择账号","warning");return}if(!a.model_name.trim()||!a.base_url.trim()){i("模型名称和接口地址不能为空","warning");return}N(!0);try{await z(t,a);const s=await k(t);d({...f,...s,api_key:""}),i("人工智能回复配置已保存","success")}catch(s){i(s instanceof Error?s.message:"AI配置保存失败","error")}finally{N(!1)}},L=async()=>{if(!t||!h.trim()){i("请选择账号并输入测试消息","warning");return}_(!0),b("");try{const s=await B(t,{message:h.trim(),item_title:"测试商品",item_price:100,item_desc:"仅用于测试人工智能回复,不会发送到闲鱼。"});b(s.reply||s.message||"测试完成"),i("AI回复测试完成","success")}catch(s){i(s instanceof Error?s.message:"AI回复测试失败","error")}finally{_(!1)}};return K&&c.length===0?e.jsx(F,{label:"正在加载 AI 回复配置"}):e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(U,{title:"AI 回复",description:"按账号配置模型连接、上下文记忆、议价边界和业务回复规则。",icon:j,actions:e.jsxs("div",{className:"flex min-w-0 flex-wrap items-end gap-2",children:[e.jsxs("label",{className:"min-w-0 sm:w-72",children:[e.jsx("span",{className:"field-label",children:"当前账号"}),e.jsx("select",{value:t,onChange:s=>y(s.target.value),className:"ios-input w-full rounded-md px-3 py-2 text-sm font-semibold",children:c.map(s=>e.jsx("option",{value:s.id,children:s.nickname||s.remark||`账号 ${s.id.slice(0,8)}`},s.id))})]}),e.jsxs("button",{type:"button",onClick:T,disabled:p||!t,className:"ios-btn-primary flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm",children:[p?e.jsx(A,{className:"h-4 w-4 animate-spin"}):e.jsx(Q,{className:"h-4 w-4"}),p?"保存中":"保存配置"]})]})}),t?e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"section-panel grid gap-4 p-4 lg:grid-cols-[1fr_auto] lg:items-center",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-gray-900",children:[e.jsx(E,{className:"h-5 w-5"}),(r==null?void 0:r.nickname)||(r==null?void 0:r.remark)||t]}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"回复优先级:关键词回复 → 人工智能回复 → 默认回复。AI失败时不会中断消息处理。"})]}),e.jsxs("label",{className:"flex cursor-pointer items-center gap-3",children:[e.jsx("span",{className:"text-sm font-bold text-gray-700",children:a.ai_enabled?"已启用":"已停用"}),e.jsx("input",{type:"checkbox",checked:a.ai_enabled,onChange:s=>n("ai_enabled",s.target.checked),className:"h-5 w-5 accent-yellow-400"})]})]}),e.jsxs("div",{className:"grid gap-6 xl:grid-cols-[minmax(0,1.35fr)_minmax(340px,0.65fr)]",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("section",{className:"section-panel",children:[e.jsx(o,{title:"模型连接",description:"支持 OpenAI 兼容接口;密钥留空时保留服务器中已有配置。",icon:j}),e.jsxs("div",{className:"grid gap-4 p-5 md:grid-cols-2",children:[e.jsxs("div",{className:"md:col-span-2 flex flex-wrap items-center justify-between gap-3 rounded-lg border border-brand-200 bg-brand-50 px-4 py-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-800",children:"没有 API Key?每天可免费领取额度"}),e.jsx("p",{className:"mt-0.5 text-xs text-gray-600",children:"兼容 OpenAI 接口,注册后把密钥填到下方即可直接用。"})]}),e.jsx("div",{className:"flex shrink-0 items-center gap-2",children:e.jsxs("a",{href:J,target:"_blank",rel:"norefLine truncated
import{r as l,o as O,n as i,z as k,j as e,B as j,L as A,E as H,aD as q,S,K as z,aQ as B}from"./index-AicSXhSk.js";import{P as F,a as U,E as D,S as o}from"./ui-BArJ7xwp.js";import{S as Q}from"./save-CugEvXT8.js";import{M as E}from"./message-square-text-BSvoOdJI.js";import{E as $}from"./eye-off-CJKUDI9v.js";import{E as G}from"./eye-73M4Y6Lx.js";import{P as C}from"./play-uX2f9Jag.js";const I="https://ai.88531.cn/v1",J="https://ai.88531.cn",f={ai_enabled:!1,model_name:"qwen-plus",api_key:"",api_key_configured:!1,base_url:I,user_agent:"codex_cli_rs/0.0.0 (Hermes Agent)",max_discount_percent:10,max_discount_amount:100,max_bargain_rounds:3,context_enabled:!0,context_message_limit:12,context_expire_minutes:120,custom_prompts:""},ae=()=>{const[c,P]=l.useState([]),[t,y]=l.useState(""),[a,d]=l.useState(f),[K,x]=l.useState(!0),[p,N]=l.useState(!1),[u,_]=l.useState(!1),[g,w]=l.useState(!1),[h,R]=l.useState("你好,这个商品现在还能买吗?"),[v,b]=l.useState(""),r=l.useMemo(()=>c.find(s=>s.id===t),[c,t]);l.useEffect(()=>{O().then(s=>{var m;P(s),y(((m=s[0])==null?void 0:m.id)||"")}).catch(s=>i(s instanceof Error?s.message:"账号加载失败","error")).finally(()=>x(!1))},[]),l.useEffect(()=>{t&&(x(!0),b(""),w(!1),k(t).then(s=>d({...f,...s,api_key:""})).catch(s=>i(s instanceof Error?s.message:"AI配置加载失败","error")).finally(()=>x(!1)))},[t]);const n=(s,m)=>{d(M=>({...M,[s]:m}))},T=async()=>{if(!t){i("请先选择账号","warning");return}if(!a.model_name.trim()||!a.base_url.trim()){i("模型名称和接口地址不能为空","warning");return}N(!0);try{await z(t,a);const s=await k(t);d({...f,...s,api_key:""}),i("人工智能回复配置已保存","success")}catch(s){i(s instanceof Error?s.message:"AI配置保存失败","error")}finally{N(!1)}},L=async()=>{if(!t||!h.trim()){i("请选择账号并输入测试消息","warning");return}_(!0),b("");try{const s=await B(t,{message:h.trim(),item_title:"测试商品",item_price:100,item_desc:"仅用于测试人工智能回复,不会发送到闲鱼。"});b(s.reply||s.message||"测试完成"),i("AI回复测试完成","success")}catch(s){i(s instanceof Error?s.message:"AI回复测试失败","error")}finally{_(!1)}};return K&&c.length===0?e.jsx(F,{label:"正在加载 AI 回复配置"}):e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(U,{title:"AI 回复",description:"按账号配置模型连接、上下文记忆、议价边界和业务回复规则。",icon:j,actions:e.jsxs("div",{className:"flex min-w-0 flex-wrap items-end gap-2",children:[e.jsxs("label",{className:"min-w-0 sm:w-72",children:[e.jsx("span",{className:"field-label",children:"当前账号"}),e.jsx("select",{value:t,onChange:s=>y(s.target.value),className:"ios-input w-full rounded-md px-3 py-2 text-sm font-semibold",children:c.map(s=>e.jsx("option",{value:s.id,children:s.nickname||s.remark||`账号 ${s.id.slice(0,8)}`},s.id))})]}),e.jsxs("button",{type:"button",onClick:T,disabled:p||!t,className:"ios-btn-primary flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm",children:[p?e.jsx(A,{className:"h-4 w-4 animate-spin"}):e.jsx(Q,{className:"h-4 w-4"}),p?"保存中":"保存配置"]})]})}),t?e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"section-panel grid gap-4 p-4 lg:grid-cols-[1fr_auto] lg:items-center",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 font-bold text-gray-900",children:[e.jsx(E,{className:"h-5 w-5"}),(r==null?void 0:r.nickname)||(r==null?void 0:r.remark)||t]}),e.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"回复优先级:关键词回复 → 人工智能回复 → 默认回复。AI失败时不会中断消息处理。"})]}),e.jsxs("label",{className:"flex cursor-pointer items-center gap-3",children:[e.jsx("span",{className:"text-sm font-bold text-gray-700",children:a.ai_enabled?"已启用":"已停用"}),e.jsx("input",{type:"checkbox",checked:a.ai_enabled,onChange:s=>n("ai_enabled",s.target.checked),className:"h-5 w-5 accent-yellow-400"})]})]}),e.jsxs("div",{className:"grid gap-6 xl:grid-cols-[minmax(0,1.35fr)_minmax(340px,0.65fr)]",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("section",{className:"section-panel",children:[e.jsx(o,{title:"模型连接",description:"支持 OpenAI 兼容接口;密钥留空时保留服务器中已有配置。",icon:j}),e.jsxs("div",{className:"grid gap-4 p-5 md:grid-cols-2",children:[e.jsxs("div",{className:"md:col-span-2 flex flex-wrap items-center justify-between gap-3 rounded-lg border border-brand-200 bg-brand-50 px-4 py-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-800",children:"没有 API Key?每天可免费领取额度"}),e.jsx("p",{className:"mt-0.5 text-xs text-gray-600",children:"兼容 OpenAI 接口,注册后把密钥填到下方即可直接用。"})]}),e.jsx("div",{className:"flex shrink-0 items-center gap-2",children:e.jsxs("a",{href:J,target:"_blank",rel:"norefLine truncated
+11
View File
@@ -0,0 +1,11 @@
import{c as m,r as n,j as e,bC as h,e as g,O as b,E as l,aD as j,aT as f,aU as o,bD as N}from"./index-AicSXhSk.js";import{a as u,E as y}from"./ui-BArJ7xwp.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],v=m("github",w);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],k=m("globe",_),E="https://nav.88531.cn",L="nav.88531.cn",C="https://gitea.88531.cn/jinghui/xianyu-auto-reply",A="jinghui/xianyu-auto-reply",x="3970260761@qq.com",d={info:"border-blue-200 bg-blue-50 text-blue-800",warning:"border-amber-200 bg-amber-50 text-amber-800",danger:"border-red-200 bg-red-50 text-red-700"},M={info:"通知",warning:"注意",danger:"重要"},I=()=>{const[s,p]=n.useState(null),[t,c]=n.useState(!1),i=async(a=!1)=>{c(!0);try{p(await N(a))}catch{}finally{c(!1)}};n.useEffect(()=>{i()},[]);const r=(s==null?void 0:s.announcements)||[];return e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(u,{title:"关于",description:"查看当前版本、检查更新与历史公告。",icon:h,actions:e.jsxs("button",{type:"button",onClick:()=>i(!0),disabled:t,className:"ios-btn-secondary flex items-center gap-2 rounded-md px-4 py-2 text-sm disabled:opacity-50",children:[e.jsx(g,{className:`h-4 w-4 ${t?"animate-spin":""}`}),t?"正在检查":"检查更新"]})}),e.jsxs("section",{className:"section-panel p-4",children:[e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-md border border-gray-200 p-4",children:[e.jsx("p",{className:"text-xs font-semibold text-gray-500",children:"当前版本"}),e.jsx("p",{className:"mt-1 text-2xl font-bold text-gray-900",children:(s==null?void 0:s.local_version)||"—"})]}),e.jsxs("div",{className:`rounded-md border p-4 ${s!=null&&s.has_update?"border-amber-200 bg-amber-50":"border-gray-200"}`,children:[e.jsx("p",{className:"text-xs font-semibold text-gray-500",children:"最新版本"}),s!=null&&s.has_update?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mt-1 text-2xl font-bold text-amber-700",children:s.latest_version}),s.release_notes&&e.jsx("p",{className:"mt-2 whitespace-pre-wrap text-xs text-amber-800",children:s.release_notes}),s.download_url&&e.jsxs("a",{href:s.download_url,target:"_blank",rel:"noopener noreferrer",className:"ios-btn-primary mt-3 inline-flex items-center gap-2 rounded-md px-3 py-2 text-xs",children:[e.jsx(b,{className:"h-4 w-4"}),"前往下载",e.jsx(l,{className:"h-3 w-3"})]})]}):e.jsxs("p",{className:"mt-1 flex items-center gap-2 text-sm font-bold text-green-700",children:[e.jsx(j,{className:"h-5 w-5"}),s!=null&&s.source_configured?"已是最新版本":"未配置更新源"]})]})]}),!(s!=null&&s.source_configured)&&e.jsx("p",{className:"mt-4 rounded-md border border-gray-200 bg-gray-50 px-3 py-2 text-xs text-gray-600",children:"公告与更新检查已关闭。在「系统设置 → 公告与更新」里开启后, 这里会显示公告并自动检查新版本。"}),(s==null?void 0:s.error)&&e.jsxs("p",{className:"mt-3 rounded-md border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700",children:["拉取公告失败:",s.error]}),e.jsxs("div",{className:"mt-4 grid gap-3 border-t border-gray-100 pt-4 sm:grid-cols-2 lg:grid-cols-3",children:[e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"官网"}),e.jsxs("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(k,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:L}),e.jsx(l,{className:"h-3 w-3 shrink-0"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"开源仓库"}),e.jsxs("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(v,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:A}),e.jsx(l,{className:"h-3 w-3 shrink-0"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"联系邮箱"}),e.jsxs("a",{href:`mailto:${x}`,className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(f,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:x})]})]})]})]}),e.jsxs("section",{className:"section-panel",children:[e.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-200 px-4 py-3",children:[e.jsx(o,{className:"h-4 w-4 text-gray-500"}),e.jsx("span",{className:"text-sm font-bold text-gray-800",children:"历史公告"}),e.jsxs("span",{className:"text-xs text-gray-400",children:[r.length," 条"]})]}),r.length>0?e.jsx("div",{className:"divide-y divide-gray-100",children:r.map(a=>e.jsxs("article",{className:"px-4 py-3",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{classN Line truncated
-11
View File
@@ -1,11 +0,0 @@
import{c as m,r as n,j as e,bC as g,e as b,O as j,E as l,aD as f,U as N,aT as u,aU as o,bD as y}from"./index-Bv-jXdOf.js";import{a as w,E as _}from"./ui-DsDuWr9N.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],k=m("github",v);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],L=m("globe",E),p="1037854503",Q=`mqqapi://card/show_pslcard?src_type=internal&version=1&uin=${p}&card_type=group&source=qrcode`,R="https://www.88531.cn",C="www.88531.cn",M="https://gitea.88531.cn/jinghui/xianyu-auto-reply",U="jinghui/xianyu-auto-reply",x="admin@88531.cn",d={info:"border-blue-200 bg-blue-50 text-blue-800",warning:"border-amber-200 bg-amber-50 text-amber-800",danger:"border-red-200 bg-red-50 text-red-700"},A={info:"通知",warning:"注意",danger:"重要"},S=()=>{const[s,h]=n.useState(null),[t,c]=n.useState(!1),i=async(a=!1)=>{c(!0);try{h(await y(a))}catch{}finally{c(!1)}};n.useEffect(()=>{i()},[]);const r=(s==null?void 0:s.announcements)||[];return e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(w,{title:"关于",description:"查看当前版本、检查更新与历史公告。",icon:g,actions:e.jsxs("button",{type:"button",onClick:()=>i(!0),disabled:t,className:"ios-btn-secondary flex items-center gap-2 rounded-md px-4 py-2 text-sm disabled:opacity-50",children:[e.jsx(b,{className:`h-4 w-4 ${t?"animate-spin":""}`}),t?"正在检查":"检查更新"]})}),e.jsxs("section",{className:"section-panel p-4",children:[e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-md border border-gray-200 p-4",children:[e.jsx("p",{className:"text-xs font-semibold text-gray-500",children:"当前版本"}),e.jsx("p",{className:"mt-1 text-2xl font-bold text-gray-900",children:(s==null?void 0:s.local_version)||"—"})]}),e.jsxs("div",{className:`rounded-md border p-4 ${s!=null&&s.has_update?"border-amber-200 bg-amber-50":"border-gray-200"}`,children:[e.jsx("p",{className:"text-xs font-semibold text-gray-500",children:"最新版本"}),s!=null&&s.has_update?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mt-1 text-2xl font-bold text-amber-700",children:s.latest_version}),s.release_notes&&e.jsx("p",{className:"mt-2 whitespace-pre-wrap text-xs text-amber-800",children:s.release_notes}),s.download_url&&e.jsxs("a",{href:s.download_url,target:"_blank",rel:"noopener noreferrer",className:"ios-btn-primary mt-3 inline-flex items-center gap-2 rounded-md px-3 py-2 text-xs",children:[e.jsx(j,{className:"h-4 w-4"}),"前往下载",e.jsx(l,{className:"h-3 w-3"})]})]}):e.jsxs("p",{className:"mt-1 flex items-center gap-2 text-sm font-bold text-green-700",children:[e.jsx(f,{className:"h-5 w-5"}),s!=null&&s.source_configured?"已是最新版本":"未配置更新源"]})]})]}),!(s!=null&&s.source_configured)&&e.jsx("p",{className:"mt-4 rounded-md border border-gray-200 bg-gray-50 px-3 py-2 text-xs text-gray-600",children:"公告与更新检查已关闭。在「系统设置 → 公告与更新」里开启后, 这里会显示公告并自动检查新版本。"}),(s==null?void 0:s.error)&&e.jsxs("p",{className:"mt-3 rounded-md border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-700",children:["拉取公告失败:",s.error]}),e.jsxs("div",{className:"mt-4 grid gap-3 border-t border-gray-100 pt-4 sm:grid-cols-2 lg:grid-cols-4",children:[e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"官网"}),e.jsxs("a",{href:R,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(L,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:C}),e.jsx(l,{className:"h-3 w-3 shrink-0"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"QQ 交流群"}),e.jsxs("a",{href:Q,className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(N,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:"点击加入 QQ 群"})]}),e.jsxs("span",{className:"text-[11px] text-gray-400",children:["群号 ",p,",未唤起 QQ 时可手动搜索加群"]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"开源仓库"}),e.jsxs("a",{href:M,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(k,{className:"h-3.5 w-3.5 shrink-0"}),e.jsx("span",{className:"truncate",children:U}),e.jsx(l,{className:"h-3 w-3 shrink-0"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-col gap-1.5",children:[e.jsx("span",{className:"text-xs font-semibold text-gray-500",children:"联系邮箱"}),e.jsxs("a",{href:`mailto:${x}`,className:"inline-flex min-w-0 items-center gap-1.5 text-xs font-bold text-[#8c7900] hover:underline",children:[e.jsx(u,{className:"h-3.5 w-3.5 shrink-0"}),e.js Line truncated
@@ -1,4 +1,4 @@
import{c as J,r as n,j as e,U as be,B as T,M as Qe,L as k,S as Y,e as fe,k as Be,b as $,X as L,l as De,m as U,o as Oe,p as Ke,q as Ye,s as He,t as Je,n as c,u as ye,v as je,w as Ve,x as Xe,y as Ge,z as Ze,A as es,D as ss,F as ts,G as as,H as rs,I as ls,J as ns,K as is}from"./index-Bv-jXdOf.js";import{P as os,a as ds,E as cs}from"./ui-DsDuWr9N.js";import{C as H}from"./check-CY3uIA9x.js";import{S as ms}from"./sparkles-CKxl3Qic.js";import{P as xs,a as us}from"./power-Buu1SqwC.js";import{T as hs}from"./trash-2-B0ysq8Ym.js";import{K as ps}from"./key-B_-6jyLh.js";import{E as gs}from"./eye-off-CxE9voxA.js";import{E as bs}from"./eye-Bf7DwUjO.js";import{S as Ne}from"./save-0PTf3nGc.js";/**
import{c as J,r as n,j as e,U as be,B as T,M as Qe,L as k,S as Y,e as fe,k as Be,b as $,X as L,l as De,m as U,o as Oe,p as Ke,q as Ye,s as He,t as Je,n as c,u as ye,v as je,w as Ve,x as Xe,y as Ge,z as Ze,A as es,D as ss,F as ts,G as as,H as rs,I as ls,J as ns,K as is}from"./index-AicSXhSk.js";import{P as os,a as ds,E as cs}from"./ui-BArJ7xwp.js";import{C as H}from"./check-lHacyebo.js";import{S as ms}from"./sparkles-CGMFRhYx.js";import{P as xs,a as us}from"./power-Sr01dgTD.js";import{T as hs}from"./trash-2-FGeel4KL.js";import{K as ps}from"./key-Bq-SXfOX.js";import{E as gs}from"./eye-off-CJKUDI9v.js";import{E as bs}from"./eye-73M4Y6Lx.js";import{S as Ne}from"./save-CugEvXT8.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1 +1 @@
import{r as n,j as e,P as C,e as E,aR as P,Q as $,o as B,n as i,aW as H,bE as M}from"./index-Bv-jXdOf.js";import{P as R,a as D,N as z,S as d}from"./ui-DsDuWr9N.js";import{S as O}from"./save-0PTf3nGc.js";import{S as U}from"./shield-alert-D9azMpPj.js";import{F as W}from"./flower-2-DCghnFkQ.js";import{M as q}from"./message-square-text-A6-FBXDf.js";const r=200,A="宝贝收到了,很满意,感谢老板,欢迎下次再来!",G="亲,感谢支持!有任何问题随时找我~",I={auto_rate_enabled:"评价买家",auto_flower_enabled:"索要小红花",auto_thanks_enabled:"收货致谢",auto_receive_flower_enabled:"自动收下小红花"},K=[{value:300,label:"5 分钟"},{value:900,label:"15 分钟"},{value:1800,label:"30 分钟"},{value:3600,label:"1 小时"},{value:7200,label:"2 小时(默认)"},{value:21600,label:"6 小时"},{value:86400,label:"24 小时"}],ee=()=>{const[l,c]=n.useState(null),[p,h]=n.useState(!1),[b,_]=n.useState(!1),[o,T]=n.useState([]),[f,x]=n.useState({}),j=()=>{h(!0),Promise.all([P(),$().catch(()=>null),B().catch(()=>[])]).then(([t,a,s])=>{c({...t,auto_rate_template:(t.auto_rate_template??"").trim()||(a==null?void 0:a.auto_rate_template)||A}),T(s),x((a==null?void 0:a.accounts)??{})}).finally(()=>h(!1))},F=async(t,a)=>{const s=f[t]??{auto_rate_enabled:!1,auto_flower_enabled:!1,auto_thanks_enabled:!1,auto_receive_flower_enabled:!1},w={...s,[a]:!s[a]};x(u=>({...u,[t]:w}));try{await M(t,{[a]:w[a]})}catch(u){x(k=>({...k,[t]:s})),i(`保存失败:${u.message}`)}};n.useEffect(()=>{j()},[]);const L=async()=>{if(!l)return;const t=(l.auto_rate_template||"").trim();if(!t){i("默认评价内容不能为空");return}if(t.length>r){i(`默认评价内容不能超过 ${r} 字`);return}_(!0);try{await H({auto_rate_template:t,auto_thanks_template:(l.auto_thanks_template||"").trim(),buyer_interaction_interval:String(S)}),i("买家互动配置已保存")}catch(a){i(`保存失败:${a.message}`)}finally{_(!1)}};if(!l)return e.jsx(R,{label:"正在加载买家互动配置"});const m=t=>f[t]??{auto_rate_enabled:!1,auto_flower_enabled:!1,auto_thanks_enabled:!1,auto_receive_flower_enabled:!1},g=o.some(t=>m(t.id).auto_rate_enabled),y=o.some(t=>m(t.id).auto_thanks_enabled),N=l.auto_rate_template??"",v=l.auto_thanks_template??"",S=Number(l.buyer_interaction_interval)||7200;return e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(D,{title:"买家互动",description:"评价买家、索要小红花与自动收花。涉及平台实际操作,请按账号开启。",icon:C,actions:e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:j,disabled:p,className:"ios-btn-secondary flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm",children:[e.jsx(E,{className:`h-4 w-4 ${p?"animate-spin":""}`}),"刷新"]}),e.jsxs("button",{type:"button",onClick:()=>void L(),disabled:b,className:"ios-btn-primary flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm",children:[e.jsx(O,{className:"h-4 w-4"}),b?"保存中":"保存设置"]})]})}),e.jsx(z,{type:"warning",message:"评价提交后无法撤销,求花会向买家发送一条消息。建议先用测试订单验证效果。"}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[e.jsxs("section",{className:"section-panel",children:[e.jsx(d,{title:"按账号开启",description:"逐个账号控制。关闭的账号不会自动执行,订单页也不显示入口、后端拒绝请求。",icon:U}),o.length===0?e.jsx("p",{className:"px-4 py-6 text-sm text-gray-500",children:"还没有账号,请先在账号管理里添加。"}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-gray-200 text-left text-xs text-gray-500",children:[e.jsx("th",{className:"px-4 py-2 font-semibold",children:"账号"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"评价买家"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"索要小红花"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"收货致谢"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"自动收下小红花"})]})}),e.jsx("tbody",{children:o.map(t=>{const a=m(t.id);return e.jsxs("tr",{className:"border-b border-gray-100 last:border-b-0",children:[e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:t.nickname||t.id}),e.jsx("p",{className:"mt-0.5 font-mono text-xs text-gray-400",children:t.id})]}),["auto_rate_enabled","auto_flower_enabled","auto_thanks_enabled","auto_receive_flower_enabled"].map(s=>e.jsx("td",{className:"px-4 py-3 text-center",children:e.jsx("button",{type:"button",role:"switch","aria-checked":a[s],"aria-label":`${t.nickname||t.id} ${I[s]}`,onClick:()=>void F(t.id,s),className:`relative h-6 w-11 shrink-0 rounded-full transition-colors ${a[s]?"bg-[#ffe100]":"bg-gray-300"}`,children:e.jsx("span",{cLine truncated
import{r as n,j as e,P as C,e as E,aR as P,Q as $,o as B,n as i,aW as H,bE as M}from"./index-AicSXhSk.js";import{P as R,a as D,N as z,S as d}from"./ui-BArJ7xwp.js";import{S as O}from"./save-CugEvXT8.js";import{S as U}from"./shield-alert-C33rQelW.js";import{F as W}from"./flower-2-BBrAoQND.js";import{M as q}from"./message-square-text-BSvoOdJI.js";const r=200,A="宝贝收到了,很满意,感谢老板,欢迎下次再来!",G="亲,感谢支持!有任何问题随时找我~",I={auto_rate_enabled:"评价买家",auto_flower_enabled:"索要小红花",auto_thanks_enabled:"收货致谢",auto_receive_flower_enabled:"自动收下小红花"},K=[{value:300,label:"5 分钟"},{value:900,label:"15 分钟"},{value:1800,label:"30 分钟"},{value:3600,label:"1 小时"},{value:7200,label:"2 小时(默认)"},{value:21600,label:"6 小时"},{value:86400,label:"24 小时"}],ee=()=>{const[l,c]=n.useState(null),[p,h]=n.useState(!1),[b,_]=n.useState(!1),[o,T]=n.useState([]),[f,x]=n.useState({}),j=()=>{h(!0),Promise.all([P(),$().catch(()=>null),B().catch(()=>[])]).then(([t,a,s])=>{c({...t,auto_rate_template:(t.auto_rate_template??"").trim()||(a==null?void 0:a.auto_rate_template)||A}),T(s),x((a==null?void 0:a.accounts)??{})}).finally(()=>h(!1))},F=async(t,a)=>{const s=f[t]??{auto_rate_enabled:!1,auto_flower_enabled:!1,auto_thanks_enabled:!1,auto_receive_flower_enabled:!1},w={...s,[a]:!s[a]};x(u=>({...u,[t]:w}));try{await M(t,{[a]:w[a]})}catch(u){x(k=>({...k,[t]:s})),i(`保存失败:${u.message}`)}};n.useEffect(()=>{j()},[]);const L=async()=>{if(!l)return;const t=(l.auto_rate_template||"").trim();if(!t){i("默认评价内容不能为空");return}if(t.length>r){i(`默认评价内容不能超过 ${r} 字`);return}_(!0);try{await H({auto_rate_template:t,auto_thanks_template:(l.auto_thanks_template||"").trim(),buyer_interaction_interval:String(S)}),i("买家互动配置已保存")}catch(a){i(`保存失败:${a.message}`)}finally{_(!1)}};if(!l)return e.jsx(R,{label:"正在加载买家互动配置"});const m=t=>f[t]??{auto_rate_enabled:!1,auto_flower_enabled:!1,auto_thanks_enabled:!1,auto_receive_flower_enabled:!1},g=o.some(t=>m(t.id).auto_rate_enabled),y=o.some(t=>m(t.id).auto_thanks_enabled),N=l.auto_rate_template??"",v=l.auto_thanks_template??"",S=Number(l.buyer_interaction_interval)||7200;return e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(D,{title:"买家互动",description:"评价买家、索要小红花与自动收花。涉及平台实际操作,请按账号开启。",icon:C,actions:e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",onClick:j,disabled:p,className:"ios-btn-secondary flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm",children:[e.jsx(E,{className:`h-4 w-4 ${p?"animate-spin":""}`}),"刷新"]}),e.jsxs("button",{type:"button",onClick:()=>void L(),disabled:b,className:"ios-btn-primary flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm",children:[e.jsx(O,{className:"h-4 w-4"}),b?"保存中":"保存设置"]})]})}),e.jsx(z,{type:"warning",message:"评价提交后无法撤销,求花会向买家发送一条消息。建议先用测试订单验证效果。"}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[e.jsxs("section",{className:"section-panel",children:[e.jsx(d,{title:"按账号开启",description:"逐个账号控制。关闭的账号不会自动执行,订单页也不显示入口、后端拒绝请求。",icon:U}),o.length===0?e.jsx("p",{className:"px-4 py-6 text-sm text-gray-500",children:"还没有账号,请先在账号管理里添加。"}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-gray-200 text-left text-xs text-gray-500",children:[e.jsx("th",{className:"px-4 py-2 font-semibold",children:"账号"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"评价买家"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"索要小红花"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"收货致谢"}),e.jsx("th",{className:"px-4 py-2 text-center font-semibold",children:"自动收下小红花"})]})}),e.jsx("tbody",{children:o.map(t=>{const a=m(t.id);return e.jsxs("tr",{className:"border-b border-gray-100 last:border-b-0",children:[e.jsxs("td",{className:"px-4 py-3",children:[e.jsx("p",{className:"font-semibold text-gray-900",children:t.nickname||t.id}),e.jsx("p",{className:"mt-0.5 font-mono text-xs text-gray-400",children:t.id})]}),["auto_rate_enabled","auto_flower_enabled","auto_thanks_enabled","auto_receive_flower_enabled"].map(s=>e.jsx("td",{className:"px-4 py-3 text-center",children:e.jsx("button",{type:"button",role:"switch","aria-checked":a[s],"aria-label":`${t.nickname||t.id} ${I[s]}`,onClick:()=>void F(t.id,s),className:`relative h-6 w-11 shrink-0 rounded-full transition-colors ${a[s]?"bg-[#ffe100]":"bg-gray-300"}`,children:e.jsx("span",{cLine truncated
@@ -1,4 +1,4 @@
import{c as P,r as m,j as e,X as D,a5 as re,n as j,a6 as de,a7 as M,a8 as G,b as z,a9 as H,v as Y,aa as ce,ab as oe,ac as me}from"./index-Bv-jXdOf.js";import{a as pe,S as xe,E as B}from"./ui-DsDuWr9N.js";import{P as U}from"./plus-CPcSzYSi.js";import{S as he}from"./square-pen-C2r7bTuu.js";import{T as ye}from"./trash-2-B0ysq8Ym.js";import{P as Z}from"./package-nIFuhixh.js";import{S as ue}from"./save-0PTf3nGc.js";import{I as q}from"./image-CidyAfuY.js";import{P as be}from"./package-check-BvQeh0sv.js";/**
import{c as P,r as m,j as e,X as D,a5 as re,n as j,a6 as de,a7 as M,a8 as G,b as z,a9 as H,v as Y,aa as ce,ab as oe,ac as me}from"./index-AicSXhSk.js";import{a as pe,S as xe,E as B}from"./ui-BArJ7xwp.js";import{P as U}from"./plus-D0O6eAJE.js";import{S as he}from"./square-pen-BNaZ8Xrs.js";import{T as ye}from"./trash-2-FGeel4KL.js";import{P as Z}from"./package-pkI-1qEc.js";import{S as ue}from"./save-CugEvXT8.js";import{I as q}from"./image-OkUpLHH3.js";import{P as be}from"./package-check-5s-VSzV6.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
var Db=Object.defineProperty;var $b=(e,t,r)=>t in e?Db(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _i=(e,t,r)=>$b(e,typeof t!="symbol"?t+"":t,r);import{c as gu,r as v,a as bu,b as xu,g as Nb,R as Rb,d as Lb,j as I,C as zb,e as Bb,U as Fb,E as Wb,f as Kb,h as Ub,n as Hb,i as Ac}from"./index-Bv-jXdOf.js";import{P as Yb,a as Gb,b as Vb,S as qb,E as Ii}from"./ui-DsDuWr9N.js";import{P as Ro}from"./package-nIFuhixh.js";import{T as Lh}from"./trending-up-DuUK2UAf.js";import{A as Xb}from"./activity-6q-JZDEZ.js";import{P as Zb}from"./package-check-BvQeh0sv.js";/**
var Db=Object.defineProperty;var $b=(e,t,r)=>t in e?Db(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _i=(e,t,r)=>$b(e,typeof t!="symbol"?t+"":t,r);import{c as gu,r as v,a as bu,b as xu,g as Nb,R as Rb,d as Lb,j as I,C as zb,e as Bb,U as Fb,E as Wb,f as Kb,h as Ub,n as Hb,i as Ac}from"./index-AicSXhSk.js";import{P as Yb,a as Gb,b as Vb,S as qb,E as Ii}from"./ui-BArJ7xwp.js";import{P as Ro}from"./package-pkI-1qEc.js";import{T as Lh}from"./trending-up-Dsk0lJie.js";import{A as Xb}from"./activity-jTDFkQo8.js";import{P as Zb}from"./package-check-5s-VSzV6.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
+1
View File
@@ -0,0 +1 @@
import{r as o,j as e}from"./index-AicSXhSk.js";const r=[{group:"快速开始",items:[{id:"dashboard",label:"系统总览"},{id:"accounts",label:"账号管理"}]},{group:"闲鱼业务",items:[{id:"items",label:"商品与发货"},{id:"resell",label:"一键转卖"},{id:"hotlist",label:"实时热卖榜"},{id:"pricewatch",label:"价格监控"},{id:"orders",label:"订单管理"},{id:"buyer-interaction",label:"买家互动"},{id:"cards",label:"卡密库存"}]},{group:"消息与自动化",items:[{id:"messages",label:"消息中心"},{id:"auto-reply",label:"自动回复"},{id:"ai-reply",label:"AI 回复"},{id:"product-automation",label:"商品自动化"}]},{group:"系统",items:[{id:"notifications",label:"通知与日志"},{id:"settings",label:"系统设置"},{id:"users",label:"用户管理"},{id:"about",label:"关于本系统"}]}],p={dashboard:{title:"系统总览",intro:"登录后的首页,汇总账号、订单、营收和库存数据,一眼判断当前经营状态。",steps:["顶部时间筛选可切换统计周期:今天 / 昨天 / 三天内 / 7天内 / 一个月内 / 自定义。","「有效成交额」与「已到账」两张卡片展示所选周期内的资金数据。","「系统运行中」状态灯表示后端自动回复、定时任务正常运行。","左侧菜单点击任意功能即可切换页面,右上角可切换日间/夜间模式。"],tips:["新部署时没有订单记录,金额显示 ¥0.00 属正常,产生交易后自动累计。"]},accounts:{title:"账号管理",intro:"所有功能的入口:先把闲鱼账号接入系统,其他页面才能选择该账号操作。",steps:["点击「添加账号」,填入账号备注名与 Cookie(从浏览器登录闲鱼后在开发者工具 Network 里复制)。","保存后列表会显示该账号,可点击「检测」验证 Cookie 是否仍然有效。","失效的账号需要重新复制 Cookie 更新;不用的账号可「禁用」而不必删除。","启用状态的账号才会参与自动回复、订单同步、消息聚合等自动化。"],tips:["Cookie 等同账号登录态,请勿泄露;本系统只保存在自己的服务器数据库中。"]},items:{title:"商品与发货",intro:"同步闲鱼在售商品,为每个商品配置自动发货内容(卡密、网盘链接或文字说明)。",steps:["选择账号后点击同步,把该账号在闲鱼的在售商品拉取到列表。","给商品设置发货内容:虚拟商品可填卡密说明或网盘链接,实物商品可填物流备注。","买家付款后系统按这里配置的内容自动回复发货,无需手动复制粘贴。","商品价格、标题变化可通过刷新按钮同步最新状态。"],tips:["发货内容支持多行文本与链接,建议按「商品名称 + 提取码」格式写清楚。"]},resell:{title:"一键转卖",intro:"从收藏或搜索结果里挑商品,改好标题价格直接发布到自己账号,做无货源转卖。",steps:["右上角先选择要发布到的闲鱼账号。","点「我的收藏」→「加载收藏」读取该账号收藏的在售商品;或切到「搜索商品」按关键词找货。","在列表中勾选想转卖的商品,修改标题、价格、描述等发布信息。","点「一键转卖」发布,商品即挂到自己账号名下。"],tips:["发布前核对价格是否留足利润;同名商品重复转卖前先在商品列表确认未上架过。"]},hotlist:{title:"实时热卖榜",intro:"抓取闲鱼实时热卖数据,帮你判断什么好卖、该上什么货。",steps:["选择分类或直接查看综合热卖榜,列表按近期成交热度排序。","点击商品可查看详情与价格区间,作为自己定价的参考。","看中的品可直接跳「一键转卖」上架到自己账号。"],tips:["榜单数据为实时抓取,个别时段可能延迟,可点刷新重新拉取。"]},pricewatch:{title:"价格监控",intro:"设定关键词和目标价,系统定时搜索闲鱼,出现低于目标价的商品立即通知你捡漏。",steps:["点「新建规则」:填写关键词(如想蹲的商品名)、目标价、检测间隔,保存后立即执行一次检测。","检测结果展示匹配商品数、历史最低价与「最近一次」的完整商品信息(超长内容自动换行展示)。","低于目标价时触发通知——前提是已在「通知与日志」页配置好通知渠道并勾选「价格监控」事件(见下方章节)。","点「历史记录」查看每次检测的明细;不需要的规则可停用或删除。"],tips:["通知没发出来时,页面顶部的红色提示会写明去哪配置,按提示到「通知与日志」页补配即可。","关键词越具体匹配越准,避免太宽泛导致噪音过多。"]},orders:{title:"订单管理",intro:"汇总所选账号的闲鱼订单,查看状态、手动补发与核对发货记录。",steps:["选择账号与时间范围筛选订单,列表显示买家、商品、金额与状态。","自动发货成Line truncated
@@ -1 +1 @@
import{r as n,bK as H,bL as A,j as e,bM as S,L as y,e as B,E as F}from"./index-Bv-jXdOf.js";import{P as O,a as U,N as q,b as z,E as K}from"./ui-DsDuWr9N.js";import{T as L}from"./trending-up-DuUK2UAf.js";import{P as V}from"./package-nIFuhixh.js";const W=2500,R=r=>r?r>=1e4?`${(r/1e4).toFixed(1).replace(/\.0$/,"")}万`:String(r):"0",Y=r=>{if(!r)return"—";const i=Date.now()-r;if(i<6e4)return"刚刚";if(i<36e5)return`${Math.floor(i/6e4)}分钟前`;if(i<864e5)return`${Math.floor(i/36e5)}小时前`;if(i<7*864e5)return`${Math.floor(i/864e5)}天前`;const o=new Date(r);return`${o.getMonth()+1}月${o.getDate()}日`},G=r=>{if(!r)return"—";const i=new Date(r),o=v=>String(v).padStart(2,"0");return`${i.getFullYear()}-${o(i.getMonth()+1)}-${o(i.getDate())}`},J=({rank:r})=>{const i=r===1?"bg-amber-400 text-white":r===2?"bg-gray-300 text-gray-700":r===3?"bg-orange-300 text-orange-900":"bg-[var(--surface-subtle)] text-[var(--text-soft)]";return e.jsx("span",{className:`inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-sm font-bold ${i}`,children:r})},se=()=>{const[r,i]=n.useState(!0),[o,v]=n.useState({}),[$,M]=n.useState([]),[d,P]=n.useState("digital"),[j,f]=n.useState(null),[h,_]=n.useState(0),[u,k]=n.useState(!1),g=n.useRef(null),I=n.useRef(d);I.current=d;const w=n.useCallback(()=>{g.current&&(clearInterval(g.current),g.current=null)},[]),b=n.useCallback(async s=>{try{const a=await H();v(a.boards||{}),M(a.categories||[]),s!=null&&s.silent||i(!1),Object.values(a.boards||{}).some(x=>x.refreshing)?E():w()}catch(a){s!=null&&s.silent||(i(!1),f({type:"error",message:a.message||"榜单加载失败"}))}},[]),E=n.useCallback(()=>{g.current||(g.current=setInterval(()=>{b({silent:!0})},W))},[b]);n.useEffect(()=>(b(),w),[b,w]),n.useEffect(()=>{if(h<=0)return;const s=setInterval(()=>_(a=>a<=1?0:a-1),1e3);return()=>clearInterval(s)},[h]);const t=o[d];n.useEffect(()=>{const s=o[d];!s||r||s.refreshing||s.items.length>0||s.cooldown_remaining>0||N(d)},[d,r,o]);const N=async s=>{if(!u){k(!0);try{const a=await A(s);a.started?(f({type:"info",message:a.categories&&a.categories.length>1?"已开始刷新全部类目,完成后自动更新。":"已开始抓取,十几秒后榜单自动刷新。"}),E()):a.reason==="cooldown"?f({type:"error",message:a.message||"刷新过于频繁,请稍后再试"}):f({type:"info",message:a.message||"已有刷新任务进行中"})}catch(a){f({type:"error",message:a.message||"刷新触发失败"})}finally{k(!1)}}};n.useEffect(()=>{t&&t.cooldown_remaining>0&&_(t.cooldown_remaining)},[t]);const T=n.useMemo(()=>$.map(s=>{var a;return{id:s.id,label:s.name,count:(a=o[s.id])==null?void 0:a.items.length}}),[$,o]),C=n.useMemo(()=>{if(!t)return[];const s={};return(t.items||[]).forEach(l=>{(l.keywords||[]).forEach(x=>{const p=s[x]||(s[x]={hits:0,want:0});p.hits+=1,p.want+=l.want_count||0})}),(t.keywords&&t.keywords.length?t.keywords:Object.keys(s)).map(l=>{var x,p;return{kw:l,hits:((x=s[l])==null?void 0:x.hits)||0,want:((p=s[l])==null?void 0:p.want)||0}}).sort((l,x)=>x.want-l.want)},[t]),m=!!(t!=null&&t.refreshing),c=t==null?void 0:t.progress,D=t!=null&&t.updated_at?Y(t.updated_at*1e3):"尚未生成";return r?e.jsx(O,{label:"正在加载热卖榜"}):e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(U,{title:"实时热卖榜",description:"按「想要人数」排序的全网热卖商品,数据来自闲鱼实时搜索聚合。",icon:S,badge:e.jsx("span",{className:"rounded-full bg-[var(--surface-subtle)] px-2 py-0.5 text-xs text-[var(--text-soft)]",children:t?`更新于 ${D}`:"待生成"}),actions:e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("button",{type:"button",className:"ios-btn-secondary flex items-center gap-1.5 rounded-md px-3 py-2 text-sm",onClick:()=>void N("all"),disabled:u||m||h>0,children:[u||m?e.jsx(y,{className:"h-4 w-4 animate-spin"}):e.jsx(B,{className:"h-4 w-4"}),"全部刷新"]}),e.jsxs("button",{type:"button",className:"ios-btn-primary flex items-center gap-1.5 rounded-md px-3 py-2 text-sm",onClick:()=>void N(d),disabled:u||m||h>0,children:[m?e.jsx(y,{className:"h-4 w-4 animate-spin"}):e.jsx(L,{className:"h-4 w-4"}),h>0?`${h}s 后可刷新`:"刷新本类目"]})]})}),j&&e.jsx(q,{type:j.type==="info"?"success":j.type,message:j.message,onClose:()=>f(null)}),e.jsx("div",{className:"toolbar",children:e.jsx(z,{value:d,onChange:P,items:T,ariaLabel:"热卖榜类目"})}),m&&e.jsx("div",{className:"section-panel",children:e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[var(--text-soft)]",children:[e.jsx(y,{className:"h-4 w-4 animate-spin text-[#ff4400]"}),e.jsxs("span",{children:["正在抓取「",(c==null?void 0:c.keyword)||"…","」",c&&c.total>0?`(${Math.min(c.done+1,c.total)}/${c.total})`:""]}),c&&c.total>0&&e.jsx("span",{className:"h-1.5 flex-1 overflow-hidden rounded-full bg-[var(--surface-subtle)]",children:e.jsx("span",{className:"block h-full rounded-full bg-[#ff4400] transition-all",style:{width:`${Math.round(c.Line truncated
import{r as n,bK as H,bL as A,j as e,bM as S,L as y,e as B,E as F}from"./index-AicSXhSk.js";import{P as O,a as U,N as q,b as z,E as K}from"./ui-BArJ7xwp.js";import{T as L}from"./trending-up-Dsk0lJie.js";import{P as V}from"./package-pkI-1qEc.js";const W=2500,R=r=>r?r>=1e4?`${(r/1e4).toFixed(1).replace(/\.0$/,"")}万`:String(r):"0",Y=r=>{if(!r)return"—";const i=Date.now()-r;if(i<6e4)return"刚刚";if(i<36e5)return`${Math.floor(i/6e4)}分钟前`;if(i<864e5)return`${Math.floor(i/36e5)}小时前`;if(i<7*864e5)return`${Math.floor(i/864e5)}天前`;const o=new Date(r);return`${o.getMonth()+1}月${o.getDate()}日`},G=r=>{if(!r)return"—";const i=new Date(r),o=v=>String(v).padStart(2,"0");return`${i.getFullYear()}-${o(i.getMonth()+1)}-${o(i.getDate())}`},J=({rank:r})=>{const i=r===1?"bg-amber-400 text-white":r===2?"bg-gray-300 text-gray-700":r===3?"bg-orange-300 text-orange-900":"bg-[var(--surface-subtle)] text-[var(--text-soft)]";return e.jsx("span",{className:`inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-sm font-bold ${i}`,children:r})},se=()=>{const[r,i]=n.useState(!0),[o,v]=n.useState({}),[$,M]=n.useState([]),[d,P]=n.useState("digital"),[j,f]=n.useState(null),[h,_]=n.useState(0),[u,k]=n.useState(!1),g=n.useRef(null),I=n.useRef(d);I.current=d;const w=n.useCallback(()=>{g.current&&(clearInterval(g.current),g.current=null)},[]),b=n.useCallback(async s=>{try{const a=await H();v(a.boards||{}),M(a.categories||[]),s!=null&&s.silent||i(!1),Object.values(a.boards||{}).some(x=>x.refreshing)?E():w()}catch(a){s!=null&&s.silent||(i(!1),f({type:"error",message:a.message||"榜单加载失败"}))}},[]),E=n.useCallback(()=>{g.current||(g.current=setInterval(()=>{b({silent:!0})},W))},[b]);n.useEffect(()=>(b(),w),[b,w]),n.useEffect(()=>{if(h<=0)return;const s=setInterval(()=>_(a=>a<=1?0:a-1),1e3);return()=>clearInterval(s)},[h]);const t=o[d];n.useEffect(()=>{const s=o[d];!s||r||s.refreshing||s.items.length>0||s.cooldown_remaining>0||N(d)},[d,r,o]);const N=async s=>{if(!u){k(!0);try{const a=await A(s);a.started?(f({type:"info",message:a.categories&&a.categories.length>1?"已开始刷新全部类目,完成后自动更新。":"已开始抓取,十几秒后榜单自动刷新。"}),E()):a.reason==="cooldown"?f({type:"error",message:a.message||"刷新过于频繁,请稍后再试"}):f({type:"info",message:a.message||"已有刷新任务进行中"})}catch(a){f({type:"error",message:a.message||"刷新触发失败"})}finally{k(!1)}}};n.useEffect(()=>{t&&t.cooldown_remaining>0&&_(t.cooldown_remaining)},[t]);const T=n.useMemo(()=>$.map(s=>{var a;return{id:s.id,label:s.name,count:(a=o[s.id])==null?void 0:a.items.length}}),[$,o]),C=n.useMemo(()=>{if(!t)return[];const s={};return(t.items||[]).forEach(l=>{(l.keywords||[]).forEach(x=>{const p=s[x]||(s[x]={hits:0,want:0});p.hits+=1,p.want+=l.want_count||0})}),(t.keywords&&t.keywords.length?t.keywords:Object.keys(s)).map(l=>{var x,p;return{kw:l,hits:((x=s[l])==null?void 0:x.hits)||0,want:((p=s[l])==null?void 0:p.want)||0}}).sort((l,x)=>x.want-l.want)},[t]),m=!!(t!=null&&t.refreshing),c=t==null?void 0:t.progress,D=t!=null&&t.updated_at?Y(t.updated_at*1e3):"尚未生成";return r?e.jsx(O,{label:"正在加载热卖榜"}):e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(U,{title:"实时热卖榜",description:"按「想要人数」排序的全网热卖商品,数据来自闲鱼实时搜索聚合。",icon:S,badge:e.jsx("span",{className:"rounded-full bg-[var(--surface-subtle)] px-2 py-0.5 text-xs text-[var(--text-soft)]",children:t?`更新于 ${D}`:"待生成"}),actions:e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("button",{type:"button",className:"ios-btn-secondary flex items-center gap-1.5 rounded-md px-3 py-2 text-sm",onClick:()=>void N("all"),disabled:u||m||h>0,children:[u||m?e.jsx(y,{className:"h-4 w-4 animate-spin"}):e.jsx(B,{className:"h-4 w-4"}),"全部刷新"]}),e.jsxs("button",{type:"button",className:"ios-btn-primary flex items-center gap-1.5 rounded-md px-3 py-2 text-sm",onClick:()=>void N(d),disabled:u||m||h>0,children:[m?e.jsx(y,{className:"h-4 w-4 animate-spin"}):e.jsx(L,{className:"h-4 w-4"}),h>0?`${h}s 后可刷新`:"刷新本类目"]})]})}),j&&e.jsx(q,{type:j.type==="info"?"success":j.type,message:j.message,onClose:()=>f(null)}),e.jsx("div",{className:"toolbar",children:e.jsx(z,{value:d,onChange:P,items:T,ariaLabel:"热卖榜类目"})}),m&&e.jsx("div",{className:"section-panel",children:e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[var(--text-soft)]",children:[e.jsx(y,{className:"h-4 w-4 animate-spin text-[#ff4400]"}),e.jsxs("span",{children:["正在抓取「",(c==null?void 0:c.keyword)||"…","」",c&&c.total>0?`(${Math.min(c.done+1,c.total)}/${c.total})`:""]}),c&&c.total>0&&e.jsx("span",{className:"h-1.5 flex-1 overflow-hidden rounded-full bg-[var(--surface-subtle)]",children:e.jsx("span",{className:"block h-full rounded-full bg-[#ff4400] transition-all",style:{width:`${Math.round(c.Line truncated
@@ -1,4 +1,4 @@
import{c as _e,r,ad as fs,ae as Ee,n as w,j as e,e as ve,X as ee,L as V,af as js,ag as Ns,ah as _s,v as xe,ai as vs,aj as Be,b as re,ak as fe,al as je,am as ws,an as ks,ao as Qe,ap as Re,o as Te,h as ye,a7 as Le,aq as ze,ar as be,w as Ss,as as Cs,at as Ue,au as Ke,av as Is,aw as $s,ax as Ms,ay as Ds}from"./index-Bv-jXdOf.js";import{E as se,S as Ne,P as qe,a as Fs,b as Ps,N as Es}from"./ui-DsDuWr9N.js";import{S as de}from"./shield-alert-D9azMpPj.js";import{S as ce}from"./save-0PTf3nGc.js";import{T as me}from"./trash-2-B0ysq8Ym.js";import{P as oe}from"./plus-CPcSzYSi.js";import{P as Bs}from"./power-off-CNY2Dc3p.js";import{a as Rs,P as Ts}from"./power-Buu1SqwC.js";import{P as We}from"./package-check-BvQeh0sv.js";import{S as Oe}from"./sparkles-CKxl3Qic.js";import{S as Ls}from"./settings-2-DllIA6Ld.js";import{S as zs}from"./square-pen-C2r7bTuu.js";/**
import{c as _e,r,ad as fs,ae as Ee,n as w,j as e,e as ve,X as ee,L as V,af as js,ag as Ns,ah as _s,v as xe,ai as vs,aj as Be,b as re,ak as fe,al as je,am as ws,an as ks,ao as Qe,ap as Re,o as Te,h as ye,a7 as Le,aq as ze,ar as be,w as Ss,as as Cs,at as Ue,au as Ke,av as Is,aw as $s,ax as Ms,ay as Ds}from"./index-AicSXhSk.js";import{E as se,S as Ne,P as qe,a as Fs,b as Ps,N as Es}from"./ui-BArJ7xwp.js";import{S as de}from"./shield-alert-C33rQelW.js";import{S as ce}from"./save-CugEvXT8.js";import{T as me}from"./trash-2-FGeel4KL.js";import{P as oe}from"./plus-D0O6eAJE.js";import{P as Bs}from"./power-off-zbar0oA2.js";import{a as Rs,P as Ts}from"./power-Sr01dgTD.js";import{P as We}from"./package-check-5s-VSzV6.js";import{S as Oe}from"./sparkles-CGMFRhYx.js";import{S as Ls}from"./settings-2-5_nl2xDP.js";import{S as zs}from"./square-pen-BNaZ8Xrs.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1 +1 @@
import{r as i,o as J,b1 as fe,aq as Ne,a7 as ve,b2 as we,j as e,M as R,B as P,e as Q,b as E,X as F,v as k,b3 as _e,n as t,ak as V,al as ke,b4 as Se,b5 as Ce,b6 as De,b7 as Re,b8 as Pe}from"./index-Bv-jXdOf.js";import{a as Ee,b as Fe,E as S,P as Me,S as M}from"./ui-DsDuWr9N.js";import{T}from"./truck-bFA9lKUP.js";import{K as W}from"./key-B_-6jyLh.js";import{P as Te}from"./plus-CPcSzYSi.js";import{P as $,a as $e}from"./power-Buu1SqwC.js";import{T as A}from"./trash-2-B0ysq8Ym.js";import{P as Ae}from"./power-off-CNY2Dc3p.js";import{S as K}from"./save-0PTf3nGc.js";import{S as Ke}from"./sparkles-CKxl3Qic.js";const Ve=({mode:l})=>{const[x,L]=i.useState([]),[d,B]=i.useState(""),[y,Y]=i.useState("reply"),[j,Z]=i.useState([]),[I,h]=i.useState(!1),[f,q]=i.useState(null),[c,N]=i.useState({keyword:"",reply_content:""}),[C,ee]=i.useState([]),[se,ae]=i.useState([]),[te,u]=i.useState(!1),[v,z]=i.useState(null),[r,o]=i.useState({keyword:"",cookie_id:"",card_id:"",description:"",enabled:!0}),[H,le]=i.useState({}),[ie,g]=i.useState(!1),[Le,O]=i.useState(null),[n,m]=i.useState({cookie_id:"",enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),[re,U]=i.useState(!1);i.useEffect(()=>{if(l==="delivery"){b(),X(),J().then(L);return}J().then(s=>{L(s),s&&s.length>0&&B(a=>a||s[0].id)})},[l]),i.useEffect(()=>{l==="reply"&&d&&(_(),w())},[l,d]);const w=async()=>{try{const s=await fe();le(s)}catch(s){console.error("加载默认回复失败",s)}},b=async()=>{try{const s=await Ne();ee(s.filter(a=>!a.item_id))}catch(s){console.error("加载发货规则失败",s)}},X=async()=>{try{const s=await ve();ae(s)}catch(s){console.error("加载卡券失败",s)}},_=async()=>{if(d){U(!0);try{const s=await we(d);Z(s)}catch(s){console.error("加载关键词失败",s)}finally{U(!1)}}},ne=()=>{if(l==="delivery")z(null),o({keyword:"",cookie_id:"",card_id:"",description:"",enabled:!0}),u(!0);else if(y==="reply")q(null),N({keyword:"",reply_content:""}),h(!0);else{if(!d)return;G(d)}},G=async s=>{try{const a=await Se(s);O(a),m({cookie_id:s,enabled:a.enabled,reply_content:a.reply_content,reply_once:a.reply_once,reply_image_url:a.reply_image_url||""}),g(!0)}catch(a){console.error("加载默认回复失败",a),O(null),m({cookie_id:s,enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),g(!0)}},de=s=>{y==="reply"&&(q(s),N({keyword:s.keyword,reply_content:s.reply_content}),h(!0))},ce=s=>{z(s),o({keyword:s.item_keyword,cookie_id:s.cookie_id||"",card_id:String(s.card_group_id),description:s.name,enabled:s.enabled}),u(!0)},oe=async()=>{if(!d){t("请先选择账号");return}if(!c.keyword.trim()||!c.reply_content.trim()){t("请填写关键词和回复内容");return}try{await Re({id:f==null?void 0:f.id,keyword:c.keyword,reply_content:c.reply_content,match_type:"exact",enabled:!0},d),h(!1),_(),t("保存成功!")}catch(s){t("保存失败:"+s.message)}},me=async()=>{if(!r.keyword.trim()){t("请填写触发关键词");return}if(!r.card_id){t("请选择卡券");return}try{await V({id:v==null?void 0:v.id,item_keyword:r.keyword,cookie_id:r.cookie_id||void 0,item_id:void 0,card_group_id:parseInt(r.card_id),name:r.description,priority:1,enabled:r.enabled}),u(!1),b(),t("保存成功!")}catch(s){t("保存失败:"+s.message)}},pe=async s=>{if(!(!d||!await k("确认删除该关键词吗?")))try{await _e(s,d),_(),t("删除成功!")}catch(a){t("删除失败:"+a.message)}},xe=async s=>{if(await k("确认删除该发货规则吗?"))try{await ke(s),b(),t("删除成功!")}catch(a){t("删除失败:"+a.message)}},ye=async s=>{try{await V({id:s.id,item_keyword:s.item_keyword,cookie_id:s.cookie_id,item_id:s.item_id,card_group_id:s.card_group_id,name:s.name,priority:s.priority,enabled:!s.enabled}),b()}catch(a){t("操作失败:"+a.message)}},he=async()=>{if(!n.cookie_id){t("请先选择账号");return}try{await Pe(n.cookie_id,{enabled:n.enabled,reply_content:n.reply_content,reply_once:n.reply_once,reply_image_url:n.reply_image_url}),g(!1),w(),t("保存成功!")}catch(s){t("保存失败:"+s.message)}},ue=async s=>{if(await k("确认删除该默认回复吗?"))try{await De(s),w(),t("删除成功!")}catch(a){t("删除失败:"+a.message)}},ge=async s=>{if(await k("确认清空该账号的回复记录吗?清空后可以重新对所有对话使用默认回复。"))try{await Ce(s),t("清空成功!")}catch(a){t("清空失败:"+a.message)}},be=Object.values(H).filter(s=>s.enabled).length,je=()=>{l==="delivery"?Promise.all([b(),X()]):y==="reply"?_():w()},D=(s,a,p)=>e.jsx("button",{type:"button",role:"switch","aria-checked":s,"aria-label":p,onClick:a,className:`relative h-6 w-11 shrink-0 rounded-full transition-colors ${s?"bg-[#ffe100]":"bg-gray-300"}`,children:e.jsx("span",{className:`absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition-transform ${s?"translate-x-5":""}`})});return e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(Ee,{title:l==="reply"?"自动回复":"通用自动发货",description:l==="reply"?"管理账Line truncated
import{r as i,o as J,b1 as fe,aq as Ne,a7 as ve,b2 as we,j as e,M as R,B as P,e as Q,b as E,X as F,v as k,b3 as _e,n as t,ak as V,al as ke,b4 as Se,b5 as Ce,b6 as De,b7 as Re,b8 as Pe}from"./index-AicSXhSk.js";import{a as Ee,b as Fe,E as S,P as Me,S as M}from"./ui-BArJ7xwp.js";import{T}from"./truck-D6OUnkc8.js";import{K as W}from"./key-Bq-SXfOX.js";import{P as Te}from"./plus-D0O6eAJE.js";import{P as $,a as $e}from"./power-Sr01dgTD.js";import{T as A}from"./trash-2-FGeel4KL.js";import{P as Ae}from"./power-off-zbar0oA2.js";import{S as K}from"./save-CugEvXT8.js";import{S as Ke}from"./sparkles-CGMFRhYx.js";const Ve=({mode:l})=>{const[x,L]=i.useState([]),[d,B]=i.useState(""),[y,Y]=i.useState("reply"),[j,Z]=i.useState([]),[I,h]=i.useState(!1),[f,q]=i.useState(null),[c,N]=i.useState({keyword:"",reply_content:""}),[C,ee]=i.useState([]),[se,ae]=i.useState([]),[te,u]=i.useState(!1),[v,z]=i.useState(null),[r,o]=i.useState({keyword:"",cookie_id:"",card_id:"",description:"",enabled:!0}),[H,le]=i.useState({}),[ie,g]=i.useState(!1),[Le,O]=i.useState(null),[n,m]=i.useState({cookie_id:"",enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),[re,U]=i.useState(!1);i.useEffect(()=>{if(l==="delivery"){b(),X(),J().then(L);return}J().then(s=>{L(s),s&&s.length>0&&B(a=>a||s[0].id)})},[l]),i.useEffect(()=>{l==="reply"&&d&&(_(),w())},[l,d]);const w=async()=>{try{const s=await fe();le(s)}catch(s){console.error("加载默认回复失败",s)}},b=async()=>{try{const s=await Ne();ee(s.filter(a=>!a.item_id))}catch(s){console.error("加载发货规则失败",s)}},X=async()=>{try{const s=await ve();ae(s)}catch(s){console.error("加载卡券失败",s)}},_=async()=>{if(d){U(!0);try{const s=await we(d);Z(s)}catch(s){console.error("加载关键词失败",s)}finally{U(!1)}}},ne=()=>{if(l==="delivery")z(null),o({keyword:"",cookie_id:"",card_id:"",description:"",enabled:!0}),u(!0);else if(y==="reply")q(null),N({keyword:"",reply_content:""}),h(!0);else{if(!d)return;G(d)}},G=async s=>{try{const a=await Se(s);O(a),m({cookie_id:s,enabled:a.enabled,reply_content:a.reply_content,reply_once:a.reply_once,reply_image_url:a.reply_image_url||""}),g(!0)}catch(a){console.error("加载默认回复失败",a),O(null),m({cookie_id:s,enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),g(!0)}},de=s=>{y==="reply"&&(q(s),N({keyword:s.keyword,reply_content:s.reply_content}),h(!0))},ce=s=>{z(s),o({keyword:s.item_keyword,cookie_id:s.cookie_id||"",card_id:String(s.card_group_id),description:s.name,enabled:s.enabled}),u(!0)},oe=async()=>{if(!d){t("请先选择账号");return}if(!c.keyword.trim()||!c.reply_content.trim()){t("请填写关键词和回复内容");return}try{await Re({id:f==null?void 0:f.id,keyword:c.keyword,reply_content:c.reply_content,match_type:"exact",enabled:!0},d),h(!1),_(),t("保存成功!")}catch(s){t("保存失败:"+s.message)}},me=async()=>{if(!r.keyword.trim()){t("请填写触发关键词");return}if(!r.card_id){t("请选择卡券");return}try{await V({id:v==null?void 0:v.id,item_keyword:r.keyword,cookie_id:r.cookie_id||void 0,item_id:void 0,card_group_id:parseInt(r.card_id),name:r.description,priority:1,enabled:r.enabled}),u(!1),b(),t("保存成功!")}catch(s){t("保存失败:"+s.message)}},pe=async s=>{if(!(!d||!await k("确认删除该关键词吗?")))try{await _e(s,d),_(),t("删除成功!")}catch(a){t("删除失败:"+a.message)}},xe=async s=>{if(await k("确认删除该发货规则吗?"))try{await ke(s),b(),t("删除成功!")}catch(a){t("删除失败:"+a.message)}},ye=async s=>{try{await V({id:s.id,item_keyword:s.item_keyword,cookie_id:s.cookie_id,item_id:s.item_id,card_group_id:s.card_group_id,name:s.name,priority:s.priority,enabled:!s.enabled}),b()}catch(a){t("操作失败:"+a.message)}},he=async()=>{if(!n.cookie_id){t("请先选择账号");return}try{await Pe(n.cookie_id,{enabled:n.enabled,reply_content:n.reply_content,reply_once:n.reply_once,reply_image_url:n.reply_image_url}),g(!1),w(),t("保存成功!")}catch(s){t("保存失败:"+s.message)}},ue=async s=>{if(await k("确认删除该默认回复吗?"))try{await De(s),w(),t("删除成功!")}catch(a){t("删除失败:"+a.message)}},ge=async s=>{if(await k("确认清空该账号的回复记录吗?清空后可以重新对所有对话使用默认回复。"))try{await Ce(s),t("清空成功!")}catch(a){t("清空失败:"+a.message)}},be=Object.values(H).filter(s=>s.enabled).length,je=()=>{l==="delivery"?Promise.all([b(),X()]):y==="reply"?_():w()},D=(s,a,p)=>e.jsx("button",{type:"button",role:"switch","aria-checked":s,"aria-label":p,onClick:a,className:`relative h-6 w-11 shrink-0 rounded-full transition-colors ${s?"bg-[#ffe100]":"bg-gray-300"}`,children:e.jsx("span",{className:`absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition-transform ${s?"translate-x-5":""}`})});return e.jsxs("div",{className:"page-stack animate-fade-in",children:[e.jsx(Ee,{title:l==="reply"?"自动回复":"通用自动发货",description:l==="reply"?"管理账Line truncated
@@ -1,4 +1,4 @@
import{c as We,r as n,aV as mt,o as xt,n as u,h as ut,b9 as ht,ba as ft,j as t,e as $e,L as U,bb as pt,X as gt,bc as bt,bd as jt,be as yt,aS as vt,bf as wt,bg as Nt,bh as kt,bi as St,v as Te,bj as Ct,bk as Mt}from"./index-Bv-jXdOf.js";import{I as Re,c as _t,S as Ee,E as It}from"./ui-DsDuWr9N.js";import{S as Z}from"./settings-2-DllIA6Ld.js";import{S as $t}from"./search-Bb5I8BnO.js";import{P as Tt}from"./package-nIFuhixh.js";import{I as Rt}from"./image-CidyAfuY.js";import{Z as Et}from"./zap-D2daIz-5.js";import{S as Lt}from"./send-D1j5er8X.js";import{P as Le}from"./plus-CPcSzYSi.js";import{T as Ue}from"./trash-2-B0ysq8Ym.js";/**
import{c as We,r as n,aV as mt,o as xt,n as u,h as ut,b9 as ht,ba as ft,j as t,e as $e,L as U,bb as pt,X as gt,bc as bt,bd as jt,be as yt,aS as vt,bf as wt,bg as Nt,bh as kt,bi as St,v as Te,bj as Ct,bk as Mt}from"./index-AicSXhSk.js";import{I as Re,c as _t,S as Ee,E as It}from"./ui-BArJ7xwp.js";import{S as Z}from"./settings-2-5_nl2xDP.js";import{S as $t}from"./search-BjymlZDV.js";import{P as Tt}from"./package-pkI-1qEc.js";import{I as Rt}from"./image-OkUpLHH3.js";import{Z as Et}from"./zap-Ci6s9cpi.js";import{S as Lt}from"./send-DBStzVpY.js";import{P as Le}from"./plus-D0O6eAJE.js";import{T as Ue}from"./trash-2-FGeel4KL.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
-1
View File
@@ -1 +0,0 @@
import{r as l,j as t,bb as $,e as ee,L as te,aD as ot,C as ct,X as Se,o as dt,bl as mt,bm as xt,bn as pt,n as o,bo as ut,bp as ht,bq as _e,v as se,br as yt,bs as Re,bt,bu as gt,bv as ft,bw as jt,bx as Nt}from"./index-Bv-jXdOf.js";import{a as vt,b as wt,S as E,E as L}from"./ui-DsDuWr9N.js";import{L as ae}from"./link-2-CCl91EwU.js";import{S as le}from"./shield-alert-D9azMpPj.js";import{A as ne}from"./activity-6q-JZDEZ.js";import{P as $e}from"./plus-CPcSzYSi.js";import{P as Ee}from"./pen-line-BYMwCQU2.js";import{T as ie}from"./trash-2-B0ysq8Ym.js";import{S as kt}from"./send-D1j5er8X.js";import{C as Ct,a as St}from"./chevron-right-CHikxycD.js";import{S as Le}from"./save-0PTf3nGc.js";import{C as _t}from"./check-CY3uIA9x.js";const y={dingtalk:{label:"钉钉",fields:[{key:"webhook_url",label:"Webhook 地址",placeholder:"https://oapi.dingtalk.com/robot/send?..."},{key:"secret",label:"加签密钥",type:"password",optional:!0}],defaults:{}},feishu:{label:"飞书",fields:[{key:"webhook_url",label:"Webhook 地址",placeholder:"https://open.feishu.cn/open-apis/bot/v2/hook/..."},{key:"secret",label:"签名密钥",type:"password",optional:!0}],defaults:{}},bark:{label:"Bark",fields:[{key:"device_key",label:"Device Key",type:"password"},{key:"server_url",label:"服务器地址",placeholder:"https://api.day.app",optional:!0}],defaults:{server_url:"https://api.day.app"}},email:{label:"邮件",fields:[{key:"smtp_server",label:"SMTP 服务器",placeholder:"smtp.example.com"},{key:"smtp_port",label:"SMTP 端口",type:"number"},{key:"email_user",label:"发件邮箱"},{key:"email_password",label:"邮箱密码或授权码",type:"password"},{key:"recipient_email",label:"接收邮箱"}],defaults:{smtp_port:587}},webhook:{label:"Webhook",fields:[{key:"webhook_url",label:"Webhook 地址"},{key:"http_method",label:"请求方法",type:"select",options:["POST","PUT"]},{key:"headers",label:"请求头 JSON",type:"textarea",placeholder:'{"Authorization":"Bearer ..."}',optional:!0}],defaults:{http_method:"POST",headers:"{}"}},wechat:{label:"企业微信",fields:[{key:"webhook_url",label:"机器人 Webhook 地址"}],defaults:{}},telegram:{label:"Telegram",fields:[{key:"bot_token",label:"Bot Token",type:"password"},{key:"chat_id",label:"Chat ID"}],defaults:{}}},re=20,Rt=i=>{var k,x;const r=(x=(k=i==null?void 0:i.response)==null?void 0:k.data)==null?void 0:x.detail;if(r&&typeof r=="object"&&"message"in r){const b=r.message;if(typeof b=="string"&&b.trim())return b.trim()}return typeof r=="string"&&r.trim()?r.trim():i instanceof Error&&i.message?i.message:"测试发送失败,请稍后重试"},oe=i=>i.nickname||i.remark||i.id,T=i=>{if(!i)return"-";const r=new Date(i.includes("T")?i:`${i.replace(" ","T")}Z`);return Number.isNaN(r.getTime())?i:r.toLocaleString("zh-CN")},Wt=({isAdmin:i})=>{const[r,k]=l.useState("channels"),[x,b]=l.useState([]),[A,ce]=l.useState([]),[de,D]=l.useState([]),[Te,g]=l.useState({}),[f,Ae]=l.useState([]),[me,De]=l.useState([]),[C,xe]=l.useState(!0),[Pe,j]=l.useState(!1),[N,pe]=l.useState(null),[P,B]=l.useState("dingtalk"),[O,I]=l.useState(""),[d,p]=l.useState({}),[ue,he]=l.useState(!1),[Be,u]=l.useState(!1),[v,ye]=l.useState(null),[M,q]=l.useState(""),[W,G]=l.useState(""),[z,F]=l.useState(""),[H,h]=l.useState([]),[be,S]=l.useState(!1),[ge,Oe]=l.useState([]),[fe,Ie]=l.useState(0),[U,Me]=l.useState(""),[Z,qe]=l.useState(""),[w,_]=l.useState(0),[J,je]=l.useState(!1),[Ne,We]=l.useState([]),[ve,Ge]=l.useState(""),[R,we]=l.useState(""),[K,ke]=l.useState(!1),m=async()=>{xe(!0);try{const[e,s,a,n]=await Promise.all([dt(),mt(),xt(),pt()]);b(e),ce(s.data),D(a.data),g(c=>{const rt=new Set(a.data.map(Y=>String(Y.id)));return Object.fromEntries(Object.entries(c).filter(([Y])=>rt.has(Y)))}),Ae(n.events),De(n.priorities)}catch(e){o(`加载通知配置失败:${e.message}`)}finally{xe(!1)}};l.useEffect(()=>{m()},[]);const ze=()=>{const e="dingtalk";pe(null),B(e),I(""),p({...y[e].defaults}),j(!0)},Fe=e=>{pe(e),B(e.type),I(e.name),p({...y[e.type].defaults,...e.config}),j(!0)},He=e=>{B(e),p({...y[e].defaults})},Ue=async()=>{he(!0);try{N?await _e(N.id,{name:O,config:d,enabled:N.enabled}):await jt({name:O,type:P,config:d}),j(!1),await m()}catch(e){o(`保存通知渠道失败:${e.message}`)}finally{he(!1)}},Ze=async e=>{try{await _e(e.id,{enabled:!e.enabled}),ce(s=>s.map(a=>a.id===e.id?{...a,enabled:!a.enabled}:a)),e.enabled?D(s=>s.filter(a=>a.channel_id!==Number(e.id))):await m()}catch(s){o(`更新渠道状态失败:${s.message}`)}},Je=async e=>{if(await se(`确认删除通知渠道“${e.name}”?相关账号绑定也会被删除。`))try{await yt(e.id),await m()}catch(s){o(`删除通知渠道失败:${s.message}`)}},Ke=e=>{var s;return((s=f.find(a=>a.id===e))==null?void 0:s.label)||e},Xe=e=>!e.event_types||e.event_types.length===0?"全部事件":e.event_types.map(Ke).join("、"),Qe=me.length>0?me:Array.from(new Set(f.map(e=>e.priority))).map(e=>({id:e,label:e==="critical"?"关键":e==="warning"?"重要":"一般"})),Ve=()=>{var e;yeLine truncated
+1
View File
@@ -0,0 +1 @@
import{r as l,j as t,bb as $,e as ee,L as te,aD as ot,C as ct,X as Se,o as dt,bl as mt,bm as xt,bn as pt,n as o,bo as ut,bp as ht,bq as _e,v as se,br as yt,bs as Re,bt,bu as gt,bv as ft,bw as jt,bx as Nt}from"./index-AicSXhSk.js";import{a as vt,b as wt,S as E,E as L}from"./ui-BArJ7xwp.js";import{L as ae}from"./link-2-uzCBDmi3.js";import{S as le}from"./shield-alert-C33rQelW.js";import{A as ne}from"./activity-jTDFkQo8.js";import{P as $e}from"./plus-D0O6eAJE.js";import{P as Ee}from"./pen-line-mMRjam7O.js";import{T as ie}from"./trash-2-FGeel4KL.js";import{S as kt}from"./send-DBStzVpY.js";import{C as Ct,a as St}from"./chevron-right-8bMz9jgq.js";import{S as Le}from"./save-CugEvXT8.js";import{C as _t}from"./check-lHacyebo.js";const y={dingtalk:{label:"钉钉",fields:[{key:"webhook_url",label:"Webhook 地址",placeholder:"https://oapi.dingtalk.com/robot/send?..."},{key:"secret",label:"加签密钥",type:"password",optional:!0}],defaults:{}},feishu:{label:"飞书",fields:[{key:"webhook_url",label:"Webhook 地址",placeholder:"https://open.feishu.cn/open-apis/bot/v2/hook/..."},{key:"secret",label:"签名密钥",type:"password",optional:!0}],defaults:{}},bark:{label:"Bark",fields:[{key:"device_key",label:"Device Key",type:"password"},{key:"server_url",label:"服务器地址",placeholder:"https://api.day.app",optional:!0}],defaults:{server_url:"https://api.day.app"}},email:{label:"邮件",fields:[{key:"smtp_server",label:"SMTP 服务器",placeholder:"留空则使用「系统设置 → 邮件服务」",optional:!0},{key:"smtp_port",label:"SMTP 端口",type:"number",placeholder:"留空则使用系统设置(如 465)",optional:!0},{key:"email_user",label:"发件邮箱",placeholder:"留空则使用系统设置的发件邮箱",optional:!0},{key:"email_password",label:"邮箱密码或授权码",type:"password",placeholder:"留空则使用系统设置的授权码",optional:!0},{key:"recipient_email",label:"接收邮箱",placeholder:"必填,通知发到这个邮箱"}],defaults:{}},webhook:{label:"Webhook",fields:[{key:"webhook_url",label:"Webhook 地址"},{key:"http_method",label:"请求方法",type:"select",options:["POST","PUT"]},{key:"headers",label:"请求头 JSON",type:"textarea",placeholder:'{"Authorization":"Bearer ..."}',optional:!0}],defaults:{http_method:"POST",headers:"{}"}},wechat:{label:"企业微信",fields:[{key:"webhook_url",label:"机器人 Webhook 地址"}],defaults:{}},telegram:{label:"Telegram",fields:[{key:"bot_token",label:"Bot Token",type:"password"},{key:"chat_id",label:"Chat ID"}],defaults:{}}},re=20,Rt=i=>{var k,x;const r=(x=(k=i==null?void 0:i.response)==null?void 0:k.data)==null?void 0:x.detail;if(r&&typeof r=="object"&&"message"in r){const b=r.message;if(typeof b=="string"&&b.trim())return b.trim()}return typeof r=="string"&&r.trim()?r.trim():i instanceof Error&&i.message?i.message:"测试发送失败,请稍后重试"},oe=i=>i.nickname||i.remark||i.id,T=i=>{if(!i)return"-";const r=new Date(i.includes("T")?i:`${i.replace(" ","T")}Z`);return Number.isNaN(r.getTime())?i:r.toLocaleString("zh-CN")},Wt=({isAdmin:i})=>{const[r,k]=l.useState("channels"),[x,b]=l.useState([]),[A,ce]=l.useState([]),[de,D]=l.useState([]),[Te,g]=l.useState({}),[f,Ae]=l.useState([]),[me,De]=l.useState([]),[C,xe]=l.useState(!0),[Pe,j]=l.useState(!1),[N,pe]=l.useState(null),[P,B]=l.useState("dingtalk"),[O,I]=l.useState(""),[d,p]=l.useState({}),[ue,he]=l.useState(!1),[Be,u]=l.useState(!1),[v,ye]=l.useState(null),[M,q]=l.useState(""),[W,G]=l.useState(""),[z,F]=l.useState(""),[H,h]=l.useState([]),[be,S]=l.useState(!1),[ge,Oe]=l.useState([]),[fe,Ie]=l.useState(0),[U,Me]=l.useState(""),[Z,qe]=l.useState(""),[w,_]=l.useState(0),[J,je]=l.useState(!1),[Ne,We]=l.useState([]),[ve,Ge]=l.useState(""),[R,we]=l.useState(""),[K,ke]=l.useState(!1),m=async()=>{xe(!0);try{const[e,s,a,n]=await Promise.all([dt(),mt(),xt(),pt()]);b(e),ce(s.data),D(a.data),g(c=>{const rt=new Set(a.data.map(Y=>String(Y.id)));return Object.fromEntries(Object.entries(c).filter(([Y])=>rt.has(Y)))}),Ae(n.events),De(n.priorities)}catch(e){o(`加载通知配置失败:${e.message}`)}finally{xe(!1)}};l.useEffect(()=>{m()},[]);const ze=()=>{const e="dingtalk";pe(null),B(e),I(""),p({...y[e].defaults}),j(!0)},Fe=e=>{pe(e),B(e.type),I(e.name),p({...y[e.type].defaults,...e.config}),j(!0)},He=e=>{B(e),p({...y[e].defaults})},Ue=async()=>{he(!0);try{N?await _e(N.id,{name:O,config:d,enabled:N.enabled}):await jt({name:O,type:P,config:d}),j(!1),await m()}catch(e){o(`保存通知渠道失败:${e.message}`)}finally{he(!1)}},Ze=async e=>{try{await _e(e.id,{enabled:!e.enabled}),ce(s=>s.map(a=>a.id===e.id?{...a,enabled:!a.enabled}:a)),e.enabled?D(s=>s.filter(a=>a.channel_id!==Number(e.id))):await m()}catch(s){o(`更新渠道状态失败:${s.message}`)}},Je=async e=>{if(await se(`确认删除通知渠道“${e.name}”?相关账号绑定也会被删除。`))try{await yt(e.id),await m()}catch(s){o(`删除通知渠道失败:${s.message}`)}},Ke=e=>{var s;return((s=f.find(a=>a.id=Line truncated
@@ -1,4 +1,4 @@
import{c as Re,r as l,h as ys,N as js,j as e,e as $,O as fs,E as vs,P as Ns,b as N,X as _,o as _s,Q as ws,T as Me,V as ks,W as Ss,n,Y as Cs,v as Pe,Z as Os,_ as Es,$ as Ls,a0 as Is,a1 as Ms,a2 as Ps,a3 as Ds,a4 as Fs}from"./index-Bv-jXdOf.js";import{a as As,b as $s,E as Rs}from"./ui-DsDuWr9N.js";import{P as qs}from"./plus-CPcSzYSi.js";import{T as De}from"./truck-bFA9lKUP.js";import{S as Ts}from"./search-Bb5I8BnO.js";import{P as Y}from"./package-check-BvQeh0sv.js";import{F as zs}from"./flower-2-DCghnFkQ.js";import{E as Vs}from"./eye-Bf7DwUjO.js";import{S as Hs}from"./square-pen-C2r7bTuu.js";import{T as Js}from"./trash-2-B0ysq8Ym.js";import{C as Ws,a as Bs}from"./chevron-right-CHikxycD.js";import{S as Fe}from"./save-0PTf3nGc.js";/**
import{c as Re,r as l,h as ys,N as js,j as e,e as $,O as fs,E as vs,P as Ns,b as N,X as _,o as _s,Q as ws,T as Me,V as ks,W as Ss,n,Y as Cs,v as Pe,Z as Os,_ as Es,$ as Ls,a0 as Is,a1 as Ms,a2 as Ps,a3 as Ds,a4 as Fs}from"./index-AicSXhSk.js";import{a as As,b as $s,E as Rs}from"./ui-BArJ7xwp.js";import{P as qs}from"./plus-D0O6eAJE.js";import{T as De}from"./truck-D6OUnkc8.js";import{S as Ts}from"./search-BjymlZDV.js";import{P as Y}from"./package-check-5s-VSzV6.js";import{F as zs}from"./flower-2-BBrAoQND.js";import{E as Vs}from"./eye-73M4Y6Lx.js";import{S as Hs}from"./square-pen-BNaZ8Xrs.js";import{T as Js}from"./trash-2-FGeel4KL.js";import{C as Ws,a as Bs}from"./chevron-right-8bMz9jgq.js";import{S as Fe}from"./save-CugEvXT8.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
+16
View File
@@ -0,0 +1,16 @@
import{c as A,r as n,bN as oe,bO as me,j as e,bP as q,e as M,X as Q,bQ as xe,aD as pe,bR as he,bS as ue,bT as be,bU as je,bV as ge,bW as ve}from"./index-AicSXhSk.js";import{P as U,a as ye,N as E,E as V}from"./ui-BArJ7xwp.js";import{P as Ne}from"./plus-D0O6eAJE.js";import{P as _e}from"./play-uX2f9Jag.js";import{P as fe}from"./pen-line-mMRjam7O.js";import{T as we}from"./trash-2-FGeel4KL.js";import{S as X}from"./search-BjymlZDV.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ke=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],R=A("bell",ke);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ce=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Se=A("clock-3",Ce);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pe=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],$e=A("history",Pe),Me=2500,x=t=>t==null?"—":`¥${Number(t).toLocaleString("zh-CN",{maximumFractionDigits:2})}`,I=()=>Math.floor(Date.now()/1e3),L=t=>{if(!t||t<=0)return"—";const i=Math.floor(t);return i<60?`${i} 秒前`:i<3600?`${Math.floor(i/60)} 分钟前`:i<86400?`${Math.floor(i/3600)} 小时前`:`${Math.floor(i/86400)} 天前`},Ee=t=>t==null||t<0?"已停用":t<60?`${Math.max(0,Math.round(t))} 秒后`:t<3600?`${Math.floor(t/60)} 分钟后`:`${Math.floor(t/3600)} 小时后`,k=t=>{const i=t.trim();if(i==="")return null;const h=Number(i);return Number.isFinite(h)&&h>=0?h:null},J={name:"",keyword:"",min_price:"",max_price:"",target_price:"",interval_minutes:"30",pages:"2",enabled:!0,cookie_id:"",min_seller_credit:"",min_seller_deals:"",ai_precise:!1},Re=t=>({name:t.name,keyword:t.keyword,min_price:t.min_price===null?"":String(t.min_price),max_price:t.max_price===null?"":String(t.max_price),target_price:t.target_price===null?"":String(t.target_price),interval_minutes:String(t.interval_minutes),pages:String(t.pages||2),enabled:t.enabled!==!1,cookie_id:t.cookie_id||"",min_seller_credit:t.min_seller_credit||"",min_seller_deals:t.min_seller_deals!=null?String(t.min_seller_deals):"",ai_precise:!!t.ai_precise}),Z=t=>{const i=t.keyword.trim();if(!i)return{input:null,error:"请填写搜索关键词"};const h=t.name.trim()||i,v=k(t.min_price),m=k(t.max_price);if(v!==null&&m!==null&&v>m)return{input:null,error:"最低价不能大于最高价"};const g=k(t.target_price);if(g!==null&&m!==null&&g>m)return{input:null,error:"目标价不能高于最高价"};const u=Number(t.interval_minutes);if(!Number.isFinite(u)||u<5)return{input:null,error:"检查间隔至少 5 分钟"};const c=Number(t.pages);return!Number.isFinite(c)||c<1||c>5?{input:null,error:"每轮页数取 1~5"}:{input:{name:h,keyword:i,min_price:v,max_price:m,target_price:g,interval_minutes:Math.round(u),pages:Math.round(c),enabled:t.enabled,cookie_id:t.cookie_id||null,min_seller_credit:t.min_seller_credit||null,min_seller_deals:k(t.min_seller_deals),ai_precise:t.ai_precise}}};function He(){const[t,i]=n.useState([]),[h,v]=n.useState(!0),[m,g]=n.useState(""),[u,c]=n.useState(null),[ee,F]=n.useState([]),[se,y]=n.useState(!1),[N,D]=n.useState(null),[l,d]=n.useState(J),[T,O]=n.useState(!1),[H,_]=n.useState(""),[C,B]=n.useState(!1),[o,f]=n.useState(null),[Y,b]=n.useState(""),[S,z]=n.useState(null),[G,P]=n.useState([]),[te,K]=n.useState(!1),w=n.useRef(new Set),p=n.useCallback(async()=>{try{const r=(await oe()).rules??[];i(r),g("");const a=new Set;for(const j of r)j.running&&a.add(j.id);const $=[...w.current].filter(j=>!a.has(j));w.current=a,$.length&&p()}catch(s){g(s instanceof Error?s.message:"加载失败")}finally{v(!1)}},[]);n.useEffect(()=>{p(),me().then(r=>F(r.cookies??[])).catch(()=>F([]));const s=setInterval(()=>void p(),Me);return()=>clearInterval(s)},[p]);const ae=()=>{D(null),d(J),f(null),b(""),_(""),y(!0)},re=s=>{D(s.id),d(Re(s)),f(null),b(""),_(""),y(!0)},le=async()=>{const{input:s,error:r}=Z(l);if(!s){b(r??"参数有误");return}B(!0),b(""),f(null);try{const a=await he({keyword:s.keyword,min_price:s.min_price,max_price:s.max_price,pages:s.pages,cookie_id:s.cookie_id,min_seller_credit:s.min_seller_credit,min_seller_deals:s.min_seller_deals,ai_precise:s.ai_precise});f(a),a.error?b(a.error):a.lowest||b("没搜到符合条件的商品,换个关键词或放宽价格区间试试")}catch(a){b(a instanceof Error?a.message:"试搜失败")}finally{B(!1)}},ne=async()=>{const{input:s,error:r}=Z(l);if(!s){_(r??"参数有误");return}O(!0),_("");try{N===null?await ue(s):await be(N,s),y(!1),c({type:"info",message:N===null?"规则已创建,可以立即检查一次":"规则已保存"}),await p()}catch(a){_(a instanceof Error?a.message:"保存失败")}finally{O(!1)}},ie=async s=>{w.current.add(s.id),c(null);try{const r=await je(s.id);if(!r.started)c({type:"info",message:r.message??"任务未启动"});else if(r.record){const a=r.record.lowest_price;a==null?c({type:"warning",message:`「${s.name}」没搜到可比价的商品(已记录一次空结果)`}):r.notified?c({type:"success",message:`已找到最低价 ${x(a)},通知已发送(${r.notify_reason||"命中"})`}):c({type:"info",message:`本次最低价 ${x(a)}(${r.notify_reason||"未触发通知"})`}),r.notify_error&&c({type:"error",message:`通知发送失败:${r.notify_error}`})}}catch(r){c({type:"error",message:r instanceof Error?r.message:"检查失败"})}finally{w.current.delete(s.id),await p()}},ce=async s=>{if(window.confirm(`删除监控规则「${s.name}」?检查历史会一并删除。`))try{await ge(s.id),c({type:"info",message:"规则已删除"}),await p()}catch(r){c({type:"error",message:r instanceof Error?r.message:"删除失败"})}},de=async s=>{z(s),K(!0),P([]);try{const r=await ve(s.id,50);P(r.records??[])}catchLine truncated
-16
View File
@@ -1,16 +0,0 @@
import{c as A,r as n,bN as oe,bO as me,j as e,bP as q,e as M,X as Q,bQ as xe,aD as pe,bR as he,bS as ue,bT as be,bU as je,bV as ge,bW as ve}from"./index-Bv-jXdOf.js";import{P as U,a as ye,N as E,E as V}from"./ui-DsDuWr9N.js";import{P as Ne}from"./plus-CPcSzYSi.js";import{P as _e}from"./play-Qs4dEPE9.js";import{P as fe}from"./pen-line-BYMwCQU2.js";import{T as we}from"./trash-2-B0ysq8Ym.js";import{S as X}from"./search-Bb5I8BnO.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ke=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],R=A("bell",ke);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ce=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Se=A("clock-3",Ce);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pe=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],$e=A("history",Pe),Me=2500,x=t=>t==null?"—":`¥${Number(t).toLocaleString("zh-CN",{maximumFractionDigits:2})}`,I=()=>Math.floor(Date.now()/1e3),L=t=>{if(!t||t<=0)return"—";const i=Math.floor(t);return i<60?`${i} 秒前`:i<3600?`${Math.floor(i/60)} 分钟前`:i<86400?`${Math.floor(i/3600)} 小时前`:`${Math.floor(i/86400)} 天前`},Ee=t=>t==null||t<0?"已停用":t<60?`${Math.max(0,Math.round(t))} 秒后`:t<3600?`${Math.floor(t/60)} 分钟后`:`${Math.floor(t/3600)} 小时后`,k=t=>{const i=t.trim();if(i==="")return null;const h=Number(i);return Number.isFinite(h)&&h>=0?h:null},J={name:"",keyword:"",min_price:"",max_price:"",target_price:"",interval_minutes:"30",pages:"2",enabled:!0,cookie_id:"",min_seller_credit:"",min_seller_deals:"",ai_precise:!1},Re=t=>({name:t.name,keyword:t.keyword,min_price:t.min_price===null?"":String(t.min_price),max_price:t.max_price===null?"":String(t.max_price),target_price:t.target_price===null?"":String(t.target_price),interval_minutes:String(t.interval_minutes),pages:String(t.pages||2),enabled:t.enabled!==!1,cookie_id:t.cookie_id||"",min_seller_credit:t.min_seller_credit||"",min_seller_deals:t.min_seller_deals!=null?String(t.min_seller_deals):"",ai_precise:!!t.ai_precise}),Z=t=>{const i=t.keyword.trim();if(!i)return{input:null,error:"请填写搜索关键词"};const h=t.name.trim()||i,v=k(t.min_price),m=k(t.max_price);if(v!==null&&m!==null&&v>m)return{input:null,error:"最低价不能大于最高价"};const g=k(t.target_price);if(g!==null&&m!==null&&g>m)return{input:null,error:"目标价不能高于最高价"};const u=Number(t.interval_minutes);if(!Number.isFinite(u)||u<5)return{input:null,error:"检查间隔至少 5 分钟"};const c=Number(t.pages);return!Number.isFinite(c)||c<1||c>5?{input:null,error:"每轮页数取 1~5"}:{input:{name:h,keyword:i,min_price:v,max_price:m,target_price:g,interval_minutes:Math.round(u),pages:Math.round(c),enabled:t.enabled,cookie_id:t.cookie_id||null,min_seller_credit:t.min_seller_credit||null,min_seller_deals:k(t.min_seller_deals),ai_precise:t.ai_precise}}};function He(){const[t,i]=n.useState([]),[h,v]=n.useState(!0),[m,g]=n.useState(""),[u,c]=n.useState(null),[ee,F]=n.useState([]),[se,y]=n.useState(!1),[N,D]=n.useState(null),[l,d]=n.useState(J),[T,O]=n.useState(!1),[H,_]=n.useState(""),[C,B]=n.useState(!1),[o,f]=n.useState(null),[Y,b]=n.useState(""),[S,z]=n.useState(null),[G,P]=n.useState([]),[te,K]=n.useState(!1),w=n.useRef(new Set),p=n.useCallback(async()=>{try{const r=(await oe()).rules??[];i(r),g("");const a=new Set;for(const j of r)j.running&&a.add(j.id);const $=[...w.current].filter(j=>!a.has(j));w.current=a,$.length&&p()}catch(s){g(s instanceof Error?s.message:"加载失败")}finally{v(!1)}},[]);n.useEffect(()=>{p(),me().then(r=>F(r.cookies??[])).catch(()=>F([]));const s=setInterval(()=>void p(),Me);return()=>clearInterval(s)},[p]);const ae=()=>{D(null),d(J),f(null),b(""),_(""),y(!0)},re=s=>{D(s.id),d(Re(s)),f(null),b(""),_(""),y(!0)},le=async()=>{const{input:s,error:r}=Z(l);if(!s){b(r??"参数有误");return}B(!0),b(""),f(null);try{const a=await he({keyword:s.keyword,min_price:s.min_price,max_price:s.max_price,pages:s.pages,cookie_id:s.cookie_id,min_seller_credit:s.min_seller_credit,min_seller_deals:s.min_seller_deals,ai_precise:s.ai_precise});f(a),a.error?b(a.error):a.lowest||b("没搜到符合条件的商品,换个关键词或放宽价格区间试试")}catch(a){b(a instanceof Error?a.message:"试搜失败")}finally{B(!1)}},ne=async()=>{const{input:s,error:r}=Z(l);if(!s){_(r??"参数有误");return}O(!0),_("");try{N===null?await ue(s):await be(N,s),y(!1),c({type:"info",message:N===null?"规则已创建,可以立即检查一次":"规则已保存"}),await p()}catch(a){_(a instanceof Error?a.message:"保存失败")}finally{O(!1)}},ie=async s=>{w.current.add(s.id),c(null);try{const r=await je(s.id);if(!r.started)c({type:"info",message:r.message??"任务未启动"});else if(r.record){const a=r.record.lowest_price;a==null?c({type:"warning",message:`「${s.name}」没搜到可比价的商品(已记录一次空结果)`}):r.notified?c({type:"success",message:`已找到最低价 ${x(a)},通知已发送(${r.notify_reason||"命中"})`}):c({type:"info",message:`本次最低价 ${x(a)}(${r.notify_reason||"未触发通知"})`}),r.notify_error&&c({type:"error",message:`通知发送失败:${r.notify_error}`})}}catch(r){c({type:"error",message:r instanceof Error?r.message:"检查失败"})}finally{w.current.delete(s.id),await p()}},ce=async s=>{if(window.confirm(`删除监控规则「${s.name}」?检查历史会一并删除。`))try{await ge(s.id),c({type:"info",message:"规则已删除"}),await p()}catch(r){c({type:"error",message:r instanceof Error?r.message:"删除失败"})}},de=async s=>{z(s),K(!0),P([]);try{const r=await ve(s.id,50);P(r.records??[])}catchLine truncated
@@ -1,4 +1,4 @@
import{c as H,r as c,j as e,az as J,e as ye,S as ge,E as be,L as j,aA as je,aB as _e,aC as Ne,aD as ve,X as O,o as fe,aE as we,aF as ke,aG as Ce,aH as U,n as r,v as z,aI as $e,aJ as Se,aK as Pe,aL as De,aM as Re,aN as Fe,aO as Me,aP as Le}from"./index-Bv-jXdOf.js";import{P as Ie,a as Ae,b as ze,S as _,E as N,N as Ee}from"./ui-DsDuWr9N.js";import{S as C}from"./search-Bb5I8BnO.js";import{T as v}from"./trash-2-B0ysq8Ym.js";import{S as E}from"./save-0PTf3nGc.js";import{P as X}from"./play-Qs4dEPE9.js";import{P as Te}from"./package-check-BvQeh0sv.js";import{L as Be}from"./link-2-CCl91EwU.js";/**
import{c as H,r as c,j as e,az as J,e as ye,S as ge,E as be,L as j,aA as je,aB as _e,aC as Ne,aD as ve,X as O,o as fe,aE as we,aF as ke,aG as Ce,aH as U,n as r,v as z,aI as $e,aJ as Se,aK as Pe,aL as De,aM as Re,aN as Fe,aO as Me,aP as Le}from"./index-AicSXhSk.js";import{P as Ie,a as Ae,b as ze,S as _,E as N,N as Ee}from"./ui-BArJ7xwp.js";import{S as C}from"./search-BjymlZDV.js";import{T as v}from"./trash-2-FGeel4KL.js";import{S as E}from"./save-CugEvXT8.js";import{P as X}from"./play-uX2f9Jag.js";import{P as Te}from"./package-check-5s-VSzV6.js";import{L as Be}from"./link-2-uzCBDmi3.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as oe,r as a,o as de,j as e,bF as G,L as p,b as me,X as xe,E as ue,bG as he,bH as pe,bI as ge,bJ as fe}from"./index-Bv-jXdOf.js";import{a as je,N as be,b as ye,E as J}from"./ui-DsDuWr9N.js";import{S as N}from"./search-Bb5I8BnO.js";import{P as ve}from"./package-nIFuhixh.js";/**
import{c as oe,r as a,o as de,j as e,bF as G,L as p,b as me,X as xe,E as ue,bG as he,bH as pe,bI as ge,bJ as fe}from"./index-AicSXhSk.js";import{a as je,N as be,b as ye,E as J}from"./ui-BArJ7xwp.js";import{S as N}from"./search-BjymlZDV.js";import{P as ve}from"./package-pkI-1qEc.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as se,r as l,aR as ae,j as e,l as te,e as K,aS as ne,aT as v,aU as q,S as le,aj as O,aV as ie,aW as re,n as c,aX as ce,aY as oe,aZ as de,a_ as pe,a$ as me,b0 as ue}from"./index-Bv-jXdOf.js";import{P as xe,a as he,b as ge,S as p,N as ye}from"./ui-DsDuWr9N.js";import{S as je}from"./save-0PTf3nGc.js";import{S as Q}from"./sparkles-CKxl3Qic.js";import{Z as R}from"./zap-D2daIz-5.js";import{E as w}from"./eye-off-CxE9voxA.js";import{E as C}from"./eye-Bf7DwUjO.js";/**
import{c as se,r as l,aR as ae,j as e,l as te,e as K,aS as ne,aT as v,aU as q,S as le,aj as O,aV as ie,aW as re,n as c,aX as ce,aY as oe,aZ as de,a_ as pe,a$ as me,b0 as ue}from"./index-AicSXhSk.js";import{P as xe,a as he,b as ge,S as p,N as ye}from"./ui-BArJ7xwp.js";import{S as je}from"./save-CugEvXT8.js";import{S as Q}from"./sparkles-CGMFRhYx.js";import{Z as R}from"./zap-Ci6s9cpi.js";import{E as w}from"./eye-off-CJKUDI9v.js";import{E as C}from"./eye-73M4Y6Lx.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1 +1 @@
import{r as l,j as e,U as h,e as $,S as j,aS as A,L as f,aj as L,by as P,n as i,v as y,bz as R,bA as T,aX as E,bB as _}from"./index-Bv-jXdOf.js";import{a as I,S as N,E as B}from"./ui-DsDuWr9N.js";import{T as z}from"./trash-2-B0ysq8Ym.js";const D=n=>{if(!n)return"-";const c=new Date(n.includes("T")?n:`${n.replace(" ","T")}Z`);return Number.isNaN(c.getTime())?n:c.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})},X=()=>{const[n,c]=l.useState([]),[u,g]=l.useState(!0),[o,d]=l.useState(null),[w,p]=l.useState(null),[b,m]=l.useState(""),x=async()=>{g(!0);try{c(await P())}catch(t){i(`加载用户列表失败:${t.message}`,"error")}finally{g(!1)}};l.useEffect(()=>{x()},[]);const U=async t=>{if(o!==null)return;const s=t.is_active!==!1;if(!(s&&!await y(`禁用用户「${t.username}」?其所有在线会话将立即下线,且无法再登录。`,{title:"禁用用户",confirmLabel:"禁用",danger:!0}))){d(t.id);try{const a=await R(t.id,!s);i(a.message||"状态已更新","success"),await x()}catch(a){i(`操作失败:${a.message}`,"error")}finally{d(null)}}},S=async t=>{const[s,a]=E(b);if(!s){i(a,"warning");return}if(o===null){d(t.id);try{const r=await _(t.id,b);i(r.message||"密码已重置","success"),p(null),m("")}catch(r){i(`重置失败:${r.message}`,"error")}finally{d(null)}}},C=async t=>{if(o===null&&await y(`删除用户「${t.username}」?其名下的闲鱼账号、卡密、回复规则等数据将一并删除,不可恢复。`,{title:"删除用户",confirmLabel:"删除",danger:!0})){d(t.id);try{const s=await T(t.id);i(s.message||"用户已删除","success"),await x()}catch(s){i(`删除失败:${s.message}`,"error")}finally{d(null)}}};return e.jsxs("div",{className:"page-stack",children:[e.jsx(I,{title:"用户管理",description:"管理注册用户与登录权限。普通用户仅能操作分配给其名下的账号数据。",icon:h,actions:e.jsxs("button",{type:"button",onClick:()=>void x(),className:"ios-btn-secondary flex items-center gap-2 rounded-md px-4 py-2.5 text-sm",children:[e.jsx($,{className:`h-4 w-4 ${u?"animate-spin":""}`}),"刷新"]})}),e.jsxs("section",{className:"section-panel",children:[e.jsx(N,{title:"权限说明",icon:j}),e.jsxs("div",{className:"grid gap-3 p-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--surface-subtle)] p-3.5",children:[e.jsxs("p",{className:"flex items-center gap-2 text-sm font-bold text-[var(--text)]",children:[e.jsx(j,{className:"h-4 w-4 text-[#8a6300]"}),"管理员(admin)"]}),e.jsx("p",{className:"mt-1.5 text-xs leading-5 text-[var(--text-muted)]",children:"拥有全部权限:系统设置、通知与系统日志、用户管理,以及所有闲鱼账号和数据。"})]}),e.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--surface-subtle)] p-3.5",children:[e.jsxs("p",{className:"flex items-center gap-2 text-sm font-bold text-[var(--text)]",children:[e.jsx(A,{className:"h-4 w-4 text-[var(--text-soft)]"}),"普通用户"]}),e.jsx("p",{className:"mt-1.5 text-xs leading-5 text-[var(--text-muted)]",children:"只能看到并操作自己名下的闲鱼账号、商品、订单与消息;侧栏不显示系统设置与用户管理,接口层也会拒绝其访问。"})]})]})]}),e.jsxs("section",{className:"section-panel",children:[e.jsx(N,{title:"用户列表",description:`共 ${n.length} 个用户`,icon:h}),e.jsxs("div",{className:"divide-y divide-[var(--border)]",children:[n.map(t=>{const s=t.username==="admin",a=t.is_active===!1,r=o===t.id,v=w===t.id;return e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[var(--brand)] text-sm font-black text-[#2a2416]",children:t.username.slice(0,1).toUpperCase()}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("p",{className:"text-sm font-bold text-[var(--text)]",children:t.username}),s&&e.jsx("span",{className:"rounded-full bg-[var(--brand)] px-2 py-0.5 text-[10px] font-bold text-[#2a2416]",children:"内置管理员"}),e.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-bold ${a?"bg-red-50 text-red-600":"bg-emerald-50 text-emerald-600"}`,children:a?"已禁用":"正常"})]}),e.jsx("p",{className:"mt-0.5 truncate text-xs text-[var(--text-muted)]",children:t.email}),e.jsxs("p",{className:"mt-1 text-[11px] text-[var(--text-soft)]",children:[t.cookie_count??0," 个闲鱼账号 · ",t.card_count??0," 张卡密 · 注册于 ",D(t.created_at)]})]}),!s&&e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx("button",{type:"button",onClick:()=>void U(t),disabled:r,className:a?"rounded-md bg-emerald-50 px-3 py-2 text-xs font-bold text-emerald-700 hover:bg-emerald-100 disabled:opacity-50":"rounded-md bg-amber-50 px-3 py-2 text-xs font-bolLine truncated
import{r as l,j as e,U as h,e as $,S as j,aS as A,L as f,aj as L,by as P,n as i,v as y,bz as R,bA as T,aX as E,bB as _}from"./index-AicSXhSk.js";import{a as I,S as N,E as B}from"./ui-BArJ7xwp.js";import{T as z}from"./trash-2-FGeel4KL.js";const D=n=>{if(!n)return"-";const c=new Date(n.includes("T")?n:`${n.replace(" ","T")}Z`);return Number.isNaN(c.getTime())?n:c.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})},X=()=>{const[n,c]=l.useState([]),[u,g]=l.useState(!0),[o,d]=l.useState(null),[w,p]=l.useState(null),[b,m]=l.useState(""),x=async()=>{g(!0);try{c(await P())}catch(t){i(`加载用户列表失败:${t.message}`,"error")}finally{g(!1)}};l.useEffect(()=>{x()},[]);const U=async t=>{if(o!==null)return;const s=t.is_active!==!1;if(!(s&&!await y(`禁用用户「${t.username}」?其所有在线会话将立即下线,且无法再登录。`,{title:"禁用用户",confirmLabel:"禁用",danger:!0}))){d(t.id);try{const a=await R(t.id,!s);i(a.message||"状态已更新","success"),await x()}catch(a){i(`操作失败:${a.message}`,"error")}finally{d(null)}}},S=async t=>{const[s,a]=E(b);if(!s){i(a,"warning");return}if(o===null){d(t.id);try{const r=await _(t.id,b);i(r.message||"密码已重置","success"),p(null),m("")}catch(r){i(`重置失败:${r.message}`,"error")}finally{d(null)}}},C=async t=>{if(o===null&&await y(`删除用户「${t.username}」?其名下的闲鱼账号、卡密、回复规则等数据将一并删除,不可恢复。`,{title:"删除用户",confirmLabel:"删除",danger:!0})){d(t.id);try{const s=await T(t.id);i(s.message||"用户已删除","success"),await x()}catch(s){i(`删除失败:${s.message}`,"error")}finally{d(null)}}};return e.jsxs("div",{className:"page-stack",children:[e.jsx(I,{title:"用户管理",description:"管理注册用户与登录权限。普通用户仅能操作分配给其名下的账号数据。",icon:h,actions:e.jsxs("button",{type:"button",onClick:()=>void x(),className:"ios-btn-secondary flex items-center gap-2 rounded-md px-4 py-2.5 text-sm",children:[e.jsx($,{className:`h-4 w-4 ${u?"animate-spin":""}`}),"刷新"]})}),e.jsxs("section",{className:"section-panel",children:[e.jsx(N,{title:"权限说明",icon:j}),e.jsxs("div",{className:"grid gap-3 p-4 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--surface-subtle)] p-3.5",children:[e.jsxs("p",{className:"flex items-center gap-2 text-sm font-bold text-[var(--text)]",children:[e.jsx(j,{className:"h-4 w-4 text-[#8a6300]"}),"管理员(admin)"]}),e.jsx("p",{className:"mt-1.5 text-xs leading-5 text-[var(--text-muted)]",children:"拥有全部权限:系统设置、通知与系统日志、用户管理,以及所有闲鱼账号和数据。"})]}),e.jsxs("div",{className:"rounded-lg border border-[var(--border)] bg-[var(--surface-subtle)] p-3.5",children:[e.jsxs("p",{className:"flex items-center gap-2 text-sm font-bold text-[var(--text)]",children:[e.jsx(A,{className:"h-4 w-4 text-[var(--text-soft)]"}),"普通用户"]}),e.jsx("p",{className:"mt-1.5 text-xs leading-5 text-[var(--text-muted)]",children:"只能看到并操作自己名下的闲鱼账号、商品、订单与消息;侧栏不显示系统设置与用户管理,接口层也会拒绝其访问。"})]})]})]}),e.jsxs("section",{className:"section-panel",children:[e.jsx(N,{title:"用户列表",description:`共 ${n.length} 个用户`,icon:h}),e.jsxs("div",{className:"divide-y divide-[var(--border)]",children:[n.map(t=>{const s=t.username==="admin",a=t.is_active===!1,r=o===t.id,v=w===t.id;return e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[var(--brand)] text-sm font-black text-[#2a2416]",children:t.username.slice(0,1).toUpperCase()}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("p",{className:"text-sm font-bold text-[var(--text)]",children:t.username}),s&&e.jsx("span",{className:"rounded-full bg-[var(--brand)] px-2 py-0.5 text-[10px] font-bold text-[#2a2416]",children:"内置管理员"}),e.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-bold ${a?"bg-red-50 text-red-600":"bg-emerald-50 text-emerald-600"}`,children:a?"已禁用":"正常"})]}),e.jsx("p",{className:"mt-0.5 truncate text-xs text-[var(--text-muted)]",children:t.email}),e.jsxs("p",{className:"mt-1 text-[11px] text-[var(--text-soft)]",children:[t.cookie_count??0," 个闲鱼账号 · ",t.card_count??0," 张卡密 · 注册于 ",D(t.created_at)]})]}),!s&&e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx("button",{type:"button",onClick:()=>void U(t),disabled:r,className:a?"rounded-md bg-emerald-50 px-3 py-2 text-xs font-bold text-emerald-700 hover:bg-emerald-100 disabled:opacity-50":"rounded-md bg-amber-50 px-3 py-2 text-xs font-bolLine truncated
@@ -1,4 +1,4 @@
import{c as t}from"./index-Bv-jXdOf.js";/**
import{c as t}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as o}from"./index-Bv-jXdOf.js";/**
import{c as o}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-B3AceNzE.js","assets/ui-DsDuWr9N.js","assets/package-nIFuhixh.js","assets/trending-up-DuUK2UAf.js","assets/activity-6q-JZDEZ.js","assets/package-check-BvQeh0sv.js","assets/AccountList-lcR2ysqJ.js","assets/check-CY3uIA9x.js","assets/sparkles-CKxl3Qic.js","assets/power-Buu1SqwC.js","assets/trash-2-B0ysq8Ym.js","assets/key-B_-6jyLh.js","assets/eye-off-CxE9voxA.js","assets/eye-Bf7DwUjO.js","assets/save-0PTf3nGc.js","assets/OrderList-Bnb8qdVY.js","assets/plus-CPcSzYSi.js","assets/truck-bFA9lKUP.js","assets/search-Bb5I8BnO.js","assets/flower-2-DCghnFkQ.js","assets/square-pen-C2r7bTuu.js","assets/chevron-right-CHikxycD.js","assets/CardList-DD89wc2k.js","assets/image-CidyAfuY.js","assets/ItemList-DeItdLDn.js","assets/shield-alert-D9azMpPj.js","assets/power-off-CNY2Dc3p.js","assets/settings-2-DllIA6Ld.js","assets/ProductAutomation-CWxMYbLu.js","assets/play-Qs4dEPE9.js","assets/link-2-CCl91EwU.js","assets/AIReply-BzKan2pR.js","assets/message-square-text-A6-FBXDf.js","assets/Settings-B2fZ-367.js","assets/zap-D2daIz-5.js","assets/Keywords-lTpecuPZ.js","assets/MessageManagement-DLMB1n-M.js","assets/send-D1j5er8X.js","assets/NotificationsAndLogs-CiIINjYG.js","assets/pen-line-BYMwCQU2.js","assets/UserManagement-BtRqrcWu.js","assets/About-UIQrRND_.js","assets/BuyerInteraction-CTo-GRbk.js","assets/Resell-XxgRl8W5.js","assets/HotList-CeF3_sJ2.js","assets/PriceWatch-Dn8eCiBz.js"])))=>i.map(i=>d[i]);
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-BvRD8fLA.js","assets/ui-BArJ7xwp.js","assets/package-pkI-1qEc.js","assets/trending-up-Dsk0lJie.js","assets/activity-jTDFkQo8.js","assets/package-check-5s-VSzV6.js","assets/AccountList-DgXRfiEY.js","assets/check-lHacyebo.js","assets/sparkles-CGMFRhYx.js","assets/power-Sr01dgTD.js","assets/trash-2-FGeel4KL.js","assets/key-Bq-SXfOX.js","assets/eye-off-CJKUDI9v.js","assets/eye-73M4Y6Lx.js","assets/save-CugEvXT8.js","assets/OrderList-C1MjvAsG.js","assets/plus-D0O6eAJE.js","assets/truck-D6OUnkc8.js","assets/search-BjymlZDV.js","assets/flower-2-BBrAoQND.js","assets/square-pen-BNaZ8Xrs.js","assets/chevron-right-8bMz9jgq.js","assets/CardList-D8zFcnyG.js","assets/image-OkUpLHH3.js","assets/ItemList-9PhdQpuR.js","assets/shield-alert-C33rQelW.js","assets/power-off-zbar0oA2.js","assets/settings-2-5_nl2xDP.js","assets/ProductAutomation-CBErvVeO.js","assets/play-uX2f9Jag.js","assets/link-2-uzCBDmi3.js","assets/AIReply-B0mltueY.js","assets/message-square-text-BSvoOdJI.js","assets/Settings-BWYo1u8V.js","assets/zap-Ci6s9cpi.js","assets/Keywords-DZ9-zej-.js","assets/MessageManagement-BzNl1NxA.js","assets/send-DBStzVpY.js","assets/NotificationsAndLogs-DNd7veGA.js","assets/pen-line-mMRjam7O.js","assets/UserManagement-B5o1cm5N.js","assets/About-DnDdt89V.js","assets/BuyerInteraction-Z5SpYBz0.js","assets/Resell-BtVZj8G7.js","assets/HotList-C2P39DH1.js","assets/PriceWatch-CEQLiXCf.js"])))=>i.map(i=>d[i]);
function xp(l,s){for(var c=0;c<s.length;c++){const r=s[c];if(typeof r!="string"&&!Array.isArray(r)){for(const f in r)if(f!=="default"&&!(f in l)){const m=Object.getOwnPropertyDescriptor(r,f);m&&Object.defineProperty(l,f,m.get?m:{enumerable:!0,get:()=>r[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const h of m.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function c(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(f){if(f.ep)return;f.ep=!0;const m=c(f);fetch(f.href,m)}})();function hh(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ic={exports:{}},lu={};/**
* @license React
* react-jsx-runtime.production.js
@@ -15,7 +15,7 @@ function xp(l,s){for(var c=0;c<s.length;c++){const r=s[c];if(typeof r!="string"&
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jm;function Tp(){if(jm)return se;jm=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),q=Symbol.iterator;function F(S){return S===null||typeof S!="object"?null:(S=q&&S[q]||S["@@iterator"],typeof S=="function"?S:null)}var W={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,Y={};function C(S,j,H){this.props=S,this.context=j,this.refs=Y,this.updater=H||W}C.prototype.isReactComponent={},C.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,j,"setState")},C.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function K(){}K.prototype=C.prototype;function Q(S,j,H){this.props=S,this.context=j,this.refs=Y,this.updater=H||W}var ee=Q.prototype=new K;ee.constructor=Q,V(ee,C.prototype),ee.isPureReactComponent=!0;var Ee=Array.isArray;function de(){}var ne={H:null,A:null,T:null,S:null},Le=Object.prototype.hasOwnProperty;function ct(S,j,H){var G=H.ref;return{$$typeof:l,type:S,key:j,ref:G!==void 0?G:null,props:H}}function be(S,j){return ct(S.type,j,S.props)}function Me(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function ke(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return j[H]})}var xt=/\/+/g;function He(S,j){return typeof S=="object"&&S!==null&&S.key!=null?ke(""+S.key):j.toString(36)}function Re(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function z(S,j,H,G,le){var Z=typeof S;(Z==="undefined"||Z==="boolean")&&(S=null);var k=!1;if(S===null)k=!0;else switch(Z){case"bigint":case"string":case"number":k=!0;break;case"object":switch(S.$$typeof){case l:case s:k=!0;break;case A:return k=S._init,z(k(S._payload),j,H,G,le)}}if(k)return le=le(S),k=G===""?"."+He(S,0):G,Ee(le)?(H="",k!=null&&(H=k.replace(xt,"$&/")+"/"),z(le,j,H,"",function(Za){return Za})):le!=null&&(Me(le)&&(le=be(le,H+(le.key==null||S&&S.key===le.key?"":(""+le.key).replace(xt,"$&/")+"/")+k)),j.push(le)),1;k=0;var ue=G===""?".":G+":";if(Ee(S))for(var Te=0;Te<S.length;Te++)G=S[Te],Z=ue+He(G,Te),k+=z(G,j,H,Z,le);else if(Te=F(S),typeof Te=="function")for(S=Te.call(S),Te=0;!(G=S.next()).done;)G=G.value,Z=ue+He(G,Te++),k+=z(G,j,H,Z,le);else if(Z==="object"){if(typeof S.then=="function")return z(Re(S),j,H,G,le);throw j=String(S),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return k}function L(S,j,H){if(S==null)return S;var G=[],le=0;return z(S,G,"","",function(Z){return j.call(H,Z,le++)}),G}function P(S){if(S._status===-1){var j=S._result;j=j(),j.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=j)}if(S._status===1)return S._result.default;throw S._result}var Se=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ce={map:L,forEach:function(S,j,H){L(S,function(){j.apply(this,arguments)},H)},count:function(S){var j=0;return L(S,function(){j++}),j},toArray:function(S){return L(S,function(j){return j})||[]},only:function(S){if(!Me(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return se.Activity=N,se.Children=ce,se.Component=C,se.Fragment=c,se.Profiler=f,se.PureComponent=Q,se.StrictMode=r,se.Suspense=v,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ne.H.useMemoCache(S)}},se.cache=function(S){return function(){return S.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(S,j,H){if(S==null)throw Error("The argumLine truncated
*/var jm;function Tp(){if(jm)return se;jm=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),q=Symbol.iterator;function F(S){return S===null||typeof S!="object"?null:(S=q&&S[q]||S["@@iterator"],typeof S=="function"?S:null)}var W={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,Y={};function C(S,j,H){this.props=S,this.context=j,this.refs=Y,this.updater=H||W}C.prototype.isReactComponent={},C.prototype.setState=function(S,j){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,j,"setState")},C.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function K(){}K.prototype=C.prototype;function Q(S,j,H){this.props=S,this.context=j,this.refs=Y,this.updater=H||W}var ee=Q.prototype=new K;ee.constructor=Q,X(ee,C.prototype),ee.isPureReactComponent=!0;var Ee=Array.isArray;function me(){}var ne={H:null,A:null,T:null,S:null},Le=Object.prototype.hasOwnProperty;function ct(S,j,H){var G=H.ref;return{$$typeof:l,type:S,key:j,ref:G!==void 0?G:null,props:H}}function be(S,j){return ct(S.type,j,S.props)}function Me(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function ke(S){var j={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return j[H]})}var xt=/\/+/g;function He(S,j){return typeof S=="object"&&S!==null&&S.key!=null?ke(""+S.key):j.toString(36)}function Re(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(me,me):(S.status="pending",S.then(function(j){S.status==="pending"&&(S.status="fulfilled",S.value=j)},function(j){S.status==="pending"&&(S.status="rejected",S.reason=j)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function z(S,j,H,G,le){var Z=typeof S;(Z==="undefined"||Z==="boolean")&&(S=null);var k=!1;if(S===null)k=!0;else switch(Z){case"bigint":case"string":case"number":k=!0;break;case"object":switch(S.$$typeof){case l:case s:k=!0;break;case A:return k=S._init,z(k(S._payload),j,H,G,le)}}if(k)return le=le(S),k=G===""?"."+He(S,0):G,Ee(le)?(H="",k!=null&&(H=k.replace(xt,"$&/")+"/"),z(le,j,H,"",function(Za){return Za})):le!=null&&(Me(le)&&(le=be(le,H+(le.key==null||S&&S.key===le.key?"":(""+le.key).replace(xt,"$&/")+"/")+k)),j.push(le)),1;k=0;var ue=G===""?".":G+":";if(Ee(S))for(var Te=0;Te<S.length;Te++)G=S[Te],Z=ue+He(G,Te),k+=z(G,j,H,Z,le);else if(Te=F(S),typeof Te=="function")for(S=Te.call(S),Te=0;!(G=S.next()).done;)G=G.value,Z=ue+He(G,Te++),k+=z(G,j,H,Z,le);else if(Z==="object"){if(typeof S.then=="function")return z(Re(S),j,H,G,le);throw j=String(S),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return k}function L(S,j,H){if(S==null)return S;var G=[],le=0;return z(S,G,"","",function(Z){return j.call(H,Z,le++)}),G}function P(S){if(S._status===-1){var j=S._result;j=j(),j.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=j)}if(S._status===1)return S._result.default;throw S._result}var Se=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ce={map:L,forEach:function(S,j,H){L(S,function(){j.apply(this,arguments)},H)},count:function(S){var j=0;return L(S,function(){j++}),j},toArray:function(S){return L(S,function(j){return j})||[]},only:function(S){if(!Me(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return se.Activity=N,se.Children=ce,se.Component=C,se.Fragment=c,se.Profiler=f,se.PureComponent=Q,se.StrictMode=r,se.Suspense=v,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return ne.H.useMemoCache(S)}},se.cache=function(S){return function(){return S.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(S,j,H){if(S==null)throw Error("The argumLine truncated
* @license React
* scheduler.production.js
*
@@ -23,7 +23,7 @@ function xp(l,s){for(var c=0;c<s.length;c++){const r=s[c];if(typeof r!="string"&
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Cm;function Op(){return Cm||(Cm=1,(function(l){function s(z,L){var P=z.length;z.push(L);e:for(;0<P;){var Se=P-1>>>1,ce=z[Se];if(0<f(ce,L))z[Se]=L,z[P]=ce,P=Se;else break e}}function c(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var L=z[0],P=z.pop();if(P!==L){z[0]=P;e:for(var Se=0,ce=z.length,S=ce>>>1;Se<S;){var j=2*(Se+1)-1,H=z[j],G=j+1,le=z[G];if(0>f(H,P))G<ce&&0>f(le,H)?(z[Se]=le,z[G]=P,Se=G):(z[Se]=H,z[j]=P,Se=j);else if(G<ce&&0>f(le,P))z[Se]=le,z[G]=P,Se=G;else break e}}return L}function f(z,L){var P=z.sortIndex-L.sortIndex;return P!==0?P:z.id-L.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var v=[],g=[],A=1,N=null,q=3,F=!1,W=!1,V=!1,Y=!1,C=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function ee(z){for(var L=c(g);L!==null;){if(L.callback===null)r(g);else if(L.startTime<=z)r(g),L.sortIndex=L.expirationTime,s(v,L);else break;L=c(g)}}function Ee(z){if(V=!1,ee(z),!W)if(c(v)!==null)W=!0,de||(de=!0,ke());else{var L=c(g);L!==null&&Re(Ee,L.startTime-z)}}var de=!1,ne=-1,Le=5,ct=-1;function be(){return Y?!0:!(l.unstable_now()-ct<Le)}function Me(){if(Y=!1,de){var z=l.unstable_now();ct=z;var L=!0;try{e:{W=!1,V&&(V=!1,K(ne),ne=-1),F=!0;var P=q;try{t:{for(ee(z),N=c(v);N!==null&&!(N.expirationTime>z&&be());){var Se=N.callback;if(typeof Se=="function"){N.callback=null,q=N.priorityLevel;var ce=Se(N.expirationTime<=z);if(z=l.unstable_now(),typeof ce=="function"){N.callback=ce,ee(z),L=!0;break t}N===c(v)&&r(v),ee(z)}else r(v);N=c(v)}if(N!==null)L=!0;else{var S=c(g);S!==null&&Re(Ee,S.startTime-z),L=!1}}break e}finally{N=null,q=P,F=!1}L=void 0}}finally{L?ke():de=!1}}}var ke;if(typeof Q=="function")ke=function(){Q(Me)};else if(typeof MessageChannel<"u"){var xt=new MessageChannel,He=xt.port2;xt.port1.onmessage=Me,ke=function(){He.postMessage(null)}}else ke=function(){C(Me,0)};function Re(z,L){ne=C(function(){z(l.unstable_now())},L)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(z){z.callback=null},l.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Le=0<z?Math.floor(1e3/z):5},l.unstable_getCurrentPriorityLevel=function(){return q},l.unstable_next=function(z){switch(q){case 1:case 2:case 3:var L=3;break;default:L=q}var P=q;q=L;try{return z()}finally{q=P}},l.unstable_requestPaint=function(){Y=!0},l.unstable_runWithPriority=function(z,L){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var P=q;q=z;try{return L()}finally{q=P}},l.unstable_scheduleCallback=function(z,L,P){var Se=l.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?Se+P:Se):P=Se,z){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=P+ce,z={id:A++,callback:L,priorityLevel:z,startTime:P,expirationTime:ce,sortIndex:-1},P>Se?(z.sortIndex=P,s(g,z),c(v)===null&&z===c(g)&&(V?(K(ne),ne=-1):V=!0,Re(Ee,P-Se))):(z.sortIndex=ce,s(v,z),W||F||(W=!0,de||(de=!0,ke()))),z},l.unstable_shouldYield=be,l.unstable_wrapCallback=function(z){var L=q;return function(){var P=q;q=L;try{return z.apply(this,arguments)}finally{q=P}}}})(ar)),ar}var Mm;function Np(){return Mm||(Mm=1,tr.exports=Op()),tr.exports}var nr={exports:{}},rt={};/**
*/var Cm;function Op(){return Cm||(Cm=1,(function(l){function s(z,L){var P=z.length;z.push(L);e:for(;0<P;){var Se=P-1>>>1,ce=z[Se];if(0<f(ce,L))z[Se]=L,z[P]=ce,P=Se;else break e}}function c(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var L=z[0],P=z.pop();if(P!==L){z[0]=P;e:for(var Se=0,ce=z.length,S=ce>>>1;Se<S;){var j=2*(Se+1)-1,H=z[j],G=j+1,le=z[G];if(0>f(H,P))G<ce&&0>f(le,H)?(z[Se]=le,z[G]=P,Se=G):(z[Se]=H,z[j]=P,Se=j);else if(G<ce&&0>f(le,P))z[Se]=le,z[G]=P,Se=G;else break e}}return L}function f(z,L){var P=z.sortIndex-L.sortIndex;return P!==0?P:z.id-L.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var h=Date,p=h.now();l.unstable_now=function(){return h.now()-p}}var v=[],g=[],A=1,N=null,q=3,F=!1,W=!1,X=!1,Y=!1,C=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function ee(z){for(var L=c(g);L!==null;){if(L.callback===null)r(g);else if(L.startTime<=z)r(g),L.sortIndex=L.expirationTime,s(v,L);else break;L=c(g)}}function Ee(z){if(X=!1,ee(z),!W)if(c(v)!==null)W=!0,me||(me=!0,ke());else{var L=c(g);L!==null&&Re(Ee,L.startTime-z)}}var me=!1,ne=-1,Le=5,ct=-1;function be(){return Y?!0:!(l.unstable_now()-ct<Le)}function Me(){if(Y=!1,me){var z=l.unstable_now();ct=z;var L=!0;try{e:{W=!1,X&&(X=!1,K(ne),ne=-1),F=!0;var P=q;try{t:{for(ee(z),N=c(v);N!==null&&!(N.expirationTime>z&&be());){var Se=N.callback;if(typeof Se=="function"){N.callback=null,q=N.priorityLevel;var ce=Se(N.expirationTime<=z);if(z=l.unstable_now(),typeof ce=="function"){N.callback=ce,ee(z),L=!0;break t}N===c(v)&&r(v),ee(z)}else r(v);N=c(v)}if(N!==null)L=!0;else{var S=c(g);S!==null&&Re(Ee,S.startTime-z),L=!1}}break e}finally{N=null,q=P,F=!1}L=void 0}}finally{L?ke():me=!1}}}var ke;if(typeof Q=="function")ke=function(){Q(Me)};else if(typeof MessageChannel<"u"){var xt=new MessageChannel,He=xt.port2;xt.port1.onmessage=Me,ke=function(){He.postMessage(null)}}else ke=function(){C(Me,0)};function Re(z,L){ne=C(function(){z(l.unstable_now())},L)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(z){z.callback=null},l.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Le=0<z?Math.floor(1e3/z):5},l.unstable_getCurrentPriorityLevel=function(){return q},l.unstable_next=function(z){switch(q){case 1:case 2:case 3:var L=3;break;default:L=q}var P=q;q=L;try{return z()}finally{q=P}},l.unstable_requestPaint=function(){Y=!0},l.unstable_runWithPriority=function(z,L){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var P=q;q=z;try{return L()}finally{q=P}},l.unstable_scheduleCallback=function(z,L,P){var Se=l.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?Se+P:Se):P=Se,z){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=P+ce,z={id:A++,callback:L,priorityLevel:z,startTime:P,expirationTime:ce,sortIndex:-1},P>Se?(z.sortIndex=P,s(g,z),c(v)===null&&z===c(g)&&(X?(K(ne),ne=-1):X=!0,Re(Ee,P-Se))):(z.sortIndex=ce,s(v,z),W||F||(W=!0,me||(me=!0,ke()))),z},l.unstable_shouldYield=be,l.unstable_wrapCallback=function(z){var L=q;return function(){var P=q;q=L;try{return z.apply(this,arguments)}finally{q=P}}}})(ar)),ar}var Mm;function Np(){return Mm||(Mm=1,tr.exports=Op()),tr.exports}var nr={exports:{}},rt={};/**
* @license React
* react-dom.production.js
*
@@ -39,15 +39,15 @@ function xp(l,s){for(var c=0;c<s.length;c++){const r=s[c];if(typeof r!="string"&
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Bm;function wp(){if(Bm)return uu;Bm=1;var l=Np(),s=vr(),c=ph();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(m(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,n=t;;){var u=a.return;if(u===null)break;var i=u.alternate;if(i===null){if(n=u.return,n!==null){a=n;continue}break}if(u.child===i.child){for(i=u.child;i;){if(i===a)return v(u),e;if(i===n)return v(u),t;i=i.sibling}throw Error(r(188))}if(a.return!==n.return)a=u,n=i;else{for(var o=!1,d=u.child;d;){if(d===a){o=!0,a=u,n=i;break}if(d===n){o=!0,n=u,a=i;break}d=d.sibling}if(!o){for(d=i.child;d;){if(d===a){o=!0,a=i,n=u;break}if(d===n){o=!0,n=i,a=u;break}d=d.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,q=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),ct=Symbol.for("react.activity"),be=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=Me&&e[Me]||e["@@iterator"],typeof e=="function"?e:null)}var xt=Symbol.for("react.client.reference");function He(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case C:return"Profiler";case Y:return"StrictMode";case Ee:return"Suspense";case de:return"SuspenseList";case ct:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case W:return"Portal";case Q:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:He(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return He(e(t))}catch{}}return null}var Re=Array.isArray,z=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},Se=[],ce=-1;function S(e){return{current:e}}function j(e){0>ce||(e.current=Se[ce],Se[ce]=null,ce--)}function H(e,t){ce++,Se[ce]=e.current,e.current=t}var G=S(null),le=S(null),Z=S(null),k=S(null);function ue(e,t){switch(H(Z,t),H(le,e),H(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Id(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(G),H(G,e)}function Te(){j(G),j(le),j(Z)}function Za(e){e.memoizedState!==null&&H(k,e);var t=G.current,a=Pd(t,e.type);t!==a&&(H(le,e),H(G,a))}function Ka(e){le.current===e&&(j(G),j(le)),k.current===e&&(j(k),eu._currentValue=P)}var Et,ol;function Zt(e){if(Et===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Et=t&&t[1]||"",ol=-1<a.stack.indexOf(`
*/var Bm;function wp(){if(Bm)return uu;Bm=1;var l=Np(),s=vr(),c=ph();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(m(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,n=t;;){var u=a.return;if(u===null)break;var i=u.alternate;if(i===null){if(n=u.return,n!==null){a=n;continue}break}if(u.child===i.child){for(i=u.child;i;){if(i===a)return v(u),e;if(i===n)return v(u),t;i=i.sibling}throw Error(r(188))}if(a.return!==n.return)a=u,n=i;else{for(var o=!1,d=u.child;d;){if(d===a){o=!0,a=u,n=i;break}if(d===n){o=!0,n=u,a=i;break}d=d.sibling}if(!o){for(d=i.child;d;){if(d===a){o=!0,a=i,n=u;break}if(d===n){o=!0,n=i,a=u;break}d=d.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,q=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),ct=Symbol.for("react.activity"),be=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=Me&&e[Me]||e["@@iterator"],typeof e=="function"?e:null)}var xt=Symbol.for("react.client.reference");function He(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case C:return"Profiler";case Y:return"StrictMode";case Ee:return"Suspense";case me:return"SuspenseList";case ct:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case W:return"Portal";case Q:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:He(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return He(e(t))}catch{}}return null}var Re=Array.isArray,z=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},Se=[],ce=-1;function S(e){return{current:e}}function j(e){0>ce||(e.current=Se[ce],Se[ce]=null,ce--)}function H(e,t){ce++,Se[ce]=e.current,e.current=t}var G=S(null),le=S(null),Z=S(null),k=S(null);function ue(e,t){switch(H(Z,t),H(le,e),H(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Id(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Id(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(G),H(G,e)}function Te(){j(G),j(le),j(Z)}function Za(e){e.memoizedState!==null&&H(k,e);var t=G.current,a=Pd(t,e.type);t!==a&&(H(le,e),H(G,a))}function Ka(e){le.current===e&&(j(G),j(le)),k.current===e&&(j(k),eu._currentValue=P)}var Et,ol;function Zt(e){if(Et===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Et=t&&t[1]||"",ol=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Et+e+ol}var At=!1;function ie(e,t){if(!e||At)return"";At=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(w){var R=w}Reflect.construct(e,[],U)}else{try{U.call()}catch(w){R=w}e.call(U.prototype)}}else{try{throw Error()}catch(w){R=w}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(w){if(w&&R&&typeof w.stack=="string")return[w.stack,R.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],d=i[1];if(o&&d){var b=o.split(`
`),O=d.split(`
`);for(u=n=0;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(n===b.length||u===O.length)for(n=b.length-1,u=O.length-1;1<=n&&0<=u&&b[n]!==O[u];)u--;for(;1<=n&&0<=u;n--,u--)if(b[n]!==O[u]){if(n!==1||u!==1)do if(n--,u--,0>u||b[n]!==O[u]){var D=`
`+b[n].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=n&&0<=u);break}}}finally{At=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Zt(a):""}function dt(e,t){switch(e.tag){case 26:case 27:case 5:return Zt(e.type);case 16:return Zt("Lazy");case 13:return e.child!==t&&t!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return ie(e.type,!1);case 11:return ie(e.type.render,!1);case 1:return ie(e.type,!0);case 31:return Zt("Activity");default:return""}}function Kt(e){try{var t="",a=null;do t+=dt(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var Jt=Object.prototype.hasOwnProperty,vn=l.unstable_scheduleCallback,fl=l.unstable_cancelCallback,Ja=l.unstable_shouldYield,ty=l.unstable_requestPaint,Tt=l.unstable_now,ay=l.unstable_getCurrentPriorityLevel,Rr=l.unstable_ImmediatePriority,wr=l.unstable_UserBlockingPriority,mu=l.unstable_NormalPriority,ny=l.unstable_LowPriority,zr=l.unstable_IdlePriority,ly=l.log,uy=l.unstable_setDisableYieldValue,dl=null,Ot=null;function Sa(e){if(typeof ly=="function"&&uy(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(dl,e)}catch{}}var Nt=Math.clz32?Math.clz32:cy,iy=Math.log,sy=Math.LN2;function cy(e){return e>>>=0,e===0?32:31-(iy(e)/sy|0)|0}var hu=256,yu=262144,pu=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gu(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var u=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?u=$a(n):(o&=d,o!==0?u=$a(o):a||(a=d&~e,a!==0&&(u=$a(a))))):(d=n&~i,d!==0?u=$a(d):o!==0?u=$a(o):a||(a=n&~e,a!==0&&(u=$a(a)))),u===0?0:t!==0&&t!==u&&(t&i)===0&&(i=u&-u,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:u}function ml(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ry(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jr(){var e=pu;return pu<<=1,(pu&62914560)===0&&(pu=4194304),e}function ki(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function oy(e,t,a,n,u,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,O=e.hiddenUpdates;for(a=o&~a;0<a;){var D=31-Nt(a),U=1<<D;d[D]=0,b[D]=-1;var R=O[D];if(R!==null)for(O[D]=null,D=0;D<R.length;D++){var w=R[D];w!==null&&(w.lane&=-536870913)}a&=~U}n!==0&&Dr(e,n,0),i!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Dr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Nt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Cr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Nt(a),u=1<<n;u&t|e[n]&t&&(e[n]|=t),a&=~u}}function Mr(e,t){var a=t&-t;return a=(a&42)!==0?1:Yi(a),(a&(e.suspendedLanes|t))!==0?0:a}function Yi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ur(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:xm(e.type))}function qr(e,t){var a=L.p;try{return L.p=e,t()}finally{L.p=a}}var _a=Math.random().toString(36).slice(2),et="__reactFiber$"+_a,ht="__reactProps$"+_a,Sn="__reactContainer$"+_a,Vi="__reactEvents$"+_a,fy="__reactListeners$"+_a,dy="__reactHandles$"+_a,Br="__reactResources$"+_a,yl="__reactMarker$"+_a;function Gi(e){delete e[et],delete e[ht],delete e[Vi],delete e[fy],delete e[dy]}function _n(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Sn]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=im(e);e!==null;){if(a=e[et])return a;e=im(e)}return t}e=a,a=e.parentNode}return null}function xn(e){if(e=e[et]||e[Sn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function En(e){var t=e[Br];return t||(t=e[Br]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[yl]=!0}var Hr=new Set,Lr={};function Fa(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Lr[e]=t,e=0;e<t.length;e++)Hr.add(t[e])}var my=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21 Line truncated
`).replace(G0,"")}function Fd(e,t){return t=$d(t),$d(e)===t}function ze(e,t,a,n,u,i){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||On(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&On(e,""+n);break;case"className":vu(e,"class",n);break;case"tabIndex":vu(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vu(e,a,n);break;case"style":Jr(e,n,i);break;case"data":if(t!=="object"){vu(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_u(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",u.name,u,null),ze(e,t,"formEncType",u.formEncType,u,null),ze(e,t,"formMethod",u.formMethod,u,null),ze(e,t,"formTarget",u.formTarget,u,null)):(ze(e,t,"encType",u.encType,u,null),ze(e,t,"method",u.method,u,null),ze(e,t,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_u(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=na);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=_u(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ye("beforetoggle",e),ye("toggle",e),bu(e,"popover",n);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":bu(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=by.get(a)||a,bu(e,a,n))}}function Mc(e,t,a,n,u,i){switch(a){case"style":Jr(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof n=="string"?On(e,n):(typeof n=="number"||typeof n=="bigint")&&On(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
`+n.stack}}var Jt=Object.prototype.hasOwnProperty,vn=l.unstable_scheduleCallback,fl=l.unstable_cancelCallback,Ja=l.unstable_shouldYield,ty=l.unstable_requestPaint,Tt=l.unstable_now,ay=l.unstable_getCurrentPriorityLevel,Rr=l.unstable_ImmediatePriority,wr=l.unstable_UserBlockingPriority,mu=l.unstable_NormalPriority,ny=l.unstable_LowPriority,zr=l.unstable_IdlePriority,ly=l.log,uy=l.unstable_setDisableYieldValue,dl=null,Ot=null;function Sa(e){if(typeof ly=="function"&&uy(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(dl,e)}catch{}}var Nt=Math.clz32?Math.clz32:cy,iy=Math.log,sy=Math.LN2;function cy(e){return e>>>=0,e===0?32:31-(iy(e)/sy|0)|0}var hu=256,yu=262144,pu=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gu(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var u=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?u=$a(n):(o&=d,o!==0?u=$a(o):a||(a=d&~e,a!==0&&(u=$a(a))))):(d=n&~i,d!==0?u=$a(d):o!==0?u=$a(o):a||(a=n&~e,a!==0&&(u=$a(a)))),u===0?0:t!==0&&t!==u&&(t&i)===0&&(i=u&-u,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:u}function ml(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ry(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jr(){var e=pu;return pu<<=1,(pu&62914560)===0&&(pu=4194304),e}function ki(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function oy(e,t,a,n,u,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,O=e.hiddenUpdates;for(a=o&~a;0<a;){var D=31-Nt(a),U=1<<D;d[D]=0,b[D]=-1;var R=O[D];if(R!==null)for(O[D]=null,D=0;D<R.length;D++){var w=R[D];w!==null&&(w.lane&=-536870913)}a&=~U}n!==0&&Dr(e,n,0),i!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Dr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Nt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Cr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Nt(a),u=1<<n;u&t|e[n]&t&&(e[n]|=t),a&=~u}}function Mr(e,t){var a=t&-t;return a=(a&42)!==0?1:Yi(a),(a&(e.suspendedLanes|t))!==0?0:a}function Yi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Vi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ur(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:xm(e.type))}function qr(e,t){var a=L.p;try{return L.p=e,t()}finally{L.p=a}}var _a=Math.random().toString(36).slice(2),at="__reactFiber$"+_a,ht="__reactProps$"+_a,Sn="__reactContainer$"+_a,Xi="__reactEvents$"+_a,fy="__reactListeners$"+_a,dy="__reactHandles$"+_a,Br="__reactResources$"+_a,yl="__reactMarker$"+_a;function Gi(e){delete e[at],delete e[ht],delete e[Xi],delete e[fy],delete e[dy]}function _n(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Sn]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=im(e);e!==null;){if(a=e[at])return a;e=im(e)}return t}e=a,a=e.parentNode}return null}function xn(e){if(e=e[at]||e[Sn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function En(e){var t=e[Br];return t||(t=e[Br]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[yl]=!0}var Hr=new Set,Lr={};function Fa(e,t){An(e,t),An(e+"Capture",t)}function An(e,t){for(Lr[e]=t,e=0;e<t.length;e++)Hr.add(t[e])}var my=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u21 Line truncated
`).replace(G0,"")}function Fd(e,t){return t=$d(t),$d(e)===t}function ze(e,t,a,n,u,i){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||On(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&On(e,""+n);break;case"className":vu(e,"class",n);break;case"tabIndex":vu(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vu(e,a,n);break;case"style":Jr(e,n,i);break;case"data":if(t!=="object"){vu(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_u(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",u.name,u,null),ze(e,t,"formEncType",u.formEncType,u,null),ze(e,t,"formMethod",u.formMethod,u,null),ze(e,t,"formTarget",u.formTarget,u,null)):(ze(e,t,"encType",u.encType,u,null),ze(e,t,"method",u.method,u,null),ze(e,t,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_u(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=na);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=_u(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ye("beforetoggle",e),ye("toggle",e),bu(e,"popover",n);break;case"xlinkActuate":aa(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":aa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":aa(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":aa(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":aa(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":aa(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":aa(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":aa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":aa(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":bu(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=by.get(a)||a,bu(e,a,n))}}function Mc(e,t,a,n,u,i){switch(a){case"style":Jr(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof n=="string"?On(e,n):(typeof n=="number"||typeof n=="bigint")&&On(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -67,207 +67,212 @@ Error generating stack: `+n.message+`
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const me=(l,s)=>{const c=B.forwardRef(({className:r,...f},m)=>B.createElement(kp,{ref:m,iconNode:s,className:gh(`lucide-${qp(km(l))}`,`lucide-${l}`,r),...f}));return c.displayName=km(l),c};/**
*/const de=(l,s)=>{const c=B.forwardRef(({className:r,...f},m)=>B.createElement(kp,{ref:m,iconNode:s,className:gh(`lucide-${qp(km(l))}`,`lucide-${l}`,r),...f}));return c.displayName=km(l),c};/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ym=me("arrow-right",Yp);/**
*/const Yp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ym=de("arrow-right",Yp);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Vp=me("bell-ring",Xp);/**
*/const Vp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],Xp=de("bell-ring",Vp);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Qp=me("bot",Gp);/**
*/const Gp=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Qp=de("book-open",Gp);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zp=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],Kp=me("box",Zp);/**
*/const Zp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Kp=de("bot",Zp);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$p=me("chevron-up",Jp);/**
*/const Jp=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],$p=de("box",Jp);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Wp=me("circle-alert",Fp);/**
*/const Fp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Wp=de("chevron-up",Fp);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ip=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],or=me("circle-check",Ip);/**
*/const Ip=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Pp=de("circle-alert",Ip);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],e1=me("credit-card",Pp);/**
*/const e1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],or=de("circle-check",e1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],a1=me("download",t1);/**
*/const t1=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],a1=de("credit-card",t1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],l1=me("external-link",n1);/**
*/const n1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],l1=de("download",n1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u1=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],i1=me("flame",u1);/**
*/const u1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],i1=de("external-link",u1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],bh=me("info",s1);/**
*/const s1=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],c1=de("flame",s1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c1=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],vh=me("key-round",c1);/**
*/const r1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],bh=de("info",r1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r1=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],o1=me("layout-dashboard",r1);/**
*/const o1=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],vh=de("key-round",o1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const f1=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],d1=me("list-filter",f1);/**
*/const f1=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],d1=de("layout-dashboard",f1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],su=me("loader-circle",m1);/**
*/const m1=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],h1=de("list-filter",m1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h1=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Xm=me("lock",h1);/**
*/const y1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],su=de("loader-circle",y1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y1=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],p1=me("log-out",y1);/**
*/const p1=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Vm=de("lock",p1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],b1=me("mail",g1);/**
*/const g1=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],b1=de("log-out",g1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v1=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],S1=me("megaphone",v1);/**
*/const v1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],S1=de("mail",v1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],x1=me("menu",_1);/**
*/const _1=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],x1=de("megaphone",_1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],A1=me("message-square",E1);/**
*/const E1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],A1=de("menu",E1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T1=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],O1=me("monitor",T1);/**
*/const T1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],O1=de("message-square",T1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],R1=me("moon",N1);/**
*/const N1=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],R1=de("monitor",N1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],z1=me("refresh-cw",w1);/**
*/const w1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],z1=de("moon",w1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],D1=me("settings",j1);/**
*/const j1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],D1=de("refresh-cw",j1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vm=me("shield-check",C1);/**
*/const C1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],M1=de("settings",C1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M1=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],U1=me("shopping-bag",M1);/**
*/const U1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xm=de("shield-check",U1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],B1=me("star",q1);/**
*/const q1=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],B1=de("shopping-bag",q1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const H1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],L1=me("store",H1);/**
*/const H1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],L1=de("star",H1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Y1=me("sun",k1);/**
*/const k1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],Y1=de("store",k1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X1=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],V1=me("trending-down",X1);/**
*/const V1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],X1=de("sun",V1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Sh=me("triangle-alert",G1);/**
*/const G1=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],Q1=de("trending-down",G1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q1=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Z1=me("user-cog",Q1);/**
*/const Z1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Sh=de("triangle-alert",Z1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],J1=me("user-round",K1);/**
*/const K1=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],J1=de("user-cog",K1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Gm=me("user",$1);/**
*/const $1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],F1=de("user-round",$1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const F1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],W1=me("users",F1);/**
*/const W1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Gm=de("user",W1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const I1=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],P1=me("workflow",I1);/**
*/const I1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],P1=de("users",I1);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_h=me("x",eg),fr="xianyu-theme-preference",xh="(prefers-color-scheme: dark)",Eh=B.createContext(null),Ah=l=>l==="light"||l==="dark"||l==="system"?l:"system",tg=()=>{if(typeof window>"u")return"system";try{return Ah(window.localStorage.getItem(fr))}catch{return"system"}},ag=()=>typeof window>"u"?"light":window.matchMedia(xh).matches?"dark":"light",ng=({children:l})=>{const[s,c]=B.useState(tg),[r,f]=B.useState(ag);B.useEffect(()=>{const v=window.matchMedia(xh),g=A=>{f(A.matches?"dark":"light")};return f(v.matches?"dark":"light"),v.addEventListener("change",g),()=>v.removeEventListener("change",g)},[]),B.useEffect(()=>{const v=g=>{g.key===fr&&c(Ah(g.newValue))};return window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[]);const m=s==="system"?r:s;B.useLayoutEffect(()=>{const v=document.documentElement;v.dataset.theme=m,v.dataset.themePreference=s,v.classList.toggle("dark",m==="dark"),v.style.colorScheme=m;try{window.localStorage.setItem(fr,s)}catch{}},[m,s]);const h=B.useCallback(v=>{c(v)},[]),p=B.useMemo(()=>({theme:s,resolvedTheme:m,setTheme:h}),[m,h,s]);return y.jsx(Eh.Provider,{value:p,children:l})},lg=()=>{const l=B.useContext(Eh);if(!l)throw new Error("useTheme must be used inside ThemeProvider");return l},ll=[{value:"light",label:"浅色",description:"使用浅色主题",icon:Y1},{value:"dark",label:"深色",description:"使用深色主题",icon:R1},{value:"system",label:"自动",description:"跟随系统外观",icon:O1}],dr=({compact:l=!1,className:s=""})=>{const{theme:c,resolvedTheme:r,setTheme:f}=lg(),m=(h,p)=>{var A,N;let v=p;if(h.key==="ArrowRight"||h.key==="ArrowDown")v=(p+1)%ll.length;else if(h.key==="ArrowLeft"||h.key==="ArrowUp")v=(p-1+ll.length)%ll.length;else if(h.key==="Home")v=0;else if(h.key==="End")v=ll.length-1;else return;h.preventDefault();const g=ll[v].value;f(g),(N=(A=h.currentTarget.parentElement)==null?void 0:A.querySelector(`[data-theme-option="${g}"]`))==null||N.focus()};return y.jsxs("div",{className:`theme-picker ${l?"theme-picker--compact":""} ${s}`.trim(),"data-resolved-theme":r,children:[!l&&y.jsxs("div",{className:"theme-picker__heading",children:[y.jsx("span",{children:"显示主题"}),y.jsx("span",{className:"theme-picker__status",children:c==="system"?`自动 · ${r==="dark"?"深色":"浅色"}`:c==="dark"?"深色":"浅色"})]}),y.jsx("div",{className:"theme-switcher",role:"radiogroup","aria-label":"显示主题",children:ll.map((h,p)=>{const v=h.icon,g=c===h.value;return y.jsxs("button",{type:"button",role:"radio","aria-checked":g,"aria-label":h.description,title:h.description,tabIndex:g?0:-1,"data-theme-option":h.value,className:`theme-switcher__option ${g?"theme-switcher__option--active":""}`,onClick:()=>f(h.value),onKeyDown:A=>m(A,p),children:[y.jsx(v,{className:"h-3.5 w-3.5"}),!l&&y.jsx("span",{children:h.label})]},h.value)})})]})};function Th(l,s){return function(){return l.apply(s,arguments)}}const{toString:ug}=Object.prototype,{getPrototypeOf:sl}=Object,{iterator:ru,toStringTag:Oh}=Symbol,Mi=(({hasOwnProperty:l})=>(s,c)=>l.call(s,c))(Object.prototype),cu=(l,s)=>{let c=l;const r=[];for(;c!=null&&c!==Object.prototype;){if(r.indexOf(c)!==-1)return!1;if(r.push(c),Mi(c,s))return!0;c=sl(c)}return!1},ig=(l,s)=>l!=null&&cu(l,s)?l[s]:void 0,Sr=(l=>s=>{const c=ug.call(s);return l[c]||(l[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),Qt=l=>(l=l.toLowerCase(),s=>Sr(s)===l),Bi=l=>s=>typeof s===l,{isArray:pn}=Array,gn=Bi("undefined");function cl(l){return l!==null&&!gn(l)&&l.constructor!==null&&!gn(l.constructor)&&_t(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const Nh=Qt("ArrayBuffer");function sg(l){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(l):s=l&&l.buffer&&Nh(l.buffer),s}const cg=Bi("string"),_t=Bi("function"),Rh=Bi("number"),rl=l=>l!==null&&typeof l=="object",rg=l=>l===!0||l===!1,ji=l=>{if(!rl(l))return!1;const s=sl(l);return(s===null||s===Object.prototype||sl(s)===null)&&!cu(l,Oh)&&!cu(l,ru)},og=l=>{if(!rl(l)||cl(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},fg=Qt("Date"),dg=Qt("File"),mg=l=>!!(l&&typeof l.uri<"u"),hg=l=>l&&typeof l.getParts<"u",yg=Qt("Blob"),pg=Qt("FileList"),gg=Qt("Set"),bg=l=>rl(l)&&_t(l.pipe);function vg(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qm=vg(),Zm=typeof Qm.FormData<"u"?Qm.FormData:void 0,Sg=l=>{if(!l)return!1;if(Zm&&l instanceof Zm)return!0;const s=sl(l);if(!s||s===Object.prototype||!_t(l.append))return!1;const c=Sr(l);return c==="formdata"||c==="object"&&_t(l.toString)&&l.toString()==="[object FormData]"},_g=Qt("URLSearchParams"),[xg,Eg,Ag,Tg]=["ReadableStream","Request","Response","Headers"].map(Qt),Og=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ou(l,s,{allOwnKeys:c=!1}={}){if(l===null||typeoLine truncated
`).forEach(function(h){f=h.indexOf(":"),c=h.substring(0,f).trim().toLowerCase(),r=h.substring(f+1).trim();const p=x.hasOwnProp(s,c);!c||p&&x.hasOwnProp(Fg,c)||(c==="set-cookie"?p?s[c].push(r):s[c]=[r]:s[c]=p?s[c]+", "+r:r)}),s};function Ig(l){let s=0,c=l.length;for(;s<c;){const r=l.charCodeAt(s);if(r!==9&&r!==32)break;s+=1}for(;c>s;){const r=l.charCodeAt(c-1);if(r!==9&&r!==32)break;c-=1}return s===0&&c===l.length?l:l.slice(s,c)}const Pg=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _r(l,s){return x.isArray(l)?l.map(c=>_r(c,s)):Ig(String(l).replace(s,""))}const tb=l=>_r(l,Pg),ab=l=>_r(l,eb);function Mh(l){const s=Object.create(null);return x.forEach(l.toJSON(),(c,r)=>{s[r]=ab(c)}),s}const Km=Symbol("internals");function iu(l){return l&&String(l).trim().toLowerCase()}function Di(l){return l===!1||l==null?l:x.isArray(l)?l.map(Di):tb(String(l))}function nb(l){const s=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=c.exec(l);)s[r[1]]=r[2];return s}const lb=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function lr(l){let s=0,c=l.length;for(;s<c;){const r=l.charCodeAt(s);if(r!==9&&r!==32)break;s+=1}for(;c>s;){const r=l.charCodeAt(c-1);if(r!==9&&r!==32)break;c-=1}return s===0&&c===l.length?l:l.slice(s,c)}function ub(l){const s=l.length-1;if(s<1||l.charCodeAt(0)!==34||l.charCodeAt(s)!==34)return l;let c="";for(let r=1;r<s;r++){const f=l.charCodeAt(r);if(f===34||f===92&&(r+=1,r>=s))return l;c+=l[r]}return c}function ib(l){const s=Object.create(null),c=String(l);let r=0,f=!1,m=!1;function h(p){const v=lr(c.slice(r,p)),g=v.indexOf("=");if(g<1)return;const A=lr(v.slice(0,g));if(!lb.test(A))return;const N=A.toLowerCase();if(N==="__proto__"||N==="constructor"||N==="prototype")return;const q=lr(v.slice(g+1));s[N]=ub(q)}for(let p=0;p<c.length;p++){const v=c.charCodeAt(p);f?m?m=!1:v===92?m=!0:v===34&&(f=!1):v===34?f=!0:(v===44||v===59)&&(h(p),r=p+1)}return h(c.length),s}const sb=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function ur(l,s,c,r,f){if(x.isFunction(r))return r.call(this,s,c);if(f&&(s=c),!!x.isString(s)){if(x.isString(r))return s.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(s)}}function cb(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,c,r)=>c.toUpperCase()+r)}function rb(l,s){const c=x.toCamelCase(" "+s);["get","set","has"].forEach(r=>{Object.defineProperty(l,r+c,{__proto__:null,value:function(f,m,h){return this[r].call(this,s,f,m,h)},configurable:!0})})}let ft=class{constructor(s){s&&this.set(s)}set(s,c,r){const f=this;function m(p,v,g){const A=iu(v);if(!A)return;const N=x.findKey(f,A);(!N||f[N]===void 0||g===!0||g===void 0&&f[N]!==!1)&&(f[N||v]=Di(p))}const h=(p,v)=>x.forEach(p,(g,A)=>m(g,A,v));if(x.isPlainObject(s)||s instanceof this.constructor)h(s,c);else if(x.isString(s)&&(s=s.trim())&&!sb(s))h(Wg(s),c);else if(x.isObject(s)&&x.isSafeIterable(s)){let p=Object.create(null),v,g;for(const A of s){if(!x.isArray(A))throw new TypeError("Object iterator must return a key-value pair");g=A[0],x.hasOwnProp(p,g)?(v=p[g],p[g]=x.isArray(v)?[...v,A[1]]:[v,A[1]]):p[g]=A[1]}h(p,c)}else s!=null&&m(c,s,r);return this}get(s,c){if(s=iu(s),s){const r=x.findKey(this,s);if(r){const f=this[r];if(!c)return f;if(c===!0)return nb(f);if(x.isFunction(c))return c.call(this,f,r);if(x.isRegExp(c))return c.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,c){if(s=iu(s),s){const r=x.findKey(this,s);return!!(r&&this[r]!==void 0&&(!c||ur(this,this[r],r,c)))}return!1}delete(s,c){const r=this;let f=!1;function m(h){if(h=iu(h),h){const p=x.findKey(r,h);p&&(!c||ur(r,r[p],p,c))&&(delete r[p],f=!0)}}return x.isArray(s)?s.forEach(m):m(s),f}clear(s){const c=Object.keys(this);let r=c.length,f=!1;for(;r--;){const m=c[r];(!s||ur(this,this[m],m,s,!0))&&(delete this[m],f=!0)}return f}normalize(s){const c=this,r={};return x.forEach(this,(f,m)=>{const h=x.findKey(r,m);if(h){c[h]=Di(f),delete c[m];return}const p=s?cb(m):String(m).trim();p!==m&&delete c[m],c[p]=Di(f),r[p]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const c=Object.create(null);return x.forEach(this,(r,f)=>{r!=null&&r!==!1&&(c[f]=s&&x.isArray(r)?r.join(", "):r)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,c])=>s+": "+c).join(`
`)}getSetCookie(){const s=this.get("set-cookie");return x.isArray(s)?s:s==null||s===!1?[]:[s]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static parseParameters(s){return ib(s)}static concat(s,...c){const r=new this(s);return c.forEach(f=>r.set(f)),r}static accessor(s){const r=(this[Km]=this[Km]={accessors:{}}).accessors,f=this.prototype;function m(h){const p=iu(h);r[p]||(rb(f,h),r[p]=!0)}return x.isArray(s)?s.forEach(m):m(s),this}};ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(ft.prototype,({value:l},s)=>{let c=s[0].toUpperCase()+s.slice(1);return{get:()=>l,set(r){this[c]=r}}});x.freezeMethods(ft);const Ui="[REDACTED ****]";function ob(l){if(x.hasOwnProp(l,"toJSON"))return!0;let s=Object.getPrototypeOf(l);for(;s&&s!==Object.prototype;){if(x.hasOwnProp(s,"toJSON"))return!0;s=Object.getPrototypeOf(s)}return!1}function fb(l,s){const c=new Set(s.map(m=>String(m).toLowerCase())),r=[],f=m=>{if(m===null||typeof m!="object"||x.isBuffer(m))return m;if(r.indexOf(m)!==-1)return;m instanceof ft&&(m=m.toJSON()),r.push(m);let h;if(x.isArray(m))h=[],m.forEach((p,v)=>{const g=f(p);x.isUndefined(g)||(h[v]=g)});else{if(!x.isPlainObject(m)&&ob(m))return r.pop(),m;h=Object.create(null);for(const[p,v]of Object.entries(m)){const g=c.has(p.toLowerCase())?Ui:f(v);x.isUndefined(g)||(h[p]=g)}}return r.pop(),h};return f(l)}function Jm(l){try{return String(l)}catch{return""}}function db(l){return l.errors.map(c=>{try{return c&&c.message?Jm(c.message):Jm(c)}catch{return""}}).filter(Boolean).join("; ")||l.name||"AggregateError"}let X=class Uh extends Error{static from(s,c,r,f,m,h){let p=s.message;!p&&x.isArray(s.errors)&&s.errors.length&&(p=db(s));const v=new Uh(p,c||s.code,r,f,m);return Object.defineProperty(v,"cause",{__proto__:null,value:s,writable:!0,enumerable:!1,configurable:!0}),v.name=s.name,s.status!=null&&v.status==null&&(v.status=s.status),h&&Object.assign(v,h),v}constructor(s,c,r,f,m){super(s),Object.defineProperty(this,"message",{__proto__:null,value:s,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),r&&(this.config=r),f&&(this.request=f),m&&(this.response=m,this.status=m.status)}toJSON(){const s=this.config,c=s&&x.hasOwnProp(s,"redact")?s.redact:void 0,r=x.isArray(c)&&c.length>0?fb(s,c):x.toJSONObject(s);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";X.ERR_BAD_OPTION="ERR_BAD_OPTION";X.ECONNABORTED="ECONNABORTED";X.ETIMEDOUT="ETIMEDOUT";X.ECONNREFUSED="ECONNREFUSED";X.ERR_NETWORK="ERR_NETWORK";X.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";X.ERR_DEPRECATED="ERR_DEPRECATED";X.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";X.ERR_BAD_REQUEST="ERR_BAD_REQUEST";X.ERR_CANCELED="ERR_CANCELED";X.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";X.ERR_INVALID_URL="ERR_INVALID_URL";X.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const mb=null,qh=100;function hr(l){return x.isPlainObject(l)||x.isArray(l)}function Bh(l){return x.endsWith(l,"[]")?l.slice(0,-2):l}function ir(l,s,c){return l?l.concat(s).map(function(f,m){return f=Bh(f),!c&&m?"["+f+"]":f}).join(c?".":""):s}function hb(l){return x.isArray(l)&&!l.some(hr)}const yb=x.toFlatObject(x,{},null,function(s){return/^is[A-Z]/.test(s)});function Hi(l,s,c){if(!x.isObject(l))throw new TypeError("target must be an object");s=s||new FormData,c=x.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(K,Q){return!x.isUndefined(Q[K])});const r=c.metaTokens,f=c.visitor||W,m=c.dots,h=c.indexes,p=c.Blob||typeof Blob<"u"&&Blob,v=c.maxDepth===void 0?qh:c.maxDepth,g=p&&x.isSpecCompliantForm(s),A=[];if(!x.isFunction(f))throw new TypeError("visitor must be a function");function N(C){if(C===null)return"";if(x.isDate(C))return C.toISOString();if(x.isBoolean(C))return C.toString();if(!g&&x.isBlob(C))throw new X("Blob is not supported. Use a Buffer instead.");if(x.isArrayBuffer(C)||x.isTypedArray(C)){if(g&&typeof p=="function")return new p([C]);throw new X("Blob is not supported. Use a Buffer instead.",X.ERR_NOT_SUPPORT)}return C}function q(C){if(C>v)throw new X("Object is too deeply nested ("+C+" levels). Max depth: "+v,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function F(C,K){if(v===1/0)return JSON.stringify(C);const Q=[];return JSON.stringify(C,function(Ee,de){if(!x.isObject(de))return de;for(;Q.length&&Q[Q.length-1]!==this;)Q.pop();return Q.push(de),q(K+Q.length-1),de})}function W(C,K,Q){let ee=C;if(x.isReactNative(s)&&x.isReactNativeBlob(C))return s.append(ir(Q,K,m),N(C)),!1;if(C&&!Q&&typeof C=="object"){if(x.endsWith(K,"{}"))K=r?K:K.slice(0,-2),C=F(C,1);else if(x.isArray(C)&&hb(C)||(x.isFileList(C)||x.endsWith(K,"[]"))&&(ee=x.toArray(C)))return K=Bh(K),ee.forEach(function(de,ne){!(x.is Line truncated
*/const eg=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],tg=de("workflow",eg);/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ag=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_h=de("x",ag),fr="xianyu-theme-preference",xh="(prefers-color-scheme: dark)",Eh=B.createContext(null),Ah=l=>l==="light"||l==="dark"||l==="system"?l:"system",ng=()=>{if(typeof window>"u")return"system";try{return Ah(window.localStorage.getItem(fr))}catch{return"system"}},lg=()=>typeof window>"u"?"light":window.matchMedia(xh).matches?"dark":"light",ug=({children:l})=>{const[s,c]=B.useState(ng),[r,f]=B.useState(lg);B.useEffect(()=>{const v=window.matchMedia(xh),g=A=>{f(A.matches?"dark":"light")};return f(v.matches?"dark":"light"),v.addEventListener("change",g),()=>v.removeEventListener("change",g)},[]),B.useEffect(()=>{const v=g=>{g.key===fr&&c(Ah(g.newValue))};return window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[]);const m=s==="system"?r:s;B.useLayoutEffect(()=>{const v=document.documentElement;v.dataset.theme=m,v.dataset.themePreference=s,v.classList.toggle("dark",m==="dark"),v.style.colorScheme=m;try{window.localStorage.setItem(fr,s)}catch{}},[m,s]);const h=B.useCallback(v=>{c(v)},[]),p=B.useMemo(()=>({theme:s,resolvedTheme:m,setTheme:h}),[m,h,s]);return y.jsx(Eh.Provider,{value:p,children:l})},ig=()=>{const l=B.useContext(Eh);if(!l)throw new Error("useTheme must be used inside ThemeProvider");return l},ll=[{value:"light",label:"浅色",description:"使用浅色主题",icon:X1},{value:"dark",label:"深色",description:"使用深色主题",icon:z1},{value:"system",label:"自动",description:"跟随系统外观",icon:R1}],dr=({compact:l=!1,className:s=""})=>{const{theme:c,resolvedTheme:r,setTheme:f}=ig(),m=(h,p)=>{var A,N;let v=p;if(h.key==="ArrowRight"||h.key==="ArrowDown")v=(p+1)%ll.length;else if(h.key==="ArrowLeft"||h.key==="ArrowUp")v=(p-1+ll.length)%ll.length;else if(h.key==="Home")v=0;else if(h.key==="End")v=ll.length-1;else return;h.preventDefault();const g=ll[v].value;f(g),(N=(A=h.currentTarget.parentElement)==null?void 0:A.querySelector(`[data-theme-option="${g}"]`))==null||N.focus()};return y.jsxs("div",{className:`theme-picker ${l?"theme-picker--compact":""} ${s}`.trim(),"data-resolved-theme":r,children:[!l&&y.jsxs("div",{className:"theme-picker__heading",children:[y.jsx("span",{children:"显示主题"}),y.jsx("span",{className:"theme-picker__status",children:c==="system"?`自动 · ${r==="dark"?"深色":"浅色"}`:c==="dark"?"深色":"浅色"})]}),y.jsx("div",{className:"theme-switcher",role:"radiogroup","aria-label":"显示主题",children:ll.map((h,p)=>{const v=h.icon,g=c===h.value;return y.jsxs("button",{type:"button",role:"radio","aria-checked":g,"aria-label":h.description,title:h.description,tabIndex:g?0:-1,"data-theme-option":h.value,className:`theme-switcher__option ${g?"theme-switcher__option--active":""}`,onClick:()=>f(h.value),onKeyDown:A=>m(A,p),children:[y.jsx(v,{className:"h-3.5 w-3.5"}),!l&&y.jsx("span",{children:h.label})]},h.value)})})]})};function Th(l,s){return function(){return l.apply(s,arguments)}}const{toString:sg}=Object.prototype,{getPrototypeOf:sl}=Object,{iterator:ru,toStringTag:Oh}=Symbol,Mi=(({hasOwnProperty:l})=>(s,c)=>l.call(s,c))(Object.prototype),cu=(l,s)=>{let c=l;const r=[];for(;c!=null&&c!==Object.prototype;){if(r.indexOf(c)!==-1)return!1;if(r.push(c),Mi(c,s))return!0;c=sl(c)}return!1},cg=(l,s)=>l!=null&&cu(l,s)?l[s]:void 0,Sr=(l=>s=>{const c=sg.call(s);return l[c]||(l[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),Qt=l=>(l=l.toLowerCase(),s=>Sr(s)===l),Bi=l=>s=>typeof s===l,{isArray:pn}=Array,gn=Bi("undefined");function cl(l){return l!==null&&!gn(l)&&l.constructor!==null&&!gn(l.constructor)&&_t(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const Nh=Qt("ArrayBuffer");function rg(l){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(l):s=l&&l.buffer&&Nh(l.buffer),s}const og=Bi("string"),_t=Bi("function"),Rh=Bi("number"),rl=l=>l!==null&&typeof l=="object",fg=l=>l===!0||l===!1,ji=l=>{if(!rl(l))return!1;const s=sl(l);return(s===null||s===Object.prototype||sl(s)===null)&&!cu(l,Oh)&&!cu(l,ru)},dg=l=>{if(!rl(l)||cl(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},mg=Qt("Date"),hg=Qt("File"),yg=l=>!!(l&&typeof l.uri<"u"),pg=l=>l&&typeof l.getParts<"u",gg=Qt("Blob"),bg=Qt("FileList"),vg=Qt("Set"),Sg=l=>rl(l)&&_t(l.pipe);function _g(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qm=_g(),Zm=typeof Qm.FormData<"u"?Qm.FormData:void 0,xg=l=>{if(!l)return!1;if(Zm&&l instanceof Zm)return!0;const s=sl(l);if(!s||s===Object.prototype||!_t(l.append))return!1;const c=Sr(l);return c==="formdata"||c==="object"&&_t(l.toString)&&l.toString()==="[object FormData]"},Eg=Qt("URLSearchParams"),[Ag,Tg,Og,Ng]=["ReadableStream","Request","Response","Headers"].map(Qt),Rg=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ou(l,s,{allOwnKeys:c=!1}={}){if(l===null||typeoLine truncated
`).forEach(function(h){f=h.indexOf(":"),c=h.substring(0,f).trim().toLowerCase(),r=h.substring(f+1).trim();const p=x.hasOwnProp(s,c);!c||p&&x.hasOwnProp(Ig,c)||(c==="set-cookie"?p?s[c].push(r):s[c]=[r]:s[c]=p?s[c]+", "+r:r)}),s};function eb(l){let s=0,c=l.length;for(;s<c;){const r=l.charCodeAt(s);if(r!==9&&r!==32)break;s+=1}for(;c>s;){const r=l.charCodeAt(c-1);if(r!==9&&r!==32)break;c-=1}return s===0&&c===l.length?l:l.slice(s,c)}const tb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ab=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function _r(l,s){return x.isArray(l)?l.map(c=>_r(c,s)):eb(String(l).replace(s,""))}const nb=l=>_r(l,tb),lb=l=>_r(l,ab);function Mh(l){const s=Object.create(null);return x.forEach(l.toJSON(),(c,r)=>{s[r]=lb(c)}),s}const Km=Symbol("internals");function iu(l){return l&&String(l).trim().toLowerCase()}function Di(l){return l===!1||l==null?l:x.isArray(l)?l.map(Di):nb(String(l))}function ub(l){const s=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=c.exec(l);)s[r[1]]=r[2];return s}const ib=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function lr(l){let s=0,c=l.length;for(;s<c;){const r=l.charCodeAt(s);if(r!==9&&r!==32)break;s+=1}for(;c>s;){const r=l.charCodeAt(c-1);if(r!==9&&r!==32)break;c-=1}return s===0&&c===l.length?l:l.slice(s,c)}function sb(l){const s=l.length-1;if(s<1||l.charCodeAt(0)!==34||l.charCodeAt(s)!==34)return l;let c="";for(let r=1;r<s;r++){const f=l.charCodeAt(r);if(f===34||f===92&&(r+=1,r>=s))return l;c+=l[r]}return c}function cb(l){const s=Object.create(null),c=String(l);let r=0,f=!1,m=!1;function h(p){const v=lr(c.slice(r,p)),g=v.indexOf("=");if(g<1)return;const A=lr(v.slice(0,g));if(!ib.test(A))return;const N=A.toLowerCase();if(N==="__proto__"||N==="constructor"||N==="prototype")return;const q=lr(v.slice(g+1));s[N]=sb(q)}for(let p=0;p<c.length;p++){const v=c.charCodeAt(p);f?m?m=!1:v===92?m=!0:v===34&&(f=!1):v===34?f=!0:(v===44||v===59)&&(h(p),r=p+1)}return h(c.length),s}const rb=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function ur(l,s,c,r,f){if(x.isFunction(r))return r.call(this,s,c);if(f&&(s=c),!!x.isString(s)){if(x.isString(r))return s.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(s)}}function ob(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,c,r)=>c.toUpperCase()+r)}function fb(l,s){const c=x.toCamelCase(" "+s);["get","set","has"].forEach(r=>{Object.defineProperty(l,r+c,{__proto__:null,value:function(f,m,h){return this[r].call(this,s,f,m,h)},configurable:!0})})}let ft=class{constructor(s){s&&this.set(s)}set(s,c,r){const f=this;function m(p,v,g){const A=iu(v);if(!A)return;const N=x.findKey(f,A);(!N||f[N]===void 0||g===!0||g===void 0&&f[N]!==!1)&&(f[N||v]=Di(p))}const h=(p,v)=>x.forEach(p,(g,A)=>m(g,A,v));if(x.isPlainObject(s)||s instanceof this.constructor)h(s,c);else if(x.isString(s)&&(s=s.trim())&&!rb(s))h(Pg(s),c);else if(x.isObject(s)&&x.isSafeIterable(s)){let p=Object.create(null),v,g;for(const A of s){if(!x.isArray(A))throw new TypeError("Object iterator must return a key-value pair");g=A[0],x.hasOwnProp(p,g)?(v=p[g],p[g]=x.isArray(v)?[...v,A[1]]:[v,A[1]]):p[g]=A[1]}h(p,c)}else s!=null&&m(c,s,r);return this}get(s,c){if(s=iu(s),s){const r=x.findKey(this,s);if(r){const f=this[r];if(!c)return f;if(c===!0)return ub(f);if(x.isFunction(c))return c.call(this,f,r);if(x.isRegExp(c))return c.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,c){if(s=iu(s),s){const r=x.findKey(this,s);return!!(r&&this[r]!==void 0&&(!c||ur(this,this[r],r,c)))}return!1}delete(s,c){const r=this;let f=!1;function m(h){if(h=iu(h),h){const p=x.findKey(r,h);p&&(!c||ur(r,r[p],p,c))&&(delete r[p],f=!0)}}return x.isArray(s)?s.forEach(m):m(s),f}clear(s){const c=Object.keys(this);let r=c.length,f=!1;for(;r--;){const m=c[r];(!s||ur(this,this[m],m,s,!0))&&(delete this[m],f=!0)}return f}normalize(s){const c=this,r={};return x.forEach(this,(f,m)=>{const h=x.findKey(r,m);if(h){c[h]=Di(f),delete c[m];return}const p=s?ob(m):String(m).trim();p!==m&&delete c[m],c[p]=Di(f),r[p]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const c=Object.create(null);return x.forEach(this,(r,f)=>{r!=null&&r!==!1&&(c[f]=s&&x.isArray(r)?r.join(", "):r)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,c])=>s+": "+c).join(`
`)}getSetCookie(){const s=this.get("set-cookie");return x.isArray(s)?s:s==null||s===!1?[]:[s]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static parseParameters(s){return cb(s)}static concat(s,...c){const r=new this(s);return c.forEach(f=>r.set(f)),r}static accessor(s){const r=(this[Km]=this[Km]={accessors:{}}).accessors,f=this.prototype;function m(h){const p=iu(h);r[p]||(fb(f,h),r[p]=!0)}return x.isArray(s)?s.forEach(m):m(s),this}};ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(ft.prototype,({value:l},s)=>{let c=s[0].toUpperCase()+s.slice(1);return{get:()=>l,set(r){this[c]=r}}});x.freezeMethods(ft);const Ui="[REDACTED ****]";function db(l){if(x.hasOwnProp(l,"toJSON"))return!0;let s=Object.getPrototypeOf(l);for(;s&&s!==Object.prototype;){if(x.hasOwnProp(s,"toJSON"))return!0;s=Object.getPrototypeOf(s)}return!1}function mb(l,s){const c=new Set(s.map(m=>String(m).toLowerCase())),r=[],f=m=>{if(m===null||typeof m!="object"||x.isBuffer(m))return m;if(r.indexOf(m)!==-1)return;m instanceof ft&&(m=m.toJSON()),r.push(m);let h;if(x.isArray(m))h=[],m.forEach((p,v)=>{const g=f(p);x.isUndefined(g)||(h[v]=g)});else{if(!x.isPlainObject(m)&&db(m))return r.pop(),m;h=Object.create(null);for(const[p,v]of Object.entries(m)){const g=c.has(p.toLowerCase())?Ui:f(v);x.isUndefined(g)||(h[p]=g)}}return r.pop(),h};return f(l)}function Jm(l){try{return String(l)}catch{return""}}function hb(l){return l.errors.map(c=>{try{return c&&c.message?Jm(c.message):Jm(c)}catch{return""}}).filter(Boolean).join("; ")||l.name||"AggregateError"}let V=class Uh extends Error{static from(s,c,r,f,m,h){let p=s.message;!p&&x.isArray(s.errors)&&s.errors.length&&(p=hb(s));const v=new Uh(p,c||s.code,r,f,m);return Object.defineProperty(v,"cause",{__proto__:null,value:s,writable:!0,enumerable:!1,configurable:!0}),v.name=s.name,s.status!=null&&v.status==null&&(v.status=s.status),h&&Object.assign(v,h),v}constructor(s,c,r,f,m){super(s),Object.defineProperty(this,"message",{__proto__:null,value:s,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,c&&(this.code=c),r&&(this.config=r),f&&(this.request=f),m&&(this.response=m,this.status=m.status)}toJSON(){const s=this.config,c=s&&x.hasOwnProp(s,"redact")?s.redact:void 0,r=x.isArray(c)&&c.length>0?mb(s,c):x.toJSONObject(s);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ECONNREFUSED="ECONNREFUSED";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";V.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const yb=null,qh=100;function hr(l){return x.isPlainObject(l)||x.isArray(l)}function Bh(l){return x.endsWith(l,"[]")?l.slice(0,-2):l}function ir(l,s,c){return l?l.concat(s).map(function(f,m){return f=Bh(f),!c&&m?"["+f+"]":f}).join(c?".":""):s}function pb(l){return x.isArray(l)&&!l.some(hr)}const gb=x.toFlatObject(x,{},null,function(s){return/^is[A-Z]/.test(s)});function Hi(l,s,c){if(!x.isObject(l))throw new TypeError("target must be an object");s=s||new FormData,c=x.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(K,Q){return!x.isUndefined(Q[K])});const r=c.metaTokens,f=c.visitor||W,m=c.dots,h=c.indexes,p=c.Blob||typeof Blob<"u"&&Blob,v=c.maxDepth===void 0?qh:c.maxDepth,g=p&&x.isSpecCompliantForm(s),A=[];if(!x.isFunction(f))throw new TypeError("visitor must be a function");function N(C){if(C===null)return"";if(x.isDate(C))return C.toISOString();if(x.isBoolean(C))return C.toString();if(!g&&x.isBlob(C))throw new V("Blob is not supported. Use a Buffer instead.");if(x.isArrayBuffer(C)||x.isTypedArray(C)){if(g&&typeof p=="function")return new p([C]);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return C}function q(C){if(C>v)throw new V("Object is too deeply nested ("+C+" levels). Max depth: "+v,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function F(C,K){if(v===1/0)return JSON.stringify(C);const Q=[];return JSON.stringify(C,function(Ee,me){if(!x.isObject(me))return me;for(;Q.length&&Q[Q.length-1]!==this;)Q.pop();return Q.push(me),q(K+Q.length-1),me})}function W(C,K,Q){let ee=C;if(x.isReactNative(s)&&x.isReactNativeBlob(C))return s.append(ir(Q,K,m),N(C)),!1;if(C&&!Q&&typeof C=="object"){if(x.endsWith(K,"{}"))K=r?K:K.slice(0,-2),C=F(C,1);else if(x.isArray(C)&&pb(C)||(x.isFileList(C)||x.endsWith(K,"[]"))&&(ee=x.toArray(C)))return K=Bh(K),ee.forEach(function(me,ne){!(x.is Line truncated
`+h.map(ch).join(`
`):" "+ch(h[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+p,X.ERR_NOT_SUPPORT)}return f}const Jh={getAdapter:ov,adapters:Or};function cr(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new du(null,l)}function rr(l){return cr(l),l.headers=ft.from(l.headers),l.data=sr.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),Jh.getAdapter(l.adapter||fu.adapter,l)(l).then(function(r){cr(l),l.response=r;try{r.data=sr.call(l,l.transformResponse,r)}finally{delete l.response}return r.headers=ft.from(r.headers),r},function(r){if(!Xh(r)&&(cr(l),r&&r.response)){l.response=r.response;try{r.response.data=sr.call(l,l.transformResponse,r.response)}finally{delete l.response}r.response.headers=ft.from(r.response.headers)}return Promise.reject(r)})}const Li={};["object","boolean","number","function","string","symbol"].forEach((l,s)=>{Li[l]=function(r){return typeof r===l||"a"+(s<1?"n ":" ")+l}});const rh={};Li.transitional=function(s,c,r){function f(m,h){return"[Axios v"+Tr+"] Transitional option '"+m+"'"+h+(r?". "+r:"")}return(m,h,p)=>{if(s===!1)throw new X(f(h," has been removed"+(c?" in "+c:"")),X.ERR_DEPRECATED);return c&&!rh[h]&&(rh[h]=!0,console.warn(f(h," has been deprecated since v"+c+" and will be removed in the near future"))),s?s(m,h,p):!0}};Li.spelling=function(s){return(c,r)=>(console.warn(`${r} is likely a misspelling of ${s}`),!0)};function fv(l,s,c){if(typeof l!="object"||l===null)throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const r=Object.keys(l);let f=r.length;for(;f-- >0;){const m=r[f],h=Object.prototype.hasOwnProperty.call(s,m)?s[m]:void 0;if(h){const p=l[m],v=p===void 0||h(p,m,l);if(v!==!0)throw new X("option "+m+" must be "+v,X.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new X("Unknown option "+m,X.ERR_BAD_OPTION)}}const Ci={assertOptions:fv,validators:Li},ot=Ci.validators;let yn=class{constructor(s){this.defaults=s||{},this.interceptors={request:new Fm,response:new Fm}}async request(s,c){try{return await this._request(s,c)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const m=(()=>{if(!f.stack)return"";const h=f.stack.indexOf(`
`):" "+ch(h[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+p,V.ERR_NOT_SUPPORT)}return f}const Jh={getAdapter:dv,adapters:Or};function cr(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new du(null,l)}function rr(l){return cr(l),l.headers=ft.from(l.headers),l.data=sr.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),Jh.getAdapter(l.adapter||fu.adapter,l)(l).then(function(r){cr(l),l.response=r;try{r.data=sr.call(l,l.transformResponse,r)}finally{delete l.response}return r.headers=ft.from(r.headers),r},function(r){if(!Vh(r)&&(cr(l),r&&r.response)){l.response=r.response;try{r.response.data=sr.call(l,l.transformResponse,r.response)}finally{delete l.response}r.response.headers=ft.from(r.response.headers)}return Promise.reject(r)})}const Li={};["object","boolean","number","function","string","symbol"].forEach((l,s)=>{Li[l]=function(r){return typeof r===l||"a"+(s<1?"n ":" ")+l}});const rh={};Li.transitional=function(s,c,r){function f(m,h){return"[Axios v"+Tr+"] Transitional option '"+m+"'"+h+(r?". "+r:"")}return(m,h,p)=>{if(s===!1)throw new V(f(h," has been removed"+(c?" in "+c:"")),V.ERR_DEPRECATED);return c&&!rh[h]&&(rh[h]=!0,console.warn(f(h," has been deprecated since v"+c+" and will be removed in the near future"))),s?s(m,h,p):!0}};Li.spelling=function(s){return(c,r)=>(console.warn(`${r} is likely a misspelling of ${s}`),!0)};function mv(l,s,c){if(typeof l!="object"||l===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(l);let f=r.length;for(;f-- >0;){const m=r[f],h=Object.prototype.hasOwnProperty.call(s,m)?s[m]:void 0;if(h){const p=l[m],v=p===void 0||h(p,m,l);if(v!==!0)throw new V("option "+m+" must be "+v,V.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new V("Unknown option "+m,V.ERR_BAD_OPTION)}}const Ci={assertOptions:mv,validators:Li},ot=Ci.validators;let yn=class{constructor(s){this.defaults=s||{},this.interceptors={request:new Fm,response:new Fm}}async request(s,c){try{return await this._request(s,c)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const m=(()=>{if(!f.stack)return"";const h=f.stack.indexOf(`
`);return h===-1?"":f.stack.slice(h+1)})();try{if(!r.stack)r.stack=m;else if(m){const h=m.indexOf(`
`),p=h===-1?-1:m.indexOf(`
`,h+1),v=p===-1?"":m.slice(p+1);String(r.stack).endsWith(v)||(r.stack+=`
`+m)}}catch{}}throw r}}_request(s,c){typeof s=="string"?(c=c||{},c.url=s):c=s||{},c=bn(this.defaults,c);const{transitional:r,paramsSerializer:f,headers:m}=c;r!==void 0&&Ci.assertOptions(r,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean),legacyInterceptorReqResOrdering:ot.transitional(ot.boolean),advertiseZstdAcceptEncoding:ot.transitional(ot.boolean),validateStatusUndefinedResolves:ot.transitional(ot.boolean)},!1),f!=null&&(x.isFunction(f)?c.paramsSerializer={serialize:f}:Ci.assertOptions(f,{encode:ot.function,serialize:ot.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),Ci.assertOptions(c,{baseUrl:ot.spelling("baseURL"),withXsrfToken:ot.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let h=m&&x.merge(m.common,m[c.method]);m&&x.forEach(["delete","get","head","post","put","patch","query","common"],W=>{delete m[W]}),c.headers=ft.concat(h,m);const p=[];let v=!0;this.interceptors.request.forEach(function(V){if(typeof V.runWhen=="function"&&V.runWhen(c)===!1)return;v=v&&V.synchronous;const Y=c.transitional||Er;Y&&Y.legacyInterceptorReqResOrdering?p.unshift(V.fulfilled,V.rejected):p.push(V.fulfilled,V.rejected)});const g=[];this.interceptors.response.forEach(function(V){g.push(V.fulfilled,V.rejected)});let A,N=0,q;if(!v){const W=[rr.bind(this),void 0];for(W.unshift(...p),W.push(...g),q=W.length,A=Promise.resolve(c);N<q;)A=A.then(W[N++],W[N++]);return A}q=p.length;let F=c;for(;N<q;){const W=p[N++],V=p[N++];try{F=W?W(F):F}catch(Y){if(!V){A=Promise.reject(Y);break}try{const C=V.call(this,Y);x.isThenable(C)&&(A=Promise.resolve(C).then(()=>rr.call(this,F)))}catch(C){A=Promise.reject(C)}break}}if(!A)try{A=rr.call(this,F)}catch(W){A=Promise.reject(W)}for(N=0,q=g.length;N<q;)A=A.then(g[N++],g[N++]);return A}getUri(s){s=bn(this.defaults,s);const c=Gh(s.baseURL,s.url,s.allowAbsoluteUrls,s);return Lh(c,s.params,s.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(s){yn.prototype[s]=function(c,r){return this.request(bn(r||{},{method:s,url:c,data:r&&x.hasOwnProp(r,"data")?r.data:void 0}))}});x.forEach(["post","put","patch","query"],function(s){function c(r){return function(m,h,p){return this.request(bn(p||{},{method:s,headers:r?{"Content-Type":"multipart/form-data"}:{},url:m,data:h}))}}yn.prototype[s]=c(),s!=="query"&&(yn.prototype[s+"Form"]=c(!0))});let dv=class $h{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(m){c=m});const r=this;this.promise.then(f=>{if(!r._listeners)return;let m=r._listeners.length;for(;m-- >0;)r._listeners[m](f);r._listeners=null}),this.promise.then=f=>{let m;const h=new Promise(p=>{r.subscribe(p),m=p}).then(f);return h.cancel=function(){r.unsubscribe(m)},h},s(function(m,h,p){r.reason||(r.reason=new du(m,h,p),c(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const c=this._listeners.indexOf(s);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const s=new AbortController,c=r=>{s.abort(r)};return this.subscribe(c),s.signal.unsubscribe=()=>this.unsubscribe(c),s.signal}static source(){let s;return{token:new $h(function(f){s=f}),cancel:s}}};function mv(l){return function(c){return l.apply(null,c)}}function hv(l){return x.isObject(l)&&l.isAxiosError===!0}const pr={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCe Line truncated
`+m)}}catch{}}throw r}}_request(s,c){typeof s=="string"?(c=c||{},c.url=s):c=s||{},c=bn(this.defaults,c);const{transitional:r,paramsSerializer:f,headers:m}=c;r!==void 0&&Ci.assertOptions(r,{silentJSONParsing:ot.transitional(ot.boolean),forcedJSONParsing:ot.transitional(ot.boolean),clarifyTimeoutError:ot.transitional(ot.boolean),legacyInterceptorReqResOrdering:ot.transitional(ot.boolean),advertiseZstdAcceptEncoding:ot.transitional(ot.boolean),validateStatusUndefinedResolves:ot.transitional(ot.boolean)},!1),f!=null&&(x.isFunction(f)?c.paramsSerializer={serialize:f}:Ci.assertOptions(f,{encode:ot.function,serialize:ot.function},!0)),c.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?c.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:c.allowAbsoluteUrls=!0),Ci.assertOptions(c,{baseUrl:ot.spelling("baseURL"),withXsrfToken:ot.spelling("withXSRFToken")},!0),c.method=(c.method||this.defaults.method||"get").toLowerCase();let h=m&&x.merge(m.common,m[c.method]);m&&x.forEach(["delete","get","head","post","put","patch","query","common"],W=>{delete m[W]}),c.headers=ft.concat(h,m);const p=[];let v=!0;this.interceptors.request.forEach(function(X){if(typeof X.runWhen=="function"&&X.runWhen(c)===!1)return;v=v&&X.synchronous;const Y=c.transitional||Er;Y&&Y.legacyInterceptorReqResOrdering?p.unshift(X.fulfilled,X.rejected):p.push(X.fulfilled,X.rejected)});const g=[];this.interceptors.response.forEach(function(X){g.push(X.fulfilled,X.rejected)});let A,N=0,q;if(!v){const W=[rr.bind(this),void 0];for(W.unshift(...p),W.push(...g),q=W.length,A=Promise.resolve(c);N<q;)A=A.then(W[N++],W[N++]);return A}q=p.length;let F=c;for(;N<q;){const W=p[N++],X=p[N++];try{F=W?W(F):F}catch(Y){if(!X){A=Promise.reject(Y);break}try{const C=X.call(this,Y);x.isThenable(C)&&(A=Promise.resolve(C).then(()=>rr.call(this,F)))}catch(C){A=Promise.reject(C)}break}}if(!A)try{A=rr.call(this,F)}catch(W){A=Promise.reject(W)}for(N=0,q=g.length;N<q;)A=A.then(g[N++],g[N++]);return A}getUri(s){s=bn(this.defaults,s);const c=Gh(s.baseURL,s.url,s.allowAbsoluteUrls,s);return Lh(c,s.params,s.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(s){yn.prototype[s]=function(c,r){return this.request(bn(r||{},{method:s,url:c,data:r&&x.hasOwnProp(r,"data")?r.data:void 0}))}});x.forEach(["post","put","patch","query"],function(s){function c(r){return function(m,h,p){return this.request(bn(p||{},{method:s,headers:r?{"Content-Type":"multipart/form-data"}:{},url:m,data:h}))}}yn.prototype[s]=c(),s!=="query"&&(yn.prototype[s+"Form"]=c(!0))});let hv=class $h{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(m){c=m});const r=this;this.promise.then(f=>{if(!r._listeners)return;let m=r._listeners.length;for(;m-- >0;)r._listeners[m](f);r._listeners=null}),this.promise.then=f=>{let m;const h=new Promise(p=>{r.subscribe(p),m=p}).then(f);return h.cancel=function(){r.unsubscribe(m)},h},s(function(m,h,p){r.reason||(r.reason=new du(m,h,p),c(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const c=this._listeners.indexOf(s);c!==-1&&this._listeners.splice(c,1)}toAbortSignal(){const s=new AbortController,c=r=>{s.abort(r)};return this.subscribe(c),s.signal.unsubscribe=()=>this.unsubscribe(c),s.signal}static source(){let s;return{token:new $h(function(f){s=f}),cancel:s}}};function yv(l){return function(c){return l.apply(null,c)}}function pv(l){return x.isObject(l)&&l.isAxiosError===!0}const pr={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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCe Line truncated
+1
View File
@@ -0,0 +1 @@
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--gray-200) / 1)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:rgb(var(--gray-400) / 1)}input::placeholder,textarea::placeholder{opacity:1;color:rgb(var(--gray-400) / 1)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relativeLine truncated
-1
View File
@@ -1 +0,0 @@
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--gray-200) / 1)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:rgb(var(--gray-400) / 1)}input::placeholder,textarea::placeholder{opacity:1;color:rgb(var(--gray-400) / 1)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inLine truncated
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as o}from"./index-Bv-jXdOf.js";/**
import{c as o}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as o}from"./index-Bv-jXdOf.js";/**
import{c as o}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as e}from"./index-Bv-jXdOf.js";/**
import{c as e}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c}from"./index-Bv-jXdOf.js";/**
import{c}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as W,j as e,L as $,aD as A,bQ as H,X as R,r as x,b as z}from"./index-Bv-jXdOf.js";/**
import{c as W,j as e,L as $,aD as A,bQ as H,X as R,r as x,b as z}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
import{c as a}from"./index-Bv-jXdOf.js";/**
import{c as a}from"./index-AicSXhSk.js";/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

+2 -2
View File
@@ -24,8 +24,8 @@
}
})();
</script>
<script type="module" crossorigin src="/static/assets/index-Bv-jXdOf.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-D8Uzfrf4.css">
<script type="module" crossorigin src="/static/assets/index-AicSXhSk.js"></script>
<link rel="stylesheet" crossorigin href="/static/assets/index-BlMpFSYI.css">
</head>
<body>
<div id="root"></div>