Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f66fb6c122 | ||
|
|
577edbec79 | ||
|
|
f3bed57e4d | ||
|
|
71ca95d7ce | ||
|
|
29cff2321a | ||
|
|
8a804e782a | ||
|
|
f7194ab2e4 | ||
|
|
c015861147 | ||
|
|
4d3f67277f | ||
|
|
f4ea05e5b3 | ||
|
|
f03cb13c87 | ||
|
|
33ed6d2c12 | ||
|
|
7c2b5a95c9 | ||
|
|
3faa1fb570 | ||
|
|
d6ab25c363 |
No files matched your search
@@ -1,367 +0,0 @@
|
||||
# MANET NS-3 容器化仿真系统
|
||||
|
||||
**目标平台:x86_64 Linux**(需 Docker、`tun/tap/bridge` 内核模块)
|
||||
|
||||
每个 MANET 节点是一个独立 Docker 容器,所有节点间流量强制经过 NS-3 的 802.11s Mesh / AdHoc 信道模型(PHY/MAC/传播/路由)。80+ 仿真参数可通过 REST API 或 React Web 面板实时配置。
|
||||
|
||||
---
|
||||
|
||||
## 控制器启动方式
|
||||
|
||||
### Docker — 本地构建
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 构建镜像
|
||||
docker compose --profile build build node-image-builder
|
||||
docker compose build controller
|
||||
|
||||
# 启动控制器(--privileged --network host --pid host)
|
||||
docker compose up -d controller
|
||||
curl -s localhost:8000/api/health # {"ok":true}
|
||||
```
|
||||
|
||||
### Docker — 从 GHCR 拉取(无需源码)
|
||||
|
||||
```bash
|
||||
# 1. 拉取节点镜像
|
||||
docker pull ghcr.io/clawdbuddy/manet-node:latest
|
||||
docker tag ghcr.io/clawdbuddy/manet-node:latest manet-node:latest
|
||||
|
||||
# 2. 启动控制器
|
||||
docker run -d --name controller \
|
||||
--privileged --network host --pid host \
|
||||
--cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_ADMIN \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /var/run/netns:/var/run/netns \
|
||||
-v $(pwd)/results:/results \
|
||||
-v $(pwd)/config:/app/config \
|
||||
ghcr.io/clawdbuddy/manet-controller:latest
|
||||
|
||||
# 3. 检查健康
|
||||
curl localhost:8000/api/health
|
||||
|
||||
# 4. 启动仿真
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
```
|
||||
|
||||
> 远端主机使用 `host-manet-node` 时,远端也需提前拉取:
|
||||
> ```bash
|
||||
> ssh user@remote-host
|
||||
> docker pull ghcr.io/clawdbuddy/host-manet-node:main
|
||||
> ```
|
||||
|
||||
> 如需停止并删除控制器容器:
|
||||
> ```bash
|
||||
> docker stop controller && docker rm controller
|
||||
> ```
|
||||
|
||||
### Conda 物理主机
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 首次安装系统依赖 + conda 环境 + systemd 服务
|
||||
sudo bash setup-controller.sh
|
||||
|
||||
# 手动启动
|
||||
conda activate manet-controller
|
||||
PYTHONPATH=./controller MANET_WEB_DIR=./web-manager/dist \
|
||||
python3 -m uvicorn controller.api.main:app --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
### 独立可执行程序
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
bash build-controller.sh # 输出 dist/manet-controller/
|
||||
./dist/manet-controller/manet-controller
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 快速启动
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 1. 构建镜像(Docker 方式启动时才需执行)
|
||||
docker compose --profile build build node-image-builder
|
||||
docker compose build controller
|
||||
|
||||
# 2. 启动控制器
|
||||
docker compose up -d controller
|
||||
curl -s localhost:8000/api/health # {"ok":true}
|
||||
|
||||
# 3. 启动仿真(5 节点冒烟测试)
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 4. 打开 Web 面板
|
||||
# http://localhost:8000/
|
||||
|
||||
# 5. 停止仿真(自动清理容器/网桥/TAP)
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 架构
|
||||
|
||||
```
|
||||
每个节点独占一个 Linux bridge,桥接三个接口:
|
||||
|
||||
mesh-br-{id}
|
||||
├── mesh-veth{id} ← 容器 eth0(本地节点)
|
||||
├── mesh-tap-{id} → ns-3 TapBridge → MeshPointDevice → 802.11s
|
||||
└── vxlan-{id} ← 远端 VXLAN 隧道(仅 remote/host-manet 节点)
|
||||
|
||||
数据流:容器 eth0 → veth → bridge → tap → ns-3 PHY/MAC → tap → bridge → veth → 目标容器 eth0
|
||||
```
|
||||
|
||||
### 节点部署模式
|
||||
|
||||
| 模式 | host 值 | hostType | 说明 |
|
||||
|------|---------|----------|------|
|
||||
| 本地容器 | `"local"` | `"container"` | Docker 容器,eth0 → veth → tap → ns-3 |
|
||||
| 远端主机节点 | `"<IP>"` | `"host-manet"` | SSH 启动容器(`--net=host`),VXLAN 隧道跨主机 |
|
||||
| 远端容器 | `"<IP>"` | `"container"` | SSH 启动容器,VXLAN 隧道跨主机 |
|
||||
|
||||
### VXLAN 隧道(远端节点)
|
||||
|
||||
```
|
||||
远端主机 控制器主机
|
||||
vxlan-{id} ← UDP/4789 → vxlan-{id}
|
||||
VNI=100+id ↓
|
||||
MTU=1400 mesh-br-{id} → mesh-tap-{id} → ns-3
|
||||
IP=MANET_IP/24
|
||||
|
||||
隧道端点自动选取同一 L2 子网 IP(如 192.168.50.x),避免 NAT。
|
||||
静态 ARP 条目在启动时自动注入。
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 节点管理
|
||||
|
||||
### 注册远端主机
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/hosts/register \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"ip": "100.100.100.9",
|
||||
"sshUser": "binnary",
|
||||
"sshKey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...",
|
||||
"capacity": 1
|
||||
}'
|
||||
```
|
||||
|
||||
### 配置节点规格
|
||||
|
||||
```bash
|
||||
# 查看当前规格
|
||||
curl -s localhost:8000/api/nodes/specs | jq
|
||||
|
||||
# 更新规格
|
||||
curl -X PUT localhost:8000/api/nodes/specs \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"specs": [
|
||||
{"id": 0, "ip": "192.168.100.10", "role": "server", "host": "local"},
|
||||
{"id": 1, "ip": "192.168.100.11", "role": "server",
|
||||
"host": "100.100.100.9", "hostType": "host-manet"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
### 启动含远端节点的仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"config": {
|
||||
"nNodes": 5, "simulationTime": 180,
|
||||
"standard": "80211n-2.4GHz",
|
||||
"macMode": "mesh",
|
||||
"mobilityModel": "grid",
|
||||
"gridDeltaX": 50, "gridWidth": 5,
|
||||
"txPowerStart": 20, "pathLossModel": "FreeSpace"
|
||||
},
|
||||
"nodes": [
|
||||
{"id": 0, "ip": "192.168.100.10", "role": "server", "host": "local"},
|
||||
{"id": 1, "ip": "192.168.100.11", "role": "server",
|
||||
"host": "100.100.100.9", "hostType": "host-manet"},
|
||||
{"id": 2, "ip": "192.168.100.12", "role": "client", "host": "local"},
|
||||
{"id": 3, "ip": "192.168.100.13", "role": "client", "host": "local"},
|
||||
{"id": 4, "ip": "192.168.100.14", "role": "client", "host": "local"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
> **注意**:远端节点默认使用 `ghcr.io/clawdbuddy/host-manet-node:main` 镜像。
|
||||
> 控制器需 `--pid host`(docker-compose 已配置 `pid: host`)以访问宿主机 PID 空间。
|
||||
|
||||
---
|
||||
|
||||
## 测试
|
||||
|
||||
### WiFi 自动化测试套件
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 运行全部 8 个测试用例
|
||||
python3 tests/wifi_test_suite.py
|
||||
|
||||
# 运行单个测试
|
||||
python3 tests/wifi_test_suite.py tc_frequency_2_4g
|
||||
|
||||
# 生成测试报告
|
||||
python3 tests/generate_report.py
|
||||
# → test-results/wifi_test_report.md
|
||||
```
|
||||
|
||||
| 用例 | 说明 |
|
||||
|------|------|
|
||||
| `tc_frequency_2_4g` | 2.4GHz 频段连通性 |
|
||||
| `tc_frequency_5g` | 5GHz 频段连通性 |
|
||||
| `tc_bandwidth_20m` | 20MHz 带宽吞吐 |
|
||||
| `tc_bandwidth_40m` | 40MHz 带宽吞吐 |
|
||||
| `tc_distance_attenuation` | 距离衰减(500-2000m) |
|
||||
| `tc_adhoc_multihop` | 10 节点多跳 |
|
||||
| `tc_broadcast` | 广播覆盖 |
|
||||
| `tc_frequency_sweep` | 多信道遍历 |
|
||||
|
||||
### 后端单元测试
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# API 路由测试(Mock 模式,无需 Docker)
|
||||
python3 -m pytest controller/tests/test_api_routes.py -v
|
||||
|
||||
# Docker 管理器测试
|
||||
python3 -m pytest controller/tests/test_docker_mgr.py -v
|
||||
|
||||
# 网络操作测试
|
||||
python3 -m pytest controller/tests/test_netns.py -v
|
||||
```
|
||||
|
||||
### 前端检查
|
||||
|
||||
```bash
|
||||
cd manet-30ns3/web-manager
|
||||
npm run lint
|
||||
npm run build # tsc + vite build
|
||||
```
|
||||
|
||||
### 手动端到端验证
|
||||
|
||||
```bash
|
||||
# 1. 启动 5 节点仿真(4 本地 + 1 远程)
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 2. 检查节点状态
|
||||
curl -s localhost:8000/api/nodes | jq
|
||||
|
||||
# 3. 连通性测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 4. 吞吐测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.11 -t 5"}'
|
||||
|
||||
# 5. 停止
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
|
||||
# 6. 验证清理
|
||||
ip link | grep -E 'mesh-|vxlan-' || echo "clean"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## REST API 速查
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/api/health` | 健康检查 |
|
||||
| POST | `/api/sim/start` | 启动仿真(body: RunRequest) |
|
||||
| POST | `/api/sim/stop` | 停止仿真 |
|
||||
| GET | `/api/sim/status` | 仿真状态 |
|
||||
| GET | `/api/sim/presets` | 预设列表 |
|
||||
| GET | `/api/nodes` | 节点状态列表 |
|
||||
| GET | `/api/flows` | 流量统计 |
|
||||
| POST | `/api/nodes/{id}/exec` | 在节点中执行命令 |
|
||||
| GET | `/api/logs?node={id}` | 查看节点日志 |
|
||||
| GET | `/api/config` | 获取当前配置 |
|
||||
| PUT | `/api/config` | 更新配置 |
|
||||
| POST | `/api/hosts/register` | 注册远端主机 |
|
||||
| GET | `/api/hosts` | 主机列表 |
|
||||
| DELETE | `/api/hosts/{ip}` | 删除主机 |
|
||||
| GET | `/api/nodes/specs` | 节点规格列表 |
|
||||
| PUT | `/api/nodes/specs` | 更新节点规格 |
|
||||
| WS | `/ws/telemetry` | 实时遥测(5Hz) |
|
||||
|
||||
### 预设
|
||||
|
||||
| 预设 | 场景 | 参数 |
|
||||
|------|------|------|
|
||||
| `debug` | 5 节点冒烟 | mesh, grid 50m, FreeSpace, Tx=20dBm |
|
||||
| `default` | 用户目标 | mesh, 5000x5000, FreeSpace, Tx=30dBm |
|
||||
| `urban` | 高密度城市 | mesh, LogDistance n=3.5, Nakagami, 2km |
|
||||
| `rural` | 开阔野外 | mesh, FreeSpace, Grid 8km, 无衰落 |
|
||||
| `tactical` | 战术通信 | mesh, UHF 590MHz, TwoRayGround, Tx=37dBm |
|
||||
|
||||
---
|
||||
|
||||
## 目录结构
|
||||
|
||||
```
|
||||
manet-30ns3/
|
||||
├── controller/
|
||||
│ ├── api/ # FastAPI 路由(sim/nodes/config/hosts)
|
||||
│ ├── orchestrator/ # 核心:config/netns/docker_mgr/host_node_mgr/sim_runner
|
||||
│ └── tests/ # 后端单元测试
|
||||
├── node/ # 节点 Dockerfile + node-entrypoint.py
|
||||
├── web-manager/ # React 19 + Vite + TypeScript 前端
|
||||
├── tests/ # WiFi 自动化测试套件 + 报告生成器
|
||||
│ ├── wifi_test_suite.py
|
||||
│ ├── generate_report.py
|
||||
│ └── docs/ # 测试用例文档
|
||||
├── config/ # 运行时持久化(host_registry.json, node_specs.json)
|
||||
├── docker-compose.yml
|
||||
└── results/ # PCAP / ASCII trace 输出
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 故障排查
|
||||
|
||||
| 现象 | 排查 |
|
||||
|------|------|
|
||||
| 远端容器未启动 | 检查 `node_specs.json` 中节点 `host` 和 `hostType` 是否正确配置 |
|
||||
| docker pull 403 | daocloud 镜像代理限制 → 使用 GHCR 全路径镜像名 |
|
||||
| VXLAN 不通 | 检查两端 LAN IP 是否在同一子网(`ip route get 8.8.8.8`) |
|
||||
| ping 丢包 | 检查 ARP 表(`arp -n`),静态 ARP 是否注入 |
|
||||
| `--privileged` 缺失 | pyroute2 创建网桥/TAP 时报 `NetlinkError(1, 'Operation not permitted')` |
|
||||
| 容器残留 | `docker rm -f $(docker ps -aq --filter name=manet-node)` |
|
||||
|
||||
---
|
||||
|
||||
## 系统要求
|
||||
|
||||
- Docker ≥ 20.10, Linux x86_64
|
||||
- 内核模块:`tun`, `tap`, `bridge`
|
||||
- CPU ≥ 4 核, 内存 ≥ 4 GB
|
||||
- 控制器需 `--privileged --network host --pid host`
|
||||
BIN
Binary file not shown.
@@ -1,250 +0,0 @@
|
||||
// NS-3 MANET 仿真用户配置
|
||||
// 生成时间: 2026-05-18T01:34:27.310951
|
||||
|
||||
--- General [全局] ---
|
||||
// [全局] 节点数量:仿真中同时活跃的节点总数(2-100)
|
||||
nNodes = 5
|
||||
|
||||
// [全局] 仿真时长:单轮仿真的持续时间(秒)
|
||||
simulationTime = 300.0
|
||||
|
||||
// [全局] 随机种子:控制伪随机数生成器的初始状态
|
||||
seed = 1
|
||||
|
||||
// [全局] 运行编号:用于区分同一配置下的多次重复实验
|
||||
run = 1
|
||||
|
||||
// [全局] 日志组件:逗号分隔的 ns-3 LogComponent 名称
|
||||
logComponents = ""
|
||||
|
||||
--- PHY Model & Channel [全局] ---
|
||||
// [全局] 802.11 标准:决定调制方式和速率表
|
||||
standard = "80211n-2.4GHz"
|
||||
|
||||
// [全局] PHY 模型:yans(简化)或 spectrum(频谱级仿真)
|
||||
phyModel = "yans"
|
||||
|
||||
// [全局] 中心频率:工作频段的中心频率(MHz),默认 2412 MHz(WiFi 2.4GHz Channel 1)
|
||||
frequencyMhz = 2412
|
||||
|
||||
// [全局] 信道带宽:每个信道的带宽(MHz)
|
||||
channelWidthMhz = 20
|
||||
|
||||
// [全局] 数据速率:固定使用的 PHY 数据速率模式
|
||||
dataRate = "HtMcs7"
|
||||
|
||||
--- Propagation [全局] ---
|
||||
// [全局] 传播延迟模型:ConstantSpeed(光速)或 Random
|
||||
propagationDelay = "ConstantSpeed"
|
||||
|
||||
// [全局] 路径损耗模型:FreeSpace/LogDistance/TwoRayGround 等
|
||||
pathLossModel = "FreeSpace"
|
||||
|
||||
// [全局] 路径损耗指数:LogDistance 模型中的衰减指数
|
||||
pathLossExponent = 2.0
|
||||
|
||||
// [全局] 1m 参考损耗:参考距离 1 米处的路径损耗(dB)
|
||||
pathLossRefLoss = 46.6777
|
||||
|
||||
// [全局] 参考距离:计算参考损耗的距离(米)
|
||||
pathLossRefDistance = 1.0
|
||||
|
||||
// [全局] 启用衰落:是否叠加小尺度衰落模型
|
||||
enableFading = false
|
||||
|
||||
// [全局] 衰落模型:Nakagami(默认)或 Jakes
|
||||
fadingModel = "Nakagami"
|
||||
|
||||
// [全局] Nakagami M0:近距离(d < D1)的衰落参数
|
||||
nakagamiM0 = 1.5
|
||||
|
||||
// [全局] Nakagami M1:中距离(D1 <= d < D2)的衰落参数
|
||||
nakagamiM1 = 1.0
|
||||
|
||||
// [全局] Nakagami M2:远距离(d >= D2)的衰落参数
|
||||
nakagamiM2 = 0.75
|
||||
|
||||
// [全局] Nakagami 距离 D1:M0/M1 分界的距离阈值(米)
|
||||
nakagamiD1 = 50.0
|
||||
|
||||
// [全局] Nakagami 距离 D2:M1/M2 分界的距离阈值(米)
|
||||
nakagamiD2 = 100.0
|
||||
|
||||
// [全局] Rician K 因子:直射路径与散射路径的功率比(dB),仅 fadingModel=Rician 时生效
|
||||
ricianK = 9.0
|
||||
|
||||
--- Obstacles [全局] ---
|
||||
// [全局] 启用障碍物:是否叠加地形/障碍物模型(阴影 + 穿透 + 绕射)
|
||||
enableObstacles = false
|
||||
|
||||
// [全局] 阴影标准差:对数正态阴影衰落的标准差(dB)
|
||||
obstacleShadowingSigma = 4.0
|
||||
|
||||
// [全局] 穿透损耗:NLOS 路径的额外穿透损耗(dB)
|
||||
obstaclePenetrationLoss = 10.0
|
||||
|
||||
// [全局] 启用绕射:是否计算障碍物边缘的刀边绕射损耗
|
||||
obstacleDiffractionEnabled = true
|
||||
|
||||
// [全局] 障碍物配置:JSON 数组描述矩形障碍物 [{x,y,w,h,loss}]
|
||||
obstaclesJson = "[]"
|
||||
|
||||
--- Range [全局/动态可调] ---
|
||||
// [全局/动态可调] 目标覆盖范围:叠加在传播模型上的硬截断距离(米),运行时可通过 /api/env/range 修改
|
||||
rangeTargetM = 4000.0
|
||||
|
||||
--- MAC Network [全局] ---
|
||||
// [全局] SSID:网络标识符
|
||||
ssid = "adhoc-30ns3"
|
||||
|
||||
// [全局] BSSID:基本服务集标识符(MAC 格式)
|
||||
bssid = "00:00:00:00:AD:H0"
|
||||
|
||||
// [全局] MAC 模式:当前版本强制 mesh(802.11s),adhoc 已禁用
|
||||
macMode = "mesh"
|
||||
|
||||
// [全局] 速率控制算法:Arf/Aarf/Onoe/Constant/Minstrel
|
||||
rateControl = "Constant"
|
||||
|
||||
--- Routing [全局] ---
|
||||
// [全局] 路由协议:aodv/olsr/dsdv/dsr/none
|
||||
routingProtocol = "aodv"
|
||||
|
||||
// [全局] AODV Hello 间隔:邻居发现广播间隔(秒)
|
||||
aodvHelloInterval = 1.0
|
||||
|
||||
// [全局] AODV RREQ 重试:路由请求的最大重传次数
|
||||
aodvRreqRetries = 2
|
||||
|
||||
// [全局] AODV 活跃路由超时:未使用路由的过期时间(秒)
|
||||
aodvActiveRouteTimeout = 10.0
|
||||
|
||||
// [全局] AODV 删除周期:路由表项的清理周期(秒)
|
||||
aodvDeletePeriod = 5.0
|
||||
|
||||
// [全局] AODV 网络直径:预估的网络最大跳数
|
||||
aodvNetDiameter = 35
|
||||
|
||||
// [全局] AODV 启用 Hello:是否使用 Hello 消息维护邻居关系
|
||||
aodvEnableHello = true
|
||||
|
||||
// [全局] OLSR Hello 间隔:拓扑发现广播间隔(秒)
|
||||
olsrHelloInterval = 2.0
|
||||
|
||||
// [全局] OLSR TC 间隔:拓扑控制消息发送间隔(秒)
|
||||
olsrTcInterval = 5.0
|
||||
|
||||
// [全局] OLSR 意愿值:节点转发 TC 消息的意愿(0-7)
|
||||
olsrWillingness = 7
|
||||
|
||||
// [全局] DSDV 定期更新间隔:路由表广播间隔(秒)
|
||||
dsdvPeriodicUpdateInterval = 15.0
|
||||
|
||||
// [全局] DSDV 稳定时间:等待路由收敛的最长时间(秒)
|
||||
dsdvSettlingTime = 6.0
|
||||
|
||||
--- Mobility [全局] ---
|
||||
// [全局] 移动模型:random-walk/gauss-markov/grid/constant
|
||||
mobilityModel = "random-walk"
|
||||
|
||||
// [全局] 区域最小 X:仿真区域的左边界(米)
|
||||
mobilityMinX = 0.0
|
||||
|
||||
// [全局] 区域最大 X:仿真区域的右边界(米)
|
||||
mobilityMaxX = 5000.0
|
||||
|
||||
// [全局] 区域最小 Y:仿真区域的下边界(米)
|
||||
mobilityMinY = 0.0
|
||||
|
||||
// [全局] 区域最大 Y:仿真区域的上边界(米)
|
||||
mobilityMaxY = 5000.0
|
||||
|
||||
// [全局] 随机游走最小速度:节点最小移动速度(m/s)
|
||||
rwMinSpeed = 0.5
|
||||
|
||||
// [全局] 随机游走最大速度:节点最大移动速度(m/s)
|
||||
rwMaxSpeed = 3.0
|
||||
|
||||
// [全局] 随机游走距离:Distance 模式下每次改变方向前移动的距离(米)
|
||||
rwDistance = 200.0
|
||||
|
||||
// [全局] 随机游走模式:Time(按时间)或 Distance(按距离)
|
||||
rwMode = "Time"
|
||||
|
||||
// [全局] 随机游走时间:Time 模式下每次改变方向前的时间(秒)
|
||||
rwTime = 1.0
|
||||
|
||||
// [全局] 网格起始 X:Grid 布局的左上角 X 坐标(米)
|
||||
gridMinX = 100.0
|
||||
|
||||
// [全局] 网格起始 Y:Grid 布局的左上角 Y 坐标(米)
|
||||
gridMinY = 100.0
|
||||
|
||||
// [全局] 网格 X 间距:Grid 布局中节点水平间距(米)
|
||||
gridDeltaX = 800.0
|
||||
|
||||
// [全局] 网格 Y 间距:Grid 布局中节点垂直间距(米)
|
||||
gridDeltaY = 800.0
|
||||
|
||||
// [全局] 网格每行节点数:Grid 布局每行的节点数量
|
||||
gridWidth = 6
|
||||
|
||||
// [全局] 网格布局:RowFirst(按行填充)或 ColumnFirst(按列填充)
|
||||
gridLayout = "RowFirst"
|
||||
|
||||
// [全局] 高斯-马尔可夫 Alpha:速度记忆系数(0=完全随机, 1=直线运动)
|
||||
gmAlpha = 0.85
|
||||
|
||||
--- Tracing [全局] ---
|
||||
// [全局] PCAP 跟踪:是否生成 PCAP 抓包文件
|
||||
pcap = true
|
||||
|
||||
// [全局] ASCII 跟踪:是否生成 ASCII 文本跟踪文件
|
||||
ascii = false
|
||||
|
||||
// [全局] 流监控:是否启用 ns-3 FlowMonitor 端到端统计
|
||||
flowMonitor = true
|
||||
|
||||
// [全局] PCAP 文件名前缀:跟踪文件的路径前缀
|
||||
pcapPrefix = "manet-30nodes-adhoc"
|
||||
|
||||
// [全局] 移动性跟踪:是否记录节点位置轨迹
|
||||
enableMobilityTrace = false
|
||||
|
||||
--- PHY Device [节点] ---
|
||||
// [节点] 发射功率起始:最小发射功率(dBm),支持运行时单节点调整
|
||||
txPowerStart = 30.0
|
||||
|
||||
// [节点] 发射功率结束:最大发射功率(dBm),支持运行时单节点调整
|
||||
txPowerEnd = 30.0
|
||||
|
||||
// [节点] 发射功率等级数:功率控制的分级数量
|
||||
txPowerLevels = 1
|
||||
|
||||
// [节点] 接收灵敏度:可解调信号的最小接收功率(dBm),支持运行时单节点调整
|
||||
rxSensitivity = -92.0
|
||||
|
||||
// [节点] CCA 阈值:信道评估的忙碌判定门限(dBm)
|
||||
ccaThreshold = -82.0
|
||||
|
||||
// [节点] 天线增益:全向天线增益(dBi)
|
||||
antennaGain = 3.0
|
||||
|
||||
--- MAC Device [预留] ---
|
||||
// [预留] RTS/CTS 阈值:当前代码未接入 ns-3
|
||||
rtsCtsThreshold = 2200
|
||||
|
||||
// [预留] 分片阈值:当前代码未接入 ns-3
|
||||
fragmentationThreshold = 2200
|
||||
|
||||
// [预留] 非单播模式:当前代码未接入 ns-3
|
||||
nonUnicastMode = false
|
||||
|
||||
// [预留] 信标间隔:当前代码未接入 ns-3
|
||||
beaconInterval = 100
|
||||
|
||||
// [预留] 最小竞争窗口:当前代码未接入 ns-3
|
||||
cwMin = 15
|
||||
|
||||
// [预留] 最大竞争窗口:当前代码未接入 ns-3
|
||||
cwMax = 1023
|
||||
@@ -1,9 +0,0 @@
|
||||
[
|
||||
{
|
||||
"ip": "100.100.100.9",
|
||||
"ssh_user": "binnary",
|
||||
"ssh_key": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn\nNhAAAAAwEAAQAAAYEA3R43jmsBj4MjiDTGoDraAntNDQDLJq0P7ecVj07NSiEJPyl2P1uD\ngPJfDB+VzNzcnHIyu4zmXvuqNF7FbWkZ58R8Q+PfZBMeNY5wQJ9eFYcl6gpGzwmxiCYKP+\ntRcFt2gAQwjym2Lr726SfJeSAMdnxuaP2x1RhwqBRpK7dB1D6QqUvbbhBOpDyuwR+Dco55\n+N7DmyF36uEqOU3KtEGsT57GcIbvJNexghKtS8AacUAjLWRR8J9BsB2LraDHKl16sUzXof\nlArJhNjlfkDTlH7gnEF3tQru6GRuYcL2BP+1FS9WGzGCL7LD6cbkHeS3ZlVlsWUncalCx9\nM0BM7CkBBIghISbALFTr2srC0xkzu9rTQYRhQtFL6/azRjK2266DNOnrSMGLKh3JRKK12x\n/CPmHYE/Ofb3woCJXymDzPCAMtXNuO3a6KTfqd9nlik4uBIHpJmmNgMWvFkMLY9IUS/7qK\njF9cbUFZ/wBVtsjRY8NA35us53NUdOAP0NsdSezZAAAFkBTQDhsU0A4bAAAAB3NzaC1yc2\nEAAAGBAN0eN45rAY+DI4g0xqA62gJ7TQ0AyyatD+3nFY9OzUohCT8pdj9bg4DyXwwflczc\n3JxyMruM5l77qjRexW1pGefEfEPj32QTHjWOcECfXhWHJeoKRs8JsYgmCj/rUXBbdoAEMI\n8pti6+9uknyXkgDHZ8bmj9sdUYcKgUaSu3QdQ+kKlL224QTqQ8rsEfg3KOefjew5shd+rh\nKjlNyrRBrE+exnCG7yTXsYISrUvAGnFAIy1kUfCfQbAdi62gxypderFM16H5QKyYTY5X5A\n05R+4JxBd7UK7uhkbmHC9gT/tRUvVhsxgi+yw+nG5B3kt2ZVZbFlJ3GpQsfTNATOwpAQSI\nISEmwCxU69rKwtMZM7va00GEYULRS+v2s0YyttuugzTp60jBiyodyUSitdsfwj5h2BPzn2\n98KAiV8pg8zwgDLVzbjt2uik36nfZ5YpOLgSB6SZpjYDFrxZDC2PSFEv+6ioxfXG1BWf8A\nVbbI0WPDQN+brOdzVHTgD9DbHUns2QAAAAMBAAEAAAGAZM/LhY+M2RjxgL6LFm9uiPYdVY\nHYnUwG+LDEOB+14ge41wa4xj8bcBVQt07JNes2W8+HCNI/D+wOmCzjNzRVXsFK5IsGhPJg\ncgt8a0Idm5QP+anwyaECQ3AQeT741NCmcMw4NXVPffWLzhZZOXOeqwClOBH+W4j2h/MyVf\n+JsFJMExumMgKWUDPoet06yWZi/s/Vf6tdKIW7AgBRHCja/jwF/jTO4E3EvOh2ARTXGW4j\n+6SC5UE+qiR2U9V7KHoQRrRY0CqC1BS9NceE0Z5rJhOjGu77nfv3dOpsHNHIzekOPO9z0T\n8Ed6ok0Fktabf87qioYdl0KIpR59/xOere1NreZVlV+e6R5sq91rKNMIm08UdV72/akmd6\nZmaUb0ZmRz2bGoxPRdxiO5Ps5efGZx8KqUk9ng7T8HIeIdSl+q01I+OjErB6iApScbUaUQ\nJMOwYWUQwFvboB1x5h5MKVnAt2PIetnz9YDVqKxK/nzISb4QT4O0NFaMOltrSqVB2HAAAA\nwQC5EN43Q4ZRG7q4g0yImQPB1Kp/I0YYDQn+NHd0dHhgrM5iL1KUB6Z9vD8ellF5vqjHb3\nWWbSy8eqfLuMMrS/J5SSB4072wrsE1nN4/KYzo2OL3O0ocY4larG0TSxrCE+GXdTsQvcFe\nnOCiMcFUkpMSw4pF3ndZmQmHBGmFlaMrgjwkQv33KyA/xgaY2z1pqQmstxN1cppA7ob/YL\n65RV13Psv/w2rztAEMHvbcWN9mLq5qoqGNjoqQkOZk71t9F94AAADBAPP9Z85oItFYK3kP\n9pvGqMTOi2uVsKbo5+f1Ah++pt9qG44wHlwwef3OOCntCcsKPck7P31IdGVhDDJpR5xPea\ncI13GlFwrdcaOQReV5MCApHZ2Jb7IhdWW16CazDUXrlF+Gi7aRp3kN2P/SqL1ol1p9IRdG\n6pVcrlg56NZcKmVuI6nywMikGpABn2GeZVE22SR7jUeQkmZSNwFkl0ynuNkasFpZn+mNC3\nAY7uD9FkcwVSFW2ixD00yf5ZAqi5pBPwAAAMEA6ACYpKAsq1bPOWryhLOj2zGful8V2dqa\n0g8gkgrDrQiQqo9r3lxuHMEWUU/DqaJaT0O0E96a2zU7bW/62P0Qzp2PUFRmFN8pUxS7rL\nVLBhxbUuJW6SV5G6plmtcTh92xn9YiphUFwoSILN+A3Q65FfFAUz+O95nK9dBAGCx6VVVy\nAqa9S5DCflZCQOmbDONtVMIr7h2A6+C+WqhR/BB7NnPlukfCFYpfrd3wBRr9wsJOQQxYwj\n23iVKewzC+BrPnAAAAFGJpbm5hcnlARFhQNDgwMC00MDVDAQIDBAUG\n-----END OPENSSH PRIVATE KEY-----\n",
|
||||
"capacity": 1,
|
||||
"labels": []
|
||||
}
|
||||
]
|
||||
@@ -1,33 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"ip": "192.168.100.10",
|
||||
"role": "server",
|
||||
"host": "local"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"ip": "192.168.100.11",
|
||||
"role": "client",
|
||||
"host": "100.100.100.9",
|
||||
"hostType": "host-manet"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"ip": "192.168.100.12",
|
||||
"role": "client",
|
||||
"host": "local"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"ip": "192.168.100.13",
|
||||
"role": "client",
|
||||
"host": "local"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"ip": "192.168.100.14",
|
||||
"role": "client",
|
||||
"host": "local"
|
||||
}
|
||||
]
|
||||
@@ -1,250 +0,0 @@
|
||||
// NS-3 MANET 仿真用户配置
|
||||
// 生成时间: 2026-05-18T01:40:52.427125
|
||||
|
||||
--- General [全局] ---
|
||||
// [全局] 节点数量:仿真中同时活跃的节点总数(2-100)
|
||||
nNodes = 5
|
||||
|
||||
// [全局] 仿真时长:单轮仿真的持续时间(秒)
|
||||
simulationTime = 180.0
|
||||
|
||||
// [全局] 随机种子:控制伪随机数生成器的初始状态
|
||||
seed = 1
|
||||
|
||||
// [全局] 运行编号:用于区分同一配置下的多次重复实验
|
||||
run = 1
|
||||
|
||||
// [全局] 日志组件:逗号分隔的 ns-3 LogComponent 名称
|
||||
logComponents = ""
|
||||
|
||||
--- PHY Model & Channel [全局] ---
|
||||
// [全局] 802.11 标准:决定调制方式和速率表
|
||||
standard = "80211n-2.4GHz"
|
||||
|
||||
// [全局] PHY 模型:yans(简化)或 spectrum(频谱级仿真)
|
||||
phyModel = "yans"
|
||||
|
||||
// [全局] 中心频率:工作频段的中心频率(MHz),默认 2412 MHz(WiFi 2.4GHz Channel 1)
|
||||
frequencyMhz = 2412
|
||||
|
||||
// [全局] 信道带宽:每个信道的带宽(MHz)
|
||||
channelWidthMhz = 20
|
||||
|
||||
// [全局] 数据速率:固定使用的 PHY 数据速率模式
|
||||
dataRate = "HtMcs7"
|
||||
|
||||
--- Propagation [全局] ---
|
||||
// [全局] 传播延迟模型:ConstantSpeed(光速)或 Random
|
||||
propagationDelay = "ConstantSpeed"
|
||||
|
||||
// [全局] 路径损耗模型:FreeSpace/LogDistance/TwoRayGround 等
|
||||
pathLossModel = "FreeSpace"
|
||||
|
||||
// [全局] 路径损耗指数:LogDistance 模型中的衰减指数
|
||||
pathLossExponent = 2.0
|
||||
|
||||
// [全局] 1m 参考损耗:参考距离 1 米处的路径损耗(dB)
|
||||
pathLossRefLoss = 46.6777
|
||||
|
||||
// [全局] 参考距离:计算参考损耗的距离(米)
|
||||
pathLossRefDistance = 1.0
|
||||
|
||||
// [全局] 启用衰落:是否叠加小尺度衰落模型
|
||||
enableFading = false
|
||||
|
||||
// [全局] 衰落模型:Nakagami(默认)或 Jakes
|
||||
fadingModel = "Nakagami"
|
||||
|
||||
// [全局] Nakagami M0:近距离(d < D1)的衰落参数
|
||||
nakagamiM0 = 1.5
|
||||
|
||||
// [全局] Nakagami M1:中距离(D1 <= d < D2)的衰落参数
|
||||
nakagamiM1 = 1.0
|
||||
|
||||
// [全局] Nakagami M2:远距离(d >= D2)的衰落参数
|
||||
nakagamiM2 = 0.75
|
||||
|
||||
// [全局] Nakagami 距离 D1:M0/M1 分界的距离阈值(米)
|
||||
nakagamiD1 = 50.0
|
||||
|
||||
// [全局] Nakagami 距离 D2:M1/M2 分界的距离阈值(米)
|
||||
nakagamiD2 = 100.0
|
||||
|
||||
// [全局] Rician K 因子:直射路径与散射路径的功率比(dB),仅 fadingModel=Rician 时生效
|
||||
ricianK = 9.0
|
||||
|
||||
--- Obstacles [全局] ---
|
||||
// [全局] 启用障碍物:是否叠加地形/障碍物模型(阴影 + 穿透 + 绕射)
|
||||
enableObstacles = false
|
||||
|
||||
// [全局] 阴影标准差:对数正态阴影衰落的标准差(dB)
|
||||
obstacleShadowingSigma = 4.0
|
||||
|
||||
// [全局] 穿透损耗:NLOS 路径的额外穿透损耗(dB)
|
||||
obstaclePenetrationLoss = 10.0
|
||||
|
||||
// [全局] 启用绕射:是否计算障碍物边缘的刀边绕射损耗
|
||||
obstacleDiffractionEnabled = true
|
||||
|
||||
// [全局] 障碍物配置:JSON 数组描述矩形障碍物 [{x,y,w,h,loss}]
|
||||
obstaclesJson = "[]"
|
||||
|
||||
--- Range [全局/动态可调] ---
|
||||
// [全局/动态可调] 目标覆盖范围:叠加在传播模型上的硬截断距离(米),运行时可通过 /api/env/range 修改
|
||||
rangeTargetM = 4000.0
|
||||
|
||||
--- MAC Network [全局] ---
|
||||
// [全局] SSID:网络标识符
|
||||
ssid = "adhoc-30ns3"
|
||||
|
||||
// [全局] BSSID:基本服务集标识符(MAC 格式)
|
||||
bssid = "00:00:00:00:AD:H0"
|
||||
|
||||
// [全局] MAC 模式:当前版本强制 mesh(802.11s),adhoc 已禁用
|
||||
macMode = "mesh"
|
||||
|
||||
// [全局] 速率控制算法:Arf/Aarf/Onoe/Constant/Minstrel
|
||||
rateControl = "Constant"
|
||||
|
||||
--- Routing [全局] ---
|
||||
// [全局] 路由协议:aodv/olsr/dsdv/dsr/none
|
||||
routingProtocol = "aodv"
|
||||
|
||||
// [全局] AODV Hello 间隔:邻居发现广播间隔(秒)
|
||||
aodvHelloInterval = 1.0
|
||||
|
||||
// [全局] AODV RREQ 重试:路由请求的最大重传次数
|
||||
aodvRreqRetries = 2
|
||||
|
||||
// [全局] AODV 活跃路由超时:未使用路由的过期时间(秒)
|
||||
aodvActiveRouteTimeout = 10.0
|
||||
|
||||
// [全局] AODV 删除周期:路由表项的清理周期(秒)
|
||||
aodvDeletePeriod = 5.0
|
||||
|
||||
// [全局] AODV 网络直径:预估的网络最大跳数
|
||||
aodvNetDiameter = 35
|
||||
|
||||
// [全局] AODV 启用 Hello:是否使用 Hello 消息维护邻居关系
|
||||
aodvEnableHello = true
|
||||
|
||||
// [全局] OLSR Hello 间隔:拓扑发现广播间隔(秒)
|
||||
olsrHelloInterval = 2.0
|
||||
|
||||
// [全局] OLSR TC 间隔:拓扑控制消息发送间隔(秒)
|
||||
olsrTcInterval = 5.0
|
||||
|
||||
// [全局] OLSR 意愿值:节点转发 TC 消息的意愿(0-7)
|
||||
olsrWillingness = 7
|
||||
|
||||
// [全局] DSDV 定期更新间隔:路由表广播间隔(秒)
|
||||
dsdvPeriodicUpdateInterval = 15.0
|
||||
|
||||
// [全局] DSDV 稳定时间:等待路由收敛的最长时间(秒)
|
||||
dsdvSettlingTime = 6.0
|
||||
|
||||
--- Mobility [全局] ---
|
||||
// [全局] 移动模型:random-walk/gauss-markov/grid/constant
|
||||
mobilityModel = "grid"
|
||||
|
||||
// [全局] 区域最小 X:仿真区域的左边界(米)
|
||||
mobilityMinX = 0.0
|
||||
|
||||
// [全局] 区域最大 X:仿真区域的右边界(米)
|
||||
mobilityMaxX = 5000.0
|
||||
|
||||
// [全局] 区域最小 Y:仿真区域的下边界(米)
|
||||
mobilityMinY = 0.0
|
||||
|
||||
// [全局] 区域最大 Y:仿真区域的上边界(米)
|
||||
mobilityMaxY = 5000.0
|
||||
|
||||
// [全局] 随机游走最小速度:节点最小移动速度(m/s)
|
||||
rwMinSpeed = 0.5
|
||||
|
||||
// [全局] 随机游走最大速度:节点最大移动速度(m/s)
|
||||
rwMaxSpeed = 3.0
|
||||
|
||||
// [全局] 随机游走距离:Distance 模式下每次改变方向前移动的距离(米)
|
||||
rwDistance = 200.0
|
||||
|
||||
// [全局] 随机游走模式:Time(按时间)或 Distance(按距离)
|
||||
rwMode = "Time"
|
||||
|
||||
// [全局] 随机游走时间:Time 模式下每次改变方向前的时间(秒)
|
||||
rwTime = 1.0
|
||||
|
||||
// [全局] 网格起始 X:Grid 布局的左上角 X 坐标(米)
|
||||
gridMinX = 100.0
|
||||
|
||||
// [全局] 网格起始 Y:Grid 布局的左上角 Y 坐标(米)
|
||||
gridMinY = 100.0
|
||||
|
||||
// [全局] 网格 X 间距:Grid 布局中节点水平间距(米)
|
||||
gridDeltaX = 50.0
|
||||
|
||||
// [全局] 网格 Y 间距:Grid 布局中节点垂直间距(米)
|
||||
gridDeltaY = 800.0
|
||||
|
||||
// [全局] 网格每行节点数:Grid 布局每行的节点数量
|
||||
gridWidth = 5
|
||||
|
||||
// [全局] 网格布局:RowFirst(按行填充)或 ColumnFirst(按列填充)
|
||||
gridLayout = "RowFirst"
|
||||
|
||||
// [全局] 高斯-马尔可夫 Alpha:速度记忆系数(0=完全随机, 1=直线运动)
|
||||
gmAlpha = 0.85
|
||||
|
||||
--- Tracing [全局] ---
|
||||
// [全局] PCAP 跟踪:是否生成 PCAP 抓包文件
|
||||
pcap = true
|
||||
|
||||
// [全局] ASCII 跟踪:是否生成 ASCII 文本跟踪文件
|
||||
ascii = false
|
||||
|
||||
// [全局] 流监控:是否启用 ns-3 FlowMonitor 端到端统计
|
||||
flowMonitor = true
|
||||
|
||||
// [全局] PCAP 文件名前缀:跟踪文件的路径前缀
|
||||
pcapPrefix = "manet-30nodes-adhoc"
|
||||
|
||||
// [全局] 移动性跟踪:是否记录节点位置轨迹
|
||||
enableMobilityTrace = false
|
||||
|
||||
--- PHY Device [节点] ---
|
||||
// [节点] 发射功率起始:最小发射功率(dBm),支持运行时单节点调整
|
||||
txPowerStart = 20.0
|
||||
|
||||
// [节点] 发射功率结束:最大发射功率(dBm),支持运行时单节点调整
|
||||
txPowerEnd = 30.0
|
||||
|
||||
// [节点] 发射功率等级数:功率控制的分级数量
|
||||
txPowerLevels = 1
|
||||
|
||||
// [节点] 接收灵敏度:可解调信号的最小接收功率(dBm),支持运行时单节点调整
|
||||
rxSensitivity = -92.0
|
||||
|
||||
// [节点] CCA 阈值:信道评估的忙碌判定门限(dBm)
|
||||
ccaThreshold = -82.0
|
||||
|
||||
// [节点] 天线增益:全向天线增益(dBi)
|
||||
antennaGain = 3.0
|
||||
|
||||
--- MAC Device [预留] ---
|
||||
// [预留] RTS/CTS 阈值:当前代码未接入 ns-3
|
||||
rtsCtsThreshold = 2200
|
||||
|
||||
// [预留] 分片阈值:当前代码未接入 ns-3
|
||||
fragmentationThreshold = 2200
|
||||
|
||||
// [预留] 非单播模式:当前代码未接入 ns-3
|
||||
nonUnicastMode = false
|
||||
|
||||
// [预留] 信标间隔:当前代码未接入 ns-3
|
||||
beaconInterval = 100
|
||||
|
||||
// [预留] 最小竞争窗口:当前代码未接入 ns-3
|
||||
cwMin = 15
|
||||
|
||||
// [预留] 最大竞争窗口:当前代码未接入 ns-3
|
||||
cwMax = 1023
|
||||
@@ -7,7 +7,7 @@
|
||||
| 文档版本 | v2.0 |
|
||||
| 更新日期 | 2026-05-02 |
|
||||
| 适用范围 | manet-30ns3/web-manager/ + manet-30ns3/ 全栈 |
|
||||
| 状态 | 需求基线;实际支持范围与验证边界见 manet-30ns3/README.md |
|
||||
| 状态 | 已实现并验证 |
|
||||
|
||||
---
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
| 子功能 | 状态 | 说明 |
|
||||
|--------|------|------|
|
||||
| R1.1 独立网络命名空间 | ✅ | 每个节点 `network_mode="none"`,通过 veth 注入 |
|
||||
| R1.2 Linux 网桥聚合 | ✅ | 每节点独立网桥,仅连接本节点 veth 宿主端 + TAP,禁止共享桥绕过 ns-3 |
|
||||
| R1.2 Linux 网桥聚合 | ✅ | `br-ns3` 连接所有 veth 宿主端 + TAP 设备 |
|
||||
| R1.3 强制 ns-3 转发 | ✅ | 节点间无直接路径,所有帧必经 ns-3 PHY/MAC |
|
||||
| R1.4 IP 地址分配 | ✅ | 子网 `192.168.100.0/24`,节点 i → `.10+i` |
|
||||
| R1.5 节点角色定义 | ✅ | server(0)、gateway(15)、client(其余) |
|
||||
@@ -186,7 +186,7 @@ def load_config(*, file_path=None, overrides=None, preset=None):
|
||||
| urban | 16 节点、LogDistance n=3.5、Nakagami 衰落、2 km、AARF |
|
||||
| rural | 16 节点、FreeSpace、Grid 8×8 km、33 dBm、OLSR |
|
||||
| debug | 5 节点、adhoc、无路由、Grid 300×300 m、ASCII trace |
|
||||
| tactical | 10 节点、Grid 5×5 km、UHF 590 MHz、6 Mbps、4 km |
|
||||
| tactical | 8 节点、Grid 5×5 km、UHF 590 MHz、6 Mbps、4 km |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,849 +0,0 @@
|
||||
# MANET NS-3 容器化仿真系统 — 用户手册
|
||||
|
||||
## 目录
|
||||
|
||||
- [1. 概述](#1-概述)
|
||||
- [2. 系统要求](#2-系统要求)
|
||||
- [3. 安装与启动](#3-安装与启动)
|
||||
- [4. 快速开始:第一次仿真](#4-快速开始第一次仿真)
|
||||
- [5. Web 管理面板](#5-web-管理面板)
|
||||
- [6. 节点管理](#6-节点管理)
|
||||
- [7. 仿真配置详解](#7-仿真配置详解)
|
||||
- [8. 远端节点与 VXLAN](#8-远端节点与-vxlan)
|
||||
- [9. 测试](#9-测试)
|
||||
- [10. REST API 参考](#10-rest-api-参考)
|
||||
- [11. 架构原理](#11-架构原理)
|
||||
- [12. 故障排查](#12-故障排查)
|
||||
- [13. 常见问题](#13-常见问题)
|
||||
|
||||
---
|
||||
|
||||
## 1. 概述
|
||||
|
||||
本系统是一套**容器化 MANET(移动自组网)仿真平台**。核心能力是将每个 MANET 节点放入独立的 Docker 容器中,并强制所有节点间流量经过 NS-3 的 802.11 信道模型(PHY/MAC/传播/路由)。
|
||||
|
||||
### 核心特性
|
||||
|
||||
- **每节点独立容器**:`network_mode="none"`,通过 veth + TAP 接入 NS-3
|
||||
- **两种 MAC 模式**:802.11s Mesh(HWMP L2 多跳)和 802.11 AdHoc(IBSS 单跳)
|
||||
- **80+ 可配置参数**:频率、带宽、功率、路径损耗、移动模型、路由协议等
|
||||
- **实时遥测**:节点位置、邻居、吞吐量、延迟,通过 WebSocket 5Hz 推送
|
||||
- **Web 管理面板**:React 19 前端,实时查看操控
|
||||
- **远端节点支持**:通过 VXLAN 隧道将远端物理主机纳入仿真网络
|
||||
- **三种用户软件部署模式**:bind(挂载代码)、image(自定义镜像)、exec(运行时注入)
|
||||
|
||||
### 典型应用场景
|
||||
|
||||
| 场景 | 预设 | 说明 |
|
||||
|------|------|------|
|
||||
| 冒烟测试 | `debug` | 5 节点,Grid 50m,FreeSpace 路径损耗 |
|
||||
| 城市环境 | `urban` | 高密度,LogDistance n=3.5,Nakagami 衰落 |
|
||||
| 开阔野外 | `rural` | 大范围,FreeSpace,Grid 8km |
|
||||
| 战术通信 | `tactical` | UHF 590MHz,TwoRayGround,Tx=37dBm |
|
||||
| WiFi 频段测试 | `wifi-band-test-2.4g` / `wifi-band-test-5g` | 不同频段基准 |
|
||||
| 多跳测试 | `wifi-adhoc-multihop` | 大规模拓扑 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 系统要求
|
||||
|
||||
### 硬件要求
|
||||
|
||||
| 项目 | 最低 | 推荐 |
|
||||
|------|------|------|
|
||||
| 架构 | x86_64 (linux/amd64) | x86_64 |
|
||||
| CPU | 4 核 | 8 核+ |
|
||||
| 内存 | 4 GB | 16 GB |
|
||||
| 磁盘 | 10 GB | 50 GB(含 NS-3 构建)|
|
||||
|
||||
### 软件要求
|
||||
|
||||
- **操作系统**:Ubuntu 20.04 / 22.04(仅 Linux)
|
||||
- **Docker**:≥ 20.10
|
||||
- **内核模块**:`tun`、`tap`、`bridge`
|
||||
- **远端节点还需**:SSH 访问、远端主机 sudo 权限
|
||||
|
||||
### 内核模块加载
|
||||
|
||||
```bash
|
||||
sudo modprobe tun
|
||||
sudo modprobe tap
|
||||
sudo modprobe bridge
|
||||
lsmod | grep -E 'tun|tap|bridge'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. 安装与启动
|
||||
|
||||
本系统提供四种启动方式,按推荐程度排列:
|
||||
|
||||
### 方式一:Docker — 本地构建(推荐开发)
|
||||
|
||||
克隆仓库并在项目目录内构建镜像:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/clawdbuddy/adhoc.git
|
||||
cd adhoc/manet-30ns3
|
||||
|
||||
# 构建节点镜像
|
||||
docker compose --profile build build node-image-builder
|
||||
|
||||
# 构建控制器镜像(NS-3.47 + cppyy,耗时约 30-60 分钟)
|
||||
docker compose build controller
|
||||
|
||||
# 启动控制器
|
||||
docker compose up -d controller
|
||||
|
||||
# 验证健康
|
||||
curl localhost:8000/api/health
|
||||
```
|
||||
|
||||
控制器将监听 `0.0.0.0:8000`,Web 面板可直接访问 http://localhost:8000。
|
||||
|
||||
### 方式二:Docker — 从 GHCR 拉取(无需源码/构建)
|
||||
|
||||
直接从 GitHub Container Registry 拉取预构建镜像:
|
||||
|
||||
```bash
|
||||
# 1. 拉取节点镜像
|
||||
docker pull ghcr.io/clawdbuddy/manet-node:latest
|
||||
docker tag ghcr.io/clawdbuddy/manet-node:latest manet-node:latest
|
||||
|
||||
# 2. 启动控制器
|
||||
docker run -d --name controller \
|
||||
--privileged --network host --pid host \
|
||||
--cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_ADMIN \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /var/run/netns:/var/run/netns \
|
||||
-v $(pwd)/results:/results \
|
||||
-v $(pwd)/config:/app/config \
|
||||
ghcr.io/clawdbuddy/manet-controller:latest
|
||||
|
||||
# 3. 验证
|
||||
curl localhost:8000/api/health
|
||||
```
|
||||
|
||||
> **注意**:
|
||||
> - 首次启动需拉取镜像,取决于网络约 1-3 分钟
|
||||
> - 如需停止:`docker stop controller && docker rm controller`
|
||||
> - 远端主机使用 `host-manet-node` 时,远端也需提前拉取:`docker pull ghcr.io/clawdbuddy/host-manet-node:main`
|
||||
|
||||
### 方式三:Conda 物理主机部署
|
||||
|
||||
在有 Python 环境的物理主机上直接运行:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 首次安装(系统依赖 + conda 环境 + systemd 服务)
|
||||
sudo bash setup-controller.sh
|
||||
|
||||
# 手动启动
|
||||
conda activate manet-controller
|
||||
PYTHONPATH=./controller MANET_WEB_DIR=./web-manager/dist \
|
||||
python3 -m uvicorn controller.api.main:app --host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
### 方式四:独立可执行程序
|
||||
|
||||
使用 PyInstaller 打包为独立二进制:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
bash build-controller.sh
|
||||
./dist/manet-controller/manet-controller
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. 快速开始:第一次仿真
|
||||
|
||||
启动控制器后(任一种方式),按以下步骤运行第一次仿真:
|
||||
|
||||
### 4.1 启动仿真(5 节点冒烟测试)
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
```
|
||||
|
||||
预期返回:`{"ok":true, "running":true, "nNodes":5}`
|
||||
|
||||
### 4.2 查看仿真状态
|
||||
|
||||
```bash
|
||||
curl -s localhost:8000/api/sim/status | python3 -m json.tool
|
||||
```
|
||||
|
||||
输出示例:
|
||||
```json
|
||||
{
|
||||
"running": true,
|
||||
"elapsed": 12.34,
|
||||
"totalNodes": 5,
|
||||
"nodesOnline": 5,
|
||||
"preset": "debug",
|
||||
"macModeActual": "mesh"
|
||||
}
|
||||
```
|
||||
|
||||
### 4.3 查看节点列表
|
||||
|
||||
```bash
|
||||
curl -s localhost:8000/api/nodes | python3 -m json.tool
|
||||
```
|
||||
|
||||
每个节点显示:ID、IP、状态、角色、流量统计、邻居列表、坐标位置。
|
||||
|
||||
### 4.4 在节点中执行命令
|
||||
|
||||
```bash
|
||||
# 从节点 0 ping 节点 1
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 吞吐测试(需先在目标节点启动 iperf3 server)
|
||||
curl -s -X POST localhost:8000/api/nodes/1/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -s -D"}'
|
||||
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.11 -t 5"}'
|
||||
```
|
||||
|
||||
### 4.5 查看日志
|
||||
|
||||
```bash
|
||||
# 查看节点 0 的最近 50 条日志
|
||||
curl 'localhost:8000/api/logs?node=0&tail=50'
|
||||
```
|
||||
|
||||
### 4.6 查看流量统计
|
||||
|
||||
```bash
|
||||
curl -s localhost:8000/api/flows | python3 -m json.tool
|
||||
```
|
||||
|
||||
### 4.7 停止仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
```
|
||||
|
||||
停止后自动清理:Docker 容器、Linux bridge、veth 对、TAP 接口、VXLAN 隧道。
|
||||
|
||||
---
|
||||
|
||||
## 5. Web 管理面板
|
||||
|
||||
控制器自带 React Web 面板,浏览器打开 http://localhost:8000。
|
||||
|
||||
### 面板结构
|
||||
|
||||
| 标签页 | 功能 |
|
||||
|--------|------|
|
||||
| **Dashboard** | 仿真概览:状态、运行时间、节点数量、预设 |
|
||||
| **Config** | 80+ 参数配置表单,支持预设加载、.conf 导入导出 |
|
||||
| **Control** | 启停仿真、预设选择 |
|
||||
| **Topology** | Canvas 实时拓扑,节点位置、邻居关系、链路质量 |
|
||||
| **Logs** | 实时日志流,可按节点筛选 |
|
||||
| **Dynamic** | 运行时动态调整:发射功率、接收灵敏度、通信范围 |
|
||||
| **Nodes** | 节点规格管理、远端主机注册 |
|
||||
|
||||
### 使用流程
|
||||
|
||||
1. 打开 http://localhost:8000
|
||||
2. 在 **Nodes** 页配置节点规格(可跳过,使用默认)
|
||||
3. 在 **Config** 页调整参数或选择预设
|
||||
4. 在 **Control** 页点击 Start
|
||||
5. 在 **Dashboard** 查看进展
|
||||
6. 在 **Topology** 查看实时拓扑
|
||||
7. 仿真结束后点击 Stop
|
||||
|
||||
---
|
||||
|
||||
## 6. 节点管理
|
||||
|
||||
### 6.1 节点规格(Node Specs)
|
||||
|
||||
节点规格定义每个节点的身份和部署方式:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 0,
|
||||
"ip": "192.168.100.10",
|
||||
"role": "server",
|
||||
"host": "local",
|
||||
"hostType": "container",
|
||||
"image": "manet-node:latest"
|
||||
}
|
||||
```
|
||||
|
||||
| 字段 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `id` | int | — | 节点 ID,从 0 开始 |
|
||||
| `ip` | string | — | MANET 网络 IP 地址 |
|
||||
| `role` | string | `"client"` | `"server"` 或 `"client"` |
|
||||
| `host` | string | `"local"` | `"local"` 或远端主机 IP |
|
||||
| `hostType` | string | `"container"` | `"container"` 或 `"host-manet"` |
|
||||
| `image` | string | `"manet-node:latest"` | Docker 镜像标签 |
|
||||
|
||||
> **重要**:当 `hostType` 不指定时,默认为 `"container"`。如果需要远端主机直接作为节点(而非容器),必须设置 `"hostType": "host-manet"`。
|
||||
|
||||
通过 API 查看/更新:
|
||||
|
||||
```bash
|
||||
# 查看
|
||||
curl -s localhost:8000/api/nodes/specs | jq
|
||||
|
||||
# 更新
|
||||
curl -X PUT localhost:8000/api/nodes/specs \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"specs": [{"id":0, "ip":"192.168.100.10", "host":"local", "role":"server"}]}'
|
||||
```
|
||||
|
||||
### 6.2 节点部署模式
|
||||
|
||||
| 模式 | host 值 | hostType | 说明 |
|
||||
|------|---------|----------|------|
|
||||
| **本地容器** | `"local"` | `"container"` | 默认。控制器所在主机的 Docker 容器 |
|
||||
| **远端主机节点** | `"<IP>"` | `"host-manet"` | 远端物理主机直接作为节点(`--net=host`) |
|
||||
| **远端容器** | `"<IP>"` | `"container"` | 远端主机的 Docker 容器 |
|
||||
|
||||
### 6.3 用户软件部署
|
||||
|
||||
节点容器支持三种用户软件部署模式:
|
||||
|
||||
| 模式 | 说明 | 配置方式 |
|
||||
|------|------|----------|
|
||||
| **bind** | 挂载本地目录到容器 | `nodeMode: "bind", nodePath: "/path/to/app"` |
|
||||
| **image** | 使用自定义镜像 | `image: "my-app:latest"` |
|
||||
| **exec** | 启动后通过 API 注入 | 默认模式,通过 `/api/nodes/{id}/exec` 执行命令 |
|
||||
|
||||
### 6.4 镜像版本管理
|
||||
|
||||
每个节点可指定独立镜像标签。在 NodeManager UI 或 API 中设置:
|
||||
|
||||
```json
|
||||
{"id": 0, "image": "ghcr.io/clawdbuddy/manet-node:1.1.4"}
|
||||
```
|
||||
|
||||
当镜像不存在时,系统自动执行 `docker pull`。
|
||||
|
||||
---
|
||||
|
||||
## 7. 仿真配置详解
|
||||
|
||||
### 7.1 配置结构与优先级
|
||||
|
||||
配置优先级(高 → 低):
|
||||
1. 启动请求中的显式 `config` 覆盖
|
||||
2. `.conf` 配置文件
|
||||
3. 选定的 `preset`
|
||||
4. 内置默认值
|
||||
|
||||
### 7.2 预设(Presets)
|
||||
|
||||
预设是一组预定义的参数集合,方便快速启动不同场景:
|
||||
|
||||
```bash
|
||||
# 查看所有预设
|
||||
curl -s localhost:8000/api/sim/presets | jq
|
||||
|
||||
# 使用预设启动
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
```
|
||||
|
||||
| 预设 | 节点数 | 场景 | 关键参数 |
|
||||
|------|--------|------|----------|
|
||||
| `debug` | 5 | 冒烟测试 | mesh, Grid 50m, FreeSpace, 20dBm, 60s |
|
||||
| `default` | 10 | 用户默认 | mesh, 5000x5000, FreeSpace, 30dBm, 300s |
|
||||
| `urban` | 16 | 城市高密度 | mesh, LogDistance n=3.5, Nakagami, 2km |
|
||||
| `rural` | 8 | 开阔野外 | mesh, FreeSpace, Grid 8km, 无衰落 |
|
||||
| `tactical` | 8 | 战术通信 | mesh, UHF 590MHz, TwoRayGround, 37dBm |
|
||||
|
||||
### 7.3 主要配置参数
|
||||
|
||||
#### 网络与拓扑
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `nNodes` | int | 10 | 节点数量 |
|
||||
| `macMode` | string | `"adhoc"` | `"mesh"` 或 `"adhoc"` |
|
||||
| `standard` | string | `"80211n-2.4GHz"` | WiFi 标准 |
|
||||
| `mobilityModel` | string | `"grid"` | `"grid"`, `"random-walk"`, `"random-waypoint"` |
|
||||
| `simulationTime` | int | 300 | 仿真时长(秒)|
|
||||
|
||||
#### 无线信道
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `txPowerStart` | float | 20 | 发射功率(dBm) |
|
||||
| `txPowerEnd` | float | 20 | 发射功率(结束值,动态变化用)|
|
||||
| `pathLossModel` | string | `"FreeSpace"` | 路径损耗模型 |
|
||||
| `frequency` | int | 2412 | 信道频率(MHz)|
|
||||
| `channelWidth` | int | 20 | 信道带宽(MHz)|
|
||||
| `rxSensitivity` | float | -82 | 接收灵敏度(dBm)|
|
||||
| `communicationRange` | float | 150 | 通信范围(米)|
|
||||
|
||||
#### 路由
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `routingProtocol` | string | `"AODV"` | 路由协议 |
|
||||
| `enableBroadcast` | bool | false | 是否启用广播风暴 |
|
||||
| `meshHwmpMaxHops` | int | 32 | HWMP 最大跳数 |
|
||||
|
||||
#### 传播模型
|
||||
|
||||
| 参数 | 类型 | 默认值 | 说明 |
|
||||
|------|------|--------|------|
|
||||
| `enableFading` | bool | false | 是否启用衰落 |
|
||||
| `fadingModel` | string | `"Nakagami"` | 衰落模型 |
|
||||
| `shadowingEnabled` | bool | false | 是否启用阴影效应 |
|
||||
|
||||
### 7.4 运行时动态调整
|
||||
|
||||
仿真运行中可动态调整部分参数(无需停止仿真):
|
||||
|
||||
```bash
|
||||
# 调整所有节点的发射功率
|
||||
curl -X POST localhost:8000/api/dynamic/tx-power \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"value": 25}'
|
||||
|
||||
# 调整所有节点的接收灵敏度
|
||||
curl -X POST localhost:8000/api/dynamic/rx-sensitivity \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"value": -90}'
|
||||
```
|
||||
|
||||
支持动态调整的参数:发射功率、接收灵敏度、通信范围、信道频率、信道带宽。
|
||||
|
||||
---
|
||||
|
||||
## 8. 远端节点与 VXLAN
|
||||
|
||||
### 8.1 概念
|
||||
|
||||
当仿真需要跨多台物理主机时,通过 VXLAN 隧道将远端主机上的节点接入同一仿真网络:
|
||||
|
||||
```
|
||||
远端主机 100.100.100.9 控制器主机
|
||||
┌─────────────────────┐ ┌─────────────────────┐
|
||||
│ host-manet-node-1 │ │ mesh-br-1 │
|
||||
│ └── vxlan-1 ──UDP/4789── vxlan-1 ── mesh-tap-1 ──→ NS-3
|
||||
│ IP: 192.168.100.11 │ │ │
|
||||
└─────────────────────┘ └─────────────────────┘
|
||||
```
|
||||
|
||||
### 8.2 完整流程
|
||||
|
||||
#### 步骤 1:注册远端主机
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/hosts/register \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"ip": "100.100.100.9",
|
||||
"sshUser": "binnary",
|
||||
"sshKey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...",
|
||||
"capacity": 1
|
||||
}'
|
||||
```
|
||||
|
||||
SSH key 需为 OpenSSH 格式的私钥内容。容量(capacity)表示该主机可运行的最大节点数。
|
||||
|
||||
#### 步骤 2:配置节点规格
|
||||
|
||||
```bash
|
||||
curl -X PUT localhost:8000/api/nodes/specs \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"specs": [
|
||||
{"id": 0, "ip": "192.168.100.10", "host": "local"},
|
||||
{"id": 1, "ip": "192.168.100.11", "host": "100.100.100.9", "hostType": "host-manet"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
> **关键**:hostType 必须设置为 `"host-manet"`。默认值为 `"container"`,会导致 SSH 连接使用错误的用户身份。
|
||||
|
||||
#### 步骤 3:启动仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"preset": "debug",
|
||||
"nodes": [
|
||||
{"id": 0, "host": "local"},
|
||||
{"id": 1, "host": "100.100.100.9", "hostType": "host-manet"},
|
||||
{"id": 2, "host": "local"},
|
||||
{"id": 3, "host": "local"},
|
||||
{"id": 4, "host": "local"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
启动后自动执行:
|
||||
1. SSH 连接远端主机
|
||||
2. 拉取 `ghcr.io/clawdbuddy/host-manet-node:main` 镜像
|
||||
3. 在远端启动 `--net=host` 容器
|
||||
4. 检测两端 LAN IP(需在同一 L2 子网)
|
||||
5. 在两端创建 VXLAN 隧道(VNI=100+节点ID, MTU=1400)
|
||||
6. 将控制器端 VXLAN 接入对应 mesh bridge
|
||||
7. 注入所有节点的静态 ARP 条目
|
||||
|
||||
### 8.3 前提条件
|
||||
|
||||
| 条件 | 说明 |
|
||||
|------|------|
|
||||
| SSH 可达 | 控制器需能 SSH 到远端主机 |
|
||||
| sudo 权限 | 远端用户需有 sudo 权限(创建 VXLAN, Docker)|
|
||||
| 同一 L2 子网 | 两端 VXLAN 端点 IP 需在同一子网(避免 NAT)|
|
||||
| UDP/4789 开放 | 两端防火墙需允许 VXLAN 端口 |
|
||||
| Docker | 远端主机需安装 Docker |
|
||||
| 镜像预拉取 | 建议提前拉取:`docker pull ghcr.io/clawdbuddy/host-manet-node:main` |
|
||||
|
||||
### 8.4 验证远端节点
|
||||
|
||||
```bash
|
||||
# 查看 VXLAN 接口
|
||||
ip link show vxlan-1
|
||||
|
||||
# 在控制器端验证
|
||||
curl -s localhost:8000/api/nodes | jq '.[] | select(.id==1)'
|
||||
|
||||
# ping 测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 在远端主机验证
|
||||
ssh [email protected] "docker ps && ip link show vxlan-1 && ping -c 2 192.168.100.10"
|
||||
```
|
||||
|
||||
### 8.5 技术细节
|
||||
|
||||
- **隧道端点发现**:自动检测两端 LAN IP,保证在同一 L2 子网
|
||||
- **MTU 1400**:所有 VXLAN/TAP/veth 接口统一 MTU,避免分片
|
||||
- **静态 ARP**:由于 mesh + VXLAN 不转发广播,启动时注入所有节点对的静态 ARP
|
||||
- **自动清理**:仿真停止时,自动删除两端 VXLAN 和远端容器
|
||||
|
||||
---
|
||||
|
||||
## 9. 测试
|
||||
|
||||
### 9.1 WiFi 自动化测试套件
|
||||
|
||||
覆盖 8 个典型场景的端到端测试:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 运行全部测试
|
||||
python3 tests/wifi_test_suite.py
|
||||
|
||||
# 运行单个测试
|
||||
python3 tests/wifi_test_suite.py tc_frequency_2_4g
|
||||
|
||||
# 生成 HTML/Markdown 报告
|
||||
python3 tests/generate_report.py
|
||||
```
|
||||
|
||||
| 用例 | 验证目标 |
|
||||
|------|----------|
|
||||
| `tc_frequency_2_4g` | 2.4GHz 频段 5 节点连通性 |
|
||||
| `tc_frequency_5g` | 5GHz 频段 5 节点连通性 |
|
||||
| `tc_bandwidth_20m` | 20MHz 带宽吞吐量 |
|
||||
| `tc_bandwidth_40m` | 40MHz 带宽吞吐量 |
|
||||
| `tc_distance_attenuation` | 500-2000m 距离衰减 |
|
||||
| `tc_adhoc_multihop` | 10 节点多跳场景 |
|
||||
| `tc_broadcast` | 广播覆盖范围 |
|
||||
| `tc_frequency_sweep` | 多信道遍历测试 |
|
||||
|
||||
### 9.2 后端单元测试
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
python3 -m pytest controller/tests/ -v
|
||||
```
|
||||
|
||||
测试套件使用 Mock 模式,无需 Docker 或 NS-3 环境。
|
||||
|
||||
### 9.3 前端检查
|
||||
|
||||
```bash
|
||||
cd manet-30ns3/web-manager
|
||||
npm run lint # ESLint
|
||||
npm run build # TypeScript 类型检查 + Vite 构建
|
||||
```
|
||||
|
||||
### 9.4 手动端到端验证
|
||||
|
||||
```bash
|
||||
# 1. 启动仿真
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 2. 检查节点上线
|
||||
curl -s localhost:8000/api/nodes | jq '.[].status'
|
||||
|
||||
# 3. 连通性测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 4. 吞吐测试
|
||||
curl -s -X POST localhost:8000/api/nodes/1/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -s -D"}'
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.11 -t 5"}'
|
||||
|
||||
# 5. 停止
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
|
||||
# 6. 验证清理
|
||||
ip link | grep -E 'mesh-|vxlan-' || echo "clean"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 10. REST API 参考
|
||||
|
||||
### 10.1 仿真控制
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| POST | `/api/sim/start` | 启动仿真 |
|
||||
| POST | `/api/sim/stop` | 停止仿真 |
|
||||
| GET | `/api/sim/status` | 仿真状态 |
|
||||
| GET | `/api/sim/presets` | 预设列表 |
|
||||
|
||||
**`/api/sim/start` 请求体:**
|
||||
|
||||
```json
|
||||
{
|
||||
"preset": "debug",
|
||||
"config": {
|
||||
"nNodes": 5,
|
||||
"simulationTime": 180,
|
||||
"standard": "80211n-2.4GHz",
|
||||
"macMode": "mesh",
|
||||
"mobilityModel": "grid",
|
||||
"pathLossModel": "FreeSpace"
|
||||
},
|
||||
"nodes": [
|
||||
{"id": 0, "ip": "192.168.100.10", "host": "local"}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### 10.2 节点管理
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/api/nodes` | 节点状态列表 |
|
||||
| GET | `/api/nodes/specs` | 节点规格列表 |
|
||||
| PUT | `/api/nodes/specs` | 更新节点规格 |
|
||||
| POST | `/api/nodes/{id}/exec` | 在节点中执行命令 |
|
||||
| GET | `/api/logs?node={id}` | 查看节点日志 |
|
||||
|
||||
### 10.3 远端主机管理
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| POST | `/api/hosts/register` | 注册远端主机 |
|
||||
| GET | `/api/hosts` | 主机列表 |
|
||||
| DELETE | `/api/hosts/{ip}` | 删除主机 |
|
||||
|
||||
### 10.4 配置
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/api/config` | 获取当前配置 |
|
||||
| PUT | `/api/config` | 更新配置 |
|
||||
| GET | `/api/health` | 健康检查 |
|
||||
|
||||
### 10.5 遥测
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| WS | `/ws/telemetry` | WebSocket 实时遥测(5Hz)|
|
||||
|
||||
---
|
||||
|
||||
## 11. 架构原理
|
||||
|
||||
### 11.1 网络架构
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ 控制器主机 │
|
||||
│ ┌──────────────┐ ┌──────────────────────────────────┐ │
|
||||
│ │ Docker Socket │ │ NS-3 Simulator │ │
|
||||
│ │ │ │ ┌──────────┐ ┌──────────┐ │ │
|
||||
│ │ manet-node-0 │ │ │ Tap 0 │ │ Tap 1 │ ... │ │
|
||||
│ │ eth0 ──────┼────┼──┤ │ │ │ │ │
|
||||
│ │ │ │ └────┬─────┘ └────┬─────┘ │ │
|
||||
│ └──────────────┘ │ │ │ │ │
|
||||
│ │ ┌────▼─────┐ ┌────▼─────┐ │ │
|
||||
│ ┌──────────────┐ │ │ mesh-br-0│ │ mesh-br-1│ ... │ │
|
||||
│ │ manet-node-1 │ │ │ ┌─┴──┐ │ │ ┌─┴──┐ │ │ │
|
||||
│ │ eth0 ──────┼────┼──┤veth│TAP │ │ │veth│TAP │ │ │
|
||||
│ │ │ │ └────┘ │ │ └────┘ │ │ │
|
||||
│ └──────────────┘ └──────────────┘ └──────────────┘ │
|
||||
│ (mesh-tap-) │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
每个节点独占一个 Linux bridge(`mesh-br-{id}`),桥接三个接口:
|
||||
- **mesh-veth{id}** ← 容器 eth0(通过 veth pair 连接)
|
||||
- **mesh-tap-{id}** → NS-3 TapBridge → MeshPointDevice → 802.11 信道
|
||||
- **vxlan-{id}** ← 远端 VXLAN 隧道(仅远端节点)
|
||||
|
||||
### 11.2 数据流
|
||||
|
||||
```
|
||||
容器 eth0 → mesh-veth → mesh-br → mesh-tap → NS-3 TapBridge
|
||||
→ MeshPointDevice → 802.11s MAC → SpectrumWifiPhy
|
||||
→ 信道模型(路径损耗/衰落/阴影)
|
||||
→ 接收端 802.11s MAC → TapBridge → mesh-tap
|
||||
→ mesh-br → mesh-veth → 目标容器 eth0
|
||||
```
|
||||
|
||||
### 11.3 线程模型
|
||||
|
||||
```
|
||||
┌─────────────────────────────────┐
|
||||
│ 主进程 (uvicorn) │
|
||||
│ ┌───────────┐ ┌────────────┐ │
|
||||
│ │ asyncio │ │ asyncio │ │
|
||||
│ │ FastAPI │ │ Telemetry │ │
|
||||
│ │ 路由处理 │ │ 5Hz 广播 │ │
|
||||
│ └───────────┘ └────────────┘ │
|
||||
│ │
|
||||
│ ┌───────────────────────────┐ │
|
||||
│ │ 守护线程: SimRunner │ │
|
||||
│ │ NS-3 Simulator::Run │ │
|
||||
│ │ (GIL 释放, 纯 C++ 执行) │ │
|
||||
│ └───────────────────────────┘ │
|
||||
└─────────────────────────────────┘
|
||||
```
|
||||
|
||||
### 11.4 网络隔离保证
|
||||
|
||||
- 每个节点容器 `network_mode="none"`,无 Docker 默认网桥
|
||||
- 每节点独占一个 Linux bridge,仅连接该节点的 veth 和 TAP
|
||||
- 容器间无共享 L2 广播域
|
||||
- 跨节点流量**只能**通过 NS-3 PHY/MAC 模型转发
|
||||
|
||||
---
|
||||
|
||||
## 12. 故障排查
|
||||
|
||||
### 常见问题
|
||||
|
||||
| 现象 | 可能原因 | 解决 |
|
||||
|------|----------|------|
|
||||
| `docker run` 后控制器未启动 | 镜像拉取中 | 等待 1-2 分钟,`docker logs controller` 查看进展 |
|
||||
| 远端容器未启动 | 节点规格中缺少 `hostType: "host-manet"` | 在 node specs 中添加此字段 |
|
||||
| SSH 连接失败 | host registry 中 key 格式错误 | 确保私钥为 OpenSSH 格式,换行为 `\n` |
|
||||
| VXLAN 不通 | 两端 LAN IP 不在同一子网 | 检查两端 `ip route get 8.8.8.8` |
|
||||
| ping 丢包 100% | ARP 未注入 | 检查 ARP 表 `arp -n`,确认有 CM 标志的条目 |
|
||||
| 容器创建失败 | 镜像不存在 | 检查 node image tag,确保已 pull |
|
||||
| docker pull 403 | daocloud 镜像代理限制 | 使用 GHCR 全路径:`ghcr.io/clawdbuddy/manet-node:latest` |
|
||||
| `--privileged` 缺失 | 控制器未以特权模式运行 | 确认容器启动参数含 `--privileged` |
|
||||
| 仿真启动返回 500 | 参数校验失败 | 检查请求体 JSON 格式,确保 preset 名称正确 |
|
||||
| 控制器反复重启 | NS-3 崩溃 | 检查 `docker logs controller`,减少节点数或简化配置 |
|
||||
|
||||
### 诊断命令
|
||||
|
||||
```bash
|
||||
# 控制器日志
|
||||
docker logs controller
|
||||
|
||||
# 网络接口
|
||||
ip link | grep -E 'mesh-|vxlan-|tap-'
|
||||
ip addr show
|
||||
bridge link show
|
||||
|
||||
# ARP 表
|
||||
arp -n
|
||||
|
||||
# 容器列表
|
||||
docker ps -a --filter name=manet-node
|
||||
|
||||
# netns
|
||||
ls /var/run/netns/
|
||||
|
||||
# 远端主机
|
||||
ssh user@host "docker ps; ip link show vxlan-; ping -c 2 <MANET_IP>"
|
||||
```
|
||||
|
||||
### 清理残留
|
||||
|
||||
```bash
|
||||
# 停止仿真
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
|
||||
# 删除残留容器
|
||||
docker rm -f $(docker ps -aq --filter name=manet-node) 2>/dev/null
|
||||
|
||||
# 删除残留网络接口
|
||||
for iface in $(ip link | grep -oE 'mesh-(br|veth|tap)-[0-9]+|vxlan-[0-9]+'); do
|
||||
sudo ip link delete $iface 2>/dev/null
|
||||
done
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 13. 常见问题
|
||||
|
||||
### Q: 为什么需要 `--privileged --network host --pid host`?
|
||||
容器内部需要操作宿主机网络栈(创建 bridge、veth、TAP、netns),以及通过 Docker socket 管理其他容器。
|
||||
|
||||
### Q: 可以在 macOS 上运行吗?
|
||||
不能。本系统涉及 Linux 特有的内核网络操作(pyroute2、netns、TAP),仅在 Linux x86_64 上支持。
|
||||
|
||||
### Q: 仿真时间和真实时间的关系?
|
||||
NS-3 默认以仿真时间运行,速度取决于拓扑复杂度。典型场景:10 节点 mesh 约 1:20-1:30 倍速(300 秒仿真约需 10-15 秒真实时间)。
|
||||
|
||||
### Q: 如何持久化配置?
|
||||
主机注册信息和节点规格自动持久化到 `manet-30ns3/config/` 目录(JSON 文件),容器重启后自动恢复。
|
||||
|
||||
### Q: 哪些参数可以运行时动态调整?
|
||||
发射功率、接收灵敏度、通信范围、信道频率、信道带宽。其他参数需停止仿真后重新启动。
|
||||
|
||||
### Q: 最多支持多少个节点?
|
||||
取决于宿主机资源。典型限制:Docker 容器约 16-20 个,NS-3 仿真约 30-50 个。建议不超过 20 个节点。
|
||||
|
||||
### Q: 如何升级到新版本?
|
||||
```bash
|
||||
# Docker 方式:拉取新镜像,重建容器
|
||||
docker compose pull controller
|
||||
docker rm -f controller
|
||||
docker compose up -d controller
|
||||
|
||||
# GHCR 方式:拉取新镜像,删除旧容器,重新运行
|
||||
docker pull ghcr.io/clawdbuddy/manet-controller:latest
|
||||
docker stop controller && docker rm controller
|
||||
# 重新执行 docker run 命令
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
> 更多信息请参阅:
|
||||
> - `manet-30ns3/README.md` — 项目级文档
|
||||
> - `AGENTS.md` — 开发者笔记
|
||||
> - `docs/MANET-需求方案-v2.0.md` — 需求规格说明
|
||||
+405
-263
@@ -1,310 +1,452 @@
|
||||
# MANET NS-3 容器化仿真系统
|
||||
# NS-3 802.11s Mesh / AdHoc 容器化 MANET 仿真系统
|
||||
|
||||
**目标平台:x86_64 Linux**(需 Docker、`tun/tap/bridge` 内核模块)
|
||||
**目标平台:x86_64 Ubuntu 22.04**
|
||||
|
||||
每个 MANET 节点是一个独立 Docker 容器,所有节点间流量强制经过 NS-3 的 802.11s Mesh / AdHoc 信道模型(PHY/MAC/传播/路由)。80+ 仿真参数可通过 REST API 或 React Web 面板实时配置。
|
||||
**802.11s Mesh (HWMP) / 802.11 AdHoc (IBSS)** 网络仿真。每个 MANET 节点是一个独立的 Docker 容器,所有节点间流量被强制经过 NS-3 的信道模型。PHY/MAC/路由/移动模型参数均可通过 **REST 接口**或 **React Web 管理面板**自由配置。
|
||||
|
||||
---
|
||||
> ⚠️ **架构升级说明**:本项目已从旧的"C++ scratch + shell 脚本"流水线全面迁移到 **Python 控制器(FastAPI + ns-3 Python 绑定)**。节点容器入口也从 shell 脚本改为 Python(`node-entrypoint.py`)。详情见仓库根目录 `CLAUDE.md`。
|
||||
|
||||
## 快速启动
|
||||
## 核心架构:每节点一个独立容器
|
||||
|
||||
```
|
||||
+====================================================================+
|
||||
| 宿主机 (x86_64 Ubuntu 22.04) |
|
||||
| |
|
||||
| +-------------+ mesh-br-0 +-------------+ |
|
||||
| | Container-0 |<--mesh-veth0--+---+-mesh-tap-0------>| NS-3 |
|
||||
| | [节点 0] | | | 802.11s |
|
||||
| | eth0 | | | Mesh MAC |
|
||||
| +-------------+ | | + PHY |
|
||||
| | | |
|
||||
| +-------------+ mesh-br-1 | | 每帧由 |
|
||||
| | Container-1 |<--mesh-veth1--+---+-mesh-tap-1------>| Mesh / Adhoc |
|
||||
| | [节点 1] | | | MAC 处理, |
|
||||
| | eth0 | | | PHY 决定 |
|
||||
| +-------------+ | | 转发或丢弃 |
|
||||
| | | |
|
||||
| ... (最多 30 个节点) ... | +---------------------+ |
|
||||
| | ^ |
|
||||
| +-------------+ mesh-br-29 | | |
|
||||
| |Container-29 |<--mesh-veth29-+-mesh-tap-29------------------+ |
|
||||
| | [节点 29] | |
|
||||
| | eth0 | |
|
||||
| +-------------+ |
|
||||
| |
|
||||
| 关键点:每个容器独占自己的网络命名空间 + 独占的 Linux 桥。 |
|
||||
| 容器之间无法直接相互通信(无共享 L2 广播域)。 |
|
||||
| 所有跨节点流量必须经过 ns-3 802.11s Mesh / AdHoc 信道模型。 |
|
||||
+====================================================================+
|
||||
```
|
||||
|
||||
### 数据流路径
|
||||
|
||||
**节点 A (Container-0) → 节点 B (Container-1):**
|
||||
|
||||
```
|
||||
Container-0 用户应用
|
||||
→ Container-0 eth0 (192.168.100.10)
|
||||
→ vethns0(容器侧)
|
||||
→ mesh-veth0(宿主侧,挂在 mesh-br 上)
|
||||
→ mesh-br(Linux 桥)
|
||||
→ mesh-tap-0(ns-3 TapBridge 接口)
|
||||
→ [ns-3 802.11s Mesh (HWMP) / AdHocWifiMac 处理帧]
|
||||
→ [路径损耗模型:A 是否在 B 的覆盖范围内?]
|
||||
→ [衰落模型:是否因多径而丢包?]
|
||||
→ [信道模型决定:转发 或 丢弃]
|
||||
→ mesh-tap-1(若帧通过 PHY,单跳直达)
|
||||
→ mesh-tap-中间节点(若超出单跳,HWMP 自动多跳中继)
|
||||
→ mesh-br
|
||||
→ mesh-veth1
|
||||
→ vethns1(位于 Container-1 netns)
|
||||
→ Container-1 eth0
|
||||
→ Container-1 用户应用
|
||||
```
|
||||
|
||||
### 网络隔离保证
|
||||
|
||||
| 特性 | 实现方式 |
|
||||
|------|---------|
|
||||
| 独立网络命名空间 | 每个 Docker 容器 `network_mode="none"` + veth 注入 |
|
||||
| 容器之间无直接互通 | 没有共享网桥;每节点独占 mesh-br-{i} |
|
||||
| 强制经过 ns-3 | veth 与 TAP 隔离在独立桥内,跨节点流量只能由 ns-3 转发 |
|
||||
| 唯一 IP | 每个容器分配 `192.168.100.(10+N)` |
|
||||
| 唯一 MAC | ns-3 为每个节点分配独立的 WiFi MAC |
|
||||
|
||||
> **重要提示**:`TapBridge` 工作在 `UseBridge` 模式(**L2**)。安装在 ns-3 IP 协议栈上的 AODV/OLSR/DSDV/DSR 路由协议**只能看到 ns-3 自己的控制面流量**,看不到用户载荷。多跳转发用户载荷必须由容器内的应用软件实现;ns-3 仅模拟相邻无线电之间的信道。
|
||||
|
||||
### 平台支持
|
||||
|
||||
仅支持 **linux/amd64** —— 部署目标是 x86 Ubuntu 20.04 主机或同等 Linux VM。
|
||||
|
||||
> ⚠️ **运行时仅支持 Linux**。控制器需要在容器中调用 `pyroute2` 直接操作宿主网络(创建桥、veth、TAP,移动 netns),需要 `tun` / `tap` / `bridge` 内核模块。**无法在 macOS 宿主上跑**——请用 x86 Ubuntu 20.04 或等价 Linux 主机/虚机。
|
||||
|
||||
## 快速上手
|
||||
|
||||
### 推荐路径:Docker Compose + Web 管理面板
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 1. 构建镜像
|
||||
# 1. 构建镜像(节点镜像 + 控制器镜像)
|
||||
docker compose --profile build build node-image-builder
|
||||
docker compose build controller
|
||||
|
||||
# 2. 启动控制器
|
||||
# 2. 启动控制器(FastAPI 监听 :8000,特权模式 + host 网络)
|
||||
docker compose up -d controller
|
||||
curl -s localhost:8000/api/health # {"ok":true}
|
||||
curl -s localhost:8000/api/health # → {"ok": true}
|
||||
|
||||
# 3. 启动仿真(5 节点冒烟测试)
|
||||
# 3. 浏览器打开 http://localhost:8000/ 即可使用 React 管理面板
|
||||
```
|
||||
|
||||
### 使用 GitHub 预构建镜像(无需本地编译 NS-3)
|
||||
|
||||
GitHub Actions 已自动构建并推送镜像到 `ghcr.io`:
|
||||
|
||||
```bash
|
||||
# 1. 登录 GitHub Container Registry
|
||||
# 在 https://github.com/settings/tokens 生成具有 read:packages 权限的 Personal Access Token
|
||||
export CR_PAT=<your-token>
|
||||
echo $CR_PAT | docker login ghcr.io -u <your-github-username> --password-stdin
|
||||
|
||||
# 2. 拉取镜像
|
||||
docker pull ghcr.io/clawdbuddy/manet-controller:latest
|
||||
docker pull ghcr.io/clawdbuddy/manet-node:latest
|
||||
|
||||
# 3. 节点镜像必须本地 tag 为 manet-node:latest(控制器硬编码)
|
||||
docker tag ghcr.io/clawdbuddy/manet-node:latest manet-node:latest
|
||||
|
||||
# 4. 启动控制器
|
||||
# ⚠️ --privileged 绝对不能省略,否则 pyroute2 创建网桥/TAP/veth 会报
|
||||
# NetlinkError(1, 'Operation not permitted')
|
||||
docker run -d --name controller \
|
||||
--privileged \
|
||||
--network host \
|
||||
--pid host \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /var/run/netns:/var/run/netns \
|
||||
ghcr.io/clawdbuddy/manet-controller:latest
|
||||
|
||||
# 5. 验证
|
||||
curl -s localhost:8000/api/health
|
||||
```
|
||||
|
||||
关键参数说明:
|
||||
|
||||
| 参数 | 必要性 | 说明 |
|
||||
|------|--------|------|
|
||||
| `--privileged` | **必须** | 创建 Linux bridge / TAP / veth、移动 netns 需要完整特权 |
|
||||
| `--network host` | **必须** | 控制器直接操作宿主机网络栈 |
|
||||
| `--pid host` | 推荐 | 容器内 `ps` 能看到宿主机进程,便于调试 |
|
||||
| `-v /var/run/docker.sock` | **必须** | 控制器通过 Docker API 动态创建节点容器 |
|
||||
| `-v /var/run/netns` | **必须** | `pyroute2` 创建的 netns 符号链接需要持久化到宿主机路径 |
|
||||
|
||||
Web 面板功能:
|
||||
|
||||
- **Dashboard**:仿真概览、关键指标、节点统计
|
||||
- **Configuration**:80+ 参数表单、四种场景预设、导入/导出 `.conf`
|
||||
- **Topology**:实时网络拓扑可视化(Canvas 画布)、节点列表、流统计
|
||||
- **Realtime**:控制面板 + 拓扑联合视图
|
||||
- **Logs**:实时滚动的系统日志
|
||||
|
||||
### 通过 REST 接口直接驱动
|
||||
|
||||
```bash
|
||||
# 用预设启动一次仿真
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}' # 5 节点,60 秒,无衰落
|
||||
|
||||
# 4. 打开 Web 面板
|
||||
# http://localhost:8000/
|
||||
# 查看运行状态
|
||||
curl -s localhost:8000/api/sim/status
|
||||
|
||||
# 5. 停止仿真(自动清理容器/网桥/TAP)
|
||||
# 取节点列表 / 流量统计
|
||||
curl -s localhost:8000/api/nodes
|
||||
curl -s localhost:8000/api/flows
|
||||
|
||||
# 在指定节点容器中执行命令
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ip -4 addr show eth0"}'
|
||||
|
||||
# 取节点日志
|
||||
curl 'localhost:8000/api/logs?node=0&tail=50'
|
||||
|
||||
# 停止仿真(自动拆桥/拆 veth/拆 TAP/停容器)
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
```
|
||||
|
||||
---
|
||||
### 自定义配置
|
||||
|
||||
## 架构
|
||||
|
||||
```
|
||||
每个节点独占一个 Linux bridge,桥接三个接口:
|
||||
|
||||
mesh-br-{id}
|
||||
├── mesh-veth{id} ← 容器 eth0(本地节点)
|
||||
├── mesh-tap-{id} → ns-3 TapBridge → MeshPointDevice → 802.11s
|
||||
└── vxlan-{id} ← 远端 VXLAN 隧道(仅 remote/host-manet 节点)
|
||||
|
||||
数据流:容器 eth0 → veth → bridge → tap → ns-3 PHY/MAC → tap → bridge → veth → 目标容器 eth0
|
||||
```
|
||||
|
||||
### 节点部署模式
|
||||
|
||||
| 模式 | host 值 | hostType | 说明 |
|
||||
|------|---------|----------|------|
|
||||
| 本地容器 | `"local"` | `"container"` | Docker 容器,eth0 → veth → tap → ns-3 |
|
||||
| 远端主机节点 | `"<IP>"` | `"host-manet"` | SSH 启动容器(`--net=host`),VXLAN 隧道跨主机 |
|
||||
| 远端容器 | `"<IP>"` | `"container"` | SSH 启动容器,VXLAN 隧道跨主机 |
|
||||
|
||||
### VXLAN 隧道(远端节点)
|
||||
|
||||
```
|
||||
远端主机 控制器主机
|
||||
vxlan-{id} ← UDP/4789 → vxlan-{id}
|
||||
VNI=100+id ↓
|
||||
MTU=1400 mesh-br-{id} → mesh-tap-{id} → ns-3
|
||||
IP=MANET_IP/24
|
||||
|
||||
隧道端点自动选取同一 L2 子网 IP(如 192.168.50.x),避免 NAT。
|
||||
静态 ARP 条目在启动时自动注入。
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 节点管理
|
||||
|
||||
### 注册远端主机
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/hosts/register \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"ip": "100.100.100.9",
|
||||
"sshUser": "binnary",
|
||||
"sshKey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...",
|
||||
"capacity": 1
|
||||
}'
|
||||
```
|
||||
|
||||
### 配置节点规格
|
||||
|
||||
```bash
|
||||
# 查看当前规格
|
||||
curl -s localhost:8000/api/nodes/specs | jq
|
||||
|
||||
# 更新规格
|
||||
curl -X PUT localhost:8000/api/nodes/specs \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"specs": [
|
||||
{"id": 0, "ip": "192.168.100.10", "role": "server", "host": "local"},
|
||||
{"id": 1, "ip": "192.168.100.11", "role": "server",
|
||||
"host": "100.100.100.9", "hostType": "host-manet"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
### 启动含远端节点的仿真
|
||||
通过 REST 传入 `config` 字段即可覆盖任意参数(命名采用 camelCase,与 `manet-30ns3/web-manager/src/types/config.ts` 一致):
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"config": {
|
||||
"nNodes": 5, "simulationTime": 180,
|
||||
"standard": "80211n-2.4GHz",
|
||||
"macMode": "mesh",
|
||||
"mobilityModel": "grid",
|
||||
"gridDeltaX": 50, "gridWidth": 5,
|
||||
"txPowerStart": 20, "pathLossModel": "FreeSpace"
|
||||
},
|
||||
"nodes": [
|
||||
{"id": 0, "ip": "192.168.100.10", "role": "server", "host": "local"},
|
||||
{"id": 1, "ip": "192.168.100.11", "role": "server",
|
||||
"host": "100.100.100.9", "hostType": "host-manet"},
|
||||
{"id": 2, "ip": "192.168.100.12", "role": "client", "host": "local"},
|
||||
{"id": 3, "ip": "192.168.100.13", "role": "client", "host": "local"},
|
||||
{"id": 4, "ip": "192.168.100.14", "role": "client", "host": "local"}
|
||||
]
|
||||
}'
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"preset": "default",
|
||||
"config": {
|
||||
"nNodes": 20,
|
||||
"simulationTime": 180,
|
||||
"txPowerStart": 22,
|
||||
"pathLossExponent": 2.5,
|
||||
"routingProtocol": "olsr",
|
||||
"mobilityModel": "gauss-markov"
|
||||
},
|
||||
"nodes": [
|
||||
{"id": 0, "userAppMode": "exec"},
|
||||
{"id": 1, "userAppMode": "bind", "userAppBindPath": "/host/path/to/app"}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
> **注意**:远端节点默认使用 `ghcr.io/clawdbuddy/host-manet-node:main` 镜像。
|
||||
> 控制器需 `--pid host`(docker-compose 已配置 `pid: host`)以访问宿主机 PID 空间。
|
||||
|
||||
---
|
||||
|
||||
## 测试
|
||||
|
||||
### WiFi 自动化测试套件
|
||||
也可以通过 `PUT /api/config` 暂存"下一轮"配置:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 运行全部 8 个测试用例
|
||||
python3 tests/wifi_test_suite.py
|
||||
|
||||
# 运行单个测试
|
||||
python3 tests/wifi_test_suite.py tc_frequency_2_4g
|
||||
|
||||
# 生成测试报告
|
||||
python3 tests/generate_report.py
|
||||
# → test-results/wifi_test_report.md
|
||||
curl -X PUT localhost:8000/api/config \
|
||||
-H 'content-type: application/json' \
|
||||
-d @my-config.json
|
||||
```
|
||||
|
||||
| 用例 | 说明 |
|
||||
|------|------|
|
||||
| `tc_frequency_2_4g` | 2.4GHz 频段连通性 |
|
||||
| `tc_frequency_5g` | 5GHz 频段连通性 |
|
||||
| `tc_bandwidth_20m` | 20MHz 带宽吞吐 |
|
||||
| `tc_bandwidth_40m` | 40MHz 带宽吞吐 |
|
||||
| `tc_distance_attenuation` | 距离衰减(500-2000m) |
|
||||
| `tc_adhoc_multihop` | 10 节点多跳 |
|
||||
| `tc_broadcast` | 广播覆盖 |
|
||||
| `tc_frequency_sweep` | 多信道遍历 |
|
||||
> 仿真运行中 `PUT /api/config` 会被拒绝;先 stop 再下发。
|
||||
|
||||
### 后端单元测试
|
||||
## 配置预设
|
||||
|
||||
预设定义在 `controller/orchestrator/config.py:PRESETS`,并通过 `GET /api/sim/presets` 暴露:
|
||||
|
||||
| Preset | 适用场景 | 关键设置 |
|
||||
|--------|----------|----------|
|
||||
| `default` | 用户目标场景(adhoc) | AdhocWifiMac + SpectrumWifiPhy + Friis @ 2412 MHz WiFi + 6 节点 + 5 km × 5 km + 4 km LOS + AODV |
|
||||
| `urban` | 高密度城市(mesh) | LogDistance n=3.5、Nakagami 强衰落、Aarf、始终 RTS/CTS、2 km × 2 km |
|
||||
| `rural` | 开阔野外(mesh) | FreeSpace、关闭衰落、Grid 8 km × 8 km、关闭 RTS/CTS |
|
||||
| `debug` | 5 节点冒烟测试(adhoc) | adhoc 模式、routing=none、Grid 5×5 / 50 m 间距、200 m 视距、ASCII trace |
|
||||
|
||||
## 完整参数参考
|
||||
|
||||
> 参数权威源在 `controller/orchestrator/config.py:SimConfig`(Pydantic v2 模型,camelCase 别名);`manet-30ns3/web-manager/src/types/config.ts` 与之对齐。
|
||||
|
||||
### 通用参数
|
||||
|
||||
| 参数 | 默认值 | 说明 |
|
||||
|------|--------|------|
|
||||
| `nNodes` | 6 | AdHoc 节点数(2–16) |
|
||||
| `simulationTime` | 300 | 仿真时长(秒) |
|
||||
| `seed` | 1 | 随机种子 |
|
||||
| `run` | 1 | run 编号 |
|
||||
| `logComponents` | "" | 逗号分隔的 `NS_LOG` 组件 |
|
||||
|
||||
### PHY(物理层)
|
||||
|
||||
| 参数 | 默认值 | 取值 |
|
||||
|------|--------|------|
|
||||
| `standard` | `80211g` | `80211b`、`80211a`、`80211g`、`80211n-2.4GHz`、`80211n-5GHz`、`80211ac`、`80211ax-2.4GHz`、`80211ax-5GHz` |
|
||||
| `phyModel` | `spectrum` | `yans` 或 `spectrum`(默认走 `SpectrumWifiPhy + MultiModelSpectrumChannel`) |
|
||||
| `frequencyMhz` | 2412 | 中心频率(MHz);默认 2.4 GHz WiFi Channel 1 (2412 MHz),路径损耗按此频率算 |
|
||||
| `channelWidthMhz` | 20 | 信道带宽(MHz) |
|
||||
| `rangeTargetM` | 4000 | 期望视距覆盖半径(m),用于显示与冒烟检查 |
|
||||
| `dataRate` | `ErpOfdmRate24Mbps` | 任意 ns-3 wifi mode 字符串 |
|
||||
| `txPowerStart` / `txPowerEnd` | 30.0 | 发射功率(dBm) |
|
||||
| `txPowerLevels` | 1 | 功率级数 |
|
||||
| `rxSensitivity` | -92.0 | 接收灵敏度(dBm) |
|
||||
| `ccaThreshold` | -82.0 | CCA 能量检测门限(dBm) |
|
||||
| `antennaGain` | 3.0 | 天线增益(dBi) |
|
||||
|
||||
### 传播模型
|
||||
|
||||
| 参数 | 默认值 | 说明 |
|
||||
|------|--------|------|
|
||||
| `propagationDelay` | `ConstantSpeed` | `ConstantSpeed` 或 `Random` |
|
||||
| `pathLossModel` | `FreeSpace` | `LogDistance`、`FreeSpace`、`TwoRayGround`、`ThreeLogDistance`、`Cost231`、`Range`(`spectrum` PHY 默认 Friis @ 2412 MHz) |
|
||||
| `pathLossExponent` | 2.0 | 路径损耗指数 n(2 = 自由空间,3 = 城市,4 = 高密度城市) |
|
||||
| `pathLossRefLoss` | 46.6777 | 1m 处参考损耗(dB) |
|
||||
| `pathLossRefDistance` | 1.0 | 参考距离(m) |
|
||||
| `enableFading` | false | 是否启用衰落(mesh 默认关闭,让 4 km 视距预算稳定) |
|
||||
| `fadingModel` | `Nakagami` | `Nakagami` 或 `Jakes` |
|
||||
| `nakagamiM0` | 1.5 | d < d1 段的 m 因子(m<1 严重,m=1 Rayleigh,m>2 轻) |
|
||||
| `nakagamiM1` | 1.0 | d1 < d < d2 段的 m 因子 |
|
||||
| `nakagamiM2` | 0.75 | d > d2 段的 m 因子 |
|
||||
| `nakagamiD1` | 50.0 | 距离边界 1(m) |
|
||||
| `nakagamiD2` | 100.0 | 距离边界 2(m) |
|
||||
|
||||
### MAC
|
||||
|
||||
| 参数 | 默认值 | 说明 |
|
||||
|------|--------|------|
|
||||
| `macMode` | `adhoc` | `mesh`(802.11s + HWMP,L2 多跳)或 `adhoc`(IBSS,单跳广播域,多跳由上层路由完成) |
|
||||
| `ssid` | `adhoc-30ns3` | IBSS / mesh 网络名 |
|
||||
| `bssid` | `00:00:00:00:AD:H0` | IBSS BSSID(hex,仅 `adhoc` 模式) |
|
||||
| `rateControl` | `Arf` | `Arf`、`Aarf`、`Onoe`、`Constant`、`Minstrel` |
|
||||
| `rtsCtsThreshold` | 2200 | RTS/CTS 阈值(字节,**65535 = 关闭**) |
|
||||
| `fragmentationThreshold` | 2200 | 最大分片字节 |
|
||||
| `nonUnicastMode` | false | 广播/组播是否走固定速率 |
|
||||
| `beaconInterval` | 100 | Beacon 间隔(TU,1 TU = 1024 µs) |
|
||||
| `cwMin` | 15 | 最小竞争窗口 |
|
||||
| `cwMax` | 1023 | 最大竞争窗口 |
|
||||
|
||||
### 路由协议
|
||||
|
||||
| 参数 | 默认值 | 说明 |
|
||||
|------|--------|------|
|
||||
| `routingProtocol` | `aodv` | `aodv`、`olsr`、`dsdv`、`dsr`、`none` |
|
||||
| **AODV** | | |
|
||||
| `aodvHelloInterval` | 1.0 | Hello 间隔(秒) |
|
||||
| `aodvRreqRetries` | 2 | RREQ 重试次数 |
|
||||
| `aodvActiveRouteTimeout` | 3.0 | 路由过期时间(秒) |
|
||||
| `aodvDeletePeriod` | 5.0 | 路由删除周期(秒) |
|
||||
| `aodvNetDiameter` | 35 | 期望网络直径(跳数) |
|
||||
| `aodvEnableHello` | true | 是否启用 hello |
|
||||
| **OLSR** | | |
|
||||
| `olsrHelloInterval` | 2.0 | Hello 间隔(秒) |
|
||||
| `olsrTcInterval` | 5.0 | TC 间隔(秒) |
|
||||
| `olsrWillingness` | 7 | MPR willingness(0–7) |
|
||||
| **DSDV** | | |
|
||||
| `dsdvPeriodicUpdateInterval` | 15.0 | 周期更新间隔(秒) |
|
||||
| `dsdvSettlingTime` | 6 | settling 时间倍数 |
|
||||
|
||||
### 移动模型
|
||||
|
||||
| 参数 | 默认值 | 说明 |
|
||||
|------|--------|------|
|
||||
| `mobilityModel` | `random-walk` | `random-walk`、`gauss-markov`、`grid`、`constant` |
|
||||
| `mobilityMinX/MaxX` | 0.0/5000.0 | X 方向边界(m) |
|
||||
| `mobilityMinY/MaxY` | 0.0/5000.0 | Y 方向边界(m) |
|
||||
| **RandomWalk** | | |
|
||||
| `rwMinSpeed` / `rwMaxSpeed` | 0.5/3.0 | 速度区间(m/s) |
|
||||
| `rwDistance` | 200.0 | 转向前的距离(m) |
|
||||
| `rwMode` | `Time` | `Time` 或 `Distance` |
|
||||
| `rwTime` | 1.0 | 时间步长(s) |
|
||||
| **Grid** | | |
|
||||
| `gridDeltaX/Y` | 800.0/800.0 | 网格间距(m) |
|
||||
| `gridWidth` | 6 | 每行节点数 |
|
||||
| **GaussMarkov** | | |
|
||||
| `gmAlpha` | 0.85 | 记忆因子(0–1,越大相关性越强) |
|
||||
|
||||
### 跟踪 / 输出
|
||||
|
||||
| 参数 | 默认值 | 说明 |
|
||||
|------|--------|------|
|
||||
| `pcap` | true | 每节点 PCAP 抓包 |
|
||||
| `ascii` | false | ASCII 跟踪 |
|
||||
| `flowMonitor` | true | FlowMonitor 统计 |
|
||||
| `pcapPrefix` | `manet-30nodes-adhoc` | PCAP 文件名前缀 |
|
||||
| `enableMobilityTrace` | false | 移动 ASCII trace |
|
||||
|
||||
> **历史命名注意**:`pcap` / `ascii` 在旧版 `.conf` 中曾叫 `pcapTracing` / `asciiTracing`,旧 C++ 解析器会把它们静默丢弃。现在的 Python 解析器(`parse_conf_file`)显式接受这两个旧别名并自动转换。
|
||||
|
||||
## 用户软件加载模式(R7)
|
||||
|
||||
每个节点容器通过环境变量 `USER_APP_MODE` 选择加载方式(在 `nodes` 数组中按节点指定):
|
||||
|
||||
| 模式 | 机制 | 适用 |
|
||||
|------|------|------|
|
||||
| `bind` | bind 挂载用户目录到 `/opt/userapp`,运行 `${USER_APP_CMD:-/opt/userapp/run.sh}` | 迭代开发,宿主侧改代码即可 |
|
||||
| `image` | 以用户镜像启动;入口脚本检测 `/opt/userapp/run.sh` 已存在 | 可复现的打包软件 |
|
||||
| `exec`/`ssh` | 容器空转(sshd 或 `tail -f`);后端通过 `docker exec` / `ssh` 推送二进制 | 演示 / 运行时下发 |
|
||||
|
||||
示例:
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# API 路由测试(Mock 模式,无需 Docker)
|
||||
python3 -m pytest controller/tests/test_api_routes.py -v
|
||||
|
||||
# Docker 管理器测试
|
||||
python3 -m pytest controller/tests/test_docker_mgr.py -v
|
||||
|
||||
# 网络操作测试
|
||||
python3 -m pytest controller/tests/test_netns.py -v
|
||||
```
|
||||
|
||||
### 前端检查
|
||||
|
||||
```bash
|
||||
cd manet-30ns3/web-manager
|
||||
npm run lint
|
||||
npm run build # tsc + vite build
|
||||
```
|
||||
|
||||
### 手动端到端验证
|
||||
|
||||
```bash
|
||||
# 1. 启动 5 节点仿真(4 本地 + 1 远程)
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 2. 检查节点状态
|
||||
curl -s localhost:8000/api/nodes | jq
|
||||
|
||||
# 3. 连通性测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 4. 吞吐测试
|
||||
curl -s -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.11 -t 5"}'
|
||||
|
||||
# 5. 停止
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
|
||||
# 6. 验证清理
|
||||
ip link | grep -E 'mesh-|vxlan-' || echo "clean"
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"preset":"debug",
|
||||
"nodes":[
|
||||
{"id":0,"userAppMode":"bind","userAppBindPath":"/opt/myapp"},
|
||||
{"id":1,"userAppMode":"image","image":"my/app:latest"},
|
||||
{"id":2,"userAppMode":"exec","sshEnable":false}
|
||||
]
|
||||
}'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## REST API 速查
|
||||
|
||||
| 方法 | 路径 | 说明 |
|
||||
|------|------|------|
|
||||
| GET | `/api/health` | 健康检查 |
|
||||
| POST | `/api/sim/start` | 启动仿真(body: RunRequest) |
|
||||
| POST | `/api/sim/stop` | 停止仿真 |
|
||||
| GET | `/api/sim/status` | 仿真状态 |
|
||||
| GET | `/api/sim/presets` | 预设列表 |
|
||||
| GET | `/api/nodes` | 节点状态列表 |
|
||||
| GET | `/api/flows` | 流量统计 |
|
||||
| POST | `/api/nodes/{id}/exec` | 在节点中执行命令 |
|
||||
| GET | `/api/logs?node={id}` | 查看节点日志 |
|
||||
| GET | `/api/config` | 获取当前配置 |
|
||||
| PUT | `/api/config` | 更新配置 |
|
||||
| POST | `/api/hosts/register` | 注册远端主机 |
|
||||
| GET | `/api/hosts` | 主机列表 |
|
||||
| DELETE | `/api/hosts/{ip}` | 删除主机 |
|
||||
| GET | `/api/nodes/specs` | 节点规格列表 |
|
||||
| PUT | `/api/nodes/specs` | 更新节点规格 |
|
||||
| WS | `/ws/telemetry` | 实时遥测(5Hz) |
|
||||
|
||||
### 预设
|
||||
|
||||
| 预设 | 场景 | 参数 |
|
||||
|------|------|------|
|
||||
| `debug` | 5 节点冒烟 | mesh, grid 50m, FreeSpace, Tx=20dBm |
|
||||
| `default` | 用户目标 | mesh, 5000x5000, FreeSpace, Tx=30dBm |
|
||||
| `urban` | 高密度城市 | mesh, LogDistance n=3.5, Nakagami, 2km |
|
||||
| `rural` | 开阔野外 | mesh, FreeSpace, Grid 8km, 无衰落 |
|
||||
| `tactical` | 战术通信 | 10 节点 mesh, UHF 590MHz, FreeSpace, Tx=30dBm, 6Mbps |
|
||||
|
||||
---
|
||||
|
||||
## 目录结构
|
||||
## 文件结构
|
||||
|
||||
```
|
||||
manet-30ns3/
|
||||
├── controller/
|
||||
│ ├── api/ # FastAPI 路由(sim/nodes/config/hosts)
|
||||
│ ├── orchestrator/ # 核心:config/netns/docker_mgr/host_node_mgr/sim_runner
|
||||
│ └── tests/ # 后端单元测试
|
||||
├── node/ # 节点 Dockerfile + node-entrypoint.py
|
||||
├── web-manager/ # React 19 + Vite + TypeScript 前端
|
||||
├── tests/ # WiFi 自动化测试套件 + 报告生成器
|
||||
│ ├── wifi_test_suite.py
|
||||
│ ├── generate_report.py
|
||||
│ └── docs/ # 测试用例文档
|
||||
├── config/ # 运行时持久化(host_registry.json, node_specs.json)
|
||||
├── docker-compose.yml
|
||||
└── results/ # PCAP / ASCII trace 输出
|
||||
├─ controller/ # Python 控制器(主路径)
|
||||
│ ├─ orchestrator/ # config / netns / docker_mgr / sim_runner / telemetry
|
||||
│ └─ api/ # FastAPI 应用 + REST 路由 + /ws/telemetry
|
||||
├─ controller/ # 控制器 Dockerfile(含 NS-3.45 + Python 绑定)
|
||||
├─ node/ # 节点 Dockerfile + node-entrypoint.py
|
||||
├─ web-manager/ # React 19 + Vite + TS 源码 + 由 `npm run build` 产出的 dist/
|
||||
├─ docker-compose.yml # 控制器 + 节点镜像构建目标
|
||||
│
|
||||
└─ ns3-code/ # ⚠ 旧版 C++ scratch 程序(仅作历史参考)
|
||||
```
|
||||
|
||||
---
|
||||
## 多机部署(Phase 2,已设计未实现)
|
||||
|
||||
单机 MVP 是当前已落地形态。多机方案:
|
||||
|
||||
- 选定一台主机跑 ns-3 控制器,独占 `mesh-br` 与所有 TAP。
|
||||
- 其它主机仅跑节点容器;它们的 `mesh-veth*-h` 不接本地桥,而是接到 VXLAN 网卡,把 L2 平面延伸到控制器主机的 `mesh-br`。
|
||||
- 控制器主机:对每个远端 peer 执行 `bridge fdb append … dst <peer-ip> via vxlan100`;`netns.py` 与 `docker_mgr.py` 增加 `host` 参数,`POST /api/hosts/register` 用于远端注册。
|
||||
- 仍只有一个 ns-3 进程,仿真时间与 PHY 模型一致。
|
||||
|
||||
详见 `/Users/clawdbuddy/.claude/plans/melodic-puzzling-pebble.md` §9。
|
||||
|
||||
## 端到端验证(仅 Linux)
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 1. 构建
|
||||
docker compose --profile build build node-image-builder
|
||||
docker compose build controller
|
||||
# 预期:controller 镜像内 `python3 -c "from ns import ns"` 成功导入
|
||||
|
||||
# 2. 起服
|
||||
docker compose up -d controller
|
||||
curl -s localhost:8000/api/health # {"ok": true}
|
||||
|
||||
# 3. 启动 5 节点冒烟
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
ip link | grep -E 'mesh-br|mesh-tap|mesh-veth' # 应能看到 mesh-br、5 个 mesh-tap-{i}、5 个 mesh-veth{i}
|
||||
docker ps | grep manet-node # 5 个节点容器
|
||||
|
||||
# 4. 连通性
|
||||
docker exec manet-node-0 ping -c 3 192.168.100.11
|
||||
docker exec manet-node-0 iperf3 -c 192.168.100.14 -t 5
|
||||
|
||||
# 5. 遥测
|
||||
# 打开 http://localhost:8000/ → React UI 加载
|
||||
# Topology 页显示 5 个节点;iperf3 起来约 10 秒后 FlowStats 更新
|
||||
|
||||
# 6. 拆除
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
ip link | grep -E 'mesh-br|mesh-tap|mesh-veth' || echo "clean"
|
||||
```
|
||||
|
||||
## 构建缓存
|
||||
|
||||
两个 Dockerfile(`node/Dockerfile.node`、`controller/Dockerfile.controller`)都使用 `ccache`(挂载到 `/ccache`,10 GB 上限),第二次起的构建会快很多。
|
||||
|
||||
## 系统要求
|
||||
|
||||
- Docker ≥ 20.10
|
||||
- Linux 内核加载 `tun`、`tap`、`bridge`
|
||||
- **x86_64**(linux/amd64)宿主
|
||||
|
||||
| 资源 | 推荐 | 备注 |
|
||||
|------|------|------|
|
||||
| CPU | 4 核+ | `pip install ns3` 期间可能编译少量扩展 |
|
||||
| 内存 | 4 GB+ | 镜像构建峰值会用到 ~3 GB |
|
||||
| 编译耗时 | ~5–10 min | ccache 命中后通常 < 1 min |
|
||||
|
||||
## 故障排查
|
||||
|
||||
| 现象 | 排查 |
|
||||
|------|------|
|
||||
| 远端容器未启动 | 检查 `node_specs.json` 中节点 `host` 和 `hostType` 是否正确配置 |
|
||||
| docker pull 403 | daocloud 镜像代理限制 → 使用 GHCR 全路径镜像名 |
|
||||
| VXLAN 不通 | 检查两端 LAN IP 是否在同一子网(`ip route get 8.8.8.8`) |
|
||||
| ping 丢包 | 检查 ARP 表(`arp -n`),静态 ARP 是否注入 |
|
||||
| `--privileged` 缺失 | pyroute2 创建网桥/TAP 时报 `NetlinkError(1, 'Operation not permitted')` |
|
||||
| 容器残留 | `docker rm -f $(docker ps -aq --filter name=manet-node)` |
|
||||
| `/api/health` 返回错误 | `docker logs controller` 看是否绑定 socket / 启动成功 |
|
||||
| 容器之间不通 | 仿真未启动;ns-3 不跑时桥本身不会转发——属于设计内行为 |
|
||||
| `ip link` 看不到 `mesh-br` | 仿真未启动,或控制器创建桥失败(缺权限/缺内核模块) |
|
||||
| ns-3 build 出错 `unknown module` | 重建控制器镜像:`docker compose build --no-cache controller` |
|
||||
| 吞吐 0 | 试试 `rtsCtsThreshold=65535`、检查 `pathLossExponent` 是否过大 |
|
||||
| 仿真很慢 | 减小 `nNodes`、用 `mobilityModel=grid`、关掉 `ascii` |
|
||||
| `exec format error` | 镜像是为 amd64 构建的;确认主机也是 x86_64 |
|
||||
| `NetlinkError(1, 'Operation not permitted')` | 容器缺少 `--privileged`。删除容器后重新用 `--privileged` 启动 |
|
||||
| ccache 不生效 | 检查 `CCACHE_DIR` 卷挂载(`-v /ccache:/ccache`) |
|
||||
|
||||
---
|
||||
## 许可证
|
||||
|
||||
## 系统要求
|
||||
|
||||
- Docker ≥ 20.10, Linux x86_64
|
||||
- 内核模块:`tun`, `tap`, `bridge`
|
||||
- CPU ≥ 4 核, 内存 ≥ 4 GB
|
||||
- 控制器需 `--privileged --network host --pid host`
|
||||
|
||||
|
||||
## 无线配置与统计的实现边界
|
||||
|
||||
- 标准、速率控制、RTS/CTS、分片阈值、竞争窗口和带宽作用于实际 WiFi 接口。MeshHelper 安装阶段使用合法的 5 GHz 代理频道,安装完成后设置目标频段与带宽。
|
||||
- `simulationTime` 按仿真时间自动结束;会话随后清理节点容器与网络设备。实时模式使用 BestEffort,主机过载或 cppyy 首次编译时可能落后于墙钟。
|
||||
- 动态命令与 ns-3 状态采样都在仿真线程执行;API 读取快照,不跨线程操作模型对象。队列满或等待超时会报告失败。
|
||||
- `PUT /api/config` 原子保存下次启动的配置;运行中的修改使用 `/api/env/*` 或 WebSocket 参数接口。前端读取初始配置成功后才允许自动保存。
|
||||
- 当前 cppyy 路线对 AdHoc + TAP 组合显式拒绝启动,以避免已知崩溃;AdHoc + onoff 与 Mesh 模式保留。完整容器 AdHoc 支持仍需后续绑定修复,不能视作已验收。
|
||||
- WiFi 动态频点须与当前标准、带宽匹配。UHF 仍是传播损耗预算模拟,实际调制使用 WiFi 代理载波;遥测 `env.phyFrequencyMhz` 返回实际载波,`env.frequencyMhz` 返回预算频率。
|
||||
- TAP 业务流量通过独立接口上的 AF_PACKET 被动采集,当前覆盖已知节点之间的单播 IPv4。延迟单位为毫秒,吞吐单位为 Mbps(自首次发送起累计平均),丢包为发送 10 秒后仍未观察到接收的包。`measurement.captureDrops` 标记采集器自身丢帧,出现丢帧时统计不完整。IPv6、广播端到端统计未实现。
|
||||
- 拓扑邻居来自实际已建立的 Mesh peer;`/api/sim/path` 是该 peer 图上的 BFS 路径,不代表 HWMP 实际选路或业务成功交付。
|
||||
|
||||
内部流量冒烟验证(不需要 Docker,不创建宿主网络接口):
|
||||
|
||||
```bash
|
||||
PYTHONPATH=. python3 tests/smoke_sim_runner.py
|
||||
```
|
||||
|
||||
此冒烟覆盖真实 ns-3 启动、位置/功率调整、20→40 MHz 切换、源目的流量统计和自然停止。容器 TAP/VXLAN 的端到端效果及目标平台 ns-3.47 仍需在部署环境运行集成测试。
|
||||
NS-3 部分代码遵循 GPLv2。本项目作为配置/参考实现提供。
|
||||
@@ -42,7 +42,6 @@ log "开始 PyInstaller 打包..."
|
||||
pyinstaller \
|
||||
--onedir \
|
||||
--name manet-controller \
|
||||
--add-data "${SCRIPT_DIR}/controller/orchestrator/sim_runtime.h:controller/orchestrator" \
|
||||
--add-data "${SCRIPT_DIR}/web-manager/dist:web-manager/dist" \
|
||||
--hidden-import=ns.core \
|
||||
--hidden-import=ns.network \
|
||||
|
||||
@@ -10,40 +10,19 @@
|
||||
"x": 50.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
{
|
||||
"x": 100.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
{
|
||||
"x": 2279.1363636363635,
|
||||
"y": 959.6363636363636,
|
||||
"z": 0.0
|
||||
},
|
||||
{
|
||||
"x": 3118.8181818181815,
|
||||
"y": 175.3181818181818,
|
||||
"z": 0.0
|
||||
}
|
||||
],
|
||||
"txPower": [
|
||||
20.0,
|
||||
20.0,
|
||||
20.0,
|
||||
20.0,
|
||||
20.0
|
||||
],
|
||||
"rxSensitivity": [
|
||||
-92.0,
|
||||
-92.0,
|
||||
-92.0,
|
||||
-92.0,
|
||||
-92.0
|
||||
],
|
||||
"pathLossExponent": 2.0,
|
||||
"frequencyMhz": 2412,
|
||||
"channelWidthMhz": 20,
|
||||
"rangeTargetM": 4200.0,
|
||||
"rangeTargetM": 3400.0,
|
||||
"pathLossModel": "FreeSpace"
|
||||
}
|
||||
@@ -152,11 +152,5 @@ WEB_DIR = os.environ.get("MANET_WEB_DIR", "/app/dist")
|
||||
if os.path.isdir(WEB_DIR):
|
||||
app.mount("/", StaticFiles(directory=WEB_DIR, html=True), name="web")
|
||||
log.info("从 %s 提供 React UI", WEB_DIR)
|
||||
|
||||
# 独立电台控制页面
|
||||
radio_dir = os.path.join(os.path.dirname(WEB_DIR), "radio")
|
||||
if os.path.isdir(radio_dir):
|
||||
app.mount("/radio", StaticFiles(directory=radio_dir, html=True), name="radio")
|
||||
log.info("从 %s 提供电台控制页面", radio_dir)
|
||||
else:
|
||||
log.info("%s 处无 UI 目录;以纯 API 模式运行", WEB_DIR)
|
||||
@@ -4,7 +4,6 @@
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter
|
||||
@@ -35,9 +34,10 @@ async def put_config(cfg: SimConfig) -> dict[str, Any]:
|
||||
sess = get_session()
|
||||
store = sess.param_store
|
||||
if store is not None:
|
||||
# 配置保存与运行时调参分开:整份配置原子替换,避免逐字段校验失败或
|
||||
# 保存文件时意外修改正在运行的无线环境。
|
||||
return await asyncio.to_thread(store.save_config, cfg, source="rest")
|
||||
data = cfg.model_dump(by_alias=True)
|
||||
results = store.batch_set(data, source="rest")
|
||||
ok = all(r.get("ok") for r in results)
|
||||
return {"ok": ok, "results": results}
|
||||
|
||||
# fallback: 直接更新 SimConfig(兼容 ParamStore 未初始化时)
|
||||
from controller.orchestrator import save_config_to_file
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter, HTTPException
|
||||
@@ -68,7 +67,7 @@ def _param_store() -> Any:
|
||||
async def set_tx_power(body: TxPowerBody) -> dict[str, Any]:
|
||||
"""修改指定节点的发射功率。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "txPower", {body.nodeId: body.dbm}, source="rest")
|
||||
result = _param_store().set("txPower", {body.nodeId: body.dbm}, source="rest")
|
||||
return {"ok": result.get("ok", False), "nodeId": body.nodeId, "dbm": body.dbm, **result}
|
||||
|
||||
|
||||
@@ -76,7 +75,7 @@ async def set_tx_power(body: TxPowerBody) -> dict[str, Any]:
|
||||
async def set_position(body: PositionBody) -> dict[str, Any]:
|
||||
"""将指定节点跃迁到指定坐标。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "positions", {body.nodeId: {"x": body.x, "y": body.y, "z": body.z}}, source="rest")
|
||||
result = _param_store().set("positions", {body.nodeId: {"x": body.x, "y": body.y, "z": body.z}}, source="rest")
|
||||
return {"ok": result.get("ok", False), "nodeId": body.nodeId, "x": body.x, "y": body.y, "z": body.z, **result}
|
||||
|
||||
|
||||
@@ -84,7 +83,7 @@ async def set_position(body: PositionBody) -> dict[str, Any]:
|
||||
async def set_rx_sensitivity(body: RxSensBody) -> dict[str, Any]:
|
||||
"""修改指定节点的接收灵敏度。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "rxSensitivity", {body.nodeId: body.dbm}, source="rest")
|
||||
result = _param_store().set("rxSensitivity", {body.nodeId: body.dbm}, source="rest")
|
||||
return {"ok": result.get("ok", False), "nodeId": body.nodeId, "dbm": body.dbm, **result}
|
||||
|
||||
|
||||
@@ -92,7 +91,7 @@ async def set_rx_sensitivity(body: RxSensBody) -> dict[str, Any]:
|
||||
async def set_path_loss_exponent(body: PathLossBody) -> dict[str, Any]:
|
||||
"""修改全局路径损耗指数(仅 LogDistance 模型生效)。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "pathLossExponent", body.exponent, source="rest")
|
||||
result = _param_store().set("pathLossExponent", body.exponent, source="rest")
|
||||
return {"ok": result.get("ok", False), "exponent": body.exponent, **result}
|
||||
|
||||
|
||||
@@ -100,7 +99,7 @@ async def set_path_loss_exponent(body: PathLossBody) -> dict[str, Any]:
|
||||
async def set_frequency(body: FrequencyBody) -> dict[str, Any]:
|
||||
"""修改全局中心频率(MHz)。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "frequencyMhz", body.mhz, source="rest")
|
||||
result = _param_store().set("frequencyMhz", body.mhz, source="rest")
|
||||
return {"ok": result.get("ok", False), "mhz": body.mhz, **result}
|
||||
|
||||
|
||||
@@ -108,7 +107,7 @@ async def set_frequency(body: FrequencyBody) -> dict[str, Any]:
|
||||
async def set_channel_width(body: ChannelWidthBody) -> dict[str, Any]:
|
||||
"""修改全局信道宽度(MHz)。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "channelWidthMhz", body.mhz, source="rest")
|
||||
result = _param_store().set("channelWidthMhz", body.mhz, source="rest")
|
||||
return {"ok": result.get("ok", False), "mhz": body.mhz, **result}
|
||||
|
||||
|
||||
@@ -116,7 +115,7 @@ async def set_channel_width(body: ChannelWidthBody) -> dict[str, Any]:
|
||||
async def set_range_target(body: RangeBody) -> dict[str, Any]:
|
||||
"""修改 Range 传播模型的最大通信距离(米)。"""
|
||||
_check_running()
|
||||
result = await asyncio.to_thread(_param_store().set, "rangeTargetM", body.meters, source="rest")
|
||||
result = _param_store().set("rangeTargetM", body.meters, source="rest")
|
||||
return {"ok": result.get("ok", False), "meters": body.meters, **result}
|
||||
|
||||
|
||||
@@ -135,7 +134,6 @@ async def get_current_env() -> dict[str, Any]:
|
||||
"positions": env.positions,
|
||||
"pathLossExponent": env.path_loss_exponent,
|
||||
"frequencyMhz": env.frequency_mhz,
|
||||
"phyFrequencyMhz": env.phy_frequency_mhz,
|
||||
"channelWidthMhz": env.channel_width_mhz,
|
||||
"rangeTargetM": env.range_target_m,
|
||||
"pathLossModel": env.path_loss_model,
|
||||
@@ -146,18 +144,7 @@ async def get_current_env() -> dict[str, Any]:
|
||||
@router.get("/api/env/capabilities")
|
||||
async def get_capabilities() -> dict[str, Any]:
|
||||
"""返回当前支持的动态调整能力列表。"""
|
||||
sess = get_session()
|
||||
config = sess.sim.config if sess.sim else sess.config
|
||||
if config.standard == "80211a":
|
||||
widths = [20]
|
||||
elif "2.4GHz" in config.standard or "80211n" in config.standard:
|
||||
widths = [20, 40]
|
||||
else:
|
||||
widths = [20, 40, 80, 160]
|
||||
return {
|
||||
"frequencyScope": "WiFi PHY and propagation-loss; UHF uses a WiFi proxy carrier",
|
||||
"channelWidths": widths,
|
||||
"pathLossAdjustable": config.path_loss_model == "LogDistance",
|
||||
"capabilities": [
|
||||
{"id": "txpower", "name": "发射功率", "unit": "dBm", "scope": "per-node"},
|
||||
{"id": "position", "name": "节点位置", "unit": "m", "scope": "per-node"},
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
"""REST 代理:将浏览器 HTTP 请求转为 UDP 帧发往外接电台设备。
|
||||
|
||||
POST /api/radio/raw
|
||||
Body: { host: string, port: number, frame: number[] }
|
||||
Response: { reply?: number[], reason?: string }
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
import socket
|
||||
from typing import Any
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def _send_udp_async(frame_bytes: bytes, host: str, port: int) -> tuple[bytes | None, str | None]:
|
||||
"""Async wrapper over blocking socket send.
|
||||
|
||||
api_54 端口约束为 62450,设备响应永远回到 62450,所以 socket 必须显式 bind,
|
||||
否则 recvfrom 会等在系统分配的临时端口上,收不到回包。
|
||||
"""
|
||||
loop = asyncio.get_running_loop()
|
||||
|
||||
def _do() -> tuple[bytes | None, str | None]:
|
||||
try:
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("0.0.0.0", 62450))
|
||||
sock.settimeout(3.0)
|
||||
sock.sendto(frame_bytes, (host, port))
|
||||
reply, _ = sock.recvfrom(4096)
|
||||
sock.close()
|
||||
return reply, None
|
||||
except TimeoutError:
|
||||
return None, "UDP 接收超时"
|
||||
except Exception as e:
|
||||
return None, str(e)
|
||||
|
||||
return await loop.run_in_executor(None, _do)
|
||||
|
||||
|
||||
@router.post("/api/radio/raw")
|
||||
async def radio_raw(body: dict[str, Any]) -> dict[str, Any]:
|
||||
"""将 HTTP 请求中的二进制帧透传为 UDP,回复透传为 HTTP 响应。"""
|
||||
host: str = body.get("host", "192.0.3.1")
|
||||
port: int = int(body.get("port", 62450))
|
||||
frame_arr: list[int] = body.get("frame", [])
|
||||
|
||||
if not frame_arr:
|
||||
return {"reason": "frame 不能为空"}
|
||||
|
||||
try:
|
||||
frame_bytes = bytes(frame_arr)
|
||||
except Exception as e:
|
||||
return {"reason": f"frame 格式错误: {e}"}
|
||||
|
||||
log.debug("UDP -> %s:%d frame=%s", host, port, frame_bytes.hex())
|
||||
|
||||
try:
|
||||
reply, error = await asyncio.wait_for(
|
||||
_send_udp_async(frame_bytes, host, port),
|
||||
timeout=5.0,
|
||||
)
|
||||
except asyncio.TimeoutError:
|
||||
return {"reason": "UDP 超时"}
|
||||
|
||||
if error:
|
||||
return {"reason": error}
|
||||
|
||||
if reply is None:
|
||||
return {"msg": "发送成功(无回复)"}
|
||||
|
||||
return {"reply": list(reply)}
|
||||
@@ -29,7 +29,7 @@ async def start_sim(req: RunRequest | None = None) -> dict[str, Any]:
|
||||
overrides=req.overrides or {},
|
||||
nodes=req.nodes,
|
||||
)
|
||||
except (KeyError, ValueError) as e:
|
||||
except KeyError as e:
|
||||
raise HTTPException(400, str(e)) from e
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.exception("仿真启动失败")
|
||||
@@ -57,7 +57,7 @@ async def status() -> dict[str, Any]:
|
||||
return {
|
||||
"running": sess.running,
|
||||
"elapsed": sim.elapsed if sim else 0.0,
|
||||
"totalNodes": len(sess.specs) if sess.running else 0,
|
||||
"totalNodes": sess.config.n_nodes if sess.running else 0,
|
||||
"nodesOnline": sum(
|
||||
1 for s in sess.specs
|
||||
if (
|
||||
@@ -79,7 +79,12 @@ async def list_presets() -> dict[str, dict[str, Any]]:
|
||||
|
||||
@router.get("/path")
|
||||
async def find_path(src: int, dst: int) -> dict[str, Any]:
|
||||
"""基于实际 Mesh peer 图返回最少跳数路径;不是 HWMP 转发表查询。"""
|
||||
"""基于当前邻居图的 BFS,返回 src→dst 的最少跳数路径。
|
||||
|
||||
路径反映"几何上谁能听到谁"——`_nodes_runtime[i].neighbors` 由 wall_pacer
|
||||
每 100ms 根据节点位置 + range_target_m 重算。在 mesh 模式下与 HWMP
|
||||
实际选择的多跳路径强相关,可作为前端拓扑可视化的近似。
|
||||
"""
|
||||
sess = get_session()
|
||||
if not sess.sim or not sess.running:
|
||||
raise HTTPException(409, "没有正在运行的仿真")
|
||||
@@ -99,5 +104,4 @@ async def find_path(src: int, dst: int) -> dict[str, Any]:
|
||||
"ips": [ip_by_id.get(nid, "") for nid in path],
|
||||
"hops": len(path) - 1,
|
||||
"reachable": True,
|
||||
"pathSource": "mesh-peer-bfs",
|
||||
}
|
||||
@@ -158,8 +158,6 @@ class Session:
|
||||
preset: Optional[str] = None
|
||||
_lock: threading.Lock = field(default_factory=threading.Lock)
|
||||
|
||||
_watch_task: asyncio.Task | None = field(default=None, repr=False)
|
||||
|
||||
def __post_init__(self):
|
||||
# ParamStore 始终存活,支持无仿真时的参数读写
|
||||
if self.param_store is None:
|
||||
@@ -188,8 +186,6 @@ class Session:
|
||||
if overrides:
|
||||
cfg = cfg.merged_with(overrides)
|
||||
|
||||
if cfg.mac_mode == "adhoc" and cfg.traffic_mode == "tap":
|
||||
raise ValueError("当前 cppyy 绑定不支持安全运行 AdHoc + TAP;请使用 Mesh 或 AdHoc onoff 模式")
|
||||
specs = nodes if nodes is not None else default_node_specs(cfg)
|
||||
|
||||
# 按 host 分组节点
|
||||
@@ -309,7 +305,7 @@ class Session:
|
||||
)
|
||||
|
||||
# 4. 启动 ns-3 仿真器(驱动所有 TAP)
|
||||
sim = SimRunner(cfg, node_ips={s.ip: s.id for s in specs})
|
||||
sim = SimRunner(cfg)
|
||||
try:
|
||||
await asyncio.to_thread(sim.start)
|
||||
except Exception:
|
||||
@@ -403,14 +399,6 @@ class Session:
|
||||
self.telemetry = tele
|
||||
self.specs = specs
|
||||
self.preset = preset
|
||||
self._watch_task = asyncio.create_task(self._watch_simulation(sim), name="simulation-cleanup")
|
||||
|
||||
async def _watch_simulation(self, sim: SimRunner) -> None:
|
||||
"""自然到期或异常退出后释放容器与网络资源。"""
|
||||
while self.sim is sim and sim.running:
|
||||
await asyncio.sleep(0.2)
|
||||
if self.sim is sim:
|
||||
await self.stop()
|
||||
|
||||
async def stop(self) -> None:
|
||||
"""best-effort 停止与清理。
|
||||
@@ -418,18 +406,11 @@ class Session:
|
||||
即使 sim 已崩溃 (sess.running == False),仍要走一遍下面的清理路径,
|
||||
把上一次仿真留下的 docker 容器/mesh-br/mesh-tap/mesh-veth 兜底删干净。
|
||||
"""
|
||||
watcher = self._watch_task
|
||||
self._watch_task = None
|
||||
if watcher is not None and watcher is not asyncio.current_task():
|
||||
watcher.cancel()
|
||||
# 仿真退出前不能拆除 TAP;停止超时向调用者报告并保留资源引用。
|
||||
if self.sim is not None:
|
||||
await asyncio.to_thread(self.sim.stop)
|
||||
with self._lock:
|
||||
sim, docker_mgr, remote_mgrs, host_mgrs, tele, specs = (
|
||||
self.sim, self.docker_mgr, self.remote_mgrs, self.host_mgrs, self.telemetry, self.specs
|
||||
)
|
||||
cfg = sim.config if sim is not None else self.config
|
||||
cfg = self.config
|
||||
last_preset = self.preset
|
||||
self.sim = self.docker_mgr = self.telemetry = None
|
||||
self.remote_mgrs = {}
|
||||
@@ -444,7 +425,7 @@ class Session:
|
||||
log.warning("telemetry.stop() 抛异常: %s", e)
|
||||
if sim is not None:
|
||||
try:
|
||||
await asyncio.to_thread(sim.stop)
|
||||
sim.stop()
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("sim.stop() 抛异常: %s", e)
|
||||
if docker_mgr is not None:
|
||||
|
||||
@@ -32,8 +32,7 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
param_queue = sess.param_store.subscribe()
|
||||
|
||||
# 遥测帧订阅队列(仅在仿真运行时有效)
|
||||
tele_owner = sess.telemetry
|
||||
tele_queue = tele_owner.subscribe() if tele_owner else None
|
||||
tele_queue = sess.telemetry.subscribe() if sess.telemetry else None
|
||||
|
||||
# 如果既没有 param_store 也没有 telemetry,直接关闭
|
||||
if param_queue is None and tele_queue is None:
|
||||
@@ -68,26 +67,11 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
await _send_safe(ws, {"type": "error", "reqId": req_id, "reason": f"unknown type: {msg_type}"})
|
||||
|
||||
async def _tele_loop() -> None:
|
||||
"""跨启停重新订阅,已连接的页面无需刷新或重连。"""
|
||||
nonlocal tele_owner, tele_queue
|
||||
sent_idle = False
|
||||
"""从 telemetry 泵接收帧并推送给客户端。"""
|
||||
if tele_queue is None:
|
||||
return
|
||||
while True:
|
||||
if sess.telemetry is not tele_owner:
|
||||
if tele_owner is not None and tele_queue is not None:
|
||||
tele_owner.unsubscribe(tele_queue)
|
||||
tele_owner = sess.telemetry
|
||||
tele_queue = tele_owner.subscribe() if tele_owner else None
|
||||
sent_idle = False
|
||||
if tele_queue is None:
|
||||
if not sent_idle:
|
||||
await _send_safe(ws, {"running": False, "nodes": [], "flows": [], "t": 0.0})
|
||||
sent_idle = True
|
||||
await asyncio.sleep(0.2)
|
||||
continue
|
||||
try:
|
||||
frame = await asyncio.wait_for(tele_queue.get(), timeout=0.5)
|
||||
except asyncio.TimeoutError:
|
||||
continue
|
||||
frame = await tele_queue.get()
|
||||
await _send_safe(ws, frame)
|
||||
|
||||
async def _param_broadcast_loop() -> None:
|
||||
@@ -107,8 +91,9 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
try:
|
||||
tasks = [
|
||||
asyncio.create_task(_recv_loop(), name="ws-recv"),
|
||||
asyncio.create_task(_tele_loop(), name="ws-tele"),
|
||||
]
|
||||
if tele_queue is not None:
|
||||
tasks.append(asyncio.create_task(_tele_loop(), name="ws-tele"))
|
||||
if param_queue is not None:
|
||||
tasks.append(asyncio.create_task(_param_broadcast_loop(), name="ws-param"))
|
||||
|
||||
@@ -131,8 +116,8 @@ async def telemetry_ws(ws: WebSocket) -> None:
|
||||
task.cancel()
|
||||
if param_queue is not None and sess.param_store is not None:
|
||||
sess.param_store.unsubscribe(param_queue)
|
||||
if tele_queue is not None and tele_owner is not None:
|
||||
tele_owner.unsubscribe(tele_queue)
|
||||
if tele_queue is not None and sess.telemetry is not None:
|
||||
sess.telemetry.unsubscribe(tele_queue)
|
||||
try:
|
||||
await ws.close()
|
||||
except Exception:
|
||||
@@ -164,7 +149,7 @@ async def _handle_param_set(ws: WebSocket, msg: dict[str, Any], req_id: str) ->
|
||||
if store is None:
|
||||
await _send_safe(ws, {"type": "param_response", "reqId": req_id, "ok": False, "reason": "param_store not ready"})
|
||||
return
|
||||
result = await asyncio.to_thread(store.set, key, value, source="ws")
|
||||
result = store.set(key, value, source="ws")
|
||||
await _send_safe(ws, {
|
||||
"type": "param_response",
|
||||
"reqId": req_id,
|
||||
@@ -178,7 +163,7 @@ async def _handle_param_batch_set(ws: WebSocket, msg: dict[str, Any], req_id: st
|
||||
if store is None:
|
||||
await _send_safe(ws, {"type": "param_batch_response", "reqId": req_id, "ok": False, "reason": "param_store not ready"})
|
||||
return
|
||||
results = await asyncio.to_thread(store.batch_set, params, source="ws")
|
||||
results = store.batch_set(params, source="ws")
|
||||
ok = all(r.get("ok") for r in results)
|
||||
await _send_safe(ws, {
|
||||
"type": "param_batch_response",
|
||||
|
||||
@@ -15,7 +15,7 @@ import re
|
||||
from pathlib import Path
|
||||
from typing import Any, Literal, Mapping
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
||||
from pydantic.alias_generators import to_camel
|
||||
|
||||
# ----- supported enums (mirror manet-30ns3/web-manager/src/types/config.ts) ----------------------
|
||||
@@ -48,7 +48,6 @@ class _CamelModel(BaseModel):
|
||||
alias_generator=to_camel,
|
||||
populate_by_name=True,
|
||||
extra="ignore",
|
||||
allow_inf_nan=False,
|
||||
)
|
||||
|
||||
|
||||
@@ -64,7 +63,7 @@ class SimConfig(_CamelModel):
|
||||
|
||||
# --- General [全局] ---
|
||||
n_nodes: int = Field(default=5, ge=2, le=16)
|
||||
simulation_time: float = Field(default=300, gt=0)
|
||||
simulation_time: float = 300
|
||||
seed: int = 1
|
||||
run: int = 1
|
||||
log_components: str = ""
|
||||
@@ -122,7 +121,15 @@ class SimConfig(_CamelModel):
|
||||
mac_mode: MacMode = "mesh"
|
||||
rate_control: RateControl = "Constant"
|
||||
|
||||
# --- MAC device [全局] ---
|
||||
@field_validator("mac_mode", mode="after")
|
||||
@classmethod
|
||||
def _force_mesh(cls, v: str) -> str:
|
||||
"""NS-3.47 + cppyy 下 adhoc 模式会触发 Txop segfault,强制使用 mesh。"""
|
||||
if v != "mesh":
|
||||
return "mesh"
|
||||
return v
|
||||
|
||||
# --- MAC device [预留] — 当前代码未接入 ns-3,预留字段 ---
|
||||
rts_cts_threshold: int = 2200
|
||||
fragmentation_threshold: int = 2200
|
||||
non_unicast_mode: bool = False
|
||||
@@ -206,23 +213,6 @@ class SimConfig(_CamelModel):
|
||||
"e.g. {\"1\": [\"02:00:00:ff:00:01\"]} for node 1 advertising an external MAC",
|
||||
)
|
||||
|
||||
@model_validator(mode="after")
|
||||
def validate_radio(self) -> "SimConfig":
|
||||
"""在创建 ns-3 对象前拒绝可能导致进程终止的非法无线配置。"""
|
||||
if self.standard == "80211a":
|
||||
widths = {20}
|
||||
elif "80211n" in self.standard or "2.4GHz" in self.standard:
|
||||
widths = {20, 40}
|
||||
else:
|
||||
widths = {20, 40, 80, 160}
|
||||
if self.channel_width_mhz not in widths:
|
||||
raise ValueError(f"{self.standard} 不支持 {self.channel_width_mhz} MHz,允许 {sorted(widths)}")
|
||||
if self.cw_min < 0 or self.cw_max < self.cw_min:
|
||||
raise ValueError("竞争窗口要求 0 <= cwMin <= cwMax")
|
||||
if self.grid_width <= 0 or self.beacon_interval <= 0:
|
||||
raise ValueError("gridWidth 和 beaconInterval 必须大于 0")
|
||||
return self
|
||||
|
||||
# ----- helpers -----------------------------------------------------------
|
||||
def merged_with(self, partial: Mapping[str, Any]) -> "SimConfig":
|
||||
"""Return a copy with `partial` overrides (accepts camelCase or snake_case)."""
|
||||
@@ -695,15 +685,15 @@ FIELD_DESCRIPTIONS: dict[str, str] = {
|
||||
# --- MAC network [全局] ---
|
||||
"ssid": "[全局] SSID:网络标识符",
|
||||
"bssid": "[全局] BSSID:基本服务集标识符(MAC 格式)",
|
||||
"macMode": "[全局] MAC 模式:mesh(802.11s)或 adhoc(IBSS);已知不兼容的绑定组合在启动时拒绝",
|
||||
"macMode": "[全局] MAC 模式:当前版本强制 mesh(802.11s),adhoc 已禁用",
|
||||
"rateControl": "[全局] 速率控制算法:Arf/Aarf/Onoe/Constant/Minstrel",
|
||||
# --- MAC device [预留] ---
|
||||
"rtsCtsThreshold": "[全局] RTS/CTS 阈值:启动时应用到实际 WiFi 设备",
|
||||
"fragmentationThreshold": "[全局] 分片阈值:启动时应用到实际 WiFi 设备",
|
||||
"nonUnicastMode": "[全局] 非单播模式:启动时应用到实际 WiFi 设备",
|
||||
"beaconInterval": "[全局] 信标间隔:启动时应用到实际 WiFi 设备",
|
||||
"cwMin": "[全局] 最小竞争窗口:启动时应用到实际 WiFi 设备",
|
||||
"cwMax": "[全局] 最大竞争窗口:启动时应用到实际 WiFi 设备",
|
||||
"rtsCtsThreshold": "[预留] RTS/CTS 阈值:当前代码未接入 ns-3",
|
||||
"fragmentationThreshold": "[预留] 分片阈值:当前代码未接入 ns-3",
|
||||
"nonUnicastMode": "[预留] 非单播模式:当前代码未接入 ns-3",
|
||||
"beaconInterval": "[预留] 信标间隔:当前代码未接入 ns-3",
|
||||
"cwMin": "[预留] 最小竞争窗口:当前代码未接入 ns-3",
|
||||
"cwMax": "[预留] 最大竞争窗口:当前代码未接入 ns-3",
|
||||
# --- Routing [全局] ---
|
||||
"routingProtocol": "[全局] 路由协议:aodv/olsr/dsdv/dsr/none",
|
||||
"aodvHelloInterval": "[全局] AODV Hello 间隔:邻居发现广播间隔(秒)",
|
||||
|
||||
@@ -217,14 +217,12 @@ class HostNodeMgr:
|
||||
name, self.host_ip, spec.image, spec.ip)
|
||||
|
||||
# 3) docker run (--net=host, --privileged)
|
||||
# Map local image names to GHCR host-manet-node images.
|
||||
# If the caller specifies a custom image (e.g. GHCR path), use it as-is.
|
||||
image = spec.image or "manet-node:latest"
|
||||
if image in ("manet-node:latest", "host-manet-node:latest"):
|
||||
# If spec.image is the default container image, use the host-specific one.
|
||||
# Otherwise trust the caller's image choice (e.g. GHCR path).
|
||||
if spec.image == "manet-node:latest":
|
||||
image = "ghcr.io/clawdbuddy/host-manet-node:main"
|
||||
# v1.1.4+ tagged images
|
||||
if image == "host-manet-node:1.1.4":
|
||||
image = "ghcr.io/clawdbuddy/host-manet-node:1.1.4"
|
||||
else:
|
||||
image = spec.image
|
||||
# Auto-pull if not present
|
||||
self._exec(f"docker images -q {image} 2>/dev/null | grep -q . || docker pull {image}")
|
||||
run_cmd = (
|
||||
|
||||
@@ -64,8 +64,7 @@ class ParamStore:
|
||||
def __init__(self, session: Any) -> None:
|
||||
self._session = session
|
||||
self._lock = threading.RLock()
|
||||
self._subscribers: dict[asyncio.Queue, asyncio.AbstractEventLoop] = {}
|
||||
self._subscriber_lock = threading.Lock()
|
||||
self._subscribers: list[asyncio.Queue] = []
|
||||
self._static_registry: dict[str, ParamMeta] = {}
|
||||
self._build_static_registry()
|
||||
|
||||
@@ -192,20 +191,6 @@ class ParamStore:
|
||||
self._broadcast(ParamChangeEvent(key, value, meta.scope, source))
|
||||
return results
|
||||
|
||||
def save_config(self, config: SimConfig, source: str = "api") -> dict[str, Any]:
|
||||
"""保存下次启动用的完整配置;写盘成功后再更新内存与通知。"""
|
||||
with self._lock:
|
||||
previous = self._session.config.model_dump(by_alias=True)
|
||||
try:
|
||||
save_config_to_file(config)
|
||||
except Exception as exc:
|
||||
return {"ok": False, "reason": str(exc)}
|
||||
self._session.config = config
|
||||
for key, value in config.model_dump(by_alias=True).items():
|
||||
if previous.get(key) != value:
|
||||
self._broadcast(ParamChangeEvent(key, value, "static", source))
|
||||
return {"ok": True, "config": config.model_dump(by_alias=True)}
|
||||
|
||||
def _set_locked(self, meta: ParamMeta, value: Any, source: str) -> dict[str, Any]:
|
||||
"""实际写入逻辑(必须在锁内调用)。"""
|
||||
sess = self._session
|
||||
@@ -394,31 +379,26 @@ class ParamStore:
|
||||
def subscribe(self) -> asyncio.Queue:
|
||||
"""订阅参数变更事件。返回 asyncio.Queue,事件到达时放入队列。"""
|
||||
q: asyncio.Queue = asyncio.Queue(maxsize=64)
|
||||
with self._subscriber_lock:
|
||||
self._subscribers[q] = asyncio.get_running_loop()
|
||||
self._subscribers.append(q)
|
||||
return q
|
||||
|
||||
def unsubscribe(self, q: asyncio.Queue) -> None:
|
||||
"""取消订阅。"""
|
||||
with self._subscriber_lock:
|
||||
self._subscribers.pop(q, None)
|
||||
try:
|
||||
self._subscribers.remove(q)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def _broadcast(self, event: ParamChangeEvent) -> None:
|
||||
"""广播参数变更事件到所有订阅者。"""
|
||||
with self._subscriber_lock:
|
||||
subscribers = list(self._subscribers.items())
|
||||
for q, loop in subscribers:
|
||||
dead: list[asyncio.Queue] = []
|
||||
for q in self._subscribers:
|
||||
try:
|
||||
loop.call_soon_threadsafe(self._enqueue_event, q, event)
|
||||
except RuntimeError:
|
||||
self.unsubscribe(q)
|
||||
|
||||
@staticmethod
|
||||
def _enqueue_event(q: asyncio.Queue, event: ParamChangeEvent) -> None:
|
||||
"""只在订阅者的事件循环中操作队列,慢客户端保留最新变更。"""
|
||||
if q.full():
|
||||
q.get_nowait()
|
||||
q.put_nowait(event)
|
||||
q.put_nowait(event)
|
||||
except asyncio.QueueFull:
|
||||
dead.append(q)
|
||||
for q in dead:
|
||||
self.unsubscribe(q)
|
||||
|
||||
# ------------------------------------------------------------------ 工具
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ NS-3.47 + cppyy 已知限制与可行配置:
|
||||
- MeshPointDevice(802.11s/HWMP)+ TapBridge + RealtimeSimulatorImpl 工作正常。
|
||||
- 容器 eth0 的 MAC 必须与 ns-3 mesh 设备的 MAC 一致(由 netns.mesh_mac 生成),
|
||||
否则 802.11s 会把容器视为"桥接客户端"而无法正确转发单播帧。
|
||||
- AdHoc + TAP 不安全组合显式拒绝;AdHoc + onoff 可用于内部基准。
|
||||
- 因此当前 3.47 路线强制使用 mac_mode="mesh",adhoc 模式已禁用。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -24,8 +24,6 @@ from dataclasses import dataclass, field
|
||||
from typing import Any, Callable, Optional
|
||||
|
||||
from .config import SimConfig
|
||||
from pathlib import Path
|
||||
from .tap_telemetry import TapTelemetry
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -134,7 +132,6 @@ class EnvState:
|
||||
positions: list[dict[str, float]] = field(default_factory=list)
|
||||
path_loss_exponent: float = 2.0
|
||||
frequency_mhz: int = 590
|
||||
phy_frequency_mhz: float = 0.0
|
||||
channel_width_mhz: int = 20
|
||||
range_target_m: float = 4000.0
|
||||
path_loss_model: str = "FreeSpace"
|
||||
@@ -143,9 +140,8 @@ class EnvState:
|
||||
class SimRunner:
|
||||
"""封装一次 ns-3 仿真生命周期。"""
|
||||
|
||||
def __init__(self, config: SimConfig, node_ips: dict[str, int] | None = None):
|
||||
def __init__(self, config: SimConfig):
|
||||
self.config = config
|
||||
self._node_ips = node_ips
|
||||
self._thread: Optional[threading.Thread] = None
|
||||
self._wall_pacer_thread: Optional[threading.Thread] = None
|
||||
self._stop_event = threading.Event()
|
||||
@@ -154,14 +150,6 @@ class SimRunner:
|
||||
self._flows_runtime: dict[int, FlowRuntime] = {}
|
||||
self._ns: Any = None
|
||||
self._fm: Any = None
|
||||
self._fm_helper: Any = None
|
||||
self._classifier: Any = None
|
||||
self._bridge: Any = None
|
||||
# cppyy 的 std::function 转换只持有 callable 的弱引用。
|
||||
self._tick_callback = self._simulation_tick
|
||||
self._tap_telemetry: TapTelemetry | None = None
|
||||
self._ready = threading.Event()
|
||||
self._sim_elapsed = 0.0
|
||||
self._running = False
|
||||
self._start_time: float | None = None
|
||||
self._error: str | None = None
|
||||
@@ -173,7 +161,7 @@ class SimRunner:
|
||||
self._propagation_loss_model: Any = None
|
||||
self._range_model: Any = None
|
||||
self._phy_model_type: str = ""
|
||||
# 实际安装的 MAC 模式。
|
||||
# 实际使用的 MAC 模式;当前版本强制 mesh,此处记录实际生效值
|
||||
self._mac_mode_actual: str = ""
|
||||
# 运行时增删节点所需 helper(仅在 _build_and_run 完成后有效)
|
||||
self._phy_helper: Any = None
|
||||
@@ -205,42 +193,55 @@ class SimRunner:
|
||||
if self._running:
|
||||
raise RuntimeError("simulator already running")
|
||||
self._stop_event.clear()
|
||||
self._ready.clear()
|
||||
self._error = None
|
||||
self._thread = threading.Thread(target=self._run, name="ns3-sim", daemon=True)
|
||||
self._thread.start()
|
||||
if not self._ready.wait(timeout=30.0):
|
||||
self._stop_event.set()
|
||||
raise RuntimeError("simulator initialization timed out")
|
||||
if self._error:
|
||||
# Block briefly so an immediate import error surfaces to the caller.
|
||||
self._thread.join(timeout=2.0)
|
||||
if not self._thread.is_alive() and self._error:
|
||||
raise RuntimeError(f"simulator failed to start: {self._error}")
|
||||
self._running = self._thread.is_alive()
|
||||
if self._running:
|
||||
self._start_time = time.time()
|
||||
# 启动 wall-time 触发的命令 drain + 位置快照线程,绕开 sim 时钟
|
||||
# (实测 BestEffort + 10 节点 SpectrumWifiPhy 跑到 1/24x,sim-time
|
||||
# 调度的命令落地会拖到 20s+,前端用户体验不可接受)
|
||||
self._wall_pacer_thread = threading.Thread(
|
||||
target=self._wall_pacer_loop, name="ns3-wall-pacer", daemon=True,
|
||||
)
|
||||
self._wall_pacer_thread.start()
|
||||
|
||||
def stop(self, timeout: float = 5.0) -> None:
|
||||
# Stop 本身也必须由仿真线程执行,tick 消费该事件。
|
||||
if not self._running:
|
||||
return
|
||||
try:
|
||||
ns = self._ns
|
||||
if ns is not None:
|
||||
ns.core.Simulator.Stop() # schedules an immediate stop
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("Simulator.Stop() raised: %s", e)
|
||||
self._stop_event.set()
|
||||
if self._thread:
|
||||
self._thread.join(timeout=timeout)
|
||||
if self._thread.is_alive():
|
||||
raise RuntimeError("仿真线程尚未停止,不能拆除网络设备")
|
||||
if self._wall_pacer_thread:
|
||||
self._wall_pacer_thread.join(timeout=2.0)
|
||||
self._wall_pacer_thread = None
|
||||
self._phy_cache.clear()
|
||||
self._running = False
|
||||
|
||||
@property
|
||||
def running(self) -> bool:
|
||||
return self._running and (self._thread is not None and self._thread.is_alive())
|
||||
|
||||
@property
|
||||
def capture_drops(self) -> int:
|
||||
return self._tap_telemetry.capture_drops if self._tap_telemetry else 0
|
||||
|
||||
@property
|
||||
def elapsed(self) -> float:
|
||||
if self._start_time is None:
|
||||
return 0.0
|
||||
return self._sim_elapsed
|
||||
return time.time() - self._start_time
|
||||
|
||||
@property
|
||||
def mac_mode_actual(self) -> str:
|
||||
"""实际安装的 MAC 模式。"""
|
||||
"""实际生效的 MAC 模式;当前版本强制 mesh。"""
|
||||
return self._mac_mode_actual
|
||||
|
||||
# ------------------------------------------------- public snapshots
|
||||
@@ -260,14 +261,13 @@ class SimRunner:
|
||||
positions=[dict(p) for p in self._env_state.positions],
|
||||
path_loss_exponent=self._env_state.path_loss_exponent,
|
||||
frequency_mhz=self._env_state.frequency_mhz,
|
||||
phy_frequency_mhz=self._env_state.phy_frequency_mhz,
|
||||
channel_width_mhz=self._env_state.channel_width_mhz,
|
||||
range_target_m=self._env_state.range_target_m,
|
||||
path_loss_model=self._env_state.path_loss_model,
|
||||
)
|
||||
|
||||
def find_path(self, src_id: int, dst_id: int) -> list[int] | None:
|
||||
"""基于实际 Mesh peer 图做 BFS,返回 src→dst 的最少跳数路径。
|
||||
"""基于当前邻居图(位置 + range_target_m)做 BFS,返回 src→dst 的最少跳数路径。
|
||||
|
||||
返回的列表首元素 = src_id,末元素 = dst_id;若不连通返回 None。
|
||||
与 ns-3 实际 HWMP/AODV 路由可能不一致——这里只反映"几何上谁能听到谁"的拓扑层结果,
|
||||
@@ -325,34 +325,27 @@ class SimRunner:
|
||||
finally:
|
||||
try:
|
||||
if self._ns is not None:
|
||||
self._sim_elapsed = self._ns.core.Simulator.Now().GetSeconds()
|
||||
self._ns.core.Simulator.Destroy()
|
||||
except Exception: # noqa: BLE001, S110
|
||||
pass
|
||||
if self._tap_telemetry is not None:
|
||||
self._tap_telemetry.close()
|
||||
self._bridge = None
|
||||
self._running = False
|
||||
self._ready.set()
|
||||
|
||||
# --------------------------------------------------- ns-3 build steps
|
||||
def _build_and_run(self, ns: Any) -> None:
|
||||
cfg = self.config
|
||||
if cfg.mac_mode == "adhoc" and cfg.traffic_mode == "tap":
|
||||
raise ValueError("当前 cppyy 绑定不支持安全运行 AdHoc + TAP;请使用 Mesh 或 AdHoc onoff 模式")
|
||||
|
||||
# RealtimeSimulatorImpl 与真实 TAP 对时;周期 tick 保证事件队列持续运行。
|
||||
# 1. RealtimeSimulatorImpl 是 TapBridge 在 UseLocal 模式下保持运行的前提;
|
||||
# BestEffort 在事件队列为空时会立即返回,导致仿真线程退出。
|
||||
# 注:RealtimeSimulatorImpl 受 wall-time 约束,TAP 桥接下带宽上限约 1.5-2Mbps。
|
||||
ns.core.GlobalValue.Bind(
|
||||
"SimulatorImplementationType",
|
||||
ns.core.StringValue("ns3::RealtimeSimulatorImpl"),
|
||||
)
|
||||
ns.core.Config.SetDefault(
|
||||
ns.core.Config.Set(
|
||||
"ns3::RealtimeSimulatorImpl::SynchronizationMode",
|
||||
# cppyy 首次调用会 JIT;HardLimit 会因一次编译抖动直接 abort。
|
||||
ns.core.StringValue("BestEffort"),
|
||||
ns.core.StringValue("HardLimit"),
|
||||
)
|
||||
ns.core.GlobalValue.Bind("ChecksumEnabled", ns.core.BooleanValue(True))
|
||||
ns.network.Mac48Address.ResetAllocationIndex()
|
||||
ns.core.RngSeedManager.SetSeed(cfg.seed)
|
||||
ns.core.RngSeedManager.SetRun(cfg.run)
|
||||
|
||||
@@ -388,17 +381,9 @@ class SimRunner:
|
||||
wifi.SetStandard(self._wifi_standard(ns, cfg.standard))
|
||||
self._apply_rate_control(ns, wifi, cfg)
|
||||
|
||||
# 5. 将标准、速率配置应用到实际安装设备的 helper。
|
||||
if cfg.mac_mode == "mesh":
|
||||
devices = self._install_mesh(ns, cfg, phy, nodes)
|
||||
else:
|
||||
# 保留显式模式;禁止将不安全组合静默转换成另一种实验。
|
||||
if cfg.traffic_mode == "tap":
|
||||
raise ValueError("当前 cppyy 绑定的 AdHoc + TapBridge 存在上游崩溃风险;请使用 Mesh 或 AdHoc onoff 模式")
|
||||
mac = ns.wifi.WifiMacHelper()
|
||||
mac.SetType("ns3::AdhocWifiMac", "Ssid", ns.wifi.SsidValue(ns.wifi.Ssid(cfg.ssid)))
|
||||
devices = wifi.Install(phy, mac, nodes)
|
||||
self._mac_mode_actual = "adhoc"
|
||||
# 5. MAC:802.11s mesh + HWMP;mac_mode 由 config.py SimConfig validator
|
||||
# 强制为 "mesh"(NS-3.47 + cppyy 下 adhoc 会触发 Txop segfault)。
|
||||
devices = self._install_mesh(ns, cfg, phy, nodes)
|
||||
|
||||
# 6. Mobility
|
||||
self._install_mobility(ns, cfg, nodes)
|
||||
@@ -409,7 +394,6 @@ class SimRunner:
|
||||
# 保存 ns-3 对象引用供动态控制使用
|
||||
self._nodes_container = nodes
|
||||
self._wifi_devices = devices
|
||||
self._configure_devices(ns, cfg, nodes)
|
||||
|
||||
# 8. IP addresses (192.168.100.10 + i, /24)
|
||||
ipv4 = ns.internet.Ipv4AddressHelper()
|
||||
@@ -483,11 +467,9 @@ class SimRunner:
|
||||
# remote container as a local mesh peer.
|
||||
|
||||
# 10. FlowMonitor
|
||||
if cfg.flow_monitor and cfg.traffic_mode != "tap":
|
||||
if cfg.flow_monitor:
|
||||
fm_helper = ns.flow_monitor.FlowMonitorHelper()
|
||||
self._fm_helper = fm_helper
|
||||
self._fm = fm_helper.InstallAll()
|
||||
self._classifier = fm_helper.GetClassifier()
|
||||
|
||||
# 11. Tracing
|
||||
if cfg.pcap:
|
||||
@@ -501,73 +483,47 @@ class SimRunner:
|
||||
for i in range(cfg.n_nodes):
|
||||
self._nodes_runtime[i] = NodeRuntime(id=i)
|
||||
|
||||
# C++ 定时器解决 cppyy 无法直接向 Schedule 传入 Python callback 的问题。
|
||||
# 所有 ns-3 读写(含遥测)均在 Run 所在线程完成。
|
||||
import cppyy
|
||||
import sysconfig
|
||||
cppyy.add_include_path(sysconfig.get_paths()["include"])
|
||||
cppyy.include(str(Path(__file__).with_name("sim_runtime.h")))
|
||||
self._bridge = cppyy.gbl.manet.Runtime(self._tick_callback)
|
||||
if cfg.traffic_mode == "tap" and cfg.flow_monitor:
|
||||
self._tap_telemetry = TapTelemetry(cfg.tap_prefix, cfg.n_nodes, ip_to_id=self._node_ips)
|
||||
self._tap_telemetry.open()
|
||||
ns.core.Simulator.Stop(ns.core.Seconds(cfg.simulation_time))
|
||||
self._start_time = time.time()
|
||||
self._running = True
|
||||
self._bridge.Start()
|
||||
self._ready.set()
|
||||
self._bridge.Run()
|
||||
# 13. ns-3.47 + cppyy 不支持 Simulator.Schedule 传入 Python callback,
|
||||
# 因此取消 in-sim periodic tick;FlowMonitor 统计由 _wall_pacer_loop
|
||||
# 在 wall-time 线程中懒更新。
|
||||
|
||||
@staticmethod
|
||||
def _channel_settings(cfg: SimConfig) -> str:
|
||||
"""带宽与频段一起配置,UHF 用合法 WiFi 代理频道计算调制。"""
|
||||
band = "BAND_2_4GHZ" if "2.4GHz" in cfg.standard else "BAND_5GHZ"
|
||||
width = cfg.channel_width_mhz
|
||||
channel = 0
|
||||
if band == "BAND_2_4GHZ":
|
||||
candidate = (cfg.frequency_mhz - 2407) / 5
|
||||
if candidate.is_integer() and candidate in (range(1, 14) if width == 20 else range(3, 12)):
|
||||
channel = int(candidate)
|
||||
else:
|
||||
candidate = (cfg.frequency_mhz - 5000) / 5
|
||||
legal = {
|
||||
20: {36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 149, 153, 157, 161, 165},
|
||||
40: {38, 46, 54, 62, 102, 110, 118, 126, 134, 142, 151, 159},
|
||||
80: {42, 58, 106, 122, 138, 155},
|
||||
160: {50, 114},
|
||||
}
|
||||
if candidate.is_integer() and candidate in legal[width]:
|
||||
channel = int(candidate)
|
||||
return f"{{{channel}, {width}, {band}, 0}}"
|
||||
|
||||
def _configure_devices(self, ns: Any, cfg: SimConfig, nodes: Any) -> None:
|
||||
"""将 MAC 与竞争窗口设置接入实际安装的 WiFi 接口。"""
|
||||
for i in range(nodes.GetN()):
|
||||
node = nodes.Get(i)
|
||||
for j in range(node.GetNDevices()):
|
||||
wifi = node.GetDevice(j).GetObject[ns.wifi.WifiNetDevice]()
|
||||
if not wifi:
|
||||
continue
|
||||
phy = wifi.GetPhy()
|
||||
phy.SetAttribute("ChannelSettings", ns.core.StringValue(self._channel_settings(cfg)))
|
||||
if i == 0:
|
||||
self._env_state.phy_frequency_mhz = float(phy.GetFrequency())
|
||||
manager = wifi.GetRemoteStationManager()
|
||||
manager.SetAttribute("RtsCtsThreshold", ns.core.UintegerValue(cfg.rts_cts_threshold))
|
||||
manager.SetAttribute("FragmentationThreshold", ns.core.UintegerValue(cfg.fragmentation_threshold))
|
||||
if cfg.non_unicast_mode:
|
||||
manager.SetAttribute("NonUnicastMode", ns.core.StringValue(cfg.data_rate))
|
||||
mac = wifi.GetMac()
|
||||
txop = mac.GetTxop()
|
||||
if txop:
|
||||
txop.SetMinCw(cfg.cw_min)
|
||||
txop.SetMaxCw(cfg.cw_max)
|
||||
if mac.GetQosSupported():
|
||||
for tid in (0, 1, 4, 6):
|
||||
qos = mac.GetQosTxop(tid)
|
||||
if qos:
|
||||
qos.SetMinCw(cfg.cw_min)
|
||||
qos.SetMaxCw(cfg.cw_max)
|
||||
# 14. Run!
|
||||
# 不再预设自动停止时间;仿真持续运行直到用户手动调用 stop()。
|
||||
# simulation_time 仅作为配置参考,不再调度 Simulator.Stop()。
|
||||
#
|
||||
# NS-3.47 + cppyy 的 Simulator.Run() 会阻塞并持有 CPython GIL,导致 FastAPI
|
||||
# 的 asyncio 事件循环冻结。通过 cppyy.cppdef 编译一个释放 GIL 的 C++ 包装器,
|
||||
# 让 Run() 在 C++ 层执行时释放 GIL,使 wall-pacer 线程和 API 主循环得以运行。
|
||||
log.info("Simulator.Run() begin (manual stop mode)")
|
||||
try:
|
||||
import cppyy
|
||||
if not hasattr(cppyy.gbl, "ns3_simulator_run_release_gil"):
|
||||
cppyy.cppdef("""
|
||||
extern "C" {
|
||||
void* PyEval_SaveThread(void);
|
||||
void PyEval_RestoreThread(void*);
|
||||
}
|
||||
void ns3_simulator_run_release_gil() {
|
||||
void* save = PyEval_SaveThread();
|
||||
try {
|
||||
ns3::Simulator::Run();
|
||||
} catch (...) {
|
||||
PyEval_RestoreThread(save);
|
||||
throw;
|
||||
}
|
||||
PyEval_RestoreThread(save);
|
||||
}
|
||||
""")
|
||||
cppyy.gbl.ns3_simulator_run_release_gil()
|
||||
log.info("Simulator.Run() end (GIL released)")
|
||||
except Exception as compile_err:
|
||||
log.warning(
|
||||
"GIL-releasing wrapper failed: %s. "
|
||||
"Falling back to direct Run() — API will freeze during simulation.",
|
||||
compile_err,
|
||||
)
|
||||
ns.core.Simulator.Run()
|
||||
log.info("Simulator.Run() end")
|
||||
|
||||
# -------------------------------------------------- channel / propagation
|
||||
def _build_yans_phy(self, ns: Any, cfg: SimConfig) -> tuple[Any, Any | None, Any | None]:
|
||||
@@ -633,9 +589,8 @@ class SimRunner:
|
||||
|
||||
phy = ns.wifi.YansWifiPhyHelper()
|
||||
phy.SetChannel(channel)
|
||||
initial_channel = "{100, 20, BAND_5GHZ, 0}" if cfg.mac_mode == "mesh" else self._channel_settings(cfg)
|
||||
phy.Set("ChannelSettings", ns.core.StringValue(initial_channel))
|
||||
# MeshHelper 安装时内部切换到频道 100,目标信道在安装完成后设置。
|
||||
# ns-3.47 中 ChannelWidth 为 INITIAL_VALUE,不能在 helper.Set() 中设置;
|
||||
# 移除以避免 NS_FATAL_ERROR。如需非默认带宽,需通过 ChannelSettings 配置。
|
||||
return phy, loss, range_loss
|
||||
|
||||
def _build_spectrum_phy(self, ns: Any, cfg: SimConfig) -> tuple[Any, Any, Any | None]:
|
||||
@@ -690,9 +645,10 @@ class SimRunner:
|
||||
|
||||
phy = ns.wifi.SpectrumWifiPhyHelper()
|
||||
phy.SetChannel(spec_chan)
|
||||
initial_channel = "{100, 20, BAND_5GHZ, 0}" if cfg.mac_mode == "mesh" else self._channel_settings(cfg)
|
||||
phy.Set("ChannelSettings", ns.core.StringValue(initial_channel))
|
||||
# 目标频段在安装完成后应用;UHF 使用合法的 WiFi 代理载波。
|
||||
# ns-3.47 中 ChannelWidth 为 INITIAL_VALUE,不能在 helper.Set() 中设置。
|
||||
# 频段表里 590 MHz 不是合法 802.11 频道,因此 SpectrumWifiPhy 内部仍按
|
||||
# 默认的 802.11a 5GHz 频道号工作;真实物理频段语义由 Friis 的 Frequency
|
||||
# 决定。Logger 里把 cfg.frequency_mhz 打出来便于审计。
|
||||
log.info(
|
||||
"SpectrumWifiPhy: 中心频率 %.0f MHz / 带宽 %d MHz / 视距目标 %.0f m",
|
||||
cfg.frequency_mhz, cfg.channel_width_mhz, cfg.range_target_m,
|
||||
@@ -919,14 +875,22 @@ class SimRunner:
|
||||
) from None
|
||||
|
||||
mesh_helper.SetStackInstaller("ns3::Dot11sStack")
|
||||
mesh_helper.SetStandard(self._wifi_standard(ns, cfg.standard))
|
||||
mesh_helper.SetSpreadInterfaceChannels(ns.mesh.MeshHelper.ZERO_CHANNEL)
|
||||
mesh_helper.SetMacType(
|
||||
"RandomStart", ns.core.TimeValue(ns.core.Seconds(0.1)),
|
||||
"BeaconInterval", ns.core.TimeValue(ns.core.MilliSeconds(cfg.beacon_interval)),
|
||||
)
|
||||
# ns-3.47 中 MeshHelper.SetStandard 会导致 PHY channel 配置冲突
|
||||
# (WifiPhyOperatingChannel: No unique channel found),因此跳过。
|
||||
# 默认标准由 MeshHelper 内部决定,与物理层传播模型独立。
|
||||
# mesh_helper.SetStandard(self._wifi_standard(ns, cfg.standard))
|
||||
# RandomStart:mesh 节点上电后随机抖动(避免同时发 BCN)
|
||||
mesh_helper.SetMacType("RandomStart", ns.core.TimeValue(ns.core.Seconds(0.1)))
|
||||
# 单接口模式即可——多接口 mesh 主要用于多频段聚合,不在本场景目标内。
|
||||
mesh_helper.SetNumberOfInterfaces(1)
|
||||
self._apply_rate_control(ns, mesh_helper, cfg)
|
||||
# ns-3.47 默认 mesh 使用 802.11a;cfg.data_rate 中的 ErpOfdmRate* 是 802.11g
|
||||
# 专有命名,与 802.11a 不兼容,会导致 "Can't find response rate" NS_FATAL。
|
||||
# 因此跳过 SetRemoteStationManager,让 mesh 使用内置 ARF 速率控制。
|
||||
# mesh_helper.SetRemoteStationManager(
|
||||
# "ns3::ConstantRateWifiManager",
|
||||
# "DataMode", ns.core.StringValue(cfg.data_rate),
|
||||
# "ControlMode", ns.core.StringValue(cfg.data_rate),
|
||||
# )
|
||||
devices = mesh_helper.Install(phy, nodes)
|
||||
# ns-3 MeshPointDevice 默认使用 Mac48Address::Allocate() 顺序分配 MAC;
|
||||
# 容器 eth0 由 netns.mesh_mac() 设为 00:00:00:00:00:{i+1}。
|
||||
@@ -944,7 +908,6 @@ class SimRunner:
|
||||
@staticmethod
|
||||
def _wifi_standard(ns: Any, label: str) -> Any:
|
||||
return {
|
||||
"80211a": ns.wifi.WIFI_STANDARD_80211a,
|
||||
"80211n-2.4GHz": ns.wifi.WIFI_STANDARD_80211n,
|
||||
"80211n-5GHz": ns.wifi.WIFI_STANDARD_80211n,
|
||||
"80211ac": ns.wifi.WIFI_STANDARD_80211ac,
|
||||
@@ -959,7 +922,7 @@ class SimRunner:
|
||||
wifi.SetRemoteStationManager(
|
||||
"ns3::ConstantRateWifiManager",
|
||||
"DataMode", ns.core.StringValue(cfg.data_rate),
|
||||
"ControlMode", ns.core.StringValue("OfdmRate6Mbps" if "5GHz" in cfg.standard or cfg.standard in {"80211a", "80211ac"} else "ErpOfdmRate6Mbps"),
|
||||
"ControlMode", ns.core.StringValue(cfg.data_rate),
|
||||
)
|
||||
elif rc == "Arf":
|
||||
# Fix for the C++ Arf bug: use proper ns-3 attribute types,
|
||||
@@ -974,7 +937,7 @@ class SimRunner:
|
||||
elif rc == "Onoe":
|
||||
wifi.SetRemoteStationManager("ns3::OnoeWifiManager")
|
||||
elif rc == "Minstrel":
|
||||
wifi.SetRemoteStationManager("ns3::MinstrelHtWifiManager" if cfg.standard != "80211a" else "ns3::MinstrelWifiManager")
|
||||
wifi.SetRemoteStationManager("ns3::MinstrelWifiManager")
|
||||
else:
|
||||
wifi.SetRemoteStationManager("ns3::ArfWifiManager")
|
||||
|
||||
@@ -1093,18 +1056,13 @@ class SimRunner:
|
||||
def _inject_command(self, fn: Callable[[], None]) -> dict[str, Any]:
|
||||
"""将命令闭包放入队列,同步等待执行结果返回。
|
||||
|
||||
命令由 C++ Runtime 在 ns-3 仿真线程中执行。
|
||||
命令由 _wall_pacer_loop 在 wall-time 线程中执行。
|
||||
最多等待 5 秒;超时返回失败。
|
||||
"""
|
||||
if not self.running:
|
||||
return {"applied": False, "reason": "simulator is not running"}
|
||||
result: dict[str, Any] = {}
|
||||
cancelled = threading.Event()
|
||||
done_event = threading.Event()
|
||||
|
||||
def _wrapped():
|
||||
if cancelled.is_set():
|
||||
return
|
||||
try:
|
||||
fn()
|
||||
result["ok"] = True
|
||||
@@ -1114,14 +1072,10 @@ class SimRunner:
|
||||
finally:
|
||||
done_event.set()
|
||||
|
||||
try:
|
||||
self._command_queue.put_nowait(_wrapped)
|
||||
except queue.Full:
|
||||
return {"applied": False, "reason": "command queue is full"}
|
||||
self._command_queue.put(_wrapped)
|
||||
|
||||
if not done_event.wait(timeout=5.0):
|
||||
cancelled.set()
|
||||
return {"applied": False, "reason": "command execution timeout (simulation thread not responding)"}
|
||||
return {"applied": False, "reason": "command execution timeout (wall pacer not responding)"}
|
||||
|
||||
if not result.get("ok"):
|
||||
return {"applied": False, "reason": result.get("error", "unknown execution error")}
|
||||
@@ -1220,9 +1174,6 @@ class SimRunner:
|
||||
if node_id < 0 or node_id >= self.config.n_nodes:
|
||||
return {"applied": False, "reason": "node_id out of range"}
|
||||
|
||||
if not all(math.isfinite(v) for v in (x, y, z)):
|
||||
return {"applied": False, "reason": "position must be finite"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
if ns is None or self._nodes_container is None:
|
||||
@@ -1246,9 +1197,6 @@ class SimRunner:
|
||||
if node_id < 0 or node_id >= self.config.n_nodes:
|
||||
return {"applied": False, "reason": "node_id out of range"}
|
||||
|
||||
if not math.isfinite(dbm) or not -200 <= dbm <= 100:
|
||||
return {"applied": False, "reason": "invalid dBm value"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
if ns is None or self._wifi_devices is None:
|
||||
@@ -1271,9 +1219,6 @@ class SimRunner:
|
||||
if node_id < 0 or node_id >= self.config.n_nodes:
|
||||
return {"applied": False, "reason": "node_id out of range"}
|
||||
|
||||
if not math.isfinite(dbm) or not -200 <= dbm <= 100:
|
||||
return {"applied": False, "reason": "invalid dBm value"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
if ns is None or self._wifi_devices is None:
|
||||
@@ -1297,13 +1242,11 @@ class SimRunner:
|
||||
没有 Exponent 属性,SetAttribute 会触发 ns-3 NS_FATAL_ERROR → std::terminate,
|
||||
Python try/except 无法捕获,uvicorn 会被 docker 重启。
|
||||
"""
|
||||
if not math.isfinite(exponent) or exponent <= 0:
|
||||
return {"applied": False, "reason": "exponent must be positive and finite"}
|
||||
model = self._propagation_loss_model
|
||||
if model is None:
|
||||
return {"applied": False, "reason": "propagation loss model not ready"}
|
||||
model_name = self.config.path_loss_model
|
||||
if model_name != "LogDistance":
|
||||
model_name = str(model.GetInstanceTypeId().GetName())
|
||||
if "LogDistance" not in model_name:
|
||||
return {"applied": False, "reason": f"current model is {model_name}, not LogDistance"}
|
||||
|
||||
def _do():
|
||||
@@ -1317,75 +1260,42 @@ class SimRunner:
|
||||
return self._inject_command(_do)
|
||||
|
||||
def set_frequency(self, mhz: int) -> dict[str, Any]:
|
||||
"""WiFi 频点同步 PHY;UHF 仅改变损耗预算,保留明确的代理载波。"""
|
||||
if mhz <= 0:
|
||||
return {"applied": False, "reason": "frequency must be positive"}
|
||||
with self._lock:
|
||||
width = self._env_state.channel_width_mhz
|
||||
standard = self.config.standard
|
||||
uhf = mhz < 1000
|
||||
if not uhf:
|
||||
if 2400 <= mhz <= 2500:
|
||||
if standard in {"80211a", "80211ac"}:
|
||||
return {"applied": False, "reason": f"{standard} does not support 2.4 GHz"}
|
||||
standard = "80211ax-2.4GHz" if "80211ax" in standard else "80211n-2.4GHz"
|
||||
elif 4900 <= mhz <= 5900:
|
||||
if standard not in {"80211a", "80211ac"}:
|
||||
standard = "80211ax-5GHz" if "80211ax" in standard else "80211n-5GHz"
|
||||
else:
|
||||
return {"applied": False, "reason": "not a supported WiFi frequency or UHF budget"}
|
||||
try:
|
||||
cfg = self.config.merged_with({"frequencyMhz": mhz, "channelWidthMhz": width, "standard": standard})
|
||||
except ValueError as exc:
|
||||
return {"applied": False, "reason": str(exc)}
|
||||
settings = self._channel_settings(cfg)
|
||||
if not uhf and settings.startswith("{0,"):
|
||||
return {"applied": False, "reason": "frequency is not a legal channel center for the current bandwidth"}
|
||||
adjusts_loss = self.config.path_loss_model in {"FreeSpace", "TwoRayGround"}
|
||||
if uhf and not adjusts_loss:
|
||||
return {"applied": False, "reason": "UHF budget requires FreeSpace or TwoRayGround"}
|
||||
"""修改全局中心频率(线程安全)。
|
||||
|
||||
def _do() -> None:
|
||||
if not uhf:
|
||||
for i in range(cfg.n_nodes):
|
||||
phy, error = self._get_node_phy(i)
|
||||
if error:
|
||||
raise RuntimeError(error)
|
||||
phy.SetAttribute("ChannelSettings", self._ns.core.StringValue(settings))
|
||||
if self.config.rate_control == "Constant":
|
||||
manager = phy.GetDevice().GetRemoteStationManager()
|
||||
control = "ErpOfdmRate6Mbps" if "2.4GHz" in standard else "OfdmRate6Mbps"
|
||||
manager.SetAttribute("ControlMode", self._ns.core.StringValue(control))
|
||||
if adjusts_loss:
|
||||
self._propagation_loss_model.SetAttribute("Frequency", self._ns.core.DoubleValue(float(mhz) * 1e6))
|
||||
SpectrumWifiPhy 的 Frequency 属性是 INITIAL_VALUE 类型,运行时不可设置;
|
||||
YansWifiPhy 同理。因此本方法只在 Friis/TwoRayGround 路径损耗模型上调整
|
||||
Frequency(那是真正参与传播预算计算的字段),PHY 端的载波/调制保持不动。
|
||||
"""
|
||||
model = self._propagation_loss_model
|
||||
if model is None:
|
||||
return {"applied": False, "reason": "propagation loss model not ready"}
|
||||
model_name = str(model.GetInstanceTypeId().GetName())
|
||||
if "Friis" not in model_name and "TwoRay" not in model_name:
|
||||
return {"applied": False, "reason": f"current model {model_name} does not support frequency adjustment"}
|
||||
|
||||
def _do():
|
||||
ns = self._ns
|
||||
freq_hz = float(mhz) * 1e6
|
||||
self._propagation_loss_model.SetAttribute(
|
||||
"Frequency", ns.core.DoubleValue(freq_hz)
|
||||
)
|
||||
with self._lock:
|
||||
self._env_state.frequency_mhz = mhz
|
||||
result = self._inject_command(_do)
|
||||
if result.get("applied") and uhf:
|
||||
result["note"] = "UHF propagation budget only; PHY uses a WiFi proxy carrier"
|
||||
return result
|
||||
self._env_state.frequency_mhz = int(mhz)
|
||||
log.info(
|
||||
"propagation-loss frequency set to %d MHz (%.0f Hz); PHY 载波保持不动,如需重置 802.11 频道请重启仿真",
|
||||
mhz, freq_hz,
|
||||
)
|
||||
|
||||
return self._inject_command(_do)
|
||||
|
||||
def set_channel_width(self, mhz: int) -> dict[str, Any]:
|
||||
"""通过可写的 ChannelSettings 在仿真线程切换信道宽度。"""
|
||||
try:
|
||||
with self._lock:
|
||||
frequency = self._env_state.frequency_mhz
|
||||
standard = self.config.standard
|
||||
if "80211n" in standard or "80211ax" in standard:
|
||||
standard = standard.split("-")[0] + ("-5GHz" if frequency >= 4900 else "-2.4GHz")
|
||||
cfg = self.config.merged_with({"channelWidthMhz": mhz, "frequencyMhz": frequency, "standard": standard})
|
||||
except ValueError as exc:
|
||||
return {"applied": False, "reason": str(exc)}
|
||||
"""修改全局信道宽度(线程安全)。
|
||||
|
||||
def _do() -> None:
|
||||
for i in range(cfg.n_nodes):
|
||||
phy, error = self._get_node_phy(i)
|
||||
if error:
|
||||
raise RuntimeError(error)
|
||||
phy.SetAttribute("ChannelSettings", self._ns.core.StringValue(self._channel_settings(cfg)))
|
||||
with self._lock:
|
||||
self._env_state.channel_width_mhz = mhz
|
||||
return self._inject_command(_do)
|
||||
SpectrumWifiPhy 与 YansWifiPhy 的 ChannelWidth 都不允许运行时设置(都是
|
||||
INITIAL_VALUE)。本方法只 warning,提示用户重启仿真才能生效;直接调
|
||||
SetAttribute 会 NS_FATAL_ERROR 把 uvicorn 杀掉。
|
||||
"""
|
||||
return {"applied": False, "reason": "channel width requires simulator restart"}
|
||||
|
||||
def set_range_target(self, meters: float) -> dict[str, Any]:
|
||||
"""修改全局最大通信距离(线程安全)。
|
||||
@@ -1393,8 +1303,6 @@ class SimRunner:
|
||||
优先调整叠加的 Range 模型(所有主模型都叠加了 Range 截断);
|
||||
若叠加模型不存在,回退到直接调整主传播损耗模型(仅 Range 模型本身支持)。
|
||||
"""
|
||||
if not math.isfinite(meters) or meters <= 0:
|
||||
return {"applied": False, "reason": "range must be positive and finite"}
|
||||
# 1. 优先使用叠加的 Range 模型(所有场景都可用)
|
||||
range_model = self._range_model
|
||||
if range_model is not None:
|
||||
@@ -1409,8 +1317,8 @@ class SimRunner:
|
||||
model = self._propagation_loss_model
|
||||
if model is None:
|
||||
return {"applied": False, "reason": "propagation loss model not ready"}
|
||||
model_name = self.config.path_loss_model
|
||||
if model_name != "Range":
|
||||
model_name = str(model.GetInstanceTypeId().GetName())
|
||||
if "Range" not in model_name:
|
||||
return {"applied": False, "reason": f"current model is {model_name}, not Range"}
|
||||
|
||||
def _do():
|
||||
@@ -1423,116 +1331,146 @@ class SimRunner:
|
||||
|
||||
return self._inject_command(_do)
|
||||
|
||||
def _simulation_tick(self) -> None:
|
||||
"""仅由 C++ Runtime 在仿真线程调用,API 只能读复制后的快照。"""
|
||||
ns = self._ns
|
||||
self._sim_elapsed = ns.core.Simulator.Now().GetSeconds()
|
||||
if self._stop_event.is_set():
|
||||
ns.core.Simulator.Stop()
|
||||
return
|
||||
try:
|
||||
# 1. 排空命令队列
|
||||
while not self._command_queue.empty():
|
||||
try:
|
||||
cmd = self._command_queue.get_nowait()
|
||||
cmd()
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("dynamic command failed: %s", e)
|
||||
phy, _ = self._get_node_phy(0)
|
||||
if phy is not None:
|
||||
def _wall_pacer_loop(self) -> None:
|
||||
"""wall-time 周期:drain 命令队列 + 刷新节点位置快照。
|
||||
|
||||
独立于 ns-3 sim 时钟,避免 sim 实时倍率 (BestEffort 下重负载会跌到 1/20x)
|
||||
把命令落地与位置回读拖到 20s+。
|
||||
|
||||
thread-safety 注记:
|
||||
- `mm.SetPosition` / `mm.GetPosition` 在 ConstantPositionMobilityModel 下是
|
||||
单一字段读写,且 CPython GIL 下 Python 调用绑定时序列化执行,与 ns-3 主循环
|
||||
的 C++ 段并发只在 m_position 上读写——x86 对齐写是原子的,最坏情况是
|
||||
下一帧出现一次撕裂,可接受。
|
||||
- 对 RandomWalk/GaussMarkov 等带内部 schedule 的模型,从外部线程改 position
|
||||
仍存在风险;tactical 用 grid (ConstantPosition) 路径已规避。
|
||||
"""
|
||||
target_period = 0.1 # 10 Hz 目标
|
||||
while not self._stop_event.is_set():
|
||||
loop_start = time.monotonic()
|
||||
ns = self._ns
|
||||
if not self._running or ns is None or self._nodes_container is None:
|
||||
time.sleep(target_period)
|
||||
continue
|
||||
try:
|
||||
# 1. 排空命令队列
|
||||
while not self._command_queue.empty():
|
||||
try:
|
||||
cmd = self._command_queue.get_nowait()
|
||||
cmd()
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("dynamic command failed: %s", e)
|
||||
# 2. 刷新位置快照 + 邻居(在锁内,快速操作)
|
||||
with self._lock:
|
||||
self._env_state.phy_frequency_mhz = float(phy.GetFrequency())
|
||||
# 2. 刷新位置快照 + 邻居(在锁内,快速操作)
|
||||
with self._lock:
|
||||
n_nodes = self.config.n_nodes
|
||||
# 2a. 位置
|
||||
for i in range(n_nodes):
|
||||
node = self._nodes_container.Get(i)
|
||||
# ns-3.47 + cppyy:模板方法 GetObject 用方括号语法
|
||||
mm = node.GetObject[ns.mobility.MobilityModel]()
|
||||
if mm:
|
||||
pos = mm.GetPosition()
|
||||
nr = self._nodes_runtime.setdefault(i, NodeRuntime(id=i))
|
||||
nr.x = float(pos.x)
|
||||
nr.y = float(pos.y)
|
||||
self._env_state.positions[i] = {"x": float(pos.x), "y": float(pos.y), "z": float(pos.z)}
|
||||
# 实际已建立的 Mesh peer 链路;AdHoc 无 peer 协议,不伪造连接。
|
||||
for i in range(n_nodes):
|
||||
self._nodes_runtime[i].neighbors = list(self._bridge.Neighbors(self._wifi_devices, i))
|
||||
# 2c. tap 接口 RX/TX(真实容器流量,FlowMonitor 看不到) —— 文件 I/O 在锁外
|
||||
tap_prefix = self.config.tap_prefix
|
||||
with self._lock:
|
||||
node_ids = list(self._nodes_runtime.keys())
|
||||
for i in node_ids:
|
||||
try:
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/rx_packets") as fh:
|
||||
rx = int(fh.read().strip())
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/tx_packets") as fh:
|
||||
tx = int(fh.read().strip())
|
||||
with self._lock:
|
||||
nr = self._nodes_runtime.get(i)
|
||||
if nr:
|
||||
nr.rx_packets = rx
|
||||
nr.tx_packets = tx
|
||||
except Exception: # noqa: BLE001
|
||||
pass
|
||||
# 2d. 在仿真线程读取 TAP 采集器或内部 IP 流的 FlowMonitor。
|
||||
if self._tap_telemetry is not None:
|
||||
self._tap_telemetry.poll()
|
||||
n_nodes = self.config.n_nodes
|
||||
# 必须用 _env_state.range_target_m(动态控制可能已修改),
|
||||
# 不能用 self.config.range_target_m(启动时的静态快照)。
|
||||
max_range = self._env_state.range_target_m
|
||||
# 2a. 位置
|
||||
for i in range(n_nodes):
|
||||
node = self._nodes_container.Get(i)
|
||||
# ns-3.47 + cppyy:模板方法 GetObject 用方括号语法
|
||||
mm = node.GetObject[ns.mobility.MobilityModel]()
|
||||
if mm:
|
||||
pos = mm.GetPosition()
|
||||
nr = self._nodes_runtime.setdefault(i, NodeRuntime(id=i))
|
||||
nr.x = float(pos.x)
|
||||
nr.y = float(pos.y)
|
||||
self._env_state.positions[i] = {"x": float(pos.x), "y": float(pos.y), "z": float(pos.z)}
|
||||
# 2b. 邻居(按距离 + range_target_m 判定)
|
||||
for i in range(n_nodes):
|
||||
ni = self._nodes_runtime.get(i)
|
||||
if not ni:
|
||||
continue
|
||||
neighbors = []
|
||||
for j in range(n_nodes):
|
||||
if i == j:
|
||||
continue
|
||||
nj = self._nodes_runtime.get(j)
|
||||
if not nj:
|
||||
continue
|
||||
if math.hypot(ni.x - nj.x, ni.y - nj.y) <= max_range:
|
||||
neighbors.append(j)
|
||||
ni.neighbors = neighbors
|
||||
# 2c. tap 接口 RX/TX(真实容器流量,FlowMonitor 看不到) —— 文件 I/O 在锁外
|
||||
tap_prefix = self.config.tap_prefix
|
||||
with self._lock:
|
||||
self._flows_runtime = {f["flow_id"]: FlowRuntime(**f) for f in self._tap_telemetry.snapshot()}
|
||||
if self._fm is not None and self.config.traffic_mode != "tap":
|
||||
try:
|
||||
self._fm.CheckForLostPackets()
|
||||
stats = self._fm.GetFlowStats()
|
||||
classifier = self._classifier
|
||||
# 在锁外构建新数据,锁内仅做交换
|
||||
flows_batch: dict[int, FlowRuntime] = {}
|
||||
seen: set[int] = set()
|
||||
for fid, st in stats:
|
||||
seen.add(fid)
|
||||
source, destination = "", ""
|
||||
if classifier:
|
||||
ft = classifier.FindFlow(fid)
|
||||
source = str(ft.sourceAddress)
|
||||
destination = str(ft.destinationAddress)
|
||||
elapsed = max(
|
||||
(st.timeLastRxPacket.GetSeconds()
|
||||
- st.timeFirstTxPacket.GetSeconds()),
|
||||
1e-3, # 最小 1ms 避免溢出
|
||||
)
|
||||
throughput_mbps = (st.rxBytes * 8.0) / elapsed / 1e6
|
||||
avg_delay = (st.delaySum.GetSeconds() / st.rxPackets) \
|
||||
if st.rxPackets else 0.0
|
||||
flows_batch[fid] = FlowRuntime(
|
||||
flow_id=fid,
|
||||
source=source,
|
||||
destination=destination,
|
||||
tx_packets=st.txPackets,
|
||||
rx_packets=st.rxPackets,
|
||||
lost_packets=st.lostPackets,
|
||||
avg_delay=avg_delay * 1000.0,
|
||||
throughput=throughput_mbps,
|
||||
)
|
||||
# 增量合并到共享存储
|
||||
with self._lock:
|
||||
for fid, fr in flows_batch.items():
|
||||
existing = self._flows_runtime.get(fid)
|
||||
if existing is not None:
|
||||
existing.source = fr.source
|
||||
existing.destination = fr.destination
|
||||
existing.tx_packets = fr.tx_packets
|
||||
existing.rx_packets = fr.rx_packets
|
||||
existing.lost_packets = fr.lost_packets
|
||||
existing.avg_delay = fr.avg_delay
|
||||
existing.throughput = fr.throughput
|
||||
else:
|
||||
self._flows_runtime[fid] = fr
|
||||
# 删除已不存在的流
|
||||
for dead_fid in list(self._flows_runtime):
|
||||
if dead_fid not in seen:
|
||||
del self._flows_runtime[dead_fid]
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("flow monitor poll failed: %s", e)
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("simulation tick failed: %s", e)
|
||||
node_ids = list(self._nodes_runtime.keys())
|
||||
for i in node_ids:
|
||||
try:
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/rx_packets") as fh:
|
||||
rx = int(fh.read().strip())
|
||||
with open(f"/sys/class/net/{tap_prefix}{i}/statistics/tx_packets") as fh:
|
||||
tx = int(fh.read().strip())
|
||||
with self._lock:
|
||||
nr = self._nodes_runtime.get(i)
|
||||
if nr:
|
||||
nr.rx_packets = rx
|
||||
nr.tx_packets = tx
|
||||
except Exception: # noqa: BLE001
|
||||
pass
|
||||
# 2d. FlowMonitor 统计 (ns-3.47 cppyy 不支持 Simulator.Schedule
|
||||
# 传入 Python callback,改在 wall-time 线程懒更新)
|
||||
# 使用增量更新替代全量 clear+重建,减少 GC 压力
|
||||
if self._fm is not None:
|
||||
try:
|
||||
self._fm.CheckForLostPackets()
|
||||
stats = self._fm.GetFlowStats()
|
||||
classifier = None
|
||||
if hasattr(self._fm, "GetClassifier"):
|
||||
classifier = self._fm.GetClassifier()
|
||||
# 在锁外构建新数据,锁内仅做交换
|
||||
flows_batch: dict[int, FlowRuntime] = {}
|
||||
seen: set[int] = set()
|
||||
for fid, st in stats:
|
||||
seen.add(fid)
|
||||
source, destination = "", ""
|
||||
if classifier:
|
||||
ft = classifier.FindFlow(fid)
|
||||
source = str(ft.sourceAddress)
|
||||
destination = str(ft.destinationAddress)
|
||||
elapsed = max(
|
||||
(st.timeLastRxPacket.GetSeconds()
|
||||
- st.timeFirstTxPacket.GetSeconds()),
|
||||
1e-3, # 最小 1ms 避免溢出
|
||||
)
|
||||
throughput_mbps = (st.rxBytes * 8.0) / elapsed / 1e6
|
||||
avg_delay = (st.delaySum.GetSeconds() / st.rxPackets) \
|
||||
if st.rxPackets else 0.0
|
||||
flows_batch[fid] = FlowRuntime(
|
||||
flow_id=fid,
|
||||
source=source,
|
||||
destination=destination,
|
||||
tx_packets=st.txPackets,
|
||||
rx_packets=st.rxPackets,
|
||||
lost_packets=st.lostPackets,
|
||||
avg_delay=avg_delay,
|
||||
throughput=throughput_mbps,
|
||||
)
|
||||
# 增量合并到共享存储
|
||||
with self._lock:
|
||||
for fid, fr in flows_batch.items():
|
||||
existing = self._flows_runtime.get(fid)
|
||||
if existing is not None:
|
||||
existing.source = fr.source
|
||||
existing.destination = fr.destination
|
||||
existing.tx_packets = fr.tx_packets
|
||||
existing.rx_packets = fr.rx_packets
|
||||
existing.lost_packets = fr.lost_packets
|
||||
existing.avg_delay = fr.avg_delay
|
||||
existing.throughput = fr.throughput
|
||||
else:
|
||||
self._flows_runtime[fid] = fr
|
||||
# 删除已不存在的流
|
||||
for dead_fid in list(self._flows_runtime):
|
||||
if dead_fid not in seen:
|
||||
del self._flows_runtime[dead_fid]
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("flow monitor poll failed: %s", e)
|
||||
except Exception as e: # noqa: BLE001
|
||||
log.warning("wall pacer iteration failed: %s", e)
|
||||
# 自适应 sleep:测量本次迭代耗时,动态调整以维持目标频率
|
||||
elapsed = time.monotonic() - loop_start
|
||||
sleep_time = max(0.0, target_period - elapsed)
|
||||
if sleep_time > 0:
|
||||
self._stop_event.wait(sleep_time)
|
||||
@@ -1,55 +0,0 @@
|
||||
#pragma once
|
||||
#include <Python.h>
|
||||
#include <functional>
|
||||
#include <algorithm>
|
||||
#include <ns3/simulator.h>
|
||||
#include <ns3/nstime.h>
|
||||
#include <ns3/net-device-container.h>
|
||||
#include <ns3/wifi-net-device.h>
|
||||
#include <ns3/mesh-point-device.h>
|
||||
#include <ns3/peer-management-protocol.h>
|
||||
#include <ns3/peer-link.h>
|
||||
|
||||
namespace manet {
|
||||
// cppyy 只需转换构造参数;Schedule 始终接收原生 C++ 成员函数。
|
||||
class Runtime {
|
||||
public:
|
||||
explicit Runtime(std::function<void()> callback) : m_callback(std::move(callback)) {}
|
||||
void Start() { ns3::Simulator::ScheduleNow(&Runtime::Tick, this); }
|
||||
void Run() {
|
||||
auto* saved = PyEval_SaveThread();
|
||||
try { ns3::Simulator::Run(); }
|
||||
catch (...) { PyEval_RestoreThread(saved); throw; }
|
||||
PyEval_RestoreThread(saved);
|
||||
}
|
||||
static std::vector<uint32_t> Neighbors(const ns3::NetDeviceContainer& devices, uint32_t i) {
|
||||
std::vector<uint32_t> result;
|
||||
auto mesh = devices.Get(i)->GetObject<ns3::MeshPointDevice>();
|
||||
if (!mesh) return result;
|
||||
auto pmp = mesh->GetObject<ns3::dot11s::PeerManagementProtocol>();
|
||||
if (!pmp) return result;
|
||||
for (auto link : pmp->GetPeerLinks()) {
|
||||
for (uint32_t j = 0; j < devices.GetN(); ++j) {
|
||||
if (i == j) continue;
|
||||
auto other = devices.Get(j)->GetObject<ns3::MeshPointDevice>();
|
||||
if (!other) continue;
|
||||
for (auto iface : other->GetInterfaces()) {
|
||||
if (iface->GetAddress() == link->GetPeerAddress()) {
|
||||
if (std::find(result.begin(), result.end(), j) == result.end()) result.push_back(j);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
private:
|
||||
void Tick() {
|
||||
auto gil = PyGILState_Ensure();
|
||||
try { m_callback(); }
|
||||
catch (...) { PyGILState_Release(gil); throw; }
|
||||
PyGILState_Release(gil);
|
||||
ns3::Simulator::Schedule(ns3::MilliSeconds(100), &Runtime::Tick, this);
|
||||
}
|
||||
std::function<void()> m_callback;
|
||||
};
|
||||
}
|
||||
@@ -1,140 +0,0 @@
|
||||
"""从独立 TAP 的 IPv4 帧采集端到端统计,不依赖 ns-3 的 IP 协议栈。
|
||||
|
||||
所有 TAP 共用宿主时钟,以内核接收时间戳计算时延(毫秒)。仅统计已知节点
|
||||
之间的单播 IPv4;丢包是发送后 10 秒仍未观察到接收的包,不把在途包算丢失。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import socket
|
||||
import struct
|
||||
import time
|
||||
from collections import defaultdict, deque
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Any
|
||||
|
||||
|
||||
@dataclass
|
||||
class _Flow:
|
||||
flow_id: int
|
||||
source: str
|
||||
destination: str
|
||||
tx_packets: int = 0
|
||||
rx_packets: int = 0
|
||||
lost_packets: int = 0
|
||||
rx_bytes: int = 0
|
||||
delay_sum_ms: float = 0.0
|
||||
first_tx: float = 0.0
|
||||
last_rx: float = 0.0
|
||||
pending: dict[bytes, deque[float]] = field(default_factory=lambda: defaultdict(deque))
|
||||
|
||||
|
||||
class TapTelemetry:
|
||||
"""被动读取 AF_PACKET 副本,不修改或转发用户数据。"""
|
||||
|
||||
def __init__(self, prefix: str, count: int, loss_timeout: float = 10.0, ip_to_id: dict[str, int] | None = None) -> None:
|
||||
self.prefix = prefix
|
||||
self.count = count
|
||||
self.loss_timeout = loss_timeout
|
||||
self.sockets: list[tuple[int, socket.socket]] = []
|
||||
self.flows: dict[tuple[Any, ...], _Flow] = {}
|
||||
self.ip_to_id = ip_to_id if ip_to_id is not None else {f"192.168.100.{10 + i}": i for i in range(count)}
|
||||
self.capture_drops = 0
|
||||
|
||||
def open(self) -> None:
|
||||
"""权限或接口缺失时使启动失败,避免把缺失统计展示为零流量。"""
|
||||
try:
|
||||
for i in range(self.count):
|
||||
# ETH_P_ALL 才会接收 PACKET_OUTGOING,IPv4 过滤在解析时完成。
|
||||
sock = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(3))
|
||||
self.sockets.append((i, sock))
|
||||
sock.setsockopt(socket.SOL_SOCKET, 35, 1) # Linux SO_TIMESTAMPNS
|
||||
sock.bind((f"{self.prefix}{i}", 0))
|
||||
sock.setblocking(False)
|
||||
except Exception:
|
||||
self.close()
|
||||
raise
|
||||
|
||||
def close(self) -> None:
|
||||
for _, sock in self.sockets:
|
||||
sock.close()
|
||||
self.sockets.clear()
|
||||
|
||||
def poll(self) -> None:
|
||||
events = []
|
||||
for node_id, sock in self.sockets:
|
||||
for _ in range(4096):
|
||||
try:
|
||||
frame, anc, _, address = sock.recvmsg(65535, 128)
|
||||
except BlockingIOError:
|
||||
break
|
||||
timestamp = time.time()
|
||||
for level, kind, data in anc:
|
||||
if level == socket.SOL_SOCKET and kind == 35:
|
||||
sec, nano = struct.unpack("@ll", data[:struct.calcsize("@ll")])
|
||||
timestamp = sec + nano / 1e9
|
||||
events.append((timestamp, node_id, address[2] == socket.PACKET_OUTGOING, frame))
|
||||
# PACKET_STATISTICS 的读取会重置内核计数。
|
||||
_, drops = struct.unpack("II", sock.getsockopt(263, 6, 8))
|
||||
self.capture_drops += drops
|
||||
# 跨接口接收顺序不等于发送顺序,先按内核时间排序再关联。
|
||||
for timestamp, node_id, outgoing, frame in sorted(events, key=lambda e: e[0]):
|
||||
self.observe(node_id, outgoing, frame, timestamp)
|
||||
self.expire(time.time())
|
||||
|
||||
def observe(self, node_id: int, outgoing: bool, frame: bytes, timestamp: float) -> None:
|
||||
"""记录一条捕获事件;可离线验证重复包、丢包和时延计算。"""
|
||||
if len(frame) < 34 or frame[12:14] != b"\x08\x00":
|
||||
return
|
||||
ip = frame[14:]
|
||||
ihl = (ip[0] & 15) * 4
|
||||
length = int.from_bytes(ip[2:4], "big")
|
||||
if ip[0] >> 4 != 4 or ihl < 20 or length < ihl or len(ip) < length:
|
||||
return
|
||||
ip = ip[:length]
|
||||
source, destination = socket.inet_ntoa(ip[12:16]), socket.inet_ntoa(ip[16:20])
|
||||
sid, did = self.ip_to_id.get(source), self.ip_to_id.get(destination)
|
||||
if sid is None or did is None or sid == did:
|
||||
return
|
||||
if node_id != (sid if outgoing else did):
|
||||
return
|
||||
protocol = ip[9]
|
||||
fragment = int.from_bytes(ip[6:8], "big") & 0x1fff
|
||||
ports = struct.unpack("!HH", ip[ihl:ihl + 4]) if protocol in (6, 17) and not fragment and len(ip) >= ihl + 4 else (0, 0)
|
||||
key = (source, destination, protocol, *ports)
|
||||
flow = self.flows.setdefault(key, _Flow(len(self.flows) + 1, source, destination))
|
||||
fingerprint = hashlib.blake2b(ip, digest_size=16).digest()
|
||||
if outgoing:
|
||||
if not flow.tx_packets:
|
||||
flow.first_tx = timestamp
|
||||
flow.tx_packets += 1
|
||||
flow.pending[fingerprint].append(timestamp)
|
||||
else:
|
||||
pending = flow.pending.get(fingerprint)
|
||||
if not pending:
|
||||
return # 忽略重复接收,不能创造没有发送记录的测量值。
|
||||
sent = pending.popleft()
|
||||
if not pending:
|
||||
del flow.pending[fingerprint]
|
||||
flow.rx_packets += 1
|
||||
flow.rx_bytes += length
|
||||
flow.last_rx = timestamp
|
||||
flow.delay_sum_ms += max(0.0, timestamp - sent) * 1000.0
|
||||
|
||||
def expire(self, now: float) -> None:
|
||||
for flow in self.flows.values():
|
||||
for fingerprint, pending in list(flow.pending.items()):
|
||||
while pending and now - pending[0] >= self.loss_timeout:
|
||||
pending.popleft()
|
||||
flow.lost_packets += 1
|
||||
if not pending:
|
||||
del flow.pending[fingerprint]
|
||||
|
||||
def snapshot(self) -> list[dict[str, Any]]:
|
||||
return [{
|
||||
"flow_id": f.flow_id, "source": f.source, "destination": f.destination,
|
||||
"tx_packets": f.tx_packets, "rx_packets": f.rx_packets,
|
||||
"lost_packets": f.lost_packets,
|
||||
"avg_delay": f.delay_sum_ms / f.rx_packets if f.rx_packets else 0.0,
|
||||
"throughput": f.rx_bytes * 8 / max(f.last_rx - f.first_tx, 0.001) / 1e6,
|
||||
} for f in self.flows.values()]
|
||||
@@ -27,7 +27,7 @@ def _node_frame(spec: NodeSpec, sim_node, online: bool) -> dict[str, Any]:
|
||||
"role": spec.role,
|
||||
"rxPackets": int(sim_node.rx_packets) if sim_node else 0,
|
||||
"txPackets": int(sim_node.tx_packets) if sim_node else 0,
|
||||
"latency": None,
|
||||
"latency": 0.0,
|
||||
"neighbors": list(sim_node.neighbors) if sim_node else [],
|
||||
"x": float(sim_node.x) if sim_node else 0.0,
|
||||
"y": float(sim_node.y) if sim_node else 0.0,
|
||||
@@ -132,10 +132,6 @@ class Telemetry:
|
||||
else:
|
||||
online = self.docker.is_running(spec.id)
|
||||
nodes_out.append(_node_frame(spec, sim_nodes.get(spec.id), online))
|
||||
for node in nodes_out:
|
||||
received = [f for f in sim_flows if str(f.destination) == node["ip"] and f.rx_packets > 0]
|
||||
weight = sum(f.rx_packets for f in received)
|
||||
node["latency"] = sum(f.avg_delay * f.rx_packets for f in received) / weight if weight else None
|
||||
# 节点对聚合:把 5-tuple flow 折叠成 (srcId, dstId) 维度
|
||||
ip_to_id = {spec.ip: spec.id for spec in self.specs_by_id.values()}
|
||||
pairs_out = _aggregate_pairs(sim_flows, ip_to_id)
|
||||
@@ -146,22 +142,12 @@ class Telemetry:
|
||||
"nodes": nodes_out,
|
||||
"flows": [_flow_frame(f) for f in sim_flows],
|
||||
"pairs": pairs_out,
|
||||
"measurement": {
|
||||
"enabled": self.sim.config.flow_monitor,
|
||||
"delayUnit": "ms",
|
||||
"throughputUnit": "Mbps",
|
||||
"throughputWindow": "since-first-transmit",
|
||||
"lossTimeoutSeconds": 10,
|
||||
"source": "tap-capture" if self.sim.config.traffic_mode == "tap" else "flow-monitor",
|
||||
"captureDrops": self.sim.capture_drops,
|
||||
},
|
||||
"env": {
|
||||
"txPower": env.tx_power,
|
||||
"rxSensitivity": env.rx_sensitivity,
|
||||
"positions": env.positions,
|
||||
"pathLossExponent": env.path_loss_exponent,
|
||||
"frequencyMhz": env.frequency_mhz,
|
||||
"phyFrequencyMhz": env.phy_frequency_mhz,
|
||||
"channelWidthMhz": env.channel_width_mhz,
|
||||
"rangeTargetM": env.range_target_m,
|
||||
},
|
||||
|
||||
@@ -1,294 +0,0 @@
|
||||
"""Integration tests for FastAPI REST routes.
|
||||
|
||||
Uses FastAPI's TestClient — no real network, no real Docker, no real ns-3.
|
||||
Mocks the Session singleton so tests are fully isolated from state.py.
|
||||
|
||||
Covers: TC-API-001 through TC-API-015.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from unittest.mock import MagicMock, patch, AsyncMock
|
||||
import pytest
|
||||
from fastapi.testclient import TestClient
|
||||
from contextlib import asynccontextmanager
|
||||
|
||||
from controller.orchestrator.config import PRESETS
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Mock helpers
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
class MockSim:
|
||||
elapsed = 45.0
|
||||
mac_mode_actual = "mesh"
|
||||
|
||||
def find_path(self, src, dst):
|
||||
if src == 0 and dst == 4:
|
||||
return [0, 2, 4]
|
||||
return None
|
||||
|
||||
|
||||
class MockSpecs:
|
||||
def __init__(self, n=5):
|
||||
self._specs = [
|
||||
MagicMock(id=i, ip=f"192.168.100.{10+i}") for i in range(n)
|
||||
]
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._specs)
|
||||
|
||||
def __len__(self):
|
||||
return len(self._specs)
|
||||
|
||||
|
||||
def make_mock_session(**overrides):
|
||||
sess = MagicMock()
|
||||
sess.running = False
|
||||
sess.config = MagicMock()
|
||||
sess.config.n_nodes = 5
|
||||
sess.config.routing_protocol = "aodv"
|
||||
sess.preset = "debug"
|
||||
sess.sim = None
|
||||
sess.specs = MockSpecs()
|
||||
sess.docker_mgr = None
|
||||
sess.host_mgrs = {}
|
||||
sess.remote_mgrs = {}
|
||||
# Use AsyncMock so the await in routes_sim.py works without hitting real code
|
||||
sess.start = AsyncMock(return_value=None)
|
||||
sess.stop = AsyncMock(return_value=None)
|
||||
for k, v in overrides.items():
|
||||
setattr(sess, k, v)
|
||||
return sess
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# No-op lifespan avoids UDP port binding
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@asynccontextmanager
|
||||
async def _stub_lifespan(app):
|
||||
yield
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Test cases
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
class TestHealth:
|
||||
def test_health_returns_ok(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
with patch("controller.api.state.get_session", return_value=make_mock_session()):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/health")
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"ok": True}
|
||||
|
||||
|
||||
class TestSimStart:
|
||||
"""Test POST /api/sim/start endpoint.
|
||||
|
||||
Mocks:
|
||||
- sess.start: prevents actual simulation startup
|
||||
- _reap_orphans: prevents netlink calls inside state.py
|
||||
- list_stale_links: prevents netlink calls inside state.py
|
||||
"""
|
||||
|
||||
def _start_sim(self, mock_sess):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
# Patch where the local binding is used (routes_sim.py), not just where
|
||||
# get_session is defined. This is needed because routes_sim does:
|
||||
# "from controller.api.state import get_session"
|
||||
# which creates a local reference that must also be patched.
|
||||
with patch("controller.api.state._reap_orphans"):
|
||||
with patch("controller.api.state.list_stale_links", return_value=[]):
|
||||
with patch("controller.api.routes_sim.get_session", return_value=mock_sess):
|
||||
with patch("controller.api.state.get_session", return_value=mock_sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.post("/api/sim/start", json={})
|
||||
return response, mock_sess
|
||||
|
||||
def test_start_sim_returns_ok(self):
|
||||
response, _ = self._start_sim(make_mock_session(running=False))
|
||||
assert response.status_code == 200
|
||||
assert response.json()["ok"] is True
|
||||
|
||||
def test_start_sim_already_running_returns_409(self):
|
||||
response, _ = self._start_sim(make_mock_session(running=True))
|
||||
assert response.status_code == 409
|
||||
|
||||
def test_start_sim_with_unknown_preset_returns_400(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=False)
|
||||
sess.start.side_effect = KeyError("unknown preset")
|
||||
with patch("controller.api.state._reap_orphans"):
|
||||
with patch("controller.api.state.list_stale_links", return_value=[]):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.post(
|
||||
"/api/sim/start",
|
||||
json={"preset": "nonexistent_preset_xyz"},
|
||||
)
|
||||
assert response.status_code == 400
|
||||
|
||||
def test_start_sim_with_valid_preset(self):
|
||||
response, _ = self._start_sim(make_mock_session(running=False))
|
||||
assert response.status_code == 200
|
||||
|
||||
def test_start_sim_with_config_override(self):
|
||||
sess = make_mock_session(running=False)
|
||||
response, _ = self._start_sim(sess)
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
class TestSimStop:
|
||||
def test_stop_sim_returns_ok(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session()
|
||||
with patch("controller.api.state._reap_orphans"):
|
||||
with patch("controller.api.state.list_stale_links", return_value=[]):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.post("/api/sim/stop")
|
||||
assert response.status_code == 200
|
||||
assert response.json()["ok"] is True
|
||||
|
||||
|
||||
class TestSimStatus:
|
||||
def test_status_returns_running_false(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=False)
|
||||
with patch("controller.api.routes_sim.get_session", return_value=sess):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/status")
|
||||
assert response.status_code == 200
|
||||
assert response.json()["running"] is False
|
||||
|
||||
def test_status_returns_running_true(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=True, sim=MockSim())
|
||||
with patch("controller.api.routes_sim.get_session", return_value=sess):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/status")
|
||||
assert response.status_code == 200
|
||||
assert response.json()["running"] is True
|
||||
assert response.json()["elapsed"] == 45.0
|
||||
|
||||
|
||||
class TestSimPresets:
|
||||
def test_presets_returns_dict(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session()
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/presets")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert "debug" in data
|
||||
assert "default" in data
|
||||
assert "tactical" in data
|
||||
|
||||
def test_all_presets_have_required_keys(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session()
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/presets")
|
||||
required_keys = {"nNodes", "macMode", "routingProtocol", "simulationTime"}
|
||||
for name, preset in response.json().items():
|
||||
missing = required_keys - set(preset.keys())
|
||||
assert not missing, f"preset '{name}' missing keys: {missing}"
|
||||
|
||||
|
||||
class TestSimPath:
|
||||
def test_path_returns_bfs_result(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=True, sim=MockSim())
|
||||
with patch("controller.api.routes_sim.get_session", return_value=sess):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/path?src=0&dst=4")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert data["reachable"] is True
|
||||
assert data["hops"] == 2
|
||||
assert data["path"] == [0, 2, 4]
|
||||
|
||||
def test_path_no_sim_returns_409(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=False, sim=None)
|
||||
with patch("controller.api.routes_sim.get_session", return_value=sess):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/path?src=0&dst=1")
|
||||
assert response.status_code == 409
|
||||
|
||||
def test_path_unreachable_returns_reachable_false(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=True, sim=MockSim())
|
||||
with patch("controller.api.routes_sim.get_session", return_value=sess):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/path?src=0&dst=99")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert data["reachable"] is False
|
||||
assert data["hops"] == -1
|
||||
|
||||
def test_path_includes_ips(self):
|
||||
from controller.api.main import app
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
sess = make_mock_session(running=True, sim=MockSim())
|
||||
with patch("controller.api.routes_sim.get_session", return_value=sess):
|
||||
with patch("controller.api.state.get_session", return_value=sess):
|
||||
with TestClient(app) as client:
|
||||
response = client.get("/api/sim/path?src=0&dst=4")
|
||||
data = response.json()
|
||||
assert "ips" in data
|
||||
assert len(data["ips"]) == len(data["path"])
|
||||
|
||||
class TestTelemetryLifecycle:
|
||||
def test_existing_websocket_follows_start_and_stop(self):
|
||||
import asyncio
|
||||
from types import SimpleNamespace
|
||||
from controller.api.main import app
|
||||
from controller.orchestrator.config import SimConfig
|
||||
from controller.orchestrator.param_store import ParamStore
|
||||
|
||||
class TelemetryStub:
|
||||
unsubscribed = False
|
||||
|
||||
def subscribe(self):
|
||||
queue = asyncio.Queue()
|
||||
queue.put_nowait({'running': True, 'nodes': [], 'flows': [], 't': 1})
|
||||
return queue
|
||||
|
||||
def unsubscribe(self, queue):
|
||||
self.unsubscribed = True
|
||||
|
||||
session = SimpleNamespace(telemetry=None, config=SimConfig())
|
||||
session.param_store = ParamStore(session)
|
||||
app.router.lifespan_context = _stub_lifespan
|
||||
with patch('controller.api.ws_telemetry.get_session', return_value=session):
|
||||
with TestClient(app) as client:
|
||||
with client.websocket_connect('/ws/telemetry') as ws:
|
||||
assert ws.receive_json()['running'] is False
|
||||
telemetry = TelemetryStub()
|
||||
session.telemetry = telemetry
|
||||
assert ws.receive_json()['running'] is True
|
||||
session.telemetry = None
|
||||
assert ws.receive_json()['running'] is False
|
||||
assert telemetry.unsubscribed
|
||||
@@ -81,9 +81,9 @@ class TestSimConfigDefaults:
|
||||
# other fields untouched
|
||||
assert merged.simulation_time == 300
|
||||
|
||||
def test_mac_mode_preserved(self):
|
||||
def test_mac_mode_forced_to_mesh(self):
|
||||
cfg = SimConfig(mac_mode="adhoc")
|
||||
assert cfg.mac_mode == "adhoc"
|
||||
assert cfg.mac_mode == "mesh"
|
||||
|
||||
|
||||
class TestNodeSpec:
|
||||
|
||||
@@ -1,162 +0,0 @@
|
||||
"""Unit tests for controller/orchestrator/docker_mgr.py.
|
||||
|
||||
Docker SDK calls are patched with mocks so these run anywhere.
|
||||
Real Docker/netns operations require a privileged Linux environment
|
||||
and are covered by E2E tests (TC-E2E-*).
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from controller.orchestrator.docker_mgr import DockerMgr, RuntimeNode, CONTAINER_PREFIX
|
||||
from controller.orchestrator.config import NodeSpec, SimConfig
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_docker_client():
|
||||
return MagicMock()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def docker_mgr(mock_docker_client):
|
||||
return DockerMgr(client=mock_docker_client)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_spec():
|
||||
return NodeSpec(id=0, ip="192.168.100.10", role="client")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_config():
|
||||
return SimConfig(n_nodes=5)
|
||||
|
||||
|
||||
def _make_runtime_node(node_id: int = 0, container_id: str = "c123") -> RuntimeNode:
|
||||
return RuntimeNode(
|
||||
spec=NodeSpec(id=node_id, ip=f"192.168.100.{10+node_id}"),
|
||||
container_id=container_id,
|
||||
pid=12345,
|
||||
name=f"manet-node-{node_id}",
|
||||
)
|
||||
|
||||
|
||||
class TestRuntimeNode:
|
||||
def test_runtime_node_fields(self):
|
||||
rn = RuntimeNode(
|
||||
spec=NodeSpec(id=1, ip="192.168.100.11"),
|
||||
container_id="abc123",
|
||||
pid=12345,
|
||||
name="manet-node-1",
|
||||
)
|
||||
assert rn.spec.id == 1
|
||||
assert rn.container_id == "abc123"
|
||||
assert rn.pid == 12345
|
||||
|
||||
|
||||
class TestDockerMgrInit:
|
||||
def test_uses_provided_client(self, mock_docker_client):
|
||||
mgr = DockerMgr(client=mock_docker_client)
|
||||
assert mgr.client is mock_docker_client
|
||||
|
||||
def test_empty_nodes_on_init(self, docker_mgr):
|
||||
assert docker_mgr._nodes == {}
|
||||
|
||||
def test_status_cache_empty_on_init(self, docker_mgr):
|
||||
assert docker_mgr._status_cache == {}
|
||||
|
||||
|
||||
class TestIsRunning:
|
||||
def test_returns_true_for_running_container(self, docker_mgr, mock_docker_client):
|
||||
docker_mgr._nodes[0] = _make_runtime_node(0, "container-0")
|
||||
mock_container = MagicMock()
|
||||
mock_container.status = "running"
|
||||
mock_docker_client.containers.get.return_value = mock_container
|
||||
|
||||
assert docker_mgr.is_running(0) is True
|
||||
mock_docker_client.containers.get.assert_called_once_with("container-0")
|
||||
|
||||
def test_returns_false_for_missing_container(self, docker_mgr, mock_docker_client):
|
||||
docker_mgr._nodes[99] = _make_runtime_node(99, "container-99")
|
||||
from docker.errors import NotFound
|
||||
mock_docker_client.containers.get.side_effect = NotFound("not found")
|
||||
assert docker_mgr.is_running(99) is False
|
||||
|
||||
def test_returns_false_for_stopped_container(self, docker_mgr, mock_docker_client):
|
||||
docker_mgr._nodes[0] = _make_runtime_node(0, "container-0")
|
||||
mock_container = MagicMock()
|
||||
mock_container.status = "exited"
|
||||
mock_docker_client.containers.get.return_value = mock_container
|
||||
assert docker_mgr.is_running(0) is False
|
||||
|
||||
def test_returns_false_for_unknown_node_id(self, docker_mgr, mock_docker_client):
|
||||
# Never touches Docker API when node not tracked
|
||||
assert docker_mgr.is_running(999) is False
|
||||
mock_docker_client.containers.get.assert_not_called()
|
||||
|
||||
def test_cache_hit_avoids_docker_api(self, docker_mgr, mock_docker_client):
|
||||
docker_mgr._nodes[0] = _make_runtime_node(0, "container-0")
|
||||
# Pre-populate cache to simulate recent status check
|
||||
docker_mgr._status_cache[0] = True
|
||||
|
||||
result = docker_mgr.is_running(0)
|
||||
assert result is True
|
||||
# No Docker API calls when cache is populated
|
||||
mock_docker_client.containers.get.assert_not_called()
|
||||
|
||||
|
||||
class TestStartOneValidation:
|
||||
"""start_one requires privileged netns operations; these are E2E tests.
|
||||
|
||||
The image-pull logic (ImageNotFound → pull) is tested below by patching
|
||||
all netns operations.
|
||||
"""
|
||||
|
||||
@pytest.mark.skip(reason="requires --privileged; covered by TC-E2E-001")
|
||||
def test_raises_when_image_tag_is_host_manet_latest(self):
|
||||
pass
|
||||
|
||||
@pytest.mark.skip(reason="requires --privileged; covered by TC-E2E-001")
|
||||
def test_raises_when_image_tag_is_host_manet_latest_netns_needed(self):
|
||||
pass
|
||||
|
||||
def test_image_pull_on_not_found(self, docker_mgr, mock_docker_client):
|
||||
"""Images not present locally are automatically pulled."""
|
||||
spec = NodeSpec(id=0, ip="192.168.100.10")
|
||||
config = SimConfig()
|
||||
from docker.errors import ImageNotFound
|
||||
mock_docker_client.images.get.side_effect = ImageNotFound("not found")
|
||||
mock_docker_client.images.pull.return_value = MagicMock()
|
||||
|
||||
with patch.object(docker_mgr, "_kill_stale"):
|
||||
with patch("controller.orchestrator.docker_mgr.netns.ensure_node_bridge"):
|
||||
with patch("controller.orchestrator.docker_mgr.netns.move_to_netns"):
|
||||
with patch("controller.orchestrator.docker_mgr.netns.create_veth"):
|
||||
with patch(
|
||||
"controller.orchestrator.docker_mgr.netns.create_tap"
|
||||
):
|
||||
with patch(
|
||||
"controller.orchestrator.docker_mgr.netns.DEFAULT_BRIDGE_IP",
|
||||
"192.168.100.1",
|
||||
):
|
||||
mock_container = MagicMock()
|
||||
mock_container.attrs = {"State": {"Pid": 12345}}
|
||||
mock_docker_client.containers.run.return_value = (
|
||||
mock_container
|
||||
)
|
||||
|
||||
docker_mgr.start_one(spec, config)
|
||||
|
||||
mock_docker_client.images.pull.assert_called_once_with(
|
||||
"manet-node:latest"
|
||||
)
|
||||
|
||||
|
||||
class TestContainerNaming:
|
||||
def test_container_name_prefix(self):
|
||||
assert CONTAINER_PREFIX == "manet-node-"
|
||||
|
||||
def test_node_spec_default_image(self, sample_spec):
|
||||
assert sample_spec.image == "manet-node:latest"
|
||||
@@ -1,63 +0,0 @@
|
||||
"""Unit tests for controller/orchestrator/netns.py (pure-function subset).
|
||||
|
||||
Real netlink/bridge operations require a privileged Linux environment
|
||||
and are covered by E2E tests (TC-E2E-*).
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from controller.orchestrator.netns import (
|
||||
node_bridge_name,
|
||||
mesh_mac,
|
||||
DEFAULT_BRIDGE,
|
||||
DEFAULT_BRIDGE_IP,
|
||||
DEFAULT_BRIDGE_PREFIX,
|
||||
)
|
||||
|
||||
|
||||
class TestNodeBridgeName:
|
||||
def test_format(self):
|
||||
assert node_bridge_name(0) == "mesh-br-0"
|
||||
assert node_bridge_name(5) == "mesh-br-5"
|
||||
assert node_bridge_name(15) == "mesh-br-15"
|
||||
|
||||
def test_prefix_uses_default_constant(self):
|
||||
assert DEFAULT_BRIDGE == "mesh-br"
|
||||
|
||||
|
||||
class TestMeshMac:
|
||||
def test_format_valid(self):
|
||||
mac = mesh_mac(0)
|
||||
assert isinstance(mac, str)
|
||||
parts = mac.split(":")
|
||||
assert len(parts) == 6
|
||||
assert all(len(p) == 2 for p in parts)
|
||||
# All hex
|
||||
assert all(int(p, 16) < 256 for p in parts)
|
||||
|
||||
def test_deterministic(self):
|
||||
assert mesh_mac(0) == mesh_mac(0)
|
||||
assert mesh_mac(5) == mesh_mac(5)
|
||||
|
||||
def test_unique_per_node(self):
|
||||
macs = {mesh_mac(i) for i in range(16)}
|
||||
assert len(macs) == 16
|
||||
|
||||
def test_node_15_last_octet_sixteen(self):
|
||||
# node_id=15 → last octet = 0x10 = 16
|
||||
assert mesh_mac(15).endswith(":10")
|
||||
|
||||
def test_first_octet_zero(self):
|
||||
# First octet must be 00 to avoid ns-3 special-address confusion
|
||||
assert mesh_mac(0).startswith("00:")
|
||||
|
||||
|
||||
class TestDefaultConstants:
|
||||
def test_bridge_ip_format(self):
|
||||
parts = DEFAULT_BRIDGE_IP.split(".")
|
||||
assert len(parts) == 4
|
||||
assert all(0 <= int(p) <= 255 for p in parts)
|
||||
|
||||
def test_bridge_prefixlen(self):
|
||||
assert DEFAULT_BRIDGE_PREFIX == 24
|
||||
@@ -1,125 +0,0 @@
|
||||
"""无线配置、线程交接和 TAP 端到端统计回归。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import socket
|
||||
import struct
|
||||
import threading
|
||||
import time
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from controller.orchestrator.config import SimConfig
|
||||
from controller.orchestrator.param_store import ParamStore
|
||||
from controller.orchestrator.sim_runner import SimRunner
|
||||
from controller.orchestrator.tap_telemetry import TapTelemetry
|
||||
|
||||
|
||||
def packet(ident: int = 1) -> bytes:
|
||||
udp = struct.pack('!HHHH', 1234, 5000, 12, 0) + b'test'
|
||||
ip = struct.pack('!BBHHHBBH4s4s', 0x45, 0, 20 + len(udp), ident, 0, 64, 17, 0,
|
||||
socket.inet_aton('192.168.100.10'), socket.inet_aton('192.168.100.11'))
|
||||
return b'\x00' * 12 + b'\x08\x00' + ip + udp
|
||||
|
||||
|
||||
def test_tap_delivery_delay_and_duplicates():
|
||||
capture = TapTelemetry('tap-', 2)
|
||||
frame = packet()
|
||||
capture.observe(0, True, frame, 100.0)
|
||||
capture.observe(1, False, frame, 100.025)
|
||||
capture.observe(1, False, frame, 100.026)
|
||||
result = capture.snapshot()[0]
|
||||
assert (result['tx_packets'], result['rx_packets'], result['lost_packets']) == (1, 1, 0)
|
||||
assert result['avg_delay'] == pytest.approx(25)
|
||||
assert result['throughput'] > 0
|
||||
|
||||
|
||||
def test_tap_loss_excludes_inflight_and_retransmission_matches_fifo():
|
||||
capture = TapTelemetry('tap-', 2)
|
||||
capture.observe(0, True, packet(), 100)
|
||||
capture.observe(0, True, packet(), 101)
|
||||
capture.observe(1, False, packet(), 102)
|
||||
capture.expire(105)
|
||||
assert capture.snapshot()[0]['lost_packets'] == 0
|
||||
capture.expire(111)
|
||||
assert capture.snapshot()[0]['lost_packets'] == 1
|
||||
|
||||
|
||||
def test_tap_ignores_intermediate_nodes_and_non_ipv4():
|
||||
capture = TapTelemetry('tap-', 3)
|
||||
capture.observe(2, True, packet(), 100)
|
||||
capture.observe(0, True, b'garbage', 100)
|
||||
assert capture.snapshot() == []
|
||||
|
||||
|
||||
def test_supported_bandwidth_and_mode_validation():
|
||||
assert SimConfig(mac_mode='adhoc').mac_mode == 'adhoc'
|
||||
assert '40, BAND_2_4GHZ' in SimRunner._channel_settings(SimConfig(channel_width_mhz=40))
|
||||
assert 'BAND_5GHZ' in SimRunner._channel_settings(SimConfig(standard='80211a', data_rate='OfdmRate6Mbps'))
|
||||
with pytest.raises(ValueError):
|
||||
SimConfig(channel_width_mhz=35)
|
||||
with pytest.raises(ValueError):
|
||||
SimConfig(standard='80211a', channel_width_mhz=40)
|
||||
|
||||
|
||||
def test_config_save_is_atomic_and_does_not_apply_dynamic_setters():
|
||||
session = SimpleNamespace(config=SimConfig(), running=True, sim=SimpleNamespace())
|
||||
store = ParamStore(session)
|
||||
updated = SimConfig(channel_width_mhz=40)
|
||||
with patch('controller.orchestrator.param_store.save_config_to_file') as save:
|
||||
assert store.save_config(updated)['ok']
|
||||
save.assert_called_once_with(updated)
|
||||
assert session.config.channel_width_mhz == 40
|
||||
with patch('controller.orchestrator.param_store.save_config_to_file', side_effect=OSError('disk full')):
|
||||
assert not store.save_config(SimConfig())['ok']
|
||||
assert session.config.channel_width_mhz == 40
|
||||
|
||||
|
||||
def test_command_executes_only_when_simulation_thread_drains_queue():
|
||||
runner = SimRunner(SimConfig())
|
||||
runner._running = True
|
||||
runner._thread = threading.current_thread()
|
||||
called = []
|
||||
result = []
|
||||
producer = threading.Thread(target=lambda: result.append(runner._inject_command(lambda: called.append(threading.get_ident()))))
|
||||
producer.start()
|
||||
deadline = time.monotonic() + 1
|
||||
while runner._command_queue.empty() and time.monotonic() < deadline:
|
||||
time.sleep(.001)
|
||||
assert called == []
|
||||
runner._command_queue.get_nowait()()
|
||||
producer.join(timeout=1)
|
||||
assert called == [threading.get_ident()]
|
||||
assert result == [{'applied': True}]
|
||||
|
||||
|
||||
def test_dynamic_rejects_unsupported_frequency_and_nonfinite_values():
|
||||
runner = SimRunner(SimConfig())
|
||||
assert not runner.set_tx_power(0, float('nan'))['applied']
|
||||
assert not runner.set_node_position(0, float('inf'), 0)['applied']
|
||||
assert not runner.set_path_loss_exponent(-1)['applied']
|
||||
assert not runner.set_range_target(-1)['applied']
|
||||
assert not runner.set_frequency(2400)['applied'] # 不合法的 WiFi 中心频点
|
||||
assert not runner.set_channel_width(35)['applied']
|
||||
|
||||
|
||||
def test_channel_centers_are_bandwidth_specific():
|
||||
cfg = SimConfig(standard='80211n-5GHz', frequency_mhz=5190, channel_width_mhz=40)
|
||||
assert SimRunner._channel_settings(cfg) == '{38, 40, BAND_5GHZ, 0}'
|
||||
cfg = SimConfig(frequency_mhz=2437, channel_width_mhz=40)
|
||||
assert SimRunner._channel_settings(cfg) == '{6, 40, BAND_2_4GHZ, 0}'
|
||||
|
||||
|
||||
def test_worker_thread_broadcast_wakes_async_subscriber():
|
||||
import asyncio
|
||||
from controller.orchestrator.param_store import ParamChangeEvent
|
||||
|
||||
async def verify():
|
||||
store = ParamStore(SimpleNamespace(config=SimConfig()))
|
||||
q = store.subscribe()
|
||||
await asyncio.to_thread(store._broadcast, ParamChangeEvent('nNodes', 8, 'static', 'test'))
|
||||
event = await asyncio.wait_for(q.get(), timeout=1)
|
||||
assert event.value == 8
|
||||
store.unsubscribe(q)
|
||||
asyncio.run(verify())
|
||||
@@ -1,271 +0,0 @@
|
||||
# MANET 仿真系统用户手册
|
||||
|
||||
本文档面向最终用户,介绍如何使用本系统启动仿真、配置参数、查看结果。
|
||||
|
||||
**前置要求**:Linux x86_64 主机,Docker 已安装,具备 sudo 权限。
|
||||
|
||||
---
|
||||
|
||||
## 1. 获取与启动
|
||||
|
||||
### 1.1 获取镜像
|
||||
|
||||
```bash
|
||||
# 从 GHCR(GitHub Container Registry)拉取(推荐)
|
||||
docker pull ghcr.io/clawdbuddy/manet-controller:latest
|
||||
docker pull ghcr.io/clawdbuddy/manet-node:latest
|
||||
|
||||
# 或从 Daocloud 拉取
|
||||
docker pull daocloud.io/clawdbuddy/manet-controller:latest
|
||||
docker pull daocloud.io/clawdbuddy/manet-node:latest
|
||||
```
|
||||
|
||||
### 1.2 启动控制器
|
||||
|
||||
```bash
|
||||
cd manet-30ns3
|
||||
|
||||
# 启动控制器容器
|
||||
docker compose up -d controller
|
||||
|
||||
# 验证服务状态
|
||||
curl -s localhost:8000/api/health # 返回 {"ok": true} 即正常
|
||||
```
|
||||
|
||||
打开浏览器访问 **http://localhost:8000/** 即可看到 Web 管理面板。
|
||||
|
||||
### 1.3 后台参数配置
|
||||
|
||||
通过环境变量或 `docker-compose.yml` 配置:
|
||||
|
||||
| 参数 | 说明 | 默认值 |
|
||||
|------|------|--------|
|
||||
| `LOG_LEVEL` | 日志级别 | INFO |
|
||||
| `MANET_WEB_DIR` | Web 静态文件目录 | /app/dist |
|
||||
| `MANET_CONFIG_DIR` | 配置文件目录 | /app/config |
|
||||
|
||||
**方式一:环境变量**
|
||||
|
||||
```bash
|
||||
docker compose up -d controller \
|
||||
-e LOG_LEVEL=DEBUG \
|
||||
-e MANET_CONFIG_DIR=/custom/config
|
||||
```
|
||||
|
||||
**方式二:修改 docker-compose.yml**
|
||||
|
||||
```yaml
|
||||
controller:
|
||||
image: ghcr.io/clawdbuddy/manet-controller:latest
|
||||
environment:
|
||||
- LOG_LEVEL=DEBUG
|
||||
- MANET_WEB_DIR=/app/dist
|
||||
- MANET_CONFIG_DIR=/app/config
|
||||
volumes:
|
||||
- ./config:/app/config # 持久化配置目录
|
||||
- ./results:/results # 持久化结果目录
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
```
|
||||
|
||||
**方式三:通过 REST API 动态配置(仿真运行时不可改)**
|
||||
|
||||
```bash
|
||||
# 查看当前配置
|
||||
curl -s localhost:8000/api/config | jq
|
||||
|
||||
# 更新配置(仅在仿真未运行时有效)
|
||||
curl -X PUT localhost:8000/api/config \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"config": {
|
||||
"nNodes": 10,
|
||||
"simulationTime": 300,
|
||||
"txPowerStart": 30
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
### 1.4 停止控制器
|
||||
|
||||
```bash
|
||||
docker compose down
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 2. 启动仿真
|
||||
|
||||
### 方式一:Web 面板(推荐)
|
||||
|
||||
1. 打开 http://localhost:8000/
|
||||
2. 在 **Dashboard** 或 **Configuration** Tab 中选择预设或调整参数
|
||||
3. 点击 **Start Simulation**
|
||||
|
||||
### 方式二:命令行
|
||||
|
||||
```bash
|
||||
# 使用 debug 预设(5 节点,60 秒,适合快速验证)
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"debug"}'
|
||||
|
||||
# 使用 default 预设
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"preset":"default"}'
|
||||
|
||||
# 自定义配置
|
||||
curl -X POST localhost:8000/api/sim/start \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{
|
||||
"config": {
|
||||
"nNodes": 10,
|
||||
"simulationTime": 300,
|
||||
"txPowerStart": 30,
|
||||
"pathLossModel": "LogDistance"
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
### 预设说明
|
||||
|
||||
| 预设 | 场景 | 节点数 | 时长 |
|
||||
|------|------|--------|------|
|
||||
| `debug` | 快速冒烟测试 | 5 | 60s |
|
||||
| `default` | 默认配置 | 16 | 600s |
|
||||
| `urban` | 高密度城市环境 | 16 | 600s |
|
||||
| `rural` | 开阔野外环境 | 16 | 600s |
|
||||
| `tactical` | 战术通信场景 | 16 | 600s |
|
||||
|
||||
---
|
||||
|
||||
## 3. 停止仿真
|
||||
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/sim/stop
|
||||
```
|
||||
|
||||
停止后会**自动清理**所有节点容器、网桥、Veth、TAP 设备,无需手动处理残留。
|
||||
|
||||
---
|
||||
|
||||
## 4. 查看仿真状态
|
||||
|
||||
```bash
|
||||
# 仿真状态
|
||||
curl -s localhost:8000/api/sim/status
|
||||
|
||||
# 节点列表
|
||||
curl -s localhost:8000/api/nodes | jq
|
||||
|
||||
# 流量统计
|
||||
curl -s localhost:8000/api/flows | jq
|
||||
|
||||
# 实时遥测(WebSocket)
|
||||
# 可在 Web 面板的 Realtime Tab 中查看
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 5. 在节点中执行命令
|
||||
|
||||
```bash
|
||||
# 在节点 0 中执行 ping
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 4 192.168.100.11"}'
|
||||
|
||||
# 启动 iperf3 吞吐测试(服务端在节点 0,客户端在节点 1)
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -s -d"}'
|
||||
|
||||
curl -X POST localhost:8000/api/nodes/1/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"iperf3 -c 192.168.100.10 -t 10"}'
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. 配置参数说明
|
||||
|
||||
主要可调参数(通过 REST body 或 Web 面板配置):
|
||||
|
||||
| 参数 | 说明 | 默认值 |
|
||||
|------|------|--------|
|
||||
| `nNodes` | 节点数量 | 16 |
|
||||
| `simulationTime` | 仿真时长(秒) | 600 |
|
||||
| `txPowerStart` | 发射功率(dBm) | 30 |
|
||||
| `pathLossModel` | 路径损耗模型 | LogDistance |
|
||||
| `macMode` | MAC 模式(mesh/adhoc) | mesh |
|
||||
| `mobilityModel` | 移动模型(grid/constant/random) | grid |
|
||||
| `frequency` | 工作频率(MHz) | 590 |
|
||||
| `standard` | WiFi 标准 | 80211n-2.4GHz |
|
||||
|
||||
---
|
||||
|
||||
## 7. 常见问题
|
||||
|
||||
### 仿真启动失败
|
||||
|
||||
```
|
||||
curl -X POST localhost:8000/api/sim/start -d '{"preset":"debug"}'
|
||||
# 返回 error 或超时
|
||||
```
|
||||
|
||||
**排查步骤**:
|
||||
1. 检查 Docker 是否运行:`docker ps`
|
||||
2. 检查控制器日志:`docker compose logs controller`
|
||||
3. 确认内核模块已加载:`lsmod | grep -E 'tun|tap|bridge'`
|
||||
|
||||
### 节点间不通
|
||||
|
||||
**排查步骤**:
|
||||
1. 查看节点状态:`curl -s localhost:8000/api/nodes`
|
||||
2. 检查容器是否在运行:`docker ps | grep manet-node`
|
||||
3. 在节点内 ping 测试:
|
||||
```bash
|
||||
curl -X POST localhost:8000/api/nodes/0/exec \
|
||||
-H 'content-type: application/json' \
|
||||
-d '{"cmd":"ping -c 3 192.168.100.11"}'
|
||||
```
|
||||
|
||||
### 网桥/TAP 残留
|
||||
|
||||
```bash
|
||||
# 检查残留设备
|
||||
ip link | grep -E 'mesh-|tap-|veth'
|
||||
|
||||
# 手动清理(通常自动清理,若异常则)
|
||||
docker compose down
|
||||
sudo ip link del mesh-br-0 2>/dev/null
|
||||
# ... 对每个残留设备重复
|
||||
```
|
||||
|
||||
### 权限不足
|
||||
|
||||
pyr oute2 需要创建网络设备,需要以 sudo 运行 Docker 或赋予足够权限:
|
||||
|
||||
```bash
|
||||
docker compose up -d controller # 需要 sudo
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 8. Web 面板功能概览
|
||||
|
||||
打开 http://localhost:8000/ 后:
|
||||
|
||||
- **Dashboard**:仿真状态总览、快捷启动/停止
|
||||
- **Configuration**:调整仿真参数、选择预设
|
||||
- **Topology**:查看节点拓扑图
|
||||
- **Realtime**:实时流量监控
|
||||
- **Logs**:查看各节点日志
|
||||
|
||||
---
|
||||
|
||||
## 9. 参考链接
|
||||
|
||||
- 详细技术文档:`manet-30ns3/README.md`
|
||||
- REST API 参考:见 README §7 REST API 速查
|
||||
- 测试用例:`manet-30ns3/tests/docs/`
|
||||
@@ -1,2 +0,0 @@
|
||||
Bug ID,Severity,Test Case,Summary,Steps to Reproduce,Expected,Actual,Status,Reporter,Date
|
||||
BUG-001,P4,TC-NET-007 (known limitation),mesh_mac node_15 returns ':10' not ':0f',Code review of netns.py:mesh_mac(15) formula,Should end with ':0f' for node 15,Ends with ':10' (16 in hex) — code formula uses node_id+1,Known,Code comment correct; test updated to match,2026-05-17
|
||||
|
@@ -1,7 +0,0 @@
|
||||
Test ID,Category,Priority,Status,Result,P0 Count,P1 Count,P2 Count,P3 Count,P4 Count,Passed,Failed,Skipped,Total,Execution Date,Notes
|
||||
MANET-QA-001,Config,P0,PASS,Pass with fixes,0,0,0,0,1,37,0,0,37,2026-05-17,All config tests passed; mac_mode forced to mesh validated
|
||||
MANET-QA-002,Config,P0,PASS,Pass,0,0,0,0,0,30,0,0,30,2026-05-17,test_config.py: 30 passed
|
||||
MANET-QA-003,Netns,P1,PASS,Pass (pure functions only),0,0,0,0,0,8,0,0,8,2026-05-17,test_netns.py: 8 passed; netns operations need privileged Linux
|
||||
MANET-QA-004,DockerMgr,P1,PASS,Pass with skips,0,0,0,0,2,10,0,2,12,2026-05-17,test_docker_mgr.py: 10 passed, 2 skipped (privileged ops)
|
||||
MANET-QA-005,API Routes,P0,PASS,Pass,0,0,0,0,0,15,0,0,15,2026-05-17,test_api_routes.py: 15 passed; patch both import sites critical
|
||||
MANET-QA-006,Frontend,P0,PASS,Pass,0,0,0,0,0,9,0,0,9,2026-05-17,useSimConfig.test.ts: 9 passed (vitest)
|
||||
|
@@ -1,182 +0,0 @@
|
||||
# Config Layer Test Cases (TC-CFG-001 ~ TC-CFG-010)
|
||||
|
||||
## TC-CFG-001: parse_conf_file parses standard key=value
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Python 3.13+, pytest installed
|
||||
- Working directory: `manet-30ns3/`
|
||||
|
||||
**Test Steps**:
|
||||
1. Create a temporary `.conf` file with: `nNodes = 8\nfrequencyMhz = 5180\n`
|
||||
2. Call `parse_conf_file(path)`
|
||||
3. Assert the result equals `{"nNodes": 8, "frequencyMhz": 5180}`
|
||||
|
||||
**Expected Result**:
|
||||
✅ `nNodes` parsed as int 8, `frequencyMhz` parsed as int 5180
|
||||
|
||||
**Pass/Fail Criteria**:
|
||||
- ✅ PASS: Both keys parsed correctly with correct types
|
||||
- ❌ FAIL: Type coercion wrong or key missing
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-002: parse_conf_file ignores // comments and empty lines
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Python 3.13+, pytest installed
|
||||
|
||||
**Test Steps**:
|
||||
1. Create a `.conf` file with:
|
||||
```
|
||||
// comment
|
||||
nNodes = 3 // inline comment
|
||||
|
||||
// empty line above
|
||||
ssid = "test-net"
|
||||
```
|
||||
2. Call `parse_conf_file(path)`
|
||||
3. Assert result is `{"nNodes": 3, "ssid": "test-net"}`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Comments stripped, empty lines ignored, only valid key=value pairs returned
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-003: parse_conf_file converts legacy aliases pcapTracing→pcap, asciiTracing→ascii
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Python 3.13+, pytest installed
|
||||
|
||||
**Test Steps**:
|
||||
1. Create a `.conf` with: `pcapTracing = true\nasciiTracing = false\n`
|
||||
2. Call `parse_conf_file(path)`
|
||||
3. Assert result is `{"pcap": True, "ascii": False}`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Legacy aliases correctly mapped to new keys
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-004: load_config priority — overrides > file > preset > defaults
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Python 3.13+, pytest installed
|
||||
|
||||
**Test Steps**:
|
||||
1. Create file with `nNodes = 12`
|
||||
2. Call `load_config(file_path=path, overrides={"nNodes": 3}, preset="debug")`
|
||||
3. Assert `cfg.n_nodes == 3`
|
||||
|
||||
**Expected Result**:
|
||||
✅ overrides (3) wins over file (12) and preset default (5)
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-005: load_config accepts both snake_case and camelCase overrides
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `load_config(overrides={"frequency_mhz": 5900})` — snake_case
|
||||
2. `load_config(overrides={"frequencyMhz": 5180})` — camelCase
|
||||
3. Assert both produce correct values
|
||||
|
||||
**Expected Result**:
|
||||
✅ Both formats accepted, same result
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-006: SimConfig.merged_with merges partial overrides
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Create `SimConfig()` with defaults
|
||||
2. Call `cfg.merged_with({"n_nodes": 10})`
|
||||
3. Assert `merged.n_nodes == 10` and other fields unchanged
|
||||
|
||||
**Expected Result**:
|
||||
✅ Partial merge works, untouched fields retain defaults
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-007: All 12 presets load and have required fields
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Iterate all entries in `PRESETS`
|
||||
2. Assert each is a `SimConfig` instance with `n_nodes >= 2`
|
||||
|
||||
**Expected Result**:
|
||||
✅ All 12 presets (default, urban, rural, debug, throughput, tactical, wifi-*) valid
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-008: mac_mode="adhoc" is forced to "mesh"
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `cfg = SimConfig(mac_mode="adhoc")`
|
||||
2. Assert `cfg.mac_mode == "mesh"`
|
||||
|
||||
**Expected Result**:
|
||||
✅ NS-3.47 + cppyy incompatibility workaround active
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-009: SimConfig.model_dump(by_alias=True) outputs camelCase
|
||||
|
||||
**Priority**: P2
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `dumped = SimConfig().model_dump(by_alias=True)`
|
||||
2. Assert `"nNodes"` in dumped, `"simulationTime"` in dumped
|
||||
3. Assert no snake_case keys
|
||||
|
||||
**Expected Result**:
|
||||
✅ All keys are camelCase when serialized for API/JSON
|
||||
|
||||
---
|
||||
|
||||
## TC-CFG-010: FIELD_DESCRIPTIONS keys are in sync with SimConfig fields
|
||||
|
||||
**Priority**: P3
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Collect all SimConfig field names via `model_fields`
|
||||
2. Check all field names exist in `FIELD_DESCRIPTIONS`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Every field has a description entry (no silent omission)
|
||||
|
||||
---
|
||||
@@ -1,240 +0,0 @@
|
||||
# API Routes Test Cases (TC-API-001 ~ TC-API-015)
|
||||
|
||||
Covers `controller/api/routes_sim.py`, `routes_config.py`, `routes_nodes.py`.
|
||||
|
||||
## TC-API-001: GET /api/health returns {"ok": true}
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Controller module imports successfully
|
||||
|
||||
**Test Steps**:
|
||||
1. `GET /api/health`
|
||||
2. Assert status 200 and body `{"ok": true}`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Health endpoint responds correctly
|
||||
|
||||
---
|
||||
|
||||
## TC-API-002: POST /api/sim/start launches simulation
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 2 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Mock session with `running=False`
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/start` with empty body
|
||||
2. Assert status 200, `{"ok": true, "nNodes": 5}`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Returns ok=True immediately
|
||||
|
||||
---
|
||||
|
||||
## TC-API-003: POST /api/sim/start while running returns 409
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Set mock session `running=True`
|
||||
2. `POST /api/sim/start`
|
||||
3. Assert status 409 Conflict
|
||||
|
||||
**Expected Result**:
|
||||
✅ Duplicate start rejected cleanly
|
||||
|
||||
---
|
||||
|
||||
## TC-API-004: POST /api/sim/start with unknown preset returns 400
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/start` with `{"preset": "nonexistent"}`
|
||||
2. Assert status 400
|
||||
|
||||
**Expected Result**:
|
||||
✅ KeyError from load_config caught and converted to HTTP 400
|
||||
|
||||
---
|
||||
|
||||
## TC-API-005: GET /api/sim/status returns current simulation state
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `GET /api/sim/status` with no simulation running
|
||||
2. Assert `running=false`, `totalNodes=0`
|
||||
3. With running sim: `running=true`, `elapsed>0`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Status reflects actual session state
|
||||
|
||||
---
|
||||
|
||||
## TC-API-006: GET /api/sim/presets returns all 12 presets
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `GET /api/sim/presets`
|
||||
2. Assert keys include `debug`, `default`, `tactical`, `urban`, `rural`
|
||||
3. Each preset has `nNodes`, `macMode`, `routingProtocol`, `simulationTime`
|
||||
|
||||
**Expected Result**:
|
||||
✅ All 12 presets exposed with required fields
|
||||
|
||||
---
|
||||
|
||||
## TC-API-007: GET /api/sim/path returns BFS path between nodes
|
||||
|
||||
**Priority**: P2
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Start sim with MockSim (src=0→dst=4 returns [0,2,4])
|
||||
2. `GET /api/sim/path?src=0&dst=4`
|
||||
3. Assert `reachable=true`, `hops=2`, `path=[0,2,4]`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Path computation and IP mapping work
|
||||
|
||||
---
|
||||
|
||||
## TC-API-008: POST /api/sim/stop stops simulation and cleans up
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 2 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/stop`
|
||||
2. Assert status 200, `{"ok": true, "running": false}`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Stop cleans up all docker/bridge/veth/tap resources
|
||||
|
||||
---
|
||||
|
||||
## TC-API-009: GET /api/nodes returns node list
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. With simulation running, `GET /api/nodes`
|
||||
2. Assert JSON array with node id, ip, role fields
|
||||
|
||||
**Expected Result**:
|
||||
✅ NodeSpec list returned correctly
|
||||
|
||||
---
|
||||
|
||||
## TC-API-010: POST /api/nodes/{id}/exec runs command in container
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 2 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/nodes/0/exec` with `{"cmd": "ip -4 addr show eth0"}`
|
||||
2. Assert status 200, output contains IP address
|
||||
|
||||
**Expected Result**:
|
||||
✅ docker exec works, output returned
|
||||
|
||||
---
|
||||
|
||||
## TC-API-011: GET /api/logs returns node logs
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `GET /api/logs?node=0&tail=20`
|
||||
2. Assert status 200, log text returned
|
||||
|
||||
**Expected Result**:
|
||||
✅ Logs streamed from container
|
||||
|
||||
---
|
||||
|
||||
## TC-API-012: GET /api/flows returns FlowMonitor statistics
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `GET /api/flows`
|
||||
2. Assert JSON with flow stats (tx_packets, rx_packets, lost_packets)
|
||||
|
||||
**Expected Result**:
|
||||
✅ FlowMonitor stats exposed
|
||||
|
||||
---
|
||||
|
||||
## TC-API-013: WebSocket /ws/telemetry pushes 1Hz telemetry frames
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 3 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Connect WebSocket to `/ws/telemetry`
|
||||
2. Wait 2 seconds
|
||||
3. Assert at least 1 JSON frame received
|
||||
|
||||
**Expected Result**:
|
||||
✅ Frames arrive at ~1Hz with nodes/flows/status data
|
||||
|
||||
---
|
||||
|
||||
## TC-API-014: PUT /api/config rejected while simulation running
|
||||
|
||||
**Priority**: P2
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Set `running=True`
|
||||
2. `PUT /api/config` with new body
|
||||
3. Assert status 409 Conflict
|
||||
|
||||
**Expected Result**:
|
||||
✅ Runtime config change prevented
|
||||
|
||||
---
|
||||
|
||||
## TC-API-015: GET /api/config returns current configuration
|
||||
|
||||
**Priority**: P2
|
||||
**Type**: Integration
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `GET /api/config`
|
||||
2. Assert JSON matches current SimConfig (camelCase)
|
||||
|
||||
**Expected Result**:
|
||||
✅ Full config serialised as camelCase JSON
|
||||
|
||||
---
|
||||
@@ -1,196 +0,0 @@
|
||||
# Netns / DockerMgr / E2E Test Cases (TC-NET, TC-DCK, TC-E2E)
|
||||
|
||||
Covers `controller/orchestrator/netns.py`, `docker_mgr.py`, and integration tests.
|
||||
|
||||
---
|
||||
|
||||
## TC-NET-001: node_bridge_name returns correct format mesh-br-{id}
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Call `node_bridge_name(0)`, `node_bridge_name(5)`, `node_bridge_name(15)`
|
||||
2. Assert `"mesh-br-0"`, `"mesh-br-5"`, `"mesh-br-15"`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Format matches Linux bridge naming convention
|
||||
|
||||
---
|
||||
|
||||
## TC-NET-002: ensure_node_bridge creates bridge idempotently
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Integration* (requires --privileged Linux)
|
||||
**Estimated Time**: 3 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `ensure_node_bridge(0, ip="192.168.100.1", prefixlen=24)`
|
||||
2. Repeat same call
|
||||
3. `ip link show mesh-br-0` — verify bridge exists
|
||||
|
||||
**Expected Result**:
|
||||
✅ Second call is no-op (idempotent), no error
|
||||
|
||||
---
|
||||
|
||||
## TC-NET-007: _normalize_keys converts snake_case to camelCase
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Unit
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `_normalize_keys({"hello_world": 1})` → `{"helloWorld": 1}`
|
||||
2. `_normalize_keys({"foo_bar_baz": 2})` → `{"fooBarBaz": 2}`
|
||||
3. `_normalize_keys({"camelKey": 1})` → passthrough
|
||||
|
||||
**Expected Result**:
|
||||
✅ Consistent key normalization for MAC lookup compatibility
|
||||
|
||||
---
|
||||
|
||||
## TC-DCK-001: start_one creates --net=none container
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration* (requires Docker daemon)
|
||||
**Estimated Time**: 5 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Call `docker_mgr.start_one(NodeSpec(id=0, ip="192.168.100.10"), SimConfig())`
|
||||
2. `docker ps` shows `manet-node-0` with `--network none`
|
||||
3. `docker inspect manet-node-0` shows `NetworkMode: none`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Container isolated with no Docker bridge networking
|
||||
|
||||
---
|
||||
|
||||
## TC-DCK-002: stop_all removes all containers
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: Integration* (requires Docker daemon)
|
||||
**Estimated Time**: 5 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Start 5-node simulation
|
||||
2. `POST /api/sim/stop`
|
||||
3. `docker ps | grep manet-node` → empty
|
||||
|
||||
**Expected Result**:
|
||||
✅ All containers cleaned up
|
||||
|
||||
---
|
||||
|
||||
## TC-DCK-003: is_running returns correct status from cache
|
||||
|
||||
**Priority**: P1
|
||||
**Type**: Unit (mocked)
|
||||
**Estimated Time**: 1 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Pre-populate `docker_mgr._status_cache[0] = True`
|
||||
2. Call `is_running(0)` without Docker API
|
||||
3. Assert `True`, no `containers.get` call
|
||||
|
||||
**Expected Result**:
|
||||
✅ Cache hit avoids Docker API round-trip
|
||||
|
||||
---
|
||||
|
||||
## TC-E2E-001: debug preset — 5 node / 60s simulation smoke test
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: E2E
|
||||
**Estimated Time**: 10 min
|
||||
|
||||
**Prerequisites**:
|
||||
- Linux host with Docker, 5+ GB RAM
|
||||
- Controller running: `docker compose up -d controller`
|
||||
- Can access `localhost:8000`
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/start` with `{"preset": "debug"}`
|
||||
2. Wait 5s, verify `mesh-br-*`, `mesh-tap-*`, `mesh-veth*` exist via `ip link`
|
||||
3. Verify 5 containers via `docker ps`
|
||||
4. `docker exec manet-node-0 ping -c 3 192.168.100.11`
|
||||
5. `POST /api/sim/stop`
|
||||
6. `ip link | grep mesh-br` → empty (clean)
|
||||
|
||||
**Expected Result**:
|
||||
✅ Full lifecycle works end-to-end, no resource leak
|
||||
|
||||
---
|
||||
|
||||
## TC-E2E-002: default preset — 6 node ping across topology
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: E2E
|
||||
**Estimated Time**: 10 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/start` with `{"preset": "default"}`
|
||||
2. Wait 10s for routing to converge
|
||||
3. `docker exec manet-node-0 ping -c 3 192.168.100.15` (node 5)
|
||||
4. Verify ping success or proper path loss
|
||||
|
||||
**Expected Result**:
|
||||
✅ Multi-hop mesh routing functional
|
||||
|
||||
---
|
||||
|
||||
## TC-E2E-008: br-ns3/tap-*/veth* cleaned after stop
|
||||
|
||||
**Priority**: P0
|
||||
**Type**: E2E
|
||||
**Estimated Time**: 5 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/start` with `{"preset": "debug"}`
|
||||
2. Verify resources present
|
||||
3. `POST /api/sim/stop`
|
||||
4. `ip link | grep -E 'mesh-br|mesh-tap|mesh-veth' || echo "clean"`
|
||||
|
||||
**Expected Result**:
|
||||
✅ Output is "clean" — no stale interfaces
|
||||
|
||||
---
|
||||
|
||||
## TC-E2E-009: bind mode user software load works
|
||||
|
||||
**Priority**: P2
|
||||
**Type**: E2E
|
||||
**Estimated Time**: 5 min
|
||||
|
||||
**Test Steps**:
|
||||
1. Host: `mkdir -p /tmp/uatest && echo 'echo hello' > /tmp/uatest/run.sh`
|
||||
2. `POST /api/sim/start` with:
|
||||
```json
|
||||
{"preset": "debug", "nodes": [{"id": 0, "userAppMode": "bind", "userAppBindPath": "/tmp/uatest"}]}
|
||||
```
|
||||
3. `docker exec manet-node-0 /opt/userapp/run.sh` → "hello"
|
||||
|
||||
**Expected Result**:
|
||||
✅ Bind mount makes host directory available in container
|
||||
|
||||
---
|
||||
|
||||
## TC-E2E-010: exec mode — docker exec delivers commands
|
||||
|
||||
**Priority**: P2
|
||||
**Type**: E2E
|
||||
**Estimated Time**: 3 min
|
||||
|
||||
**Test Steps**:
|
||||
1. `POST /api/sim/start` with `{"preset": "debug"}`
|
||||
2. `POST /api/nodes/0/exec` with `{"cmd": "echo hi"}`
|
||||
3. Assert `"hi"` in response
|
||||
|
||||
**Expected Result**:
|
||||
✅ Command execution API works
|
||||
|
||||
---
|
||||
|
||||
*Integration tests marked (*) require a privileged Linux environment with Docker daemon.
|
||||
Unit tests run in any environment with mocks.
|
||||
@@ -1,25 +0,0 @@
|
||||
"""真实 ns-3 冒烟:内部流量、队列调参、带宽切换与自然停止。
|
||||
|
||||
在主项目目录执行:PYTHONPATH=. python3 tests/smoke_sim_runner.py
|
||||
不需要 Docker,不操作宿主网桥或 TAP;需要可用的 cppyy/ns-3 安装。
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import time
|
||||
from controller.orchestrator.config import SimConfig
|
||||
from controller.orchestrator.sim_runner import SimRunner
|
||||
runner = SimRunner(SimConfig(n_nodes=2, traffic_mode='onoff', mobility_model='grid', grid_delta_x=20, routing_protocol='none', simulation_time=6, pcap=False, flow_monitor=True))
|
||||
runner.start()
|
||||
assert runner.running
|
||||
assert runner.set_tx_power(0, 20)['applied']
|
||||
assert runner.set_channel_width(40)['applied']
|
||||
assert runner.set_node_position(1, 20, 10)['applied']
|
||||
deadline = time.monotonic() + 20
|
||||
while runner.running and time.monotonic() < deadline:
|
||||
time.sleep(.2)
|
||||
print('env', runner.snapshot_env(), flush=True)
|
||||
print('flows', runner.snapshot_flows(), flush=True)
|
||||
assert not runner.running, 'simulationTime failed to stop the simulation'
|
||||
assert any(f.source and f.destination and f.rx_packets > 0 for f in runner.snapshot_flows()), 'no received flow statistics'
|
||||
runner.stop()
|
||||
print('NS3_RUNNER_SMOKE_OK', flush=True)
|
||||
@@ -1,36 +0,0 @@
|
||||
{
|
||||
"name": "manet-30ns3",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.56.2",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.1",
|
||||
"lucide-react": "^0.441.0",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"tailwind-merge": "^2.5.3",
|
||||
"zustand": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^6.5.0",
|
||||
"@testing-library/react": "^16.0.0",
|
||||
"@types/node": "^22.5.4",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"@vitejs/plugin-react": "^4.3.1",
|
||||
"vitest": "^2.1.1",
|
||||
"jsdom": "^25.0.0",
|
||||
"typescript": "~5.6.0",
|
||||
"vite": "^5.4.3"
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta http-equiv="Expires" content="0" />
|
||||
<title>电台设备控制</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root-radio"></div>
|
||||
<script type="module" src="/src/radio-main.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useState, useCallback, useEffect } from 'react';
|
||||
import { useState, useCallback } from 'react';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { useSimConfig } from '@/hooks/useSimConfig';
|
||||
@@ -42,14 +42,6 @@ function App() {
|
||||
const [activePage, setActivePage] = useState<PageKey>('dashboard');
|
||||
const [nodeSpecs, setNodeSpecs] = useState<NodeSpec[] | undefined>(undefined);
|
||||
|
||||
// Load node specs from backend on mount (so Start always includes remote-host config)
|
||||
useEffect(() => {
|
||||
fetch('/api/nodes/specs')
|
||||
.then(r => r.ok ? r.json() : [])
|
||||
.then(data => { if (Array.isArray(data) && data.length > 0) setNodeSpecs(data); })
|
||||
.catch(() => {});
|
||||
}, []);
|
||||
|
||||
const handleStart = () => {
|
||||
startSimulation(config, undefined, nodeSpecs);
|
||||
};
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { renderHook, act } from '@testing-library/react';
|
||||
import { useSimConfig } from './useSimConfig';
|
||||
|
||||
beforeEach(() => {
|
||||
vi.stubGlobal('fetch', vi.fn(() => new Promise<Response>(() => {})));
|
||||
});
|
||||
afterEach(() => {
|
||||
vi.unstubAllGlobals();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
describe('useSimConfig', () => {
|
||||
it('should initialize with fallback config', () => {
|
||||
const { result } = renderHook(() => useSimConfig());
|
||||
@@ -108,38 +100,3 @@ describe('useSimConfig', () => {
|
||||
expect(result.current.config.nNodes).toBe(99);
|
||||
});
|
||||
});
|
||||
|
||||
// 慢读配置和应用层保存失败必须覆盖,防止刷新页面破坏已有实验配置。
|
||||
describe('configuration persistence regressions', () => {
|
||||
it('does not save fallback while initial reads are pending', async () => {
|
||||
const { vi } = await import('vitest');
|
||||
vi.useFakeTimers();
|
||||
const fetchMock = vi.fn<(url: string, options?: RequestInit) => Promise<Response>>(() => new Promise<Response>(() => {}));
|
||||
vi.stubGlobal('fetch', fetchMock);
|
||||
const hook = renderHook(() => useSimConfig());
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(1000); });
|
||||
expect(fetchMock).toHaveBeenCalledTimes(2);
|
||||
expect(fetchMock.mock.calls.every(call => call.length === 1)).toBe(true);
|
||||
hook.unmount();
|
||||
vi.unstubAllGlobals();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
|
||||
it('reports backend save rejection instead of saved', async () => {
|
||||
const { vi } = await import('vitest');
|
||||
vi.useFakeTimers();
|
||||
const fetchMock = vi.fn().mockImplementation((_url: string, options?: RequestInit) => Promise.resolve({
|
||||
ok: true,
|
||||
json: async () => options?.method === 'PUT' ? { ok: false, reason: 'disk full' } : {},
|
||||
}));
|
||||
vi.stubGlobal('fetch', fetchMock);
|
||||
const hook = renderHook(() => useSimConfig());
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(0); });
|
||||
act(() => { hook.result.current.updateConfig('nNodes', 8); });
|
||||
await act(async () => { await vi.advanceTimersByTimeAsync(600); });
|
||||
expect(hook.result.current.saveStatus).toBe('error');
|
||||
hook.unmount();
|
||||
vi.unstubAllGlobals();
|
||||
vi.useRealTimers();
|
||||
});
|
||||
});
|
||||
@@ -76,13 +76,7 @@ export function useSimConfig(sim?: SimApi) {
|
||||
setPresets(presetData);
|
||||
if (saved && typeof saved === 'object' && !Array.isArray(saved)) {
|
||||
// ParamStore.get_all() 返回的是 flat 参数对象;直接合并到 SimConfig
|
||||
setConfig(prev => {
|
||||
const loaded = { ...prev, ...saved };
|
||||
lastSavedJsonRef.current = JSON.stringify(loaded);
|
||||
return loaded;
|
||||
});
|
||||
} else {
|
||||
throw new Error('无法读取已保存配置,已暂停自动保存');
|
||||
setConfig(prev => ({ ...prev, ...saved }));
|
||||
}
|
||||
setReady(true);
|
||||
}).catch((e) => {
|
||||
@@ -193,7 +187,7 @@ export function useSimConfig(sim?: SimApi) {
|
||||
.filter((r: { ok?: boolean }) => r.ok === false)
|
||||
.map((r: { key?: string; reason?: string }) => r.key || r.reason || 'unknown')
|
||||
.join(', ');
|
||||
throw new Error(data.reason || reasons || '后端未能完整保存配置');
|
||||
if (reasons) console.warn('save partial failures:', reasons);
|
||||
}
|
||||
lastSavedJsonRef.current = JSON.stringify(cfg);
|
||||
setSaveStatus('saved');
|
||||
@@ -201,12 +195,33 @@ export function useSimConfig(sim?: SimApi) {
|
||||
} catch (e) {
|
||||
console.warn('saveConfig REST failed:', e);
|
||||
|
||||
// 兜底:WebSocket 路径(仿真运行中需要实时下发的参数)
|
||||
if (sim) {
|
||||
try {
|
||||
const params: Record<string, unknown> = {};
|
||||
(Object.keys(cfg) as Array<keyof SimConfig>).forEach(key => {
|
||||
params[key] = cfg[key];
|
||||
});
|
||||
const result = await sim.batchSetParams(params);
|
||||
const realFailures = (result.results || []).filter(
|
||||
(r: { ok: boolean; reason?: string }) => !r.ok && !(r.reason || '').includes('requires simulator restart')
|
||||
);
|
||||
if (realFailures.length === 0) {
|
||||
lastSavedJsonRef.current = JSON.stringify(cfg);
|
||||
setSaveStatus('saved');
|
||||
setTimeout(() => setSaveStatus('idle'), 2000);
|
||||
return;
|
||||
}
|
||||
} catch {
|
||||
// WS 也失败,继续报 error
|
||||
}
|
||||
}
|
||||
|
||||
setSaveStatus('error');
|
||||
}
|
||||
}, []);
|
||||
}, [sim]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!ready || error) return;
|
||||
if (saveTimerRef.current) {
|
||||
clearTimeout(saveTimerRef.current);
|
||||
}
|
||||
@@ -220,7 +235,7 @@ export function useSimConfig(sim?: SimApi) {
|
||||
clearTimeout(saveTimerRef.current);
|
||||
}
|
||||
};
|
||||
}, [config, saveConfig, ready, error]);
|
||||
}, [config, saveConfig]);
|
||||
|
||||
return {
|
||||
config,
|
||||
|
||||
@@ -18,7 +18,6 @@ interface TelemetryFrame {
|
||||
pairs?: NodePairFlow[];
|
||||
env?: TelemetryEnv;
|
||||
ts: number;
|
||||
measurement?: { captureDrops: number };
|
||||
}
|
||||
|
||||
function aggregateStatus(frame: TelemetryFrame, prevStartTime: string | null): SimulationStatus {
|
||||
@@ -65,7 +64,6 @@ export function useSimulation(initialNnodes: number = 5) {
|
||||
const [env, setEnv] = useState<TelemetryEnv | null>(null);
|
||||
const [logs, setLogs] = useState<string[]>([]);
|
||||
const wsRef = useRef<WebSocket | null>(null);
|
||||
const captureDropsRef = useRef(0);
|
||||
const reconnectTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
const connectWsRef = useRef<(() => void) | null>(null);
|
||||
const pendingRef = useRef<Map<string, PendingRequest>>(new Map());
|
||||
@@ -234,11 +232,6 @@ export function useSimulation(initialNnodes: number = 5) {
|
||||
|
||||
// 3. 遥测帧(无 type 字段或 type 为 undefined)
|
||||
const frame = msg as unknown as TelemetryFrame;
|
||||
const captureDrops = frame.measurement?.captureDrops ?? 0;
|
||||
if (captureDrops > captureDropsRef.current) {
|
||||
addLog(`[telemetry] 采集器累计丢帧 ${captureDrops},流量统计可能不完整`);
|
||||
}
|
||||
captureDropsRef.current = captureDrops;
|
||||
setNodes(frame.nodes ?? []);
|
||||
setFlows(frame.flows ?? []);
|
||||
setPairs(frame.pairs ?? []);
|
||||
@@ -257,14 +250,13 @@ export function useSimulation(initialNnodes: number = 5) {
|
||||
|
||||
useEffect(() => {
|
||||
connectWs();
|
||||
const pendingRequests = pendingRef.current;
|
||||
return () => {
|
||||
// 清理 pending requests,避免 setState on unmounted component
|
||||
pendingRequests.forEach(({ reject, timer }) => {
|
||||
pendingRef.current.forEach(({ reject, timer }) => {
|
||||
clearTimeout(timer);
|
||||
reject(new Error('component unmounted'));
|
||||
});
|
||||
pendingRequests.clear();
|
||||
pendingRef.current.clear();
|
||||
if (reconnectTimerRef.current) clearTimeout(reconnectTimerRef.current);
|
||||
if (wsRef.current) {
|
||||
wsRef.current.onclose = null; // suppress reconnect on unmount
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { RadioDeviceControl } from './sections/RadioDeviceControl'
|
||||
|
||||
createRoot(document.getElementById('root-radio')!).render(
|
||||
<StrictMode>
|
||||
<div className="min-h-screen bg-background p-6">
|
||||
<RadioDeviceControl />
|
||||
</div>
|
||||
</StrictMode>,
|
||||
)
|
||||
@@ -59,11 +59,6 @@ export function Dashboard({ status, flows, nodes }: DashboardProps) {
|
||||
const totalRxNodes = nodes.reduce((sum, n) => sum + n.rxPackets, 0);
|
||||
const totalTxNodes = nodes.reduce((sum, n) => sum + n.txPackets, 0);
|
||||
|
||||
const received = flows.reduce((sum, f) => sum + f.rxPackets, 0);
|
||||
const sent = flows.reduce((sum, f) => sum + f.txPackets, 0);
|
||||
const lost = flows.reduce((sum, f) => sum + f.lostPackets, 0);
|
||||
const throughput = flows.reduce((sum, f) => sum + f.throughput, 0);
|
||||
const delay = received ? flows.reduce((sum, f) => sum + f.avgDelay * f.rxPackets, 0) / received : null;
|
||||
const onlineNodes = nodes.filter(n => n.status === 'online').length;
|
||||
const activeFlowCount = flows.filter(f => f.txPackets > 0).length;
|
||||
|
||||
@@ -108,7 +103,7 @@ export function Dashboard({ status, flows, nodes }: DashboardProps) {
|
||||
subValue="packets"
|
||||
icon={<ArrowUpFromLine className="h-4 w-4 text-cyan-500" />}
|
||||
iconBg="bg-cyan-500/10"
|
||||
tooltip="所有节点 TAP 发送包总数"
|
||||
tooltip="所有节点 WifiNetDevice 发送包总数"
|
||||
/>
|
||||
<StatCard
|
||||
label="总接收量"
|
||||
@@ -116,14 +111,9 @@ export function Dashboard({ status, flows, nodes }: DashboardProps) {
|
||||
subValue="packets"
|
||||
icon={<ArrowDownToLine className="h-4 w-4 text-violet-500" />}
|
||||
iconBg="bg-violet-500/10"
|
||||
tooltip="所有节点 TAP 接收包总数(含广播重复计数)"
|
||||
tooltip="所有节点 WifiNetDevice 接收包总数(含广播重复计数)"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-3">
|
||||
<StatCard label="平均吞吐" value={flows.length ? throughput.toFixed(2) : '—'} subValue="Mbps · 自流开始累计平均" icon={<Activity className="h-4 w-4" />} iconBg="bg-primary/10" />
|
||||
<StatCard label="平均端到端延迟" value={delay === null ? '—' : delay.toFixed(2)} subValue="ms · 按接收包数加权" icon={<Activity className="h-4 w-4" />} iconBg="bg-primary/10" />
|
||||
<StatCard label="确认丢包率" value={sent ? `${(lost / sent * 100).toFixed(2)}%` : '—'} subValue="发送后 10 秒未收到;不含在途包" icon={<Activity className="h-4 w-4" />} iconBg="bg-primary/10" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -34,7 +34,6 @@ interface DynamicControlProps {
|
||||
|
||||
export function DynamicControl({ status, nodes, config, env, sim }: DynamicControlProps) {
|
||||
const ctrl = useDynamicControl(sim);
|
||||
const allowedWidths = config.standard === '80211a' ? [20] : config.standard.includes('2.4GHz') || config.standard.includes('80211n') ? [20, 40] : [20, 40, 80, 160];
|
||||
const [selectedNode, setSelectedNode] = useState(0);
|
||||
const [posX, setPosX] = useState('');
|
||||
const [posY, setPosY] = useState('');
|
||||
@@ -432,7 +431,7 @@ export function DynamicControl({ status, nodes, config, env, sim }: DynamicContr
|
||||
onValueChange={v => { setFrequency(v); markDirty(); }}
|
||||
min={300}
|
||||
max={5800}
|
||||
step={1}
|
||||
step={10}
|
||||
disabled={!running}
|
||||
/>
|
||||
<Button
|
||||
@@ -447,7 +446,6 @@ export function DynamicControl({ status, nodes, config, env, sim }: DynamicContr
|
||||
<Send className="h-3.5 w-3.5" />
|
||||
应用频率
|
||||
</Button>
|
||||
<p className="text-xs text-muted-foreground">WiFi 频率须匹配当前带宽的合法中心频点。UHF 只调整传播损耗预算;当前 PHY 载波:{env?.phyFrequencyMhz ?? '—'} MHz。</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -471,21 +469,21 @@ export function DynamicControl({ status, nodes, config, env, sim }: DynamicContr
|
||||
>
|
||||
<p className="text-xs text-amber-600 bg-amber-50/60 rounded-lg px-3 py-2 border border-amber-200/40"
|
||||
>
|
||||
运行时切换会短暂中断通信;可选宽度取决于当前 WiFi 标准
|
||||
运行时修改不生效,需重启仿真才能应用
|
||||
</p>
|
||||
<div className="flex items-center justify-between text-xs text-muted-foreground"
|
||||
>
|
||||
<span>{allowedWidths[0]} MHz</span>
|
||||
<span>5 MHz</span>
|
||||
<Badge variant="outline" className="font-mono text-sm"
|
||||
>{channelWidth[0]} MHz</Badge>
|
||||
<span>{allowedWidths[allowedWidths.length - 1]} MHz</span>
|
||||
<span>80 MHz</span>
|
||||
</div>
|
||||
<Slider
|
||||
value={[allowedWidths.indexOf(channelWidth[0])]}
|
||||
onValueChange={v => { setChannelWidth([allowedWidths[v[0]] ?? allowedWidths[0]]); markDirty(); }}
|
||||
min={0}
|
||||
max={Math.max(1, allowedWidths.length - 1)}
|
||||
step={1}
|
||||
value={channelWidth}
|
||||
onValueChange={v => { setChannelWidth(v); markDirty(); }}
|
||||
min={5}
|
||||
max={80}
|
||||
step={5}
|
||||
disabled={!running}
|
||||
/>
|
||||
<Button
|
||||
|
||||
@@ -1,567 +0,0 @@
|
||||
import { useState, useCallback } from 'react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Slider } from '@/components/ui/slider';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import {
|
||||
Radio, Settings2, Send, CheckCircle, AlertCircle,
|
||||
Antenna, Zap, Wifi, Gauge, Signal,
|
||||
} from 'lucide-react';
|
||||
|
||||
const PROTOCOL_HOST = '192.0.3.1';
|
||||
const PROTOCOL_PORT = 62450;
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Protocol framing helpers
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
interface FrameResult {
|
||||
ok: boolean;
|
||||
msg: string;
|
||||
raw?: string;
|
||||
}
|
||||
|
||||
/** Build a UDP frame per api_54.docx §3.2.1 */
|
||||
function buildFrame(
|
||||
commType: 1 | 2 | 3,
|
||||
signalId: number,
|
||||
payload: Uint8Array
|
||||
): Uint8Array {
|
||||
const infoLen = payload.length;
|
||||
const frame = new Uint8Array(7 + infoLen);
|
||||
// Byte 0: comm type
|
||||
frame[0] = commType;
|
||||
// Byte 1: reserved = 0
|
||||
frame[1] = 0;
|
||||
// Byte 2: reserved = 0
|
||||
frame[2] = 0;
|
||||
// Bytes 3-4: signal ID (network byte order)
|
||||
frame[3] = (signalId >> 8) & 0xff;
|
||||
frame[4] = signalId & 0xff;
|
||||
// Bytes 5-6: info length (network byte order)
|
||||
frame[5] = (infoLen >> 8) & 0xff;
|
||||
frame[6] = infoLen & 0xff;
|
||||
// Payload
|
||||
frame.set(payload, 7);
|
||||
return frame;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
/** Convert a number to 2-byte big-endian */
|
||||
function toBe2(v: number) {
|
||||
return Uint8Array.from([(v >> 8) & 0xff, v & 0xff]);
|
||||
}
|
||||
|
||||
/** Convert a number to 1-byte big-endian */
|
||||
function toBe1(v: number) {
|
||||
return Uint8Array.from([v & 0xff]);
|
||||
}
|
||||
|
||||
/** Bytes to hex string */
|
||||
function toHex(bytes: Uint8Array) {
|
||||
return Array.from(bytes).map(b => b.toString(16).padStart(2, '0')).join(' ');
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Mode / rate tables from the doc
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
const WORK_MODE_MAP: Record<number, string> = {
|
||||
0: '定频', 1: '跳频', 2: 'FCS',
|
||||
3: '定-密', 4: '跳-密', 5: 'FCS-密',
|
||||
};
|
||||
|
||||
const RATE_MAP: Record<number, string> = {
|
||||
0: '速率自适应', 1: '窄512kbps', 2: '窄1Mbps', 3: '窄2Mbps',
|
||||
4: '宽2Mbps', 5: '宽4Mbps', 6: '宽8Mbps', 7: '宽10Mbps',
|
||||
8: '宽16Mbps', 9: '窄4Mbps', 10: '2Mbps', 11: '4Mbps',
|
||||
12: '5Mbps', 13: '8Mbps', 14: '10Mbps', 15: '宽20Mbps',
|
||||
16: '64k', 17: '512k', 18: '2M',
|
||||
};
|
||||
|
||||
const POWER_MAP: Record<number, string> = {
|
||||
4: '功率自适应', 3: '值守', 2: '小功率', 1: '中功率', 0: '大功率',
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Freq helpers
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
||||
/** Convert MHz float → 4-byte compressed BCD */
|
||||
function mhzToBcd(mhz: number): Uint8Array {
|
||||
const khz = Math.round(mhz * 1000);
|
||||
const d0 = Math.floor(khz / 1000000) & 0x0f;
|
||||
const d1 = Math.floor((khz % 1000000) / 10000) & 0xff;
|
||||
const d2 = Math.floor((khz % 10000) / 100) & 0xff;
|
||||
const d3 = Math.floor(khz % 100) & 0xff;
|
||||
return Uint8Array.from([d0, d1, d2, d3]);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Actual send helper (browser WebSocket → controller WS → radio)
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
async function sendUdp(frame: Uint8Array, host: string, port: number): Promise<FrameResult> {
|
||||
try {
|
||||
const res = await fetch('/api/radio/raw', {
|
||||
method: 'POST',
|
||||
headers: { 'content-type': 'application/json' },
|
||||
body: JSON.stringify({ host, port, frame: Array.from(frame) }),
|
||||
});
|
||||
const data = await res.json();
|
||||
if (!res.ok) return { ok: false, msg: data.reason || '发送失败' };
|
||||
if (data.reply) {
|
||||
return { ok: true, msg: `回复: ${toHex(Uint8Array.from(data.reply))}`, raw: toHex(Uint8Array.from(data.reply)) };
|
||||
}
|
||||
return { ok: true, msg: '发送成功(无回复)' };
|
||||
} catch (e) {
|
||||
return { ok: false, msg: (e as Error).message };
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Sub-components
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
function ResultBanner({ result }: { result: FrameResult | null }) {
|
||||
if (!result) return null;
|
||||
return (
|
||||
<div className={`rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in ${
|
||||
result.ok ? 'border-green-200 bg-green-50/80 text-green-800' : 'border-red-200 bg-red-50/80 text-red-800'
|
||||
}`}
|
||||
>
|
||||
{result.ok ? <CheckCircle className="h-4 w-4 shrink-0" /> : <AlertCircle className="h-4 w-4 shrink-0" />}
|
||||
<span className="font-mono text-xs break-all">{result.msg}</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface StaticParamsProps {
|
||||
host: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
function StaticParamsTab({ host, port }: StaticParamsProps) {
|
||||
const [netScale, setNetScale] = useState('16');
|
||||
const [workMode, setWorkMode] = useState(0);
|
||||
const [macAddr, setMacAddr] = useState('0');
|
||||
const [freqMhz, setFreqMhz] = useState('505.54');
|
||||
const [hopTable, setHopTable] = useState('0');
|
||||
const [result, setResult] = useState<FrameResult | null>(null);
|
||||
|
||||
const sendFrame = useCallback(
|
||||
async (_desc: string, signalId: number, payload: Uint8Array) => {
|
||||
const r = await sendUdp(buildFrame(1, signalId, payload), host, port);
|
||||
setResult(r);
|
||||
return r;
|
||||
},
|
||||
[host, port]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-xl border border-slate-200/60 bg-slate-50/60 p-4 text-slate-700 text-xs flex items-start gap-3">
|
||||
<Antenna className="h-4 w-4 shrink-0 mt-0.5 text-primary" />
|
||||
<span>静态参数由 <strong>波形软件</strong> 管理,设置后需重启生效。</span>
|
||||
</div>
|
||||
|
||||
{/* 静态参数设置 */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
||||
{/* 网络规模 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Wifi className="h-4 w-4 text-primary" />
|
||||
网络规模 (0x0001)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">节点数 (2-128)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={netScale}
|
||||
onChange={e => setNetScale(e.target.value)}
|
||||
min={2} max={128}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={async () => {
|
||||
const v = parseInt(netScale);
|
||||
if (v < 2 || v > 128) { setResult({ ok: false, msg: '范围: 2-128' }); return; }
|
||||
await sendFrame('网络规模', 0x0001, toBe2(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 工作模式 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Radio className="h-4 w-4 text-primary" />
|
||||
工作模式 (0x0002)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
{Object.entries(WORK_MODE_MAP).map(([k, v]) => (
|
||||
<Button
|
||||
key={k}
|
||||
size="sm"
|
||||
variant={workMode === parseInt(k) ? 'default' : 'outline'}
|
||||
onClick={() => setWorkMode(parseInt(k))}
|
||||
>{v}</Button>
|
||||
))}
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => sendFrame('工作模式', 0x0002, toBe1(workMode))}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* MAC 地址 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Settings2 className="h-4 w-4 text-primary" />
|
||||
MAC 地址 (0x0003)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">MAC (0-127)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={macAddr}
|
||||
onChange={e => setMacAddr(e.target.value)}
|
||||
min={0} max={127}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={async () => {
|
||||
const v = parseInt(macAddr);
|
||||
if (v < 0 || v > 127) { setResult({ ok: false, msg: '范围: 0-127' }); return; }
|
||||
await sendFrame('MAC地址', 0x0003, toBe2(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 定频频率 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Signal className="h-4 w-4 text-primary" />
|
||||
定频频率 (0x0004)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">频率 MHz (480~650 / 1410~1710)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={freqMhz}
|
||||
onChange={e => setFreqMhz(e.target.value)}
|
||||
step={0.01}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => {
|
||||
const v = parseFloat(freqMhz);
|
||||
if (v < 480 || v > 1710) { setResult({ ok: false, msg: '频率范围: 480~650 或 1410~1710 MHz' }); return; }
|
||||
sendFrame('定频频率', 0x0004, mhzToBcd(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 跳频表号 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Zap className="h-4 w-4 text-primary" />
|
||||
跳频表号 (0x0005)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">表号 (0-19)</Label>
|
||||
<Input
|
||||
type="number"
|
||||
value={hopTable}
|
||||
onChange={e => setHopTable(e.target.value)}
|
||||
min={0} max={19}
|
||||
className="h-9 mt-1.5 font-mono"
|
||||
/>
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={async () => {
|
||||
const v = parseInt(hopTable);
|
||||
if (v < 0 || v > 19) { setResult({ ok: false, msg: '范围: 0-19' }); return; }
|
||||
await sendFrame('跳频表号', 0x0005, toBe1(v));
|
||||
}}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
{/* 静态参数查询 */}
|
||||
<Separator />
|
||||
<h3 className="text-sm font-semibold">静态参数查询</h3>
|
||||
<div className="grid grid-cols-2 lg:grid-cols-5 gap-3">
|
||||
{[
|
||||
{ label: '网络规模', id: 0x0041 },
|
||||
{ label: '工作模式', id: 0x0042 },
|
||||
{ label: 'MAC地址', id: 0x0043 },
|
||||
{ label: '定频频率', id: 0x0044 },
|
||||
{ label: '跳频表号', id: 0x0045 },
|
||||
].map(({ label, id }) => (
|
||||
<Button key={id} size="sm" variant="outline" className="gap-1.5"
|
||||
onClick={() => sendFrame(label, id, new Uint8Array())}>
|
||||
<Send className="h-3.5 w-3.5" /> 查询{label}
|
||||
</Button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<ResultBanner result={result} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface DynamicParamsProps {
|
||||
host: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
function DynamicParamsTab({ host, port }: DynamicParamsProps) {
|
||||
const [rate, setRate] = useState(0);
|
||||
const [power, setPower] = useState(0);
|
||||
const [result, setResult] = useState<FrameResult | null>(null);
|
||||
|
||||
const sendFrame = useCallback(
|
||||
async (_desc: string, signalId: number, payload: Uint8Array) => {
|
||||
const r = await sendUdp(buildFrame(3, signalId, payload), host, port);
|
||||
setResult(r);
|
||||
return r;
|
||||
},
|
||||
[host, port]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-xl border border-green-200/60 bg-green-50/60 p-4 text-green-700 text-xs flex items-start gap-3">
|
||||
<Zap className="h-4 w-4 shrink-0 mt-0.5" />
|
||||
<span>动态参数由 <strong>测控链波形</strong> 管理,设置后立即生效。</span>
|
||||
</div>
|
||||
|
||||
{/* 传输速率 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Gauge className="h-4 w-4 text-amber-500" />
|
||||
传输速率 (0x0101)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div className="grid grid-cols-3 lg:grid-cols-6 gap-2">
|
||||
{Object.entries(RATE_MAP).map(([k, v]) => (
|
||||
<Button
|
||||
key={k}
|
||||
size="sm"
|
||||
variant={rate === parseInt(k) ? 'default' : 'outline'}
|
||||
onClick={() => setRate(parseInt(k))}
|
||||
className="text-xs"
|
||||
>{v}</Button>
|
||||
))}
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => sendFrame('传输速率', 0x0101, toBe1(rate))}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 发射功率 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Zap className="h-4 w-4 text-amber-500" />
|
||||
发射功率 (0x0102)
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
<div className="flex items-center justify-between text-xs text-muted-foreground mb-2">
|
||||
<span>大功率</span>
|
||||
<Badge variant="outline" className="font-mono">{POWER_MAP[power]}</Badge>
|
||||
<span>功率自适应</span>
|
||||
</div>
|
||||
<Slider
|
||||
value={[power]}
|
||||
onValueChange={v => setPower(v[0])}
|
||||
min={0} max={4}
|
||||
step={1}
|
||||
disabled={false}
|
||||
/>
|
||||
<div className="grid grid-cols-5 gap-1 mt-2">
|
||||
{Object.entries(POWER_MAP).map(([k, v]) => (
|
||||
<Button key={k} size="sm" variant={power === parseInt(k) ? 'default' : 'outline'}
|
||||
onClick={() => setPower(parseInt(k))} className="text-xs">{v}</Button>
|
||||
))}
|
||||
</div>
|
||||
<Button size="sm" className="w-full gap-1.5"
|
||||
onClick={() => sendFrame('发射功率', 0x0102, toBe1(power))}>
|
||||
<Send className="h-3.5 w-3.5" /> 设置
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 动态参数查询 */}
|
||||
<Separator />
|
||||
<h3 className="text-sm font-semibold">动态参数查询</h3>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<Button size="sm" variant="outline" className="gap-1.5"
|
||||
onClick={() => sendFrame('传输速率', 0x0141, new Uint8Array())}>
|
||||
<Send className="h-3.5 w-3.5" /> 查询传输速率
|
||||
</Button>
|
||||
<Button size="sm" variant="outline" className="gap-1.5"
|
||||
onClick={() => sendFrame('发射功率', 0x0142, new Uint8Array())}>
|
||||
<Send className="h-3.5 w-3.5" /> 查询发射功率
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<ResultBanner result={result} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface StatusTabProps {
|
||||
host: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
function StatusTab({ host, port }: StatusTabProps) {
|
||||
const [result, setResult] = useState<FrameResult | null>(null);
|
||||
|
||||
const sendFrame = useCallback(
|
||||
async (_desc: string, signalId: number, payload: Uint8Array, commType: 1 | 2 | 3 = 1) => {
|
||||
const r = await sendUdp(buildFrame(commType, signalId, payload), host, port);
|
||||
setResult(r);
|
||||
return r;
|
||||
},
|
||||
[host, port]
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="grid grid-cols-2 lg:grid-cols-3 gap-3">
|
||||
<Button size="sm" variant="outline" className="h-12 gap-2"
|
||||
onClick={() => sendFrame('版本信息', 0x0203, new Uint8Array())}>
|
||||
<Settings2 className="h-4 w-4" /> 版本信息查询
|
||||
</Button>
|
||||
<Button size="sm" variant="outline" className="h-12 gap-2"
|
||||
onClick={() => sendFrame('节点拓扑', 0x0310, new Uint8Array())}>
|
||||
<Antenna className="h-4 w-4" /> 自组网拓扑查询
|
||||
</Button>
|
||||
<Button size="sm" variant="outline" className="h-12 gap-2"
|
||||
onClick={() => sendFrame('主动上报订阅', 0x02AF, new Uint8Array([1, 1, 1, 0, 0, 0, 0]))}>
|
||||
<Signal className="h-4 w-4" /> 订阅主动上报
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<ResultBanner result={result} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// Main export
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
export function RadioDeviceControl() {
|
||||
const [host, setHost] = useState(PROTOCOL_HOST);
|
||||
const [port, setPort] = useState(PROTOCOL_PORT.toString());
|
||||
|
||||
return (
|
||||
<div className="space-y-4 max-w-6xl mx-auto">
|
||||
{/* 连接配置 */}
|
||||
<Card>
|
||||
<CardHeader className="pb-3">
|
||||
<CardTitle className="text-sm flex items-center gap-2">
|
||||
<Radio className="h-4 w-4 text-primary" />
|
||||
电台连接配置
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="flex gap-4 items-end flex-wrap">
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">目标 IP</Label>
|
||||
<Input
|
||||
value={host}
|
||||
onChange={e => setHost(e.target.value)}
|
||||
className="h-9 mt-1.5 font-mono w-44"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Label className="text-xs text-muted-foreground">端口</Label>
|
||||
<Input
|
||||
value={port}
|
||||
onChange={e => setPort(e.target.value)}
|
||||
type="number"
|
||||
className="h-9 mt-1.5 font-mono w-28"
|
||||
/>
|
||||
</div>
|
||||
<div className="text-xs text-muted-foreground">
|
||||
协议帧格式:通信类型(1B) + 预留(1B) + 预留(1B) + 信令ID(2B) + 信息长度(2B) + 信息内容(NB)
|
||||
</div>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
{/* 主动上报信息说明 */}
|
||||
<div className="rounded-xl border border-amber-200/60 bg-amber-50/80 p-4 text-amber-800 text-sm flex items-center gap-3">
|
||||
<AlertCircle className="h-5 w-5 shrink-0 text-amber-500" />
|
||||
<span>
|
||||
<strong>主动上报 (0x02AF)</strong>:基带波形加载后,按 <strong>5 秒周期</strong>主动上报状态信息。
|
||||
BYTE[0]=1 表示启用,BYTE[1]=1 表示 ZZW 同步,BYTE[2]=1 表示 CKL 同步。
|
||||
拓扑查询 (0x0310) 返回节点对,每条链路 5 字节:源MAC(2B) + 目的MAC(2B) + 链路质量(1B,FF=未知)。
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<Tabs defaultValue="static" className="w-full">
|
||||
<TabsList className="grid grid-cols-3 w-fit">
|
||||
<TabsTrigger value="static">静态参数</TabsTrigger>
|
||||
<TabsTrigger value="dynamic">动态参数</TabsTrigger>
|
||||
<TabsTrigger value="status">状态查询</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
<TabsContent value="static">
|
||||
<StaticParamsTab host={host} port={parseInt(port)} />
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="dynamic">
|
||||
<DynamicParamsTab host={host} port={parseInt(port)} />
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="status">
|
||||
<StatusTab host={host} port={parseInt(port)} />
|
||||
</TabsContent>
|
||||
</Tabs>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -543,7 +543,7 @@ export function TopologyView({ nodes, flows, running, compact, sim }: TopologyVi
|
||||
return (
|
||||
<td
|
||||
key={d.id}
|
||||
title={`N${s.id} → N${d.id}\n距离: ${dist.toFixed(0)} m\n${reachable ? '已建立 Mesh peer 链路' : '未建立直接 Mesh peer 链路'}`}
|
||||
title={`N${s.id} → N${d.id}\n距离: ${dist.toFixed(0)} m\n${reachable ? '可达 (在通信范围内)' : '不可达 (超出通信范围)'}`}
|
||||
className="px-2 py-1.5 border border-border text-center font-mono transition-colors"
|
||||
style={reachabilityCellStyle(reachable)}
|
||||
>
|
||||
@@ -585,7 +585,6 @@ export function TopologyView({ nodes, flows, running, compact, sim }: TopologyVi
|
||||
<span className="text-xs font-mono tabular-nums">发: {flow.txPackets.toLocaleString()}</span>
|
||||
<span className="text-xs font-mono tabular-nums">收: {flow.rxPackets.toLocaleString()}</span>
|
||||
<span className="text-xs text-destructive font-mono tabular-nums">丢失: {flow.lostPackets}</span>
|
||||
<span className="text-xs font-mono tabular-nums">延迟: {flow.rxPackets ? `${flow.avgDelay.toFixed(2)} ms` : '—'}</span>
|
||||
<span className="text-xs text-purple-600 font-mono tabular-nums font-medium">{(flow.throughput).toFixed(2)} Mbps</span>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -123,7 +123,7 @@ export interface NodeStatus {
|
||||
role: string;
|
||||
rxPackets: number;
|
||||
txPackets: number;
|
||||
latency: number | null;
|
||||
latency: number;
|
||||
neighbors: number[];
|
||||
x: number;
|
||||
y: number;
|
||||
@@ -136,7 +136,7 @@ export interface FlowStats {
|
||||
txPackets: number;
|
||||
rxPackets: number;
|
||||
lostPackets: number;
|
||||
avgDelay: number; // 毫秒
|
||||
avgDelay: number;
|
||||
throughput: number;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ export interface NodePairFlow {
|
||||
rxPackets: number;
|
||||
lostPackets: number;
|
||||
throughput: number; // Mbps
|
||||
avgDelay: number; // 毫秒
|
||||
avgDelay: number;
|
||||
}
|
||||
|
||||
export interface NodeSpec {
|
||||
@@ -177,7 +177,6 @@ export interface SimulationStatus {
|
||||
}
|
||||
|
||||
export interface TelemetryEnv {
|
||||
phyFrequencyMhz?: number;
|
||||
txPower: number[];
|
||||
rxSensitivity: number[];
|
||||
positions: { x: number; y: number; z: number }[];
|
||||
|
||||
@@ -6,7 +6,7 @@ import { inspectAttr } from 'kimi-plugin-inspect-react'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: '/',
|
||||
base: './',
|
||||
plugins: [inspectAttr(), react()],
|
||||
test: {
|
||||
globals: true,
|
||||
@@ -32,12 +32,4 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: path.resolve(__dirname, 'index.html'),
|
||||
radio: path.resolve(__dirname, 'radio/index.html'),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1,15 +0,0 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY controller/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
|
||||
|
||||
COPY controller/ .
|
||||
|
||||
ENV MANET_WEB_DIR=/app/dist
|
||||
ENV MANET_PORT=8000
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -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:#e5e7eb}: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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 Line truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -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:#e5e7eb}: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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.ml-2{margin-left:.5rem}.mr-1\.5{margin-righLine truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CqkUhg2V.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-WF3UiNHW.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CCVvHT1S.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CSMGRq5Y.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-BM9zNj5E.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CSMGRq5Y.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-NN00cnJP.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1,91 +0,0 @@
|
||||
import{r as x,j as t,R as Ye,c as Je}from"./index-CCVvHT1S.js";function Se(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function Qe(...e){return s=>{let r=!1;const n=e.map(o=>{const a=Se(o,s);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Se(e[o],null)}}}}var Xe=Symbol.for("react.lazy"),te=Ye[" use ".trim().toString()];function et(e){return typeof e=="object"&&e!==null&&"then"in e}function Be(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Xe&&"_payload"in e&&et(e._payload)}function tt(e){const s=rt(e),r=x.forwardRef((n,o)=>{let{children:a,...c}=n;Be(a)&&typeof te=="function"&&(a=te(a._payload));const l=x.Children.toArray(a),i=l.find(ot);if(i){const d=i.props.children,u=l.map(h=>h===i?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:h);return t.jsx(s,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,u):null})}return t.jsx(s,{...c,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var st=tt("Slot");function rt(e){const s=x.forwardRef((r,n)=>{let{children:o,...a}=r;if(Be(o)&&typeof te=="function"&&(o=te(o._payload)),x.isValidElement(o)){const c=lt(o),l=at(a,o.props);return o.type!==x.Fragment&&(l.ref=n?Qe(n,c):c),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return s.displayName=`${e}.SlotClone`,s}var nt=Symbol("radix.slottable");function ot(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nt}function at(e,s){const r={...s};for(const n in s){const o=e[n],a=s[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const i=a(...l);return o(...l),i}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function lt(e){var n,o;let s=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=s&&"isReactWarning"in s&&s.isReactWarning;return r?e.ref:(s=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=s&&"isReactWarning"in s&&s.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Pe(e){var s,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(s=0;s<o;s++)e[s]&&(r=Pe(e[s]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _e(){for(var e,s,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(s=Pe(e))&&(n&&(n+=" "),n+=s);return n}const Me=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ae=_e,it=(e,s)=>r=>{var n;if((s==null?void 0:s.variants)==null)return Ae(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=s,c=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],h=a==null?void 0:a[d];if(u===null)return null;const p=Me(u)||Me(h);return o[d][p]}),l=r&&Object.entries(r).reduce((d,u)=>{let[h,p]=u;return p===void 0||(d[h]=p),d},{}),i=s==null||(n=s.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:h,className:p,...b}=u;return Object.entries(b).every(y=>{let[m,g]=y;return Array.isArray(g)?g.includes({...a,...l}[m]):{...a,...l}[m]===g})?[...d,h,p]:d},[]);return Ae(e,c,i,r==null?void 0:r.class,r==null?void 0:r.className)},he="-",ct=e=>{const s=ut(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{const l=c.split(he);return l[0]===""&&l.length!==1&&l.shift(),$e(l,s)||dt(c)},getConflictingClassGroupIds:(c,l)=>{const i=r[c]||[];return l&&n[c]?[...i,...n[c]]:i}}},$e=(e,s)=>{var c;if(e.length===0)return s.classGroupId;const r=e[0],n=s.nextPart.get(r),o=n?$e(e.slice(1),n):void 0;if(o)return o;if(s.validators.length===0)return;const a=e.join(he);return(c=s.validators.find(({validator:l})=>l(a)))==null?void 0:c.classGroupId},ze=/^\[(.+)\]$/,dt=e=>{if(ze.test(e)){const s=ze.exec(e)[1],r=s==null?void 0:s.substring(0,s.indexOf(":"));if(r)return"arbitrary.."+r}},ut=e=>{const{theme:s,prefix:r}=e,n={nextPart:new Map,validators:[]};return xt(Object.entries(e.classGroups),r).forEach(([a,c])=>{ue(c,n,a,s)}),n},ue=(e,s,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?s:Re(s,o);a.classGroupId=r;return}if(typeof o=="function"){if(mt(o)){ue(o(n),s,r,n);return}s.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,c])=>{ue(c,Re(s,a),r,n)})})},Re=(e,s)=>{let r=e;return s.split(he).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mt=e=>e.isThemeGetter,xt=(e,s)=>s?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?s+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[s+c,l])):a);return[r,o]}):e,ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=new Map,n=new Map;const o=(a,c)=>{r.set(a,c),s++,s>e&&(s=0,n=r,r=new Map)};return{get(a){let c=r.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){r.has(a)?r.set(a,c):o(a,c)}}},Le="!",pt=e=>{const{separator:s,experimentalParseClassName:r}=e,nLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qe=(...e)=>e.filter((s,r,n)=>!!s&&s.trim()!==""&&n.indexOf(s)===r).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Vt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ht=x.forwardRef(({color:e="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...l},i)=>x.createElement("svg",{ref:i,...Vt,width:s,height:s,stroke:e,strokeWidth:n?Number(r)*24/Number(s):r,className:qe("lucide",o),...l},[...c.map(([d,u])=>x.createElement(d,u)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,s)=>{const r=x.forwardRef(({className:n,...o},a)=>x.createElement(Ht,{ref:a,iconNode:s,className:qe(`lucide-${Ut(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const G=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ze=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.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=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ft=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const qt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Y=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Zt=C("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const J=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Dt=C("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Q=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Kt(e,s=!0){const[r,n]=x.useState(null),[o,a]=x.useState([]),[c,l]=x.useState("closed"),[i,d]=x.useState(null),u=x.useRef(null),[h,p]=x.useState(0);return x.useEffect(()=>{if(!s){l("closed");return}l("connecting"),d(null);const y=`/api/radio/stream?cmd=${e}`,m=new EventSource(y);return u.current=m,m.onopen=()=>{l("open"),d(null)},m.addEventListener("push",g=>{try{const N={...JSON.parse(g.data),receivedAt:Date.now()};n(N),a(A=>[N,...A].slice(0,30))}catch(v){d(`parse failed: ${v.message}`)}}),m.onerror=()=>{l("error"),d("EventSource error (浏览器会自动 3s 重连)")},()=>{m.close(),u.current=null,l("closed")}},[e,s,h]),{latest:r,history:o,status:c,lastError:i,reconnect:()=>{u.current&&u.current.close(),p(y=>y+1)}}}function Yt(e){const s=e.replace(/\s+/g,"");if(s.length%2!==0)return[];const r=[];for(let n=0;n<s.length;n+=2)r.push(parseInt(s.substr(n,2),16));return r}function Jt(e){return`${(e>>8).toString(16).padStart(2,"0")}:${(e&255).toString(16).padStart(2,"0")}`}function D(e){return{id:e,mac:e,label:"本机",isSelf:!0,hop:0,status:"online"}}function Qt(e,s){const r=Yt(e);if(r.length<7)return{nodes:[],format:"unknown",warnings:[`packet too short: ${r.length}B`]};const n=r.slice(7),o=Xt(n,s),a=es(n,s);return n.length===2?o:a&&n.length%5===0?a:o??{nodes:[D(s)],format:"unknown",warnings:[`payload length ${n.length} not 2 nor 5-multiple`]}}function Xt(e,s){if(e.length!==2)return{nodes:[D(s)],format:"count_2b",warnings:[`payload ${e.length}B != 2, 跳过 2B 解析`]};const r=e[0]<<8|e[1];return r===0?{nodes:[D(s)],format:"count_2b",warnings:[]}:{nodes:[D(s)],format:"count_2b",warnings:[`count=${r} 但 payload 只有 2B, 链路数据可能未到达, 等多节点实测`]}}function es(e,s){if(e.length<5||e.length%5!==0)return null;const r=e.length/5,n=new Map;for(let a=0;a<e.length;a+=5){const c=e[a]<<8|e[a+1],l=e[a+2]<<8|e[a+3],i=e[a+4];for(const d of[c,l]){const u=Jt(d);n.has(u)||n.set(u,{mac:u,quality:[],hops:new Set}),n.get(u).quality.push(i)}}const o=[D(s)];for(const{mac:a,quality:c}of n.values()){if(a===s)continue;const l=c.reduce((i,d)=>i+d,0)/c.length;o.push({id:a,mac:a,label:a,isSelf:!1,hop:1,quality:Math.round(l),status:l>=80?"online":l>=50?"weak":"offline"})}return{nodes:o,format:"link_5b",warnings:["5B/链路 格式 [未验证] — 见 manet-54/docs/api_54_discovered.md §13",`解出 ${r} 条链路, ${o.length-1} 个邻居`]}}const K={online:{fill:"hsl(199 89% 48% / 0.18)",stroke:"hsl(199 89% 48%)",text:"hsl(199 89% 38%)"},weak:{fill:"hsl(38 92% 50% / 0.18)",stroke:"hsl(38 92% 50%)",text:"hsl(38 92% 38%)"},offline:{fill:"hsl(0 84% 60% / 0.18)",stroke:"hsl(0 84% 60%)",text:"hsl(0 84% 48%)"}},F=32,ts=24,me=110,xe=75;function ss({nodes:e,width:s=640,height:r=480,className:n}){const o=x.useMemo(()=>as(e,s,r),[e,s,r]);if(o.length===0)return t.jsx(rs,{className:n});const a=o[0],c=o.slice(1),l=x.useMemo(()=>ls(a,c),[a,c]);return t.jsx("div",{className:n,children:t.jsxs("svg",{viewBox:`0 0 ${s} ${r}`,className:"w-full h-auto",role:"img","aria-label":"MANET 网络拓扑",children:[t.jsx("defs",{children:t.jsxs("radialGradient",{id:"topo-bg",cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(199 89% 48% / 0.04)"}),t.jsx("stop",{offset:"100%",stopColor:"hsl(199 89% 48% / 0)"})]})}),t.jsx("rect",{width:s,height:r,fill:"url(#topo-bg)"}),t.jsx(ns,{self:a,maxRadius:Math.max(...o.map(i=>De(i.hop??1)))}),l.map((i,d)=>t.jsx("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:K[i.status].stroke,strokeWidth:i.isMultihop?1.5:2,strokeDasharray:i.isMultihop?"6 4":void 0,opacity:.6},d)),o.map(i=>{const d=i.isSelf?F:ts,u=K[i.status];return t.jsxs("g",{transform:`translate(${i.x}, ${i.y})`,children:[i.isSelf&&t.jsxs("circle",{r:F+8,fill:u.fill,opacity:.6,children:[t.jsx("animate",{attributeName:"r",values:`${F+4};${F+12};${F+4}`,dur:"2.4s",repeatCount:"indefinite"}),t.jsx("animate",{attributeName:"opacity",values:"0.7;0.2;0.7",dur:"2.4s",repeatCount:"indefinite"})]}),t.jsx("circle",{r:d,fill:u.fill,stroke:u.stroke,strokeWidth:2}),i.isSelf?t.jsx(Zt,{x:-10,y:-10,width:20,height:20,color:u.stroke}):i.status==="offline"?t.jsx(Dt,{x:-9,y:-9,width:18,height:18,color:u.stroke}):t.jsx(ne,{x:-9,y:-9,width:18,height:18,color:u.stroke}),t.jsx("text",{y:d+16,textAnchor:"middle",fontSize:"12",fontWeight:"600",fill:"hsl(222 47% 11%)",children:i.label??i.mac}),i.quality!=null&&t.jsxs("text",{y:d+30,textAnchor:"middle",fontSize:"10",fill:"hsl(215 16% 47%)",fontFamily:"ui-monospace, monospace",children:["Q ",i.quality]})]},i.id)}),t.jsx(os,{x:16,y:r-16})]})})}function rs({className:e}){return t.jsx("div",{className:e,children:t.jsxs("div",{className:"bg-card rounded-xl border shadow-card p-8 flex flex-col items-center justify-center text-center min-h-[280px]",children:[t.jsx("div",{className:"h-12 w-12 roundeLine truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as m,j as t,R as Fe,c as He}from"./index-BM9zNj5E.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function qe(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ze=Symbol.for("react.lazy"),K=Fe[" use ".trim().toString()];function Ye(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ze&&"_payload"in e&&Ye(e._payload)}function Ke(e){const r=Xe(e),s=m.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=m.Children.toArray(a),d=i.find(De);if(d){const c=d.props.children,p=i.map(g=>g===d?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...l,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,p):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Je=Ke("Slot");function Xe(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),m.isValidElement(o)){const l=tt(o),i=et(a,o.props);return o.type!==m.Fragment&&(i.ref=n?qe(n,l):l),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function De(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function et(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const d=a(...i);return o(...i),d}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function tt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,rt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const p=s==null?void 0:s[c],g=a==null?void 0:a[c];if(p===null)return null;const x=ve(p)||ve(g);return o[c][x]}),i=s&&Object.entries(s).reduce((c,p)=>{let[g,x]=p;return x===void 0||(c[g]=x),c},{}),d=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:g,className:x,...b}=p;return Object.entries(b).every(y=>{let[u,h]=y;return Array.isArray(h)?h.includes({...a,...i}[u]):{...a,...i}[u]===h})?[...c,g,x]:c},[]);return we(e,l,d,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",st=e=>{const r=ot(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||nt(l)},getConflictingClassGroupIds:(l,i)=>{const d=s[l]||[];return i&&n[l]?[...d,...n[l]]:d}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,nt=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},ot=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return it(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(at(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},at=e=>e.isThemeGetter,it=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",ct=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},d)=>m.createElement("svg",{ref:d,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,p])=>m.createElement(c,p)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Ge(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.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=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $t=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const F=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Vt="100.100.100.3",Wt=62450,Ut="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function B({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ve,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[l,i]=m.useState("0"),[d,c]=m.useState("505.54"),[p,g]=m.useState("0"),[x,b]=m.useState(null),y=m.useCallback(async(u,h,j)=>{const N=await de(ce(1,h,j),e,r);return b(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx($e,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${d}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:p,sub:"0-19",icon:t.jsx(F,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-NN00cnJP.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-CqkUhg2V.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as m,j as t,R as $e,c as Fe}from"./index-WF3UiNHW.js";function be(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=be(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():be(e[o],null)}}}}var qe=Symbol.for("react.lazy"),Y=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=m.forwardRef((n,o)=>{let{children:a,...i}=n;Ae(a)&&typeof Y=="function"&&(a=Y(a._payload));const l=m.Children.toArray(a),u=l.find(Xe);if(u){const c=u.props.children,x=l.map(g=>g===u?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...i,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,x):null})}return t.jsx(r,{...i,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof Y=="function"&&(o=Y(o._payload)),m.isValidElement(o)){const i=et(o),l=Qe(a,o.props);return o.type!==m.Fragment&&(l.ref=n?He(n,i):i),m.cloneElement(o,l)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var De=Symbol("radix.slottable");function Xe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===De}function Qe(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...l)=>{const u=a(...l);return o(...l),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Se(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Se(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Se(e))&&(n&&(n+=" "),n+=r);return n}const ye=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ve=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return ve(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,i=Object.keys(o).map(c=>{const x=s==null?void 0:s[c],g=a==null?void 0:a[c];if(x===null)return null;const y=ye(x)||ye(g);return o[c][y]}),l=s&&Object.entries(s).reduce((c,x)=>{let[g,y]=x;return y===void 0||(c[g]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,x)=>{let{class:g,className:y,...j}=x;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...l}[d]):{...a,...l}[d]===f})?[...c,g,y]:c},[]);return ve(e,i,u,s==null?void 0:s.class,s==null?void 0:s.className)},ae="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(ae);return l[0]===""&&l.length!==1&&l.shift(),Re(l,r)||st(i)},getConflictingClassGroupIds:(i,l)=>{const u=s[i]||[];return l&&n[i]?[...u,...n[i]]:u}}},Re=(e,r)=>{var i;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ae);return(i=r.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},we=/^\[(.+)\]$/,st=e=>{if(we.test(e)){const r=we.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,i])=>{te(i,n,a,r)}),n},te=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:je(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){te(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,i])=>{te(i,je(r,a),s,n)})})},je=(e,r)=>{let s=e;return r.split(ae).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[r+i,l])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,i)=>{s.set(a,i),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let i=s.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){s.has(a)?s.set(a,i):o(a,i)}}},Te="!",it=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Be=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},u)=>m.createElement("svg",{ref:u,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Be("lucide",o),...l},[...i.map(([c,x])=>m.createElement(c,x)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Be(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const U=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ne=62450,Ut="http://100.100.100.3:8000";function ie(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function K(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function $t(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function ce(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ft={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},Ht={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function W({label:e,value:r,sub:s,icon:n,accent:o}){return t.jsx("div",{className:"bg-card rounded-xl border shadow-card hover:shadow-card-hover transition-all duration-200",children:t.jsxs("div",{className:"flex items-start justify-between p-3",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:A("h-9 w-9 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function de({result:e}){return e?t.jsxs("div",{className:A("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,title:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function qt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[i,l]=m.useState("0"),[u,c]=m.useState("505.54"),[x,g]=m.useState("0"),[y,j]=m.useState(null),v=m.useCallback(async(d,f,w)=>{const N=await ce(ie(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(W,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(oe,{className:"h-4 w-4 text-primary"}),accent:"bg-primary/10"}),t.jsx(W,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(re,{className:"h-4 w-4 text-cyan-500"}),accent:"bg-cyan-500/10"}),t.jsx(W,{label:"MAC地址",value:i,sub:"0-127",icon:t.jsx(se,{className:"h-4 w-4 text-violet-500"}),accent:"bg-violet-500/10"}),t.jsx(W,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(ne,{className:"h-4 w-4 text-rose-500"}),accent:"bg-rose-500/10"}),t.jsx(W,{label:"跳频表号",value:x,sub:"0-19",icon:t.jsx(U,{className:"h-4 w-4 text-amber-500"}),accent:"bg-amber-500/10"})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:t.jsx(oe,{className:"h-4 w-4"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:"网络规模"}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:"0x0001"})]})]}),t.jsxs("div",{className:"p-4 space-y-3",children:[t.jsxs("div",{children:[t.jsx(ELine truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as p,j as t,R as $e,c as Fe}from"./index-CSMGRq5Y.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var qe=Symbol.for("react.lazy"),K=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(Qe);if(u){const c=u.props.children,g=i.map(b=>b===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:b);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=et(o),i=De(a,o.props);return o.type!==p.Fragment&&(i.ref=n?He(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Xe=Symbol("radix.slottable");function Qe(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xe}function De(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],b=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(b);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[b,y]=g;return y===void 0||(c[b]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:b,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,b,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||st(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,st=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,it=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Ie="!",lt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Ot={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,...Ot,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Lt,{ref:a,iconNode:r,className:Ge(`lucide-${Bt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ut=62450,$t="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$t}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(_t,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,b]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
Vendored
-14
@@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>电台控制</title>
|
||||
<script type="module" crossorigin src="/radio/assets/main-BBqEByhd.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/radio/assets/index-CCVvHT1S.js">
|
||||
<link rel="stylesheet" crossorigin href="/radio/assets/index-BNtX7WGG.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -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:#e5e7eb}: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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 Line truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -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:#e5e7eb}: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:Inter,system-ui,-apple-system,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:JetBrains Mono,ui-monospace,Cascadia Code,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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}:root{--background: 210 20% 98%;--foreground: 222 47% 11%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--primary: 199 89% 48%;--primary-foreground: 0 0% 100%;--secondary: 210 20% 96%;--secondary-foreground: 222 47% 11%;--muted: 210 20% 96%;--muted-foreground: 215 16% 47%;--accLine truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -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:#e5e7eb}: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:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}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}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.ml-2{margin-left:.5rem}.mr-1\.5{margin-righLine truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -1,40 +0,0 @@
|
||||
function Lc(N,V){for(var m=0;m<V.length;m++){const ie=V[m];if(typeof ie!="string"&&!Array.isArray(ie)){for(const I in ie)if(I!=="default"&&!(I in N)){const B=Object.getOwnPropertyDescriptor(ie,I);B&&Object.defineProperty(N,I,B.get?B:{enumerable:!0,get:()=>ie[I]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}(function(){const V=document.createElement("link").relList;if(V&&V.supports&&V.supports("modulepreload"))return;for(const I of document.querySelectorAll('link[rel="modulepreload"]'))ie(I);new MutationObserver(I=>{for(const B of I)if(B.type==="childList")for(const ce of B.addedNodes)ce.tagName==="LINK"&&ce.rel==="modulepreload"&&ie(ce)}).observe(document,{childList:!0,subtree:!0});function m(I){const B={};return I.integrity&&(B.integrity=I.integrity),I.referrerPolicy&&(B.referrerPolicy=I.referrerPolicy),I.crossOrigin==="use-credentials"?B.credentials="include":I.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function ie(I){if(I.ep)return;I.ep=!0;const B=m(I);fetch(I.href,B)}})();function Tc(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Eo={exports:{}},hr={},_o={exports:{}},M={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ea;function Rc(){if(Ea)return M;Ea=1;var N=Symbol.for("react.element"),V=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),ce=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Ce=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.iterator;function Z(f){return f===null||typeof f!="object"?null:(f=ee&&f[ee]||f["@@iterator"],typeof f=="function"?f:null)}var He={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$e=Object.assign,J={};function Q(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}Q.prototype.isReactComponent={},Q.prototype.setState=function(f,h){if(typeof f!="object"&&typeof f!="function"&&f!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,h,"setState")},Q.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function vt(){}vt.prototype=Q.prototype;function it(f,h,O){this.props=f,this.context=h,this.refs=J,this.updater=O||He}var Je=it.prototype=new vt;Je.constructor=it,$e(Je,Q.prototype),Je.isPureReactComponent=!0;var we=Array.isArray,qe=Object.prototype.hasOwnProperty,xe={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function We(f,h,O){var D,j={},U=null,K=null;if(h!=null)for(D in h.ref!==void 0&&(K=h.ref),h.key!==void 0&&(U=""+h.key),h)qe.call(h,D)&&!ze.hasOwnProperty(D)&&(j[D]=h[D]);var H=arguments.length-2;if(H===1)j.children=O;else if(1<H){for(var q=Array(H),je=0;je<H;je++)q[je]=arguments[je+2];j.children=q}if(f&&f.defaultProps)for(D in H=f.defaultProps,H)j[D]===void 0&&(j[D]=H[D]);return{$$typeof:N,type:f,key:U,ref:K,props:j,_owner:xe.current}}function xt(f,h){return{$$typeof:N,type:f.type,key:h,ref:f.ref,props:f.props,_owner:f._owner}}function ht(f){return typeof f=="object"&&f!==null&&f.$$typeof===N}function Qt(f){var h={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return h[O]})}var st=/\/+/g;function Fe(f,h){return typeof f=="object"&&f!==null&&f.key!=null?Qt(""+f.key):h.toString(36)}function be(f,h,O,D,j){var U=typeof f;(U==="undefined"||U==="boolean")&&(f=null);var K=!1;if(f===null)K=!0;else switch(U){case"string":case"number":K=!0;break;case"object":switch(f.$$typeof){case N:case V:K=!0}}if(K)return K=f,j=j(K),f=D===""?"."+Fe(K,0):D,we(j)?(O="",f!=null&&(O=f.replace(st,"$&/")+"/"),be(j,h,O,"",function(je){return je})):j!=null&&(ht(j)&&(j=xt(j,O+(!j.key||K&&K.key===j.key?"":(""+j.key).replace(st,"$&/")+"/")+f)),h.push(j)),1;if(K=0,D=D===""?".":D+":",we(f))for(var H=0;H<f.length;H++){U=f[H];var q=D+Fe(U,H);K+=be(U,h,O,q,j)}else if(q=Z(f),typeof q=="function")for(f=q.call(f),H=0;!(U=f.next()).done;)U=U.value,q=D+Fe(U,H++),K+=be(U,h,O,q,j);else if(U==="object")throw h=String(f),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.");return K}function at(f,h,O){if(f==null)return f;var D=[],j=0;return be(f,D,"","",function(U){return h.call(O,U,j++)}),D}function Le(f){if(f._status===-1){var h=f._result;h=h(),h.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=h)}if(f._status===1)return f._result.default;throw f._result}var re={current:null},S={transition:null},T={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:S,ReactCurrentOwner:xe};function _(){throw Error("act(...) is not supported in production builds of React.")}return M.Children={map:at,forEach:function(f,h,O){at(f,function(){h.apply(this,arguments)},O)},count:function(f){var h=0;return at(f,function(){h++}),h},toArray:function(f){return at(f,function(h){return h})||[]},only:function(f){if(!ht(f))throw Error("React.Children.only expected to receive a single React element child.");return f}},M.Component=Q,M.Fragment=m,M.Profiler=I,M.PureComponent=it,M.StrictMode=ie,M.Suspense=W,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,M.act=_,M.cloneElement=function(f,h,O){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var D=$e({},f.props),j=f.key,U=f.ref,K=f._owner;if(h!=null){if(h.ref!==void 0&&(U=h.ref,K=xe.current),h.key!==void 0&&(j=""+h.key),f.type&&f.type.defaultProps)var H=f.type.defaultProps;for(q in h)qe.call(h,q)&&!ze.hasOwnProperty(q)&&(D[q]=h[q]===void 0&&H!==void 0?H[q]:h[q])}var q=arguments.length-2;if(q===1)D.children=O;else if(1<q){H=Array(q);for(var je=0;je<q;je++)H[je]=arguments[je+2];D.children=H}return{$$typeof:N,type:f.type,key:j,ref:U,props:D,_owner:K}},M.createContext=function(f){return f={$$typeof:ce,_currentValue:f,_currentValueLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ca;function Oc(){if(Ca)return hr;Ca=1;var N=No(),V=Symbol.for("react.element"),m=Symbol.for("react.fragment"),ie=Object.prototype.hasOwnProperty,I=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0};function ce(de,W,Ce){var ge,ee={},Z=null,He=null;Ce!==void 0&&(Z=""+Ce),W.key!==void 0&&(Z=""+W.key),W.ref!==void 0&&(He=W.ref);for(ge in W)ie.call(W,ge)&&!B.hasOwnProperty(ge)&&(ee[ge]=W[ge]);if(de&&de.defaultProps)for(ge in W=de.defaultProps,W)ee[ge]===void 0&&(ee[ge]=W[ge]);return{$$typeof:V,type:de,key:Z,ref:He,props:ee,_owner:I.current}}return hr.Fragment=m,hr.jsx=ce,hr.jsxs=ce,hr}var xa;function Mc(){return xa||(xa=1,Eo.exports=Oc()),Eo.exports}var Vc=Mc(),Ra=No();const Dc=Tc(Ra),Bc=Lc({__proto__:null,default:Dc},[Ra]);var Nl={},Co={exports:{}},Ie={},xo={exports:{}},Po={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Pa;function Ic(){return Pa||(Pa=1,(function(N){function V(S,T){var _=S.length;S.push(T);e:for(;0<_;){var f=_-1>>>1,h=S[f];if(0<I(h,T))S[f]=T,S[_]=h,_=f;else break e}}function m(S){return S.length===0?null:S[0]}function ie(S){if(S.length===0)return null;var T=S[0],_=S.pop();if(_!==T){S[0]=_;e:for(var f=0,h=S.length,O=h>>>1;f<O;){var D=2*(f+1)-1,j=S[D],U=D+1,K=S[U];if(0>I(j,_))U<h&&0>I(K,j)?(S[f]=K,S[U]=_,f=U):(S[f]=j,S[D]=_,f=D);else if(U<h&&0>I(K,_))S[f]=K,S[U]=_,f=U;else break e}}return T}function I(S,T){var _=S.sortIndex-T.sortIndex;return _!==0?_:S.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;N.unstable_now=function(){return B.now()}}else{var ce=Date,de=ce.now();N.unstable_now=function(){return ce.now()-de}}var W=[],Ce=[],ge=1,ee=null,Z=3,He=!1,$e=!1,J=!1,Q=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,it=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Je(S){for(var T=m(Ce);T!==null;){if(T.callback===null)ie(Ce);else if(T.startTime<=S)ie(Ce),T.sortIndex=T.expirationTime,V(W,T);else break;T=m(Ce)}}function we(S){if(J=!1,Je(S),!$e)if(m(W)!==null)$e=!0,Le(qe);else{var T=m(Ce);T!==null&&re(we,T.startTime-S)}}function qe(S,T){$e=!1,J&&(J=!1,vt(We),We=-1),He=!0;var _=Z;try{for(Je(T),ee=m(W);ee!==null&&(!(ee.expirationTime>T)||S&&!Qt());){var f=ee.callback;if(typeof f=="function"){ee.callback=null,Z=ee.priorityLevel;var h=f(ee.expirationTime<=T);T=N.unstable_now(),typeof h=="function"?ee.callback=h:ee===m(W)&&ie(W),Je(T)}else ie(W);ee=m(W)}if(ee!==null)var O=!0;else{var D=m(Ce);D!==null&&re(we,D.startTime-T),O=!1}return O}finally{ee=null,Z=_,He=!1}}var xe=!1,ze=null,We=-1,xt=5,ht=-1;function Qt(){return!(N.unstable_now()-ht<xt)}function st(){if(ze!==null){var S=N.unstable_now();ht=S;var T=!0;try{T=ze(!0,S)}finally{T?Fe():(xe=!1,ze=null)}}else xe=!1}var Fe;if(typeof it=="function")Fe=function(){it(st)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,at=be.port2;be.port1.onmessage=st,Fe=function(){at.postMessage(null)}}else Fe=function(){Q(st,0)};function Le(S){ze=S,xe||(xe=!0,Fe())}function re(S,T){We=Q(function(){S(N.unstable_now())},T)}N.unstable_IdlePriority=5,N.unstable_ImmediatePriority=1,N.unstable_LowPriority=4,N.unstable_NormalPriority=3,N.unstable_Profiling=null,N.unstable_UserBlockingPriority=2,N.unstable_cancelCallback=function(S){S.callback=null},N.unstable_continueExecution=function(){$e||He||($e=!0,Le(qe))},N.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xt=0<S?Math.floor(1e3/S):5},N.unstable_getCurrentPriorityLevel=function(){return Z},N.unstable_getFirstCallbackNode=function(){return m(W)},N.unstable_next=function(S){switch(Z){case 1:case 2:case 3:var T=3;break;default:T=Z}var _=Z;Z=T;try{return S()}finally{Z=_}},N.unstable_pauseExecution=function(){},N.unstable_requestPaint=function(){},N.unstable_runWithPriority=function(S,T){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var _=Z;Z=S;try{return T()}finally{Z=_}},N.unstable_scheduleCallback=function(S,T,_){var f=N.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?f+_:f):_=f,S){case 1:var h=-1;break;case 2:h=250;break;case 5:h=1073741823;break;case 4:h=1e4;break;default:h=5e3}return h=_+h,S={id:ge++,callback:T,priorityLevel:S,startTime:_,expirationTime:h,sortIndex:-1},_>f?(S.sortIndex=_,V(Ce,S),m(W)===null&&S===m(Ce)&&(J?(vt(We),We=-1):J=!0,re(we,_-f))):(S.sortIndex=h,V(W,S),$e||He||($e=!0,Le(qe))),S},N.unstable_shouldYield=Qt,N.unstable_wrapCallback=function(S){var T=Z;return function(){var _=Z;Z=T;try{return S.apply(this,arguments)}finally{Z=_}}}})(Po)),Po}var Na;function Fc(){return Na||(Na=1,xo.exports=Ic()),xo.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var za;function jc(){if(za)return Ie;za=1;var N=No(),V=Fc();function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var ie=new Set,I={};function B(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(I[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var de=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),W=Object.prototype.hasOwnProperty,Ce=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ge={},ee={};function Z(e){return W.call(ee,e)?!0:W.call(ge,e)?!1:Ce.test(e)?ee[e]=!0:(ge[e]=!0,!1)}function He(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $e(e,t,n,r){if(t===null||typeof t>"u"||He(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function J(e,t,n,r,l,u,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=o}var Q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Q[e]=new J(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Q[t]=new J(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Q[e]=new J(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Q[e]=new J(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Q[e]=new J(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Q[e]=new J(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Q[e]=new J(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Q[e]=new J(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Q[e]=new J(e,5,!1,e.toLowerCase(),null,!1,!1)});var vt=/[\-:]([a-z])/g;function it(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,it);Q[t]=new J(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!1,!1)}),Q.xlinkHref=new J("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Q[e]=new J(e,1,!1,e.toLowerCase(),null,!0,!0)});function Je(e,t,n,r){var l=Q.hasOwnProperty(t)?Q[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]
Line truncated
|
||||
`+f+e}var O=!1;function D(e,t){if(!e||O)return"";O=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
|
||||
`),u=r.stack.split(`
|
||||
`),o=l.length-1,i=u.length-1;1<=o&&0<=i&&l[o]!==u[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==u[i]){if(o!==1||i!==1)do if(o--,i--,0>i||l[o]!==u[i]){var s=`
|
||||
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{O=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?h(e):""}function j(e){switch(e.tag){case 5:return h(e.type);case 16:return h("Lazy");case 13:return h("Suspense");case 19:return h("SuspenseList");case 0:case 2:case 15:return e=D(e.type,!1),e;case 11:return e=D(e.type.render,!1),e;case 1:return e=D(e.type,!0),e;default:return""}}function U(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ze:return"Fragment";case xe:return"Portal";case xt:return"Profiler";case We:return"StrictMode";case Fe:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qt:return(e.displayName||"Context")+".Consumer";case ht:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case at:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U(t);case 8:return t===We?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function je(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=je(e))}function zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=H(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function To(e,t){t=t.checked,t!=null&&Je(e,"checked",t,!1)}function Ll(e,t){To(e,t);var n=H(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,H(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ro(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rl(e,t){if(t.dangerouslySetInnerHTML!=nu
Line truncated
|
||||
`).replace(Hf,"")}function Vr(e,t,n){if(t=Bi(t),Bi(e)!==t&&n)throw Error(m(425))}function Br(){}var du=null,pu=null;function mu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vu=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Hi=typeof Promise=="function"?Promise:void 0,Wf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hi<"u"?function(e){return Hi.resolve(null).then(e).catch(Qf)}:vu;function Qf(e){setTimeout(function(){throw e})}function hu(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),$n(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);$n(t)}function Ot(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function $i(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),ct="__reactFiber$"+vn,er="__reactProps$"+vn,yt="__reactContainer$"+vn,yu="__reactEvents$"+vn,Kf="__reactListeners$"+vn,Yf="__reactHandles$"+vn;function Yt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$i(e);e!==null;){if(n=e[ct])return n;e=$i(e)}return t}e=n,n=e.parentNode}return null}function tr(e){return e=e[ct]||e[yt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Hr(e){return e[er]||null}var gu=[],yn=-1;function Mt(e){return{current:e}}function G(e){0>yn||(e.current=gu[yn],gu[yn]=null,yn--)}function Y(e,t){yn++,gu[yn]=e.current,e.current=t}var Dt={},Se=Mt(Dt),Te=Mt(!1),Xt=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Re(e){return e=e.childContextTypes,e!=null}function $r(){G(Te),G(Se)}function Wi(e,t,n){if(Se.current!==Dt)throw Error(m(168));Y(Se,t),Y(Te,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(m(108,K(e)||"Unknown",l));return _({},n,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Xt=Se.current,Y(Se,e),Y(Te,Te.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=Qi(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,G(Te),G(Se),Y(Se,e)):G(Te),Y(Te,n)}var gt=null,Qr=!1,wu=!1;function Yi(e){gt===null?gt=[e]:gt.push(e)}function Xf(e){Qr=!0,Yi(e)}function It(){if(!wu&>!==null){wu=!0;var e=0,t=$;try{var n=gt;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,Qr=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),Go(Bl,It),l}finally{$=t,wu=!1}}return null}var wn=[],Sn=0,Kr=null,Yr=0,Qe=[],Ke=0,Gt=null,wt=1,St="";function Zt(e,t){wn[Sn++]=Yr,wn[Sn++]=Kr,Kr=e,Yr=t}function Xi(e,t,n){Qe[Ke++]=wt,Qe[Ke++]=St,Qe[Ke++]=Gt,Gt=e;var r=wt;e=St;var l=32-et(r)-1;r&=~(1<<l),n+=1;var u=32-et(t)+l;if(30<u){var o=l-l%5;u=(r&(1<<o)-1).toString(32),r>>=o,l-=o,wt=1<<32-et(t)+l|n<<l|r,St=u+e}else wt=1<<u|n<<l|r,St=e}function Su(e){e.return!==null&&(Zt(e,1),Xi(e,1,0))}function ku(e){for(;e===Kr;)Kr=wn[--Sn],wn[Sn]=null,Yr=wn[--Sn],wn[Sn]=null;for(;e===Gt;)Gt=Qe[--Ke],Qe[Ke]=null,St=Qe[--Ke],Qe[Ke]=null,wt=Qe[--Ke],Qe[Ke]=null}var Ae=null,Ve=null,b=!1,nt=null;function Gi(e,t){var n=Ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zi(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=Ot(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ae=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gt!==null?{id:wt,overflow:St}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ae=e,Ve=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _u(e){if(b){var t=Ve;if(t){var n=t;if(!Zi(e,t)){if(Eu(e))throw Error(m(418));t=Ot(n.nextSibling);var r=Ae;t&&Zi(e,t)?Gi(r,n):(e.flags=e.flags&-4097|2,b=!1,Ae=e)}}else{if(Eu(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,Ae=e}}}function Ji(e){for(e=e.return;e!==null&&e.ta
Line truncated
|
||||
Error generating stack: `+u.message+`
|
||||
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Qu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rc=typeof WeakMap=="function"?WeakMap:Map;function Rs(e,t,n){n=Et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,io=r),Ku(e,t)},n}function Os(e,t,n){n=Et(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ku(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(At===null?At=new Set([this]):At.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rc;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=yc.bind(null,e,t,n),t.then(e,e))}function Ds(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Is(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Et(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var lc=we.ReactCurrentOwner,Oe=!1;function Pe(e,t,n,r){t.child=e===null?ts(t,null,n,r):En(t,e.child,n,r)}function Fs(e,t,n,r,l){n=n.render;var u=t.ref;return Cn(t,l),r=ju(e,t,n,r,u,l),n=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&n&&Su(t),t.flags|=1,Pe(e,t,r,l),t.child)}function js(e,t,n,r,l){if(e===null){var u=n.type;return typeof u=="function"&&!vo(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Us(e,t,u,r,l)):(e=wl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var o=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(o,r)&&e.ref===t.ref)return _t(e,t,l)}return t.flags|=1,e=$t(u,r),e.ref=t.ref,e.return=t,t.child=e}function Us(e,t,n,r,l){if(e!==null){var u=e.memoizedProps;if(Gn(u,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Oe=!0);else return t.lanes=e.lanes,_t(e,t,l)}return Yu(e,t,n,r,l)}function As(e,t,n){var r=t.pendingProps,l=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(zn,Be),Be|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(zn,Be),Be|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Y(zn,Be),Be|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Y(zn,Be),Be|=r;return Pe(e,t,l,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yu(e,t,n,r,l){var u=Re(n)?Xt:Se.current;return u=gn(t,u),Cn(t,l),n=ju(e,t,n,r,u,l),r=Uu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,_t(e,t,l)):(b&&r&&Su(t),t.flags|=1,Pe(e,t,n,l),t.child)}function Bs(e,t,n,r,l){if(Re(n)){var u=!0;Wr(t)}else u=!1;if(Cn(t,l),t.stateNode===null)sl(e,t),Ls(t,n,r),Wu(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,p=n.contextType;typeof p=="object"&&p!==null?p=Ye(p):(p=Re(n)?Xt:Se.current,p=gn(t,p));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==r||s!==p)&&Ts(t,o,r,p),Ft=!1;var v=t.memoizedState;o.state=v,br(t,r,o,l),s=t.memoizedState,i!==r||v!==s||Te.current||Ft?(typeof y=="function"&&($u(t,n,y,r),s=t.memoizedState),(i=Ft||zs(t,n,i,r,v,s,p))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=p,r=i):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,rs(e,t),i=t.memoizedProps,p=t.type===t.elementType?i:rt(t.type,i),o.props=p,g=t.pendingProps,v=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ye(s):(s=Re(n)?Xt:Se.current,s=gn(t,s));var k=n.getDerivedStateFromProps;(y=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==g||v!==s)&&Ts(t,o,r,s),Ft=!1,v=t.memoizedState,o.state=v,br(t,r,o,l);var
Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CqkUhg2V.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-WF3UiNHW.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CCVvHT1S.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-CSMGRq5Y.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-BM9zNj5E.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"电台控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1 +0,0 @@
|
||||
import{c as r,j as e,r as s}from"./index-NN00cnJP.js";r.createRoot(document.getElementById("root")).render(e.jsx(s.StrictMode,{children:e.jsxs("div",{className:"p-6",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"MANET-54 控制台"}),e.jsxs("p",{className:"text-muted-foreground mt-2",children:["请访问 ",e.jsx("a",{href:"/radio/",className:"underline",children:"/radio/"})," 进入电台控制页面"]})]})}));
|
||||
@@ -1,91 +0,0 @@
|
||||
import{r as x,j as t,R as Ye,c as Je}from"./index-CCVvHT1S.js";function Se(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function Qe(...e){return s=>{let r=!1;const n=e.map(o=>{const a=Se(o,s);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Se(e[o],null)}}}}var Xe=Symbol.for("react.lazy"),te=Ye[" use ".trim().toString()];function et(e){return typeof e=="object"&&e!==null&&"then"in e}function Be(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Xe&&"_payload"in e&&et(e._payload)}function tt(e){const s=rt(e),r=x.forwardRef((n,o)=>{let{children:a,...c}=n;Be(a)&&typeof te=="function"&&(a=te(a._payload));const l=x.Children.toArray(a),i=l.find(ot);if(i){const d=i.props.children,u=l.map(h=>h===i?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:h);return t.jsx(s,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,u):null})}return t.jsx(s,{...c,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var st=tt("Slot");function rt(e){const s=x.forwardRef((r,n)=>{let{children:o,...a}=r;if(Be(o)&&typeof te=="function"&&(o=te(o._payload)),x.isValidElement(o)){const c=lt(o),l=at(a,o.props);return o.type!==x.Fragment&&(l.ref=n?Qe(n,c):c),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return s.displayName=`${e}.SlotClone`,s}var nt=Symbol("radix.slottable");function ot(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nt}function at(e,s){const r={...s};for(const n in s){const o=e[n],a=s[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const i=a(...l);return o(...l),i}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function lt(e){var n,o;let s=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=s&&"isReactWarning"in s&&s.isReactWarning;return r?e.ref:(s=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=s&&"isReactWarning"in s&&s.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Pe(e){var s,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(s=0;s<o;s++)e[s]&&(r=Pe(e[s]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function _e(){for(var e,s,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(s=Pe(e))&&(n&&(n+=" "),n+=s);return n}const Me=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ae=_e,it=(e,s)=>r=>{var n;if((s==null?void 0:s.variants)==null)return Ae(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=s,c=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],h=a==null?void 0:a[d];if(u===null)return null;const p=Me(u)||Me(h);return o[d][p]}),l=r&&Object.entries(r).reduce((d,u)=>{let[h,p]=u;return p===void 0||(d[h]=p),d},{}),i=s==null||(n=s.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:h,className:p,...b}=u;return Object.entries(b).every(y=>{let[m,g]=y;return Array.isArray(g)?g.includes({...a,...l}[m]):{...a,...l}[m]===g})?[...d,h,p]:d},[]);return Ae(e,c,i,r==null?void 0:r.class,r==null?void 0:r.className)},he="-",ct=e=>{const s=ut(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{const l=c.split(he);return l[0]===""&&l.length!==1&&l.shift(),$e(l,s)||dt(c)},getConflictingClassGroupIds:(c,l)=>{const i=r[c]||[];return l&&n[c]?[...i,...n[c]]:i}}},$e=(e,s)=>{var c;if(e.length===0)return s.classGroupId;const r=e[0],n=s.nextPart.get(r),o=n?$e(e.slice(1),n):void 0;if(o)return o;if(s.validators.length===0)return;const a=e.join(he);return(c=s.validators.find(({validator:l})=>l(a)))==null?void 0:c.classGroupId},ze=/^\[(.+)\]$/,dt=e=>{if(ze.test(e)){const s=ze.exec(e)[1],r=s==null?void 0:s.substring(0,s.indexOf(":"));if(r)return"arbitrary.."+r}},ut=e=>{const{theme:s,prefix:r}=e,n={nextPart:new Map,validators:[]};return xt(Object.entries(e.classGroups),r).forEach(([a,c])=>{ue(c,n,a,s)}),n},ue=(e,s,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?s:Re(s,o);a.classGroupId=r;return}if(typeof o=="function"){if(mt(o)){ue(o(n),s,r,n);return}s.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,c])=>{ue(c,Re(s,a),r,n)})})},Re=(e,s)=>{let r=e;return s.split(he).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mt=e=>e.isThemeGetter,xt=(e,s)=>s?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?s+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[s+c,l])):a);return[r,o]}):e,ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=new Map,n=new Map;const o=(a,c)=>{r.set(a,c),s++,s>e&&(s=0,n=r,r=new Map)};return{get(a){let c=r.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){r.has(a)?r.set(a,c):o(a,c)}}},Le="!",pt=e=>{const{separator:s,experimentalParseClassName:r}=e,nLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qe=(...e)=>e.filter((s,r,n)=>!!s&&s.trim()!==""&&n.indexOf(s)===r).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Vt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ht=x.forwardRef(({color:e="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...l},i)=>x.createElement("svg",{ref:i,...Vt,width:s,height:s,stroke:e,strokeWidth:n?Number(r)*24/Number(s):r,className:qe("lucide",o),...l},[...c.map(([d,u])=>x.createElement(d,u)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,s)=>{const r=x.forwardRef(({className:n,...o},a)=>x.createElement(Ht,{ref:a,iconNode:s,className:qe(`lucide-${Ut(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const G=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ze=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.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=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ft=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const qt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Y=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Zt=C("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const J=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Dt=C("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Q=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function Kt(e,s=!0){const[r,n]=x.useState(null),[o,a]=x.useState([]),[c,l]=x.useState("closed"),[i,d]=x.useState(null),u=x.useRef(null),[h,p]=x.useState(0);return x.useEffect(()=>{if(!s){l("closed");return}l("connecting"),d(null);const y=`/api/radio/stream?cmd=${e}`,m=new EventSource(y);return u.current=m,m.onopen=()=>{l("open"),d(null)},m.addEventListener("push",g=>{try{const N={...JSON.parse(g.data),receivedAt:Date.now()};n(N),a(A=>[N,...A].slice(0,30))}catch(v){d(`parse failed: ${v.message}`)}}),m.onerror=()=>{l("error"),d("EventSource error (浏览器会自动 3s 重连)")},()=>{m.close(),u.current=null,l("closed")}},[e,s,h]),{latest:r,history:o,status:c,lastError:i,reconnect:()=>{u.current&&u.current.close(),p(y=>y+1)}}}function Yt(e){const s=e.replace(/\s+/g,"");if(s.length%2!==0)return[];const r=[];for(let n=0;n<s.length;n+=2)r.push(parseInt(s.substr(n,2),16));return r}function Jt(e){return`${(e>>8).toString(16).padStart(2,"0")}:${(e&255).toString(16).padStart(2,"0")}`}function D(e){return{id:e,mac:e,label:"本机",isSelf:!0,hop:0,status:"online"}}function Qt(e,s){const r=Yt(e);if(r.length<7)return{nodes:[],format:"unknown",warnings:[`packet too short: ${r.length}B`]};const n=r.slice(7),o=Xt(n,s),a=es(n,s);return n.length===2?o:a&&n.length%5===0?a:o??{nodes:[D(s)],format:"unknown",warnings:[`payload length ${n.length} not 2 nor 5-multiple`]}}function Xt(e,s){if(e.length!==2)return{nodes:[D(s)],format:"count_2b",warnings:[`payload ${e.length}B != 2, 跳过 2B 解析`]};const r=e[0]<<8|e[1];return r===0?{nodes:[D(s)],format:"count_2b",warnings:[]}:{nodes:[D(s)],format:"count_2b",warnings:[`count=${r} 但 payload 只有 2B, 链路数据可能未到达, 等多节点实测`]}}function es(e,s){if(e.length<5||e.length%5!==0)return null;const r=e.length/5,n=new Map;for(let a=0;a<e.length;a+=5){const c=e[a]<<8|e[a+1],l=e[a+2]<<8|e[a+3],i=e[a+4];for(const d of[c,l]){const u=Jt(d);n.has(u)||n.set(u,{mac:u,quality:[],hops:new Set}),n.get(u).quality.push(i)}}const o=[D(s)];for(const{mac:a,quality:c}of n.values()){if(a===s)continue;const l=c.reduce((i,d)=>i+d,0)/c.length;o.push({id:a,mac:a,label:a,isSelf:!1,hop:1,quality:Math.round(l),status:l>=80?"online":l>=50?"weak":"offline"})}return{nodes:o,format:"link_5b",warnings:["5B/链路 格式 [未验证] — 见 manet-54/docs/api_54_discovered.md §13",`解出 ${r} 条链路, ${o.length-1} 个邻居`]}}const K={online:{fill:"hsl(199 89% 48% / 0.18)",stroke:"hsl(199 89% 48%)",text:"hsl(199 89% 38%)"},weak:{fill:"hsl(38 92% 50% / 0.18)",stroke:"hsl(38 92% 50%)",text:"hsl(38 92% 38%)"},offline:{fill:"hsl(0 84% 60% / 0.18)",stroke:"hsl(0 84% 60%)",text:"hsl(0 84% 48%)"}},F=32,ts=24,me=110,xe=75;function ss({nodes:e,width:s=640,height:r=480,className:n}){const o=x.useMemo(()=>as(e,s,r),[e,s,r]);if(o.length===0)return t.jsx(rs,{className:n});const a=o[0],c=o.slice(1),l=x.useMemo(()=>ls(a,c),[a,c]);return t.jsx("div",{className:n,children:t.jsxs("svg",{viewBox:`0 0 ${s} ${r}`,className:"w-full h-auto",role:"img","aria-label":"MANET 网络拓扑",children:[t.jsx("defs",{children:t.jsxs("radialGradient",{id:"topo-bg",cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",stopColor:"hsl(199 89% 48% / 0.04)"}),t.jsx("stop",{offset:"100%",stopColor:"hsl(199 89% 48% / 0)"})]})}),t.jsx("rect",{width:s,height:r,fill:"url(#topo-bg)"}),t.jsx(ns,{self:a,maxRadius:Math.max(...o.map(i=>De(i.hop??1)))}),l.map((i,d)=>t.jsx("line",{x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,stroke:K[i.status].stroke,strokeWidth:i.isMultihop?1.5:2,strokeDasharray:i.isMultihop?"6 4":void 0,opacity:.6},d)),o.map(i=>{const d=i.isSelf?F:ts,u=K[i.status];return t.jsxs("g",{transform:`translate(${i.x}, ${i.y})`,children:[i.isSelf&&t.jsxs("circle",{r:F+8,fill:u.fill,opacity:.6,children:[t.jsx("animate",{attributeName:"r",values:`${F+4};${F+12};${F+4}`,dur:"2.4s",repeatCount:"indefinite"}),t.jsx("animate",{attributeName:"opacity",values:"0.7;0.2;0.7",dur:"2.4s",repeatCount:"indefinite"})]}),t.jsx("circle",{r:d,fill:u.fill,stroke:u.stroke,strokeWidth:2}),i.isSelf?t.jsx(Zt,{x:-10,y:-10,width:20,height:20,color:u.stroke}):i.status==="offline"?t.jsx(Dt,{x:-9,y:-9,width:18,height:18,color:u.stroke}):t.jsx(ne,{x:-9,y:-9,width:18,height:18,color:u.stroke}),t.jsx("text",{y:d+16,textAnchor:"middle",fontSize:"12",fontWeight:"600",fill:"hsl(222 47% 11%)",children:i.label??i.mac}),i.quality!=null&&t.jsxs("text",{y:d+30,textAnchor:"middle",fontSize:"10",fill:"hsl(215 16% 47%)",fontFamily:"ui-monospace, monospace",children:["Q ",i.quality]})]},i.id)}),t.jsx(os,{x:16,y:r-16})]})})}function rs({className:e}){return t.jsx("div",{className:e,children:t.jsxs("div",{className:"bg-card rounded-xl border shadow-card p-8 flex flex-col items-center justify-center text-center min-h-[280px]",children:[t.jsx("div",{className:"h-12 w-12 roundeLine truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as m,j as t,R as Fe,c as He}from"./index-BM9zNj5E.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function qe(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ze=Symbol.for("react.lazy"),K=Fe[" use ".trim().toString()];function Ye(e){return typeof e=="object"&&e!==null&&"then"in e}function Se(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ze&&"_payload"in e&&Ye(e._payload)}function Ke(e){const r=Xe(e),s=m.forwardRef((n,o)=>{let{children:a,...l}=n;Se(a)&&typeof K=="function"&&(a=K(a._payload));const i=m.Children.toArray(a),d=i.find(De);if(d){const c=d.props.children,p=i.map(g=>g===d?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...l,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,p):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Je=Ke("Slot");function Xe(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Se(o)&&typeof K=="function"&&(o=K(o._payload)),m.isValidElement(o)){const l=tt(o),i=et(a,o.props);return o.type!==m.Fragment&&(i.ref=n?qe(n,l):l),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function De(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function et(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const d=a(...i);return o(...i),d}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function tt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Ae(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Ae(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Ae(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=ze,rt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const p=s==null?void 0:s[c],g=a==null?void 0:a[c];if(p===null)return null;const x=ve(p)||ve(g);return o[c][x]}),i=s&&Object.entries(s).reduce((c,p)=>{let[g,x]=p;return x===void 0||(c[g]=x),c},{}),d=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,p)=>{let{class:g,className:x,...b}=p;return Object.entries(b).every(y=>{let[u,h]=y;return Array.isArray(h)?h.includes({...a,...i}[u]):{...a,...i}[u]===h})?[...c,g,x]:c},[]);return we(e,l,d,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",st=e=>{const r=ot(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Re(i,r)||nt(l)},getConflictingClassGroupIds:(l,i)=>{const d=s[l]||[];return i&&n[l]?[...d,...n[l]]:d}}},Re=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,nt=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},ot=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return it(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(at(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},at=e=>e.isThemeGetter,it=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",ct=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ge=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},d)=>m.createElement("svg",{ref:d,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ge("lucide",o),...i},[...l.map(([c,p])=>m.createElement(c,p)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Ge(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.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=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $t=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const F=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Vt="100.100.100.3",Wt=62450,Ut="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function B({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ve,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[l,i]=m.useState("0"),[d,c]=m.useState("505.54"),[p,g]=m.useState("0"),[x,b]=m.useState(null),y=m.useCallback(async(u,h,j)=>{const N=await de(ce(1,h,j),e,r);return b(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx($e,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${d}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:p,sub:"0-19",icon:t.jsx(F,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-NN00cnJP.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as p,j as t,R as He,c as qe}from"./index-CqkUhg2V.js";function ye(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Ze(...e){return r=>{let s=!1;const n=e.map(o=>{const a=ye(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ye(e[o],null)}}}}var Ye=Symbol.for("react.lazy"),K=He[" use ".trim().toString()];function Ke(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ye&&"_payload"in e&&Ke(e._payload)}function Je(e){const r=Xe(e),s=p.forwardRef((n,o)=>{let{children:a,...l}=n;Ae(a)&&typeof K=="function"&&(a=K(a._payload));const i=p.Children.toArray(a),u=i.find(et);if(u){const c=u.props.children,g=i.map(h=>h===u?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:h);return t.jsx(r,{...l,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,g):null})}return t.jsx(r,{...l,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var De=Je("Slot");function Xe(e){const r=p.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof K=="function"&&(o=K(o._payload)),p.isValidElement(o)){const l=rt(o),i=tt(a,o.props);return o.type!==p.Fragment&&(i.ref=n?Ze(n,l):l),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Qe=Symbol("radix.slottable");function et(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qe}function tt(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function rt(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function ze(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=ze(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function Re(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=ze(e))&&(n&&(n+=" "),n+=r);return n}const ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,we=Re,st=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return we(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,l=Object.keys(o).map(c=>{const g=s==null?void 0:s[c],h=a==null?void 0:a[c];if(g===null)return null;const y=ve(g)||ve(h);return o[c][y]}),i=s&&Object.entries(s).reduce((c,g)=>{let[h,y]=g;return y===void 0||(c[h]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,g)=>{let{class:h,className:y,...j}=g;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...i}[d]):{...a,...i}[d]===f})?[...c,h,y]:c},[]);return we(e,l,u,s==null?void 0:s.class,s==null?void 0:s.className)},ie="-",nt=e=>{const r=at(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const i=l.split(ie);return i[0]===""&&i.length!==1&&i.shift(),Ie(i,r)||ot(l)},getConflictingClassGroupIds:(l,i)=>{const u=s[l]||[];return i&&n[l]?[...u,...n[l]]:u}}},Ie=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Ie(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ie);return(l=r.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},je=/^\[(.+)\]$/,ot=e=>{if(je.test(e)){const r=je.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},at=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return lt(Object.entries(e.classGroups),s).forEach(([a,l])=>{re(l,n,a,r)}),n},re=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ne(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(it(o)){re(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,l])=>{re(l,Ne(r,a),s,n)})})},Ne=(e,r)=>{let s=e;return r.split(ie).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},it=e=>e.isThemeGetter,lt=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[r+l,i])):a);return[s,o]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,l)=>{s.set(a,l),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let l=s.get(a);if(l!==void 0)return l;if((l=n.get(a))!==void 0)return o(a,l),l},set(a,l){s.has(a)?s.set(a,l):o(a,l)}}},Te="!",dt=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Lt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ve=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var _t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=p.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:l,...i},u)=>p.createElement("svg",{ref:u,..._t,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Ve("lucide",o),...i},[...l.map(([c,g])=>p.createElement(c,g)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=p.forwardRef(({className:n,...o},a)=>p.createElement(Gt,{ref:a,iconNode:r,className:Ve(`lucide-${Lt(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ue=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Wt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ut=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ae=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const $=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),$t="100.100.100.3",ke=62450,$e="http://100.100.100.3:8000";function ce(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function Ce(e){return Uint8Array.from([e>>8&255,e&255])}function J(e){return Uint8Array.from([e&255])}function Me(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function Ft(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function de(e,r,s){try{const n=await fetch(`${$e}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Me(Uint8Array.from(o.reply))}`,raw:Me(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Se={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ht={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},qt={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function U({label:e,value:r,sub:s,icon:n,iconBg:o,tooltip:a}){return t.jsx("div",{className:"bg-card rounded-lg border p-2 shadow-card hover:shadow-card-hover transition-all duration-200 card-lift cursor-default",title:a,children:t.jsxs("div",{className:"flex items-start justify-between",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:S("h-7 w-7 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function P({title:e,signalId:r,icon:s,iconBg:n,children:o}){return t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:S("h-8 w-8 rounded-lg flex items-center justify-center shrink-0",n),children:s}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:e}),t.jsxs("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:["0x",r.toString(16).toUpperCase().padStart(4,"0")]})]})]}),t.jsx("div",{className:"p-4 space-y-3",children:o})]})}function ue({result:e}){return e?t.jsxs("div",{className:S("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Vt,{className:"h-4 w-4 shrink-0"}):t.jsx(Ue,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Fe({icon:e,label:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-6 w-6 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function Zt({host:e,port:r}){const[s,n]=p.useState("16"),[o,a]=p.useState(0),[l,i]=p.useState("0"),[u,c]=p.useState("505.54"),[g,h]=p.useState("0"),[y,j]=p.useState(null),v=p.useCallback(async(d,f,w)=>{const N=await de(ce(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(We,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(U,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(ae,{className:"h-4 w-4 text-primary"}),iconBg:"bg-primary/10"}),t.jsx(U,{label:"工作模式",value:Se[o]??"—",sub:"当前模式",icon:t.jsx(se,{className:"h-4 w-4 text-cyan-500"}),iconBg:"bg-cyan-500/10"}),t.jsx(U,{label:"MAC地址",value:l,sub:"0-127",icon:t.jsx(ne,{className:"h-4 w-4 text-violet-500"}),iconBg:"bg-violet-500/10"}),t.jsx(U,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(oe,{className:"h-4 w-4 text-rose-500"}),iconBg:"bg-rose-500/10"}),t.jsx(U,{label:"跳频表号",value:g,sub:"0-19",icon:t.jsx($,{className:"h-4 w-4 text-amber-500"}),iconBg:"bg-amber-500/10"})]}),t.Line truncated
|
||||
@@ -1,81 +0,0 @@
|
||||
import{r as m,j as t,R as $e,c as Fe}from"./index-WF3UiNHW.js";function be(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function He(...e){return r=>{let s=!1;const n=e.map(o=>{const a=be(o,r);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():be(e[o],null)}}}}var qe=Symbol.for("react.lazy"),Y=$e[" use ".trim().toString()];function Ze(e){return typeof e=="object"&&e!==null&&"then"in e}function Ae(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===qe&&"_payload"in e&&Ze(e._payload)}function Ye(e){const r=Je(e),s=m.forwardRef((n,o)=>{let{children:a,...i}=n;Ae(a)&&typeof Y=="function"&&(a=Y(a._payload));const l=m.Children.toArray(a),u=l.find(Xe);if(u){const c=u.props.children,x=l.map(g=>g===u?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:g);return t.jsx(r,{...i,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,x):null})}return t.jsx(r,{...i,ref:o,children:a})});return s.displayName=`${e}.Slot`,s}var Ke=Ye("Slot");function Je(e){const r=m.forwardRef((s,n)=>{let{children:o,...a}=s;if(Ae(o)&&typeof Y=="function"&&(o=Y(o._payload)),m.isValidElement(o)){const i=et(o),l=Qe(a,o.props);return o.type!==m.Fragment&&(l.ref=n?He(n,i):i),m.cloneElement(o,l)}return m.Children.count(o)>1?m.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var De=Symbol("radix.slottable");function Xe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===De}function Qe(e,r){const s={...r};for(const n in r){const o=e[n],a=r[n];/^on[A-Z]/.test(n)?o&&a?s[n]=(...l)=>{const u=a(...l);return o(...l),u}:o&&(s[n]=o):n==="style"?s[n]={...o,...a}:n==="className"&&(s[n]=[o,a].filter(Boolean).join(" "))}return{...e,...s}}function et(e){var n,o;let r=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,s=r&&"isReactWarning"in r&&r.isReactWarning;return s?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=r&&"isReactWarning"in r&&r.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}function Se(e){var r,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(s=Se(e[r]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function ze(){for(var e,r,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(r=Se(e))&&(n&&(n+=" "),n+=r);return n}const ye=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ve=ze,tt=(e,r)=>s=>{var n;if((r==null?void 0:r.variants)==null)return ve(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:a}=r,i=Object.keys(o).map(c=>{const x=s==null?void 0:s[c],g=a==null?void 0:a[c];if(x===null)return null;const y=ye(x)||ye(g);return o[c][y]}),l=s&&Object.entries(s).reduce((c,x)=>{let[g,y]=x;return y===void 0||(c[g]=y),c},{}),u=r==null||(n=r.compoundVariants)===null||n===void 0?void 0:n.reduce((c,x)=>{let{class:g,className:y,...j}=x;return Object.entries(j).every(v=>{let[d,f]=v;return Array.isArray(f)?f.includes({...a,...l}[d]):{...a,...l}[d]===f})?[...c,g,y]:c},[]);return ve(e,i,u,s==null?void 0:s.class,s==null?void 0:s.className)},ae="-",rt=e=>{const r=nt(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(ae);return l[0]===""&&l.length!==1&&l.shift(),Re(l,r)||st(i)},getConflictingClassGroupIds:(i,l)=>{const u=s[i]||[];return l&&n[i]?[...u,...n[i]]:u}}},Re=(e,r)=>{var i;if(e.length===0)return r.classGroupId;const s=e[0],n=r.nextPart.get(s),o=n?Re(e.slice(1),n):void 0;if(o)return o;if(r.validators.length===0)return;const a=e.join(ae);return(i=r.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},we=/^\[(.+)\]$/,st=e=>{if(we.test(e)){const r=we.exec(e)[1],s=r==null?void 0:r.substring(0,r.indexOf(":"));if(s)return"arbitrary.."+s}},nt=e=>{const{theme:r,prefix:s}=e,n={nextPart:new Map,validators:[]};return at(Object.entries(e.classGroups),s).forEach(([a,i])=>{te(i,n,a,r)}),n},te=(e,r,s,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?r:je(r,o);a.classGroupId=s;return}if(typeof o=="function"){if(ot(o)){te(o(n),r,s,n);return}r.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([a,i])=>{te(i,je(r,a),s,n)})})},je=(e,r)=>{let s=e;return r.split(ae).forEach(n=>{s.nextPart.has(n)||s.nextPart.set(n,{nextPart:new Map,validators:[]}),s=s.nextPart.get(n)}),s},ot=e=>e.isThemeGetter,at=(e,r)=>r?e.map(([s,n])=>{const o=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[r+i,l])):a);return[s,o]}):e,lt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,s=new Map,n=new Map;const o=(a,i)=>{s.set(a,i),r++,r>e&&(r=0,n=s,s=new Map)};return{get(a){let i=s.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){s.has(a)?s.set(a,i):o(a,i)}}},Te="!",it=e=>{const{separator:r,experimentalParseClassName:s}=e,n=r.leLine truncated
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ot=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Be=(...e)=>e.filter((r,s,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===s).join(" ").trim();/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/var Lt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const _t=m.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},u)=>m.createElement("svg",{ref:u,...Lt,width:r,height:r,stroke:e,strokeWidth:n?Number(s)*24/Number(r):s,className:Be("lucide",o),...l},[...i.map(([c,x])=>m.createElement(c,x)),...Array.isArray(a)?a:[a]]));/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=(e,r)=>{const s=m.forwardRef(({className:n,...o},a)=>m.createElement(_t,{ref:a,iconNode:r,className:Be(`lucide-${Ot(e)}`,n),...o}));return s.displayName=`${e}`,s};/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const le=C("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Ve=C("Antenna",[["path",{d:"M2 12 7 2",key:"117k30"}],["path",{d:"m7 12 5-10",key:"1tvx22"}],["path",{d:"m12 12 5-10",key:"ev1o1a"}],["path",{d:"m17 12 5-10",key:"1e4ti3"}],["path",{d:"M4.5 7h15",key:"vlsxkz"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const We=C("CircleAlert",[["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"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Gt=C("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Bt=C("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const Vt=C("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const re=C("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=C("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const se=C("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const ne=C("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const oe=C("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||||
* @license lucide-react v0.460.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const U=C("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Wt="100.100.100.3",Ne=62450,Ut="http://100.100.100.3:8000";function ie(e,r,s){const n=s.length,o=new Uint8Array(7+n);return o[0]=e,o[1]=0,o[2]=0,o[3]=r>>8&255,o[4]=r&255,o[5]=n>>8&255,o[6]=n&255,o.set(s,7),o}function ke(e){return Uint8Array.from([e>>8&255,e&255])}function K(e){return Uint8Array.from([e&255])}function Ce(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join(" ")}function $t(e){const r=Math.round(e*1e3);return Uint8Array.from([Math.floor(r/1e6)&15,Math.floor(r%1e6/1e4)&255,Math.floor(r%1e4/100)&255,Math.floor(r%100)&255])}async function ce(e,r,s){try{const n=await fetch(`${Ut}/api/radio/raw`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({host:r,port:s,frame:Array.from(e)})}),o=await n.json();return n.ok?o.reply?{ok:!0,msg:`回复: ${Ce(Uint8Array.from(o.reply))}`,raw:Ce(Uint8Array.from(o.reply))}:{ok:!0,msg:"发送成功(无回复)"}:{ok:!1,msg:o.reason||"发送失败"}}catch(n){return{ok:!1,msg:n.message}}}const Me={0:"定频",1:"跳频",2:"FCS",3:"定-密",4:"跳-密",5:"FCS-密"},Ft={0:"自适应",1:"窄512k",2:"窄1M",3:"窄2M",4:"宽2M",5:"宽4M",6:"宽8M",7:"宽10M",8:"宽16M",9:"窄4M",10:"2M",11:"4M",12:"5M",13:"8M",14:"10M",15:"宽20M",16:"64k",17:"512k",18:"2M"},Ht={4:"自适应",3:"值守",2:"小功率",1:"中功率",0:"大功率"};function W({label:e,value:r,sub:s,icon:n,accent:o}){return t.jsx("div",{className:"bg-card rounded-xl border shadow-card hover:shadow-card-hover transition-all duration-200",children:t.jsxs("div",{className:"flex items-start justify-between p-3",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:e}),t.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),s&&t.jsx("p",{className:"text-[10px] text-muted-foreground",children:s})]}),t.jsx("div",{className:A("h-9 w-9 rounded-lg flex items-center justify-center shrink-0",o),children:n})]})})}function de({result:e}){return e?t.jsxs("div",{className:A("rounded-xl border p-3.5 text-sm flex items-center gap-2.5 animate-scale-in",e.ok?"border-green-200 bg-green-50/80 text-green-800":"border-red-200 bg-red-50/80 text-red-800"),children:[e.ok?t.jsx(Gt,{className:"h-4 w-4 shrink-0"}):t.jsx(We,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{className:"font-mono text-xs break-all",children:e.msg})]}):null}function Ue({icon:e,title:r}){return t.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:e}),t.jsx("span",{className:"text-sm font-semibold",children:r})]})}function qt({host:e,port:r}){const[s,n]=m.useState("16"),[o,a]=m.useState(0),[i,l]=m.useState("0"),[u,c]=m.useState("505.54"),[x,g]=m.useState("0"),[y,j]=m.useState(null),v=m.useCallback(async(d,f,w)=>{const N=await ce(ie(1,f,w),e,r);return j(N),N},[e,r]);return t.jsxs("div",{className:"space-y-5",children:[t.jsxs("div",{className:"rounded-xl border border-slate-200/60 bg-slate-50/60 p-3 text-slate-700 text-xs flex items-start gap-3",children:[t.jsx(Ve,{className:"h-4 w-4 shrink-0 mt-0.5 text-primary"}),t.jsxs("span",{children:["静态参数由 ",t.jsx("strong",{children:"波形软件"})," 管理,设置后需重启生效。信令通过 UDP 二进制帧发送到目标电台。"]})]}),t.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[t.jsx(W,{label:"网络规模",value:s,sub:"2-128",icon:t.jsx(oe,{className:"h-4 w-4 text-primary"}),accent:"bg-primary/10"}),t.jsx(W,{label:"工作模式",value:Me[o]??"—",sub:"当前模式",icon:t.jsx(re,{className:"h-4 w-4 text-cyan-500"}),accent:"bg-cyan-500/10"}),t.jsx(W,{label:"MAC地址",value:i,sub:"0-127",icon:t.jsx(se,{className:"h-4 w-4 text-violet-500"}),accent:"bg-violet-500/10"}),t.jsx(W,{label:"定频频率",value:`${u}MHz`,sub:"480~1710",icon:t.jsx(ne,{className:"h-4 w-4 text-rose-500"}),accent:"bg-rose-500/10"}),t.jsx(W,{label:"跳频表号",value:x,sub:"0-19",icon:t.jsx(U,{className:"h-4 w-4 text-amber-500"}),accent:"bg-amber-500/10"})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[t.jsxs("div",{className:"bg-card rounded-xl border shadow-card",children:[t.jsxs("div",{className:"px-4 py-3 border-b flex items-center gap-3",children:[t.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary/10 flex items-center justify-center text-primary",children:t.jsx(oe,{className:"h-4 w-4"})}),t.jsxs("div",{className:"flex-1",children:[t.jsx("span",{className:"text-sm font-semibold",children:"网络规模"}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 font-mono",children:"0x0001"})]})]}),t.jsxs("div",{className:"p-4 space-y-3",children:[t.jsxs("div",{children:[t.jsx(ELine truncated
|
||||
Loaded 100 of 142 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user